Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

OSS Library Calls (i - m) mk
fo(3)
Use From the Guardian Environment
The mkfo( ) function is one of a set of functions that have the following effects when the rst of
them is called from the Guardian environment:
Two Guardian le system le numbers (not necessarily the next two available) are allo-
cated for the root directory and the current working directory. These le numbers cannot
be closed by calling the Guardian FILE_CLOSE_ procedure.
The current working directory is assigned from the VOLUME attribute of the Guardian
environment =_DEFAULTS DEFINE.
The use of static memory by the process increases slightly.
These effects occur only when the rst of the set of functions is called. The effects are not cumu-
lative.
RETURN VALUES
Upon successful completion of mkfo(), 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 mkfo( ) function
sets errno to the corresponding value:
[EACCES] A component of the pathname prex denies search (execute) permission, or write
permission is denied on the parent directory of the FIFO to be created.
[EEXIST] The named le exists.
[EFSBAD] The leset catalog for one of the lesets involved in the operation is corrupt.
[EINVAL] One of the following conditions occurred:
The call attempted to create a FIFO within the Guardian le system (that
is, within G).
The program supplied an invalid value for the mode parameter.
[EIO] During access of the le system, an I/O error occurred.
[ELOOP] Too many symbolic links were encountered in translating the path parameter.
[ENAMETOOLONG]
One of the following is too long:
The length of 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 path parameter
The pathconf( ) function can be called to obtain the applicable limits.
[ENOENT] One of the following conditions exists:
A component of the pathname prex does not exist.
The path parameter points to an empty string.
527187-004 Hewlett-Packard Company 4129