# HG changeset patch # User Roland McGrath # Date 758064488 0 # Node ID 8b2b6a296cda655c2ece7a3d6a65d0c32f9887c0 # Parent ec5a245c14edcd3f32c600ac5e77f0c6c2edcd6c Don't declare sys_errlist; declare strerror instead. (err_str): Macro removed. (Finsert_file_contents, Fwrite_region): Call strerror instead of err_str. diff -r ec5a245c14ed -r 8b2b6a296cda src/fileio.c --- a/src/fileio.c Sat Jan 08 21:24:35 1994 +0000 +++ b/src/fileio.c Sat Jan 08 21:28:08 1994 +0000 @@ -1,5 +1,5 @@ /* File IO for GNU Emacs. - Copyright (C) 1985, 1986, 1987, 1988, 1993 Free Software Foundation, Inc. + Copyright (C) 1985, 1986, 1987, 1988, 1993, 1994 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -54,11 +54,9 @@ #ifndef vax11c extern int errno; -extern char *sys_errlist[]; -extern int sys_nerr; #endif -#define err_str(a) ((a) < sys_nerr ? sys_errlist[a] : "unknown error") +extern char *strerror (); #ifdef APOLLO #include @@ -2687,7 +2685,7 @@ if (how_much < 0) error ("IO error reading %s: %s", - XSTRING (filename)->data, err_str (errno)); + XSTRING (filename)->data, strerror (errno)); notfound: handled: @@ -3049,7 +3047,7 @@ current_buffer->modtime = st.st_mtime; if (failure) - error ("IO error writing %s: %s", fn, err_str (save_errno)); + error ("IO error writing %s: %s", fn, strerror (save_errno)); if (visiting) {