Open System Services System Calls Reference Manual (G06.25+, H06.03+)

mknod(2) OSS System Calls Reference Manual
S_ISGID Set the group ID of the le upon execution of the le
S_ISUID Set the user ID of the le upon execution of the le
S_ISVTX Restrict the deletion of les in a directory (ignored for other le
types)
S_IWGRP Write access by members of the group list
S_IWOTH Write access by others
S_IWUSR Write access by the owner of the le
S_IXGRP Execute (search) access by members of the group list
S_IXOTH Execute (search) access by others
S_IXUSR Execute (search) access by the owner of the le
The following le attributes are supported:
S_NONSTOP For a regular le, setting this ag causes the following actions:
Disables le system caching
Returns control to a calling process only after the
backup disk process has received checkpoint data for a
write operation
device Species the type of device on which the le is created. This hexadecimal value
must be 0 (zero) unless the le type S_IFCHR is specied for the mode parame-
ter. When S_IFCHR is specied, the following values are valid:
0x0000000300000000
The device is an innite data source or data sink, such as
/dev/null.
0x0000000200000000
The device is a controlling terminal, such as /dev/tty.
Specifying any other value for the device parameter when S_IFCHR is specied
for the mode parameter causes the function call to fail and errno to be set to
[EINVAL].
DESCRIPTION
The mknod() function creates a new special or regular le. Using the mknod( ) function to
create le types other than FIFOs requires appropriate privileges.
For the mknod() function to nish successfully, a process must have search permission and write
permission in the parent directory of the path parameter.
The new le has the following characteristics:
A le type as specied by the mode parameter.
An owner ID set to the effective user ID of the process.
428 Hewlett-Packard Company 527186-003