Open System Services System Calls Reference Manual (G06.28+, H06.05+)

System Functions (u) unlink(2)
[ENOENT] One of the following conditions exists:
The named le does not exist.
The path parameter points to an empty string.
The path parameter species a le on a remote HP NonStop node but
communication with the remote node has been lost.
[ENOROOT] One of the following conditions exists:
The root leset of the local node (leset 0) is not in the STARTED state.
The current root leset for the specied le is unavailable. The OSS
name server for the leset might have failed.
The specied le is on a remote HP NonStop node and communication
with the remote name server has been lost.
[ENOTDIR] A component of the pathname prex is not a directory.
[ENOTSUP] The path parameter refers to a le on a logical disk volume administered |
through the Storage Management Foundation (SMF).
[ENXIO] The leset containing the clients current working directory or root directory is
not mounted.
[EOSSNOTRUNNING]
The OSS monitor process is not running.
[EPERM] One of the following conditions exists:
The named le is a directory.
The named le is a Guardian le (in /G), but it is not a regular le.
[EROFS] The entry to be unlinked is part of a read-only leset.
[ETXTBSY] One of the following conditions exists:
The entry to be unlinked is the last directory entry to a le that is already
busy.
The named le is a NonStop SQL/MP object le that is currently execut-
ing.
RELATED INFORMATION
Commands: rm(1).
Functions: close(2), link(2), open(2), rmdir(2).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to dene. The following
features are affected in the HP implementation:
The calling process requires both execute (search) and write access permission for the
directory containing the le being unlinked.
The unlink() function is not supported for directories.
527186-007 Hewlett-Packard Company 99