diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 4f66888e2..10ccff6da 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2014-11-25 Corinna Vinschen + + * include/fcntl.h: Move all open flags (except O_NDELAY) to newlib's + sys/_default_fcntl.h. + 2014-11-25 Corinna Vinschen * binmode.c (cygwin_premain0): Don't use underscore'd variants of the diff --git a/winsup/cygwin/include/fcntl.h b/winsup/cygwin/include/fcntl.h index fe8a1fc42..d67ee48ac 100644 --- a/winsup/cygwin/include/fcntl.h +++ b/winsup/cygwin/include/fcntl.h @@ -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 #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