C Language and Libraries Help (clang.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
_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
-♦-