Mercurial > emacs
changeset 110758:2b72330aa98a
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.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Mon, 04 Oct 2010 10:22:57 -0700 |
parents | d3001fd75795 |
children | c476e521566f |
files | src/ChangeLog src/alloc.c src/callproc.c src/doc.c src/fileio.c src/lread.c src/termcap.c src/unexcoff.c |
diffstat | 8 files changed, 13 insertions(+), 40 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Mon Oct 04 13:17:48 2010 +0000 +++ b/src/ChangeLog Mon Oct 04 10:22:57 2010 -0700 @@ -1,3 +1,14 @@ +2010-10-04 Dan Nicolaescu <dann@ics.uci.edu> + + 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 <tzz@lifelogs.com> * gnutls.h (GNUTLS_LOG2): Convenience macro.
--- a/src/alloc.c Mon Oct 04 13:17:48 2010 +0000 +++ b/src/alloc.c Mon Oct 04 10:22:57 2010 -0700 @@ -66,9 +66,6 @@ #endif #include <fcntl.h> -#ifndef O_WRONLY -#define O_WRONLY 1 -#endif #ifdef WINDOWSNT #include "w32.h"
--- a/src/callproc.c Mon Oct 04 13:17:48 2010 +0000 +++ b/src/callproc.c Mon Oct 04 10:22:57 2010 -0700 @@ -45,14 +45,6 @@ #include <sys/param.h> #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"
--- a/src/doc.c Mon Oct 04 13:17:48 2010 +0000 +++ b/src/doc.c Mon Oct 04 10:22:57 2010 -0700 @@ -31,10 +31,6 @@ #include <unistd.h> #endif -#ifndef O_RDONLY -#define O_RDONLY 0 -#endif - #include "lisp.h" #include "buffer.h" #include "keyboard.h"
--- a/src/fileio.c Mon Oct 04 13:17:48 2010 +0000 +++ b/src/fileio.c Mon Oct 04 10:22:57 2010 -0700 @@ -100,14 +100,6 @@ #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
--- a/src/lread.c Mon Oct 04 13:17:48 2010 +0000 +++ b/src/lread.c Mon Oct 04 10:22:57 2010 -0700 @@ -55,9 +55,6 @@ #endif /* HAVE_SETLOCALE */ #include <fcntl.h> -#ifndef O_RDONLY -#define O_RDONLY 0 -#endif #ifdef HAVE_FSEEKO #define file_offset off_t
--- a/src/termcap.c Mon Oct 04 13:17:48 2010 +0000 +++ b/src/termcap.c Mon Oct 04 10:22:57 2010 -0700 @@ -20,22 +20,18 @@ /* Emacs config.h may rename various library functions such as malloc. */ #include <config.h> #include <setjmp.h> -#include <lisp.h> /* xmalloc is here */ -/* Get the O_* definitions for open et al. */ #include <sys/file.h> #include <fcntl.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #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.
--- a/src/unexcoff.c Mon Oct 04 13:17:48 2010 +0000 +++ b/src/unexcoff.c Mon Oct 04 10:22:57 2010 -0700 @@ -97,14 +97,6 @@ #include <sys/file.h> -#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 */