*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: unlink | Section: 2 | Source: UNIX v7 | File: unlink.2
UNLINK(2) System Calls Manual UNLINK(2) NAME unlink - remove directory entry SYNOPSIS unlink(name) char *name; DESCRIPTION Name points to a null-terminated string. Unlink removes the entry for the file pointed to by name from its directory. If this entry was the last link to the file, the contents of the file are freed and the file is destroyed. If, however, the file was open in any process, the ac- tual destruction is delayed until it is closed, even though the direc- tory entry has disappeared. SEE ALSO rm(1), link(2) DIAGNOSTICS Zero is normally returned; -1 indicates that the file does not exist, that its directory cannot be written, or that the file contains pure procedure text that is currently in use. Write permission is not re- quired on the file itself. It is also illegal to unlink a directory (except for the super-user). ASSEMBLER (unlink = 10.) sys unlink; name UNLINK(2)

Navigation Options