comparison src/process.c @ 5543:dbc1d920ef5c

Don't declare sys_nerr. Don't declare sys_errlist unless #ifdef VMS. Declare strerror instead. (wait_reading_process_input): Call strerror instead of using sys_errlist.
author Roland McGrath <roland@gnu.org>
date Sun, 09 Jan 1994 23:06:40 +0000
parents 7a0de0f56c86
children 36d2fd17f833
comparison
equal deleted inserted replaced
5542:004856d1b311 5543:dbc1d920ef5c
1 /* Asynchronous subprocess control for GNU Emacs. 1 /* Asynchronous subprocess control for GNU Emacs.
2 Copyright (C) 1985, 1986, 1987, 1988, 1993 Free Software Foundation, Inc. 2 Copyright (C) 1985, 86, 87, 88, 93, 94 Free Software Foundation, Inc.
3 3
4 This file is part of GNU Emacs. 4 This file is part of GNU Emacs.
5 5
6 GNU Emacs is free software; you can redistribute it and/or modify 6 GNU Emacs is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
123 123
124 #include "syssignal.h" 124 #include "syssignal.h"
125 125
126 #include "syswait.h" 126 #include "syswait.h"
127 127
128 extern errno; 128 extern int errno;
129 extern sys_nerr; 129 extern char *strerror ();
130 #ifdef VMS
130 extern char *sys_errlist[]; 131 extern char *sys_errlist[];
132 #endif
131 133
132 #ifndef VMS 134 #ifndef VMS
133 #ifndef BSD4_1 135 #ifndef BSD4_1
134 #ifndef LINUX 136 #ifndef LINUX
135 extern char *sys_siglist[]; 137 extern char *sys_siglist[];
1875 #else 1877 #else
1876 abort (); 1878 abort ();
1877 #endif 1879 #endif
1878 } 1880 }
1879 else 1881 else
1880 error("select error: %s", sys_errlist[xerrno]); 1882 error("select error: %s", strerror (xerrno));
1881 } 1883 }
1882 #if defined(sun) && !defined(USG5_4) 1884 #if defined(sun) && !defined(USG5_4)
1883 else if (nfds > 0 && FD_ISSET (keyboard_descriptor, &Available) 1885 else if (nfds > 0 && FD_ISSET (keyboard_descriptor, &Available)
1884 && interrupt_input) 1886 && interrupt_input)
1885 /* System sometimes fails to deliver SIGIO. 1887 /* System sometimes fails to deliver SIGIO.