# HG changeset patch # User Dan Nicolaescu # Date 1270177833 25200 # Node ID 912a8c0c9a8a001972b49adb702e505499f3c3b2 # Parent 1f5000fd5ff7e4afbc052315539d31c840b54a44 Remove extern errno declarations. * xterm.c: * xrdb.c: * w32term.c: * unexec.c: * unexaix.c: * sysdep.c: * process.c: * lread.c: * keyboard.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c (main): * ecrt0.c: * dispnew.c: * callproc.c: * buffer.c: Remove errno extern declarations. * s/netbsd.h (NEED_ERRNO): Remove. * movemail.c: * etags.c: * emacsclient.c: Remove extern errno declarations. diff -r 1f5000fd5ff7 -r 912a8c0c9a8a lib-src/ChangeLog --- a/lib-src/ChangeLog Thu Apr 01 16:08:14 2010 -0700 +++ b/lib-src/ChangeLog Thu Apr 01 20:10:33 2010 -0700 @@ -1,3 +1,10 @@ +2010-04-02 Dan Nicolaescu + + Remove extern errno declarations. + * movemail.c: + * etags.c: + * emacsclient.c: Remove extern errno declarations. + 2010-03-20 Glenn Morris * Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB) diff -r 1f5000fd5ff7 -r 912a8c0c9a8a lib-src/emacsclient.c --- a/lib-src/emacsclient.c Thu Apr 01 16:08:14 2010 -0700 +++ b/lib-src/emacsclient.c Thu Apr 01 20:10:33 2010 -0700 @@ -723,7 +723,6 @@ #define SEND_BUFFER_SIZE 4096 extern char *strerror (); -extern int errno; /* Buffer to accumulate data to send in TCP connections. */ char send_buffer[SEND_BUFFER_SIZE + 1]; diff -r 1f5000fd5ff7 -r 912a8c0c9a8a lib-src/etags.c --- a/lib-src/etags.c Thu Apr 01 16:08:14 2010 -0700 +++ b/lib-src/etags.c Thu Apr 01 20:10:33 2010 -0700 @@ -188,9 +188,6 @@ #include #include #include -#ifndef errno - extern int errno; -#endif #include #include diff -r 1f5000fd5ff7 -r 912a8c0c9a8a lib-src/movemail.c --- a/lib-src/movemail.c Thu Apr 01 16:08:14 2010 -0700 +++ b/lib-src/movemail.c Thu Apr 01 20:10:33 2010 -0700 @@ -140,9 +140,6 @@ #endif #endif -#ifndef errno -extern int errno; -#endif char *strerror (); #ifdef HAVE_INDEX extern char *index __P ((const char *, int)); diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/ChangeLog --- a/src/ChangeLog Thu Apr 01 16:08:14 2010 -0700 +++ b/src/ChangeLog Thu Apr 01 20:10:33 2010 -0700 @@ -1,3 +1,25 @@ +2010-04-02 Dan Nicolaescu + + Remove extern errno declarations. + * xterm.c: + * xrdb.c: + * w32term.c: + * unexec.c: + * unexaix.c: + * sysdep.c: + * process.c: + * lread.c: + * keyboard.c: + * floatfns.c: + * filelock.c: + * fileio.c: + * emacs.c (main): + * ecrt0.c: + * dispnew.c: + * callproc.c: + * buffer.c: Remove errno extern declarations. + * s/netbsd.h (NEED_ERRNO): Remove. + 2010-04-01 Dan Nicolaescu Remove all uses of LIBX11_SYSTEM. diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/buffer.c --- a/src/buffer.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/buffer.c Thu Apr 01 20:10:33 2010 -0700 @@ -28,11 +28,6 @@ #include #include -#ifndef USE_CRT_DLL -extern int errno; -#endif - - #ifdef HAVE_UNISTD_H #include #endif @@ -4627,7 +4622,6 @@ #endif #include -#include #if MAP_ANON == 0 #include diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/callproc.c --- a/src/callproc.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/callproc.c Thu Apr 01 20:10:33 2010 -0700 @@ -25,10 +25,6 @@ #include #include -#ifndef USE_CRT_DLL -extern int errno; -#endif - /* Define SIGCHLD as an alias for SIGCLD. */ #if !defined (SIGCHLD) && defined (SIGCLD) @@ -61,7 +57,6 @@ #include #include #include -#include #endif /* MSDOS */ #ifndef O_RDONLY diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/dispnew.c --- a/src/dispnew.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/dispnew.c Thu Apr 01 20:10:33 2010 -0700 @@ -5809,9 +5809,6 @@ int signalnum; /* some compilers complain in signal calls. */ { int width, height; -#ifndef USE_CRT_DLL - extern int errno; -#endif int old_errno = errno; struct tty_display_info *tty; diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/ecrt0.c --- a/src/ecrt0.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/ecrt0.c Thu Apr 01 20:10:33 2010 -0700 @@ -59,10 +59,6 @@ int data_start = 0; -#ifdef NEED_ERRNO -int errno; -#endif - #ifndef MSDOS char **environ; #endif diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/emacs.c --- a/src/emacs.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/emacs.c Thu Apr 01 20:10:33 2010 -0700 @@ -756,9 +756,6 @@ char stack_bottom_variable; int do_initial_setlocale; int skip_args = 0; -#ifndef USE_CRT_DLL - extern int errno; -#endif #ifdef HAVE_SETRLIMIT struct rlimit rlim; #endif diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/fileio.c --- a/src/fileio.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/fileio.c Thu Apr 01 20:10:33 2010 -0700 @@ -53,12 +53,6 @@ #include #include -#ifndef vax11c -#ifndef USE_CRT_DLL -extern int errno; -#endif -#endif - #include "lisp.h" #include "intervals.h" #include "buffer.h" diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/filelock.c --- a/src/filelock.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/filelock.c Thu Apr 01 20:10:33 2010 -0700 @@ -47,9 +47,6 @@ #endif /* __FreeBSD__ */ #include -#ifndef errno -extern int errno; -#endif #include "lisp.h" #include "buffer.h" diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/floatfns.c --- a/src/floatfns.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/floatfns.c Thu Apr 01 20:10:33 2010 -0700 @@ -99,10 +99,6 @@ #ifdef FLOAT_CHECK_ERRNO # include - -#ifndef USE_CRT_DLL -extern int errno; -#endif #endif #ifdef FLOAT_CATCH_SIGILL diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/keyboard.c --- a/src/keyboard.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/keyboard.c Thu Apr 01 20:10:33 2010 -0700 @@ -79,10 +79,6 @@ #include "nsterm.h" #endif -#ifndef USE_CRT_DLL -extern int errno; -#endif - /* Variables for blockinput.h: */ /* Non-zero if interrupt input is blocked right now. */ diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/lread.c --- a/src/lread.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/lread.c Thu Apr 01 20:10:33 2010 -0700 @@ -73,10 +73,6 @@ #define file_tell ftell #endif -#ifndef USE_CRT_DLL -extern int errno; -#endif - /* hash table read constants */ Lisp_Object Qhash_table, Qdata; Lisp_Object Qtest, Qsize; diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/process.c --- a/src/process.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/process.c Thu Apr 01 20:10:33 2010 -0700 @@ -195,10 +195,6 @@ extern void serial_configure (struct Lisp_Process *p, Lisp_Object contact); #endif -#ifndef USE_CRT_DLL -extern int errno; -#endif - #ifndef HAVE_H_ERRNO extern int h_errno; #endif diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/s/netbsd.h --- a/src/s/netbsd.h Thu Apr 01 16:08:14 2010 -0700 +++ b/src/s/netbsd.h Thu Apr 01 20:10:33 2010 -0700 @@ -28,8 +28,6 @@ #define LIBS_TERMCAP -ltermcap -#define NEED_ERRNO - #define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 #undef LIB_GCC diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/sysdep.c --- a/src/sysdep.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/sysdep.c Thu Apr 01 20:10:33 2010 -0700 @@ -94,12 +94,6 @@ extern unsigned start __asm__ ("start"); #endif -#ifndef USE_CRT_DLL -#ifndef errno -extern int errno; -#endif -#endif - #include #ifdef HAVE_FCNTL_H diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/unexaix.c --- a/src/unexaix.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/unexaix.c Thu Apr 01 20:10:33 2010 -0700 @@ -435,7 +435,6 @@ { int i, nwrite, ret; char buf[80]; - extern int errno; char zeros[UnexBlockSz]; for (i = 0; ptr < end;) diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/unexec.c --- a/src/unexec.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/unexec.c Thu Apr 01 20:10:33 2010 -0700 @@ -466,9 +466,6 @@ { register int i, nwrite, ret; char buf[80]; -#ifndef USE_CRT_DLL - extern int errno; -#endif /* This is the normal amount to write at once. It is the size of block that NFS uses. */ int writesize = 1 << 13; diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/w32term.c --- a/src/w32term.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/w32term.c Thu Apr 01 20:10:33 2010 -0700 @@ -228,10 +228,6 @@ extern Lisp_Object Vcommand_line_args, Vsystem_name; -#ifndef USE_CRT_DLL -extern int errno; -#endif - /* A mask of extra modifier bits to put into every keyboard char. */ extern EMACS_INT extra_keyboard_modifiers; diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/xrdb.c --- a/src/xrdb.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/xrdb.c Thu Apr 01 20:10:33 2010 -0700 @@ -28,6 +28,7 @@ #include #endif +#include #include #include @@ -734,8 +735,6 @@ char *msg, *prog; int x1, x2, x3, x4, x5; { - extern int errno; - if (errno) perror (prog); diff -r 1f5000fd5ff7 -r 912a8c0c9a8a src/xterm.c --- a/src/xterm.c Thu Apr 01 16:08:14 2010 -0700 +++ b/src/xterm.c Thu Apr 01 20:10:33 2010 -0700 @@ -309,8 +309,6 @@ extern Lisp_Object Qeql; -extern int errno; - /* A mask of extra modifier bits to put into every keyboard char. */ extern EMACS_INT extra_keyboard_modifiers;