]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/sys/fcntl.h
StdLib/Include: Minor changes in preparation for Interactive I/O (TTY) functionality.
[mirror_edk2.git] / StdLib / Include / sys / fcntl.h
index b91792f9f7aa550c81c44fe992170a07eea5e91a..819461b492ef5d96fa44ba28aa6fb91f36769f52 100644 (file)
@@ -2,7 +2,7 @@
     This file includes the definitions for open and fcntl described by POSIX\r
     for <fcntl.h>; it also includes related kernel definitions.\r
 \r
-    Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+    Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>\r
     This program and the accompanying materials are licensed and made\r
     available under the terms and conditions of the BSD License which\r
     accompanies this distribution.  The full text of the license may be found\r
 #define O_TRUNC     0x00000400  ///< truncate to zero length\r
 #define O_EXCL      0x00000800  ///< error if already exists\r
 \r
+#define O_DIRECTORY 0x00001000  ///< error if path is not a directory\r
+#define O_NOCTTY    0x00002000  ///< Don't make this the controlling TTY\r
+#define O_TTY_INIT  0x00004000  ///< Initialize TTY to "sane" values on open\r
+\r
 /* UEFI-specific open-only flags. */\r
 #define O_HIDDEN    0x00010000  ///< Hidden file attribute\r
 #define O_SYSTEM    0x00020000  ///< System file attribute\r
 #define O_ARCHIVE   0x00040000  ///< Archive file attribute\r
 /// @}\r
 \r
-//#define O_DIRECT    0x00080000  /* direct I/O hint */\r
-\r
 #define O_SETMASK     0x0000000F  ///< Flags modifiable by F_SETFD (fcntl)\r
 \r
 /*\r