* include/fcntl.h: Move all open flags (except O_NDELAY) to newlib's

sys/_default_fcntl.h.
This commit is contained in:
Corinna Vinschen 2014-11-25 11:42:20 +00:00
parent d8ba3ea1db
commit cda7e6ca20
2 changed files with 7 additions and 15 deletions

View File

@ -1,3 +1,8 @@
2014-11-25 Corinna Vinschen <corinna@vinschen.de>
* include/fcntl.h: Move all open flags (except O_NDELAY) to newlib's
sys/_default_fcntl.h.
2014-11-25 Corinna Vinschen <corinna@vinschen.de>
* binmode.c (cygwin_premain0): Don't use underscore'd variants of the

View File

@ -1,6 +1,7 @@
/* fcntl.h
Copyright 1996, 1998, 2000, 2001, 2005, 2006, 2009, 2010, 2013 Red Hat, Inc.
Copyright 1996, 1998, 2000, 2001, 2005, 2006, 2009, 2010, 2013,
2014 Red Hat, Inc.
This file is part of Cygwin.
@ -14,12 +15,6 @@ details. */
#include <sys/fcntl.h>
#define O_NDELAY _FNDELAY
/* sys/_default_fcntl.h defines values up to 0x40000 (O_NOINHERIT). */
#define _FDIRECT 0x80000
#define _FNOFOLLOW 0x100000
#define _FDIRECTORY 0x200000
#define _FEXECSRCH 0x400000
/* F_LCK_MANDATORY: Request mandatory locks for this file descriptor.
Cygwin extension to fcntl file locking mechanism. By default, fcntl file
@ -41,14 +36,6 @@ details. */
functionality is not required. */
#define O_TTY_INIT 0
#define O_DIRECT _FDIRECT
#define O_NOFOLLOW _FNOFOLLOW
#define O_DSYNC _FSYNC
#define O_RSYNC _FSYNC
#define O_DIRECTORY _FDIRECTORY
#define O_EXEC _FEXECSRCH
#define O_SEARCH _FEXECSRCH
#define POSIX_FADV_NORMAL 0
#define POSIX_FADV_SEQUENTIAL 1
#define POSIX_FADV_RANDOM 2