qc.hlp (Table of Contents; Topic list)
_dos_open
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     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 may 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_DENYNONE
 
     Return Value
 
     If successful, the function returns 0. Otherwise, it returns the
     DOS error code and sets errno to EACCES, EINVAL, EMFILE, or
     ENOENT.
                                    -♦-