Annotation of mstools/h/fcntl.h, revision 1.1.1.2

1.1       root        1: /***
                      2: *fcntl.h - file control options used by open()
                      3: *
                      4: *      Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved.
                      5: *
                      6: *Purpose:
                      7: *      This file defines constants for the file control options used
                      8: *      by the _open() function.
                      9: *      [System V]
                     10: *
                     11: ****/
                     12: 
                     13: #ifndef _INC_FCNTL
                     14: 
                     15: #define _O_RDONLY      0x0000  /* open for reading only */
                     16: #define _O_WRONLY      0x0001  /* open for writing only */
                     17: #define _O_RDWR        0x0002  /* open for reading and writing */
                     18: #define _O_APPEND      0x0008  /* writes done at eof */
                     19: 
                     20: #define _O_CREAT       0x0100  /* create and open file */
                     21: #define _O_TRUNC       0x0200  /* open and truncate */
                     22: #define _O_EXCL        0x0400  /* open only if file doesn't already exist */
                     23: 
                     24: /* O_TEXT files have <cr><lf> sequences translated to <lf> on read()'s,
                     25: ** and <lf> sequences translated to <cr><lf> on write()'s
                     26: */
                     27: 
                     28: #define _O_TEXT        0x4000  /* file mode is text (translated) */
                     29: #define _O_BINARY      0x00008000 /* file mode is binary (untranslated) */
                     30: 
                     31: /* macro to translate the C 2.0 name used to force binary mode for files */
                     32: 
                     33: #define _O_RAW _O_BINARY
                     34: 
                     35: /* Open handle inherit bit */
                     36: 
                     37: #define _O_NOINHERIT   0x0080  /* child process doesn't inherit file */
                     38: 
1.1.1.2 ! root       39: /* Temporary file bit - file is deleted when last handle is closed */
        !            40: 
        !            41: #define _O_TEMPORARY   0x0040  /* temporary file bit */
        !            42: 
        !            43: #if !__STDC__ || defined(_POSIX_)
1.1       root       44: /* Non-ANSI names for compatibility */
                     45: #define O_RDONLY    _O_RDONLY
                     46: #define O_WRONLY    _O_WRONLY
                     47: #define O_RDWR     _O_RDWR
                     48: #define O_APPEND    _O_APPEND
                     49: #define O_CREAT     _O_CREAT
                     50: #define O_TRUNC     _O_TRUNC
                     51: #define O_EXCL     _O_EXCL
                     52: #define O_TEXT     _O_TEXT
                     53: #define O_BINARY    _O_BINARY
                     54: #define O_RAW      _O_BINARY
1.1.1.2 ! root       55: #define O_TEMPORARY _O_TEMPORARY
1.1       root       56: #define O_NOINHERIT _O_NOINHERIT
                     57: #endif /* __STDC__ */
                     58: 
                     59: #define _INC_FCNTL
                     60: #endif /* _INC_FCNTL */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.