#include <FCNTL.H>
Link against:
estlib.lib
_FREAD 0x0001
Description
_FWRITE 0x0002
Description
_FNDELAY 0x0004
Description
_FAPPEND 0x0008
Description
_FMARK 0x0010
Description
_FDEFER 0x0020
Description
_FASYNC 0x0040
Description
_FSHLOCK 0x0080
Description
_FEXLOCK 0x0100
Description
_FCREAT 0x0200
Description
_FTRUNC 0x0400
Description
_FEXCL 0x0800
Description
_FNBIO 0x1000
Description
_FSYNC 0x2000
Description
_FNONBLOCK 0x4000
Description
_FNOCTTY 0x8000
Description
_FBUFFERED 0x10000
Description
O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
Description
O_RDONLY 0
Description
Flag values for open(2) and fcntl(2) The kernel adds 1 to the open modes to turn it into some combination of FREAD and FWRITE.
O_APPEND _FAPPEND
Description
O_CREAT _FCREAT
Description
O_TRUNC _FTRUNC
Description
O_EXCL _FEXCL
Description
O_NONBLOCK _FNONBLOCK
Description
O_NOCTTY _FNOCTTY
Description
_FBINARY 0x10000
Description
_FTEXT 0x20000
Description
O_BINARY _FBINARY
Description
O_TEXT _FTEXT
Description
O_BUFFERED _FBUFFERED
Description
O_SYNC _FSYNC
Description
FAPPEND _FAPPEND
Description
Flags that work for fcntl(fd, F_SETFL, FXXXX)
FASYNC _FASYNC
Description
FNONBIO _FNONBLOCK
Description
FNDELAY _FNDELAY
Description
FREAD _FREAD
Description
Flags that are disallowed for fcntl's (FCNTLCANT); used for opens, internal state, or locking.
FWRITE _FWRITE
Description
FDEFER _FDEFER
Description
FSHLOCK _FSHLOCK
Description
FEXLOCK _FEXLOCK
Description
FOPEN _FOPEN
Description
The rest of the flags, used only for opens
FCREAT _FCREAT
Description
FTRUNC _FTRUNC
Description
FNOCTTY _FNOCTTY
Description
FBUFFERED _FBUFFERED
Description
FD_CLOEXEC 1
Description
XXX close on exec request; must match UF_EXCLOSE in user.h
F_DUPFD 0
Description
fcntl(2) requests
F_RDLCK 1
Description
fcntl(2) flags (l_type field of flock structure)
creat (n, m) open(n,O_WRONLY|O_CREAT|O_TRUNC,m)
Description
Parameters
open(const char *,int,...)
IMPORT_C int open(const char *, int,...);
Description
Opens the file which name is stored in the file string.
Parameters
Return value
int |
On Success, a non-negative integer representing the lowest numbered unused file descriptor. On Failure, returns -1, errno
may be set.
|
|
wopen(const wchar_t *,int,...)
IMPORT_C int wopen(const wchar_t *, int,...);
Description
A wide_character version of a open(const char *,int,...)
open(const char *,int,...)
.
Parameters
Return value