create - create and open a satellite file for writing
FD create (path, mode, size)
int mode, size;
creates and opens a satellite file for writing.
points to the path name of the file to create.
is an octal number that specifies the permissions of the file and is
constructed from the OR of the following:
is the number of contiguous 512 byte block to allocate the file.
does not exist,
creates it with the specified
and opens it for writing returning a file descriptor. If
exists and is not write protected, it is truncated (its contents are
erased), its mode is unchanged, and its size is changed to
will fail and no file will be created if one or more of the following
The path name points to a file on the host. [EACCES]
The path names specifies a directory that does not
The created or existing file is write protected. [EACCES]
The directory is full. [EMXFILE]
The file system has run out of space. [ENOSPC]
On successful completion, a value of 0 is returned. Otherwise, a
value of -1 is returned and
is set to indicate the error.