summaryrefslogtreecommitdiffstats
path: root/man3/remove.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/remove.3')
-rw-r--r--man3/remove.313
1 files changed, 6 insertions, 7 deletions
diff --git a/man3/remove.3 b/man3/remove.3
index d814d71..48ca0a6 100644
--- a/man3/remove.3
+++ b/man3/remove.3
@@ -9,7 +9,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH remove 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH remove 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
remove \- remove a file or directory
.SH LIBRARY
@@ -18,7 +18,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.PP
+.P
.BI "int remove(const char *" pathname );
.fi
.SH DESCRIPTION
@@ -29,18 +29,18 @@ It calls
for files, and
.BR rmdir (2)
for directories.
-.PP
+.P
If the removed name was the
last link to a file and no processes have the file open, the file is
deleted and the space it was using is made available for reuse.
-.PP
+.P
If the name was the last link to a file,
but any processes still have the file open,
the file will remain in existence until the last file
descriptor referring to it is closed.
-.PP
+.P
If the name referred to a symbolic link, the link is removed.
-.PP
+.P
If the name referred to a socket, FIFO, or device, the name is removed,
but processes which have the object open may continue to use it.
.SH RETURN VALUE
@@ -67,7 +67,6 @@ T{
.BR remove ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH STANDARDS
C11, POSIX.1-2008.
.SH HISTORY