#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int creat( const char *path, mode_t mode );
path already exists and O_CREAT and O_EXCL were used.
path refers to a directory and the access requested involved
writing
path refers to an executable image which is currently being
executed and write access was requested
path points outside your accessible address space
path did not allow search (execute) permission.
path was too long.
path does not exist or is a dangling
symbolic link.
path is not, in fact, a
directory.
path refers to a file on a read-only filesystem and write access
was requested
creat attempts to create a file and return a file descriptor for
use in read, write, etc.
NONE
The routine is implemented in Cygnus newlib.
Copyright © 1988-2004 OAR Corporation