From 3e6ae1a4ae2f54ad70a528ee3d4fac992b964eaa Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Mon, 4 Oct 2010 10:22:57 -0700 Subject: [PATCH] Remove O_RDONLY, O_WRONLY definitions, not needed. * src/unexcoff.c: * src/lread.c: * src/fileio.c: * src/doc.c: * src/callproc.c: * src/alloc.c: * src/termcap.c: Remove O_RDONLY O_WRONLY definitions. --- src/ChangeLog | 11 +++++++++++ src/alloc.c | 3 --- src/callproc.c | 8 -------- src/doc.c | 4 ---- src/fileio.c | 8 -------- src/lread.c | 3 --- src/termcap.c | 8 ++------ src/unexcoff.c | 8 -------- 8 files changed, 13 insertions(+), 40 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 960602a6d08..7c907dd45ef 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,14 @@ +2010-10-04 Dan Nicolaescu + + Remove O_RDONLY, O_WRONLY definitions, not needed. + * unexcoff.c: + * lread.c: + * fileio.c: + * doc.c: + * callproc.c: + * alloc.c: + * termcap.c: Remove O_RDONLY O_WRONLY definitions. + 2010-10-03 Teodor Zlatanov * gnutls.h (GNUTLS_LOG2): Convenience macro. diff --git a/src/alloc.c b/src/alloc.c index 0ab4f9f8f85..fa39c1ee5dc 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -66,9 +66,6 @@ extern POINTER_TYPE *sbrk (); #endif #include -#ifndef O_WRONLY -#define O_WRONLY 1 -#endif #ifdef WINDOWSNT #include "w32.h" diff --git a/src/callproc.c b/src/callproc.c index ee587605f7a..29e13bbc4a7 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -45,14 +45,6 @@ along with GNU Emacs. If not, see . */ #include #endif /* MSDOS */ -#ifndef O_RDONLY -#define O_RDONLY 0 -#endif - -#ifndef O_WRONLY -#define O_WRONLY 1 -#endif - #include "lisp.h" #include "commands.h" #include "buffer.h" diff --git a/src/doc.c b/src/doc.c index 0e9714b4512..7caa88a7b5e 100644 --- a/src/doc.c +++ b/src/doc.c @@ -31,10 +31,6 @@ along with GNU Emacs. If not, see . */ #include #endif -#ifndef O_RDONLY -#define O_RDONLY 0 -#endif - #include "lisp.h" #include "buffer.h" #include "keyboard.h" diff --git a/src/fileio.c b/src/fileio.c index a2daf7f15c9..36b6cc3ca8b 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -100,14 +100,6 @@ along with GNU Emacs. If not, see . */ #include "commands.h" -#ifndef O_WRONLY -#define O_WRONLY 1 -#endif - -#ifndef O_RDONLY -#define O_RDONLY 0 -#endif - #ifndef S_ISLNK # define lstat stat #endif diff --git a/src/lread.c b/src/lread.c index 69e9a4629d2..66b1a8068c2 100644 --- a/src/lread.c +++ b/src/lread.c @@ -55,9 +55,6 @@ along with GNU Emacs. If not, see . */ #endif /* HAVE_SETLOCALE */ #include -#ifndef O_RDONLY -#define O_RDONLY 0 -#endif #ifdef HAVE_FSEEKO #define file_offset off_t diff --git a/src/termcap.c b/src/termcap.c index a8eabf25529..03476b15761 100644 --- a/src/termcap.c +++ b/src/termcap.c @@ -20,22 +20,18 @@ Boston, MA 02110-1301, USA. */ /* Emacs config.h may rename various library functions such as malloc. */ #include #include -#include /* xmalloc is here */ -/* Get the O_* definitions for open et al. */ #include #include #ifdef HAVE_UNISTD_H #include #endif +#include "lisp.h" + #ifndef NULL #define NULL (char *) 0 #endif -#ifndef O_RDONLY -#define O_RDONLY 0 -#endif - /* BUFSIZE is the initial size allocated for the buffer for reading the termcap file. It is not a limit. diff --git a/src/unexcoff.c b/src/unexcoff.c index 428382e4a3d..0c6af414d82 100644 --- a/src/unexcoff.c +++ b/src/unexcoff.c @@ -97,14 +97,6 @@ struct aouthdr #include -#ifndef O_RDONLY -#define O_RDONLY 0 -#endif -#ifndef O_RDWR -#define O_RDWR 2 -#endif - - extern char *start_of_data (void); /* Start of initialized data */ static long block_copy_start; /* Old executable start point */ -- 2.39.5