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

mknod(2) OSS System Calls Reference Manual
NOTES
Use the mkfo( ) function instead of the mknod( ) function to create a FIFO when you need to
port an application to a UNIX system that does not support XPG4 Version 2.
RETURN VALUES
Upon successful completion, the value 0 (zero) is returned. Otherwise, the value -1 is returned
and errno is set to indicate the error.
ERRORS
If any of the following conditions occurs, the new le is not created and the mknod( ) function
sets errno to the corresponding value:
[EACCES] A component of the pathname prex denies search permission, or write permis-
sion is denied on the parent directory of the le to be created.
[EEXIST] The named le exists.
[EFAULT] The path parameter points outside the processs allocated address space.
[EFSBAD] The leset catalog for one of the lesets involved in the operation is corrupt.
[EINVAL] One of the following conditions exists:
The value S_IFBLK was specied for the mode parameter.
A value other than 0 (zero) was specied for the device parameter when
a value other than S_IFCHR was specied for the mode parameter.
An invalid value was specied for the device parameter when the value
S_IFCHR was specied for the mode parameter.
The mode parameter species a le type of S_IFDIR but the path
parameter species a pathname of the form /G/vol.
The mode parameter species a le type of S_IFIFO but the path
parameter species a pathname in /G (the Guardian le system).
[EIO] During an access of the le system, an I/O error occurred.
[ELOOP] Too many symbolic links were encountered in resolving the value of the path
parameter.
[ENAMETOOLONG]
One of the following is too long:
The pathname pointed to by the path parameter
A component of the pathname pointed to by the path parameter
The intermediate result of pathname resolution when a symbolic link is
part of the pathname pointed to by the path parameter
The pathconf( ) function can be called to obtain the applicable limits.
[ENOENT] One of the following conditions exists:
The named directory does not exist.
430 Hewlett-Packard Company 527186-003