Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (u) unlink(2)
[ENOENT] One of the following conditions exists:
• The named file does not exist.
• The path parameter points to an empty string.
• The path parameter specifies a file on a remote HP NonStop node but
communication with the remote node has been lost.
[ENOROOT] One of the following conditions exists:
• The root fileset of the local node (fileset 0) is not in the STARTED state.
• The current root fileset for the specified file is unavailable. The OSS
name server for the fileset might have failed.
• The specified file is on a remote HP NonStop node and communication
with the remote name server has been lost.
[ENOTDIR] A component of the pathname prefix is not a directory.
[ENXIO] The fileset containing the client’s 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 file is a directory.
• The named file is a Guardian file (in /G), but it is not a regular file.
[EROFS] The entry to be unlinked is part of a read-only fileset.
[ETXTBSY] One of the following conditions exists:
• The entry to be unlinked is the last directory entry to a file that is already
busy.
• The named file is a NonStop SQL/MP object file 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 define. 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 file being unlinked.
• The unlink() function is not supported for directories.
527186-003 Hewlett-Packard Company 9−9