C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
_dos_open
 Description Example                     Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
  Include:   <dos.h>, <errno.h>, <fcntl.h>, <share.h>
 
  Syntax:    unsigned _dos_open( char *filename, unsigned mode,
                                 int *handle );
             mode: _O_NOINHERIT, _O_RDONLY, _O_RDWR, _O_WRONLY,
                   _SH_COMPAT, _SH_DENYNO, _SH_DENYRD, _SH_DENYRW,
                   _SH_DENYWR
                   (may be joined by |)
 
  Returns:   0 if successful, or the DOS error code if not.
             errno: EACCES, EINVAL, EMFILE, ENOENT
 
  See also:  _dos_close, _dos_read, _dos_write, _open
                                    -♦-