# HG changeset patch # User Roland McGrath # Date 758069704 0 # Node ID 708b422cf8df8bbe653163788e22aef19d156a3d # Parent e9e928d027477d9a161f8f0d1aede80a61203d3e (report_file_error): Use strerror instead of sys_errlist. diff -r e9e928d02747 -r 708b422cf8df src/fileio.c --- a/src/fileio.c Sat Jan 08 22:28:39 1994 +0000 +++ b/src/fileio.c Sat Jan 08 22:55:04 1994 +0000 @@ -137,10 +137,7 @@ { Lisp_Object errstring; - if (errno >= 0 && errno < sys_nerr) - errstring = build_string (sys_errlist[errno]); - else - errstring = build_string ("undocumented error code"); + errstring = build_string (strerror (errno)); /* System error messages are capitalized. Downcase the initial unless it is followed by a slash. */