Open System Services System Calls Reference Manual (G06.25+, H06.03+)
unlink(2) OSS System Calls Reference Manual
ERRORS
If any of the following conditions occurs, the function sets errno to the corresponding value and
the named file is not unlinked:
[EACCES] One of the following conditions is true:
• Search permission is denied for a component of the pathname prefix, or
write permission is denied on the directory containing the link to be
removed.
• The S_ISVTX flag is set on the directory containing the existing file
referred to by the path parameter. However, the calling process is not
any of the following:
— The file owner
— The directory owner
— A process with appropriate privileges
[EBUSY] The named file is one of the following:
• The /dev/tty file
• The /dev/null file
[EFAULT] The path parameter is an invalid address.
[EFSBAD] The fileset catalog for one of the filesets involved in the operation is corrupt.
[EGUARDIANOPEN]
One of the following conditions exists:
• The named file is a Guardian file open in the Guardian environment.
• The named file is a Guardian EDIT file (file code 101), and it is open in
the OSS environment.
[EINVAL] The named file is a structured file in /G (the Guardian file system). Such files
cannot be removed by the unlink( ) function.
[EIO] An input or output error occurred. The device holding the file might be in the
down state, or both processors that provide access to the device might have
failed.
[ELOOP] Too many symbolic links were encountered in translating path.
[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 path parameter
The pathconf( ) function can be called to obtain the applicable limits.
9−8 Hewlett-Packard Company 527186-003