summaryrefslogtreecommitdiff
path: root/static/unix-v10/man2/unlink.2
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man2/unlink.2
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man2/unlink.2')
-rw-r--r--static/unix-v10/man2/unlink.240
1 files changed, 40 insertions, 0 deletions
diff --git a/static/unix-v10/man2/unlink.2 b/static/unix-v10/man2/unlink.2
new file mode 100644
index 00000000..0fc7b023
--- /dev/null
+++ b/static/unix-v10/man2/unlink.2
@@ -0,0 +1,40 @@
+.TH UNLINK 2
+.CT 2 file_inq_creat
+.SH NAME
+unlink \(mi remove directory entry
+.SH SYNOPSIS
+.nf
+.B int unlink(name)
+.B char *name;
+.fi
+.SH DESCRIPTION
+.I Unlink
+removes the entry for the file pointed to by
+.I 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 actual
+destruction is delayed until it is closed, even though
+the directory entry has disappeared.
+.PP
+Only the file's owner can unlink
+a file in a blind directory
+.RI ( stat (2)).
+Only the super-user can
+.I unlink
+a directory, but see
+.I rmdir
+in
+.IR mkdir (2).
+.SH "SEE ALSO"
+.IR rm (1),
+.IR link (2),
+.IR mkdir (2)
+.SH DIAGNOSTICS
+.BR EFAULT ,
+.BR EIO ,
+.BR ELOOP ,
+.BR ENOENT ,
+.BR ENOTDIR ,
+.BR EROFS