[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r101786: Remove O_RDONLY, O_WRONLY de
From: |
Dan Nicolaescu |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r101786: Remove O_RDONLY, O_WRONLY definitions, not needed. |
Date: |
Mon, 04 Oct 2010 10:22:57 -0700 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 101786
committer: Dan Nicolaescu <address@hidden>
branch nick: trunk
timestamp: Mon 2010-10-04 10:22:57 -0700
message:
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.
modified:
src/ChangeLog
src/alloc.c
src/callproc.c
src/doc.c
src/fileio.c
src/lread.c
src/termcap.c
src/unexcoff.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-10-03 22:37:37 +0000
+++ b/src/ChangeLog 2010-10-04 17:22:57 +0000
@@ -1,3 +1,14 @@
+2010-10-04 Dan Nicolaescu <address@hidden>
+
+ 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 <address@hidden>
* gnutls.h (GNUTLS_LOG2): Convenience macro.
=== modified file 'src/alloc.c'
--- a/src/alloc.c 2010-10-03 15:19:34 +0000
+++ b/src/alloc.c 2010-10-04 17:22:57 +0000
@@ -66,9 +66,6 @@
#endif
#include <fcntl.h>
-#ifndef O_WRONLY
-#define O_WRONLY 1
-#endif
#ifdef WINDOWSNT
#include "w32.h"
=== modified file 'src/callproc.c'
--- a/src/callproc.c 2010-10-03 15:19:34 +0000
+++ b/src/callproc.c 2010-10-04 17:22:57 +0000
@@ -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"
=== modified file 'src/doc.c'
--- a/src/doc.c 2010-10-03 15:19:34 +0000
+++ b/src/doc.c 2010-10-04 17:22:57 +0000
@@ -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"
=== modified file 'src/fileio.c'
--- a/src/fileio.c 2010-10-03 21:27:04 +0000
+++ b/src/fileio.c 2010-10-04 17:22:57 +0000
@@ -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
=== modified file 'src/lread.c'
--- a/src/lread.c 2010-10-03 15:19:34 +0000
+++ b/src/lread.c 2010-10-04 17:22:57 +0000
@@ -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
=== modified file 'src/termcap.c'
--- a/src/termcap.c 2010-10-03 15:19:34 +0000
+++ b/src/termcap.c 2010-10-04 17:22:57 +0000
@@ -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.
=== modified file 'src/unexcoff.c'
--- a/src/unexcoff.c 2010-10-03 13:59:56 +0000
+++ b/src/unexcoff.c 2010-10-04 17:22:57 +0000
@@ -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 */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r101786: Remove O_RDONLY, O_WRONLY definitions, not needed.,
Dan Nicolaescu <=