HELPMAKE Help (helpmake.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.
QuickHelp Format: Example
◄QuickHelp Format► ◄Up► ◄Contents► ◄Index► ◄Back►
─────QuickHelp Format: Example──────────────────────────────────────────────
.context open
:l13
\bInclude:\p <fcntl.h>, <io.h>, <sys\\types.h>, <sys\\stat.h>
\bPrototype:\p int open(char *path, int flag[, int mode]);
oflag: O_APPEND O_BINARY O_CREAT O_EXCL O_RDONLY
O_RDWR O_TEXT O_TRUNC O_WRONLY
(can be joined by |)
pmode: S_IWRITE S_IREAD S_IREAD | S_IWRITE
\bReturns:\p a handle if successful, or -1 if not.
errno: EACCES, EEXIST, EMFILE, ENOENT
\bSee also:\p \uExample\p, \uTemplate\p,
access, chmod, close, creat, dup, dup2, fopen, sopen
-♦-