OSDN Git Service

* include/fcntl.h (O_TTY_INIT): Define as 0.
authorcorinna <corinna>
Wed, 13 Jan 2010 16:51:36 +0000 (16:51 +0000)
committercorinna <corinna>
Wed, 13 Jan 2010 16:51:36 +0000 (16:51 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/include/fcntl.h

index 044910a..b22c3e4 100644 (file)
@@ -1,5 +1,9 @@
 2010-01-13  Corinna Vinschen  <corinna@vinschen.de>
 
+       * include/fcntl.h (O_TTY_INIT): Define as 0.
+
+2010-01-13  Corinna Vinschen  <corinna@vinschen.de>
+
        * fhandler_tty.cc (fhandler_tty_master::init): Don't erase all default
        termios settings of slave console.
 
index 0ef7988..1aff1b7 100644 (file)
@@ -1,6 +1,6 @@
 /* fcntl.h
 
-   Copyright 1996, 1998, 2001, 2005, 2006, 2009 Red Hat, Inc.
+   Copyright 1996, 1998, 2001, 2005, 2006, 2009, 2010 Red Hat, Inc.
 
 This file is part of Cygwin.
 
@@ -20,6 +20,10 @@ details. */
 #define _FDIRECTORY    0x200000
 #define _FEXECSRCH     0x400000
 
+/* POSIX-1.2008 requires this flag and allows to set it to 0 if its
+   functionality is not required. */
+#define O_TTY_INIT     0
+
 #define O_DIRECT       _FDIRECT
 #define O_NOFOLLOW     _FNOFOLLOW
 #define O_DSYNC                _FSYNC