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 le is not unlinked:
[EACCES] One of the following conditions is true:
Search permission is denied for a component of the pathname prex, or
write permission is denied on the directory containing the link to be
removed.
The S_ISVTX ag is set on the directory containing the existing le
referred to by the path parameter. However, the calling process is not
any of the following:
The le owner
The directory owner
A process with appropriate privileges
[EBUSY] The named le is one of the following:
The /dev/tty le
The /dev/null le
[EFAULT] The path parameter is an invalid address.
[EFSBAD] The leset catalog for one of the lesets involved in the operation is corrupt.
[EGUARDIANOPEN]
One of the following conditions exists:
The named le is a Guardian le open in the Guardian environment.
The named le is a Guardian EDIT le (le code 101), and it is open in
the OSS environment.
[EINVAL] The named le is a structured le in /G (the Guardian le system). Such les
cannot be removed by the unlink( ) function.
[EIO] An input or output error occurred. The device holding the le 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.
98 Hewlett-Packard Company 527186-003