Remove O_RDONLY, O_WRONLY definitions, not needed.
authorDan Nicolaescu <dann@ics.uci.edu>
Mon, 4 Oct 2010 17:22:57 +0000 (10:22 -0700)
committerDan Nicolaescu <dann@ics.uci.edu>
Mon, 4 Oct 2010 17:22:57 +0000 (10:22 -0700)
* 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
src/alloc.c
src/callproc.c
src/doc.c
src/fileio.c
src/lread.c
src/termcap.c
src/unexcoff.c

index 960602a..7c907dd 100644 (file)
@@ -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.
index 0ab4f9f..fa39c1e 100644 (file)
@@ -66,9 +66,6 @@ extern POINTER_TYPE *sbrk ();
 #endif
 
 #include <fcntl.h>
-#ifndef O_WRONLY
-#define O_WRONLY 1
-#endif
 
 #ifdef WINDOWSNT
 #include "w32.h"
index ee58760..29e13bb 100644 (file)
@@ -45,14 +45,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #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"
index 0e9714b..7caa88a 100644 (file)
--- a/src/doc.c
+++ b/src/doc.c
@@ -31,10 +31,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <unistd.h>
 #endif
 
-#ifndef O_RDONLY
-#define O_RDONLY 0
-#endif
-
 #include "lisp.h"
 #include "buffer.h"
 #include "keyboard.h"
index a2daf7f..36b6cc3 100644 (file)
@@ -100,14 +100,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #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
index 69e9a46..66b1a80 100644 (file)
@@ -55,9 +55,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #endif /* HAVE_SETLOCALE */
 
 #include <fcntl.h>
-#ifndef O_RDONLY
-#define O_RDONLY 0
-#endif
 
 #ifdef HAVE_FSEEKO
 #define file_offset off_t
index a8eabf2..03476b1 100644 (file)
@@ -20,22 +20,18 @@ Boston, MA 02110-1301, USA.  */
 /* 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.
index 428382e..0c6af41 100644 (file)
@@ -97,14 +97,6 @@ struct aouthdr
 
 #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 */