creat.2 (2010 09)
c
creat(2) creat(2)
[EMFILE] More than the maximum number of file descriptors are currently open.
[ENAMETOOLONG]
The length of the specified path name exceeds
PATH_MAX bytes, or the length of a
component of the path name exceeds
NAME_MAX bytes while
_POSIX_NO_TRUNC
is in effect.
[ENFILE] The system file table is full.
[ENOENT] The named file does not exist (for example, path is null, or a component of path
does not exist).
[ENOSPC] Not enough space on the file system.
[ENOTDIR] A component of the path prefix is not a directory.
[ENXIO] The named file is a character special or block special file, and the device associated
with this special file does not exist.
[EOVERFLOW]
The named file is a regular file and the size of the file cannot be represented
correctly in an object of type
off_t.
[EROFS] The named file resides or would reside on a read-only file system.
[ETXTBSY] The file is a pure procedure (shared text) file that is being executed.
SEE ALSO
chmod(2), close(2), creat64(2), dup(2), fcntl(2), lockf(2), lseek(2), open(2), open64(2), read(2), setacl(2),
truncate(2), umask(2), write(2), acl(5), aclv(5), privileges(5).
STANDARDS CONFORMANCE
creat(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010