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.
This commit is contained in:
Dan Nicolaescu 2010-10-04 10:22:57 -07:00
parent 8028ed5c1c
commit 3e6ae1a4ae
8 changed files with 13 additions and 40 deletions

View 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.

View 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"

View 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"

View file

@ -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"

View 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

View 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

View 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.

View 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 */