◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ─────Run-Time Library─────────────────────────────────────────────────────── The _dos_open routine uses system call 0x3D to open the existing file pointed to by <filename>. The handle for the opened file is copied into the integer pointed to by <handle>. The <mode> argument specifies the file's access, sharing, and inheritance modes by combining (with the OR operator) manifest constants from the three groups shown below. At most, one access mode and one sharing mode can be specified at a time. Do not use the DOS interface routines in conjunction with the console, low-level, or stream I/O routines. Access Sharing Inheritance _O_RDONLY _SH_COMPAT _O_NOINHERIT _O_WRONLY _SH_DENYRW _O_RDWR _SH_DENYWR _SH_DENYRD _SH_DENYNO Return Value If successful, the function returns 0. Otherwise, it returns the DOS error code and sets errno to EACCES, EINVAL, EMFILE, or ENOENT. -♦-