From 3af6d22bb3850ab2bac67287e3a3d3b0e32868e5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:41:07 +0200 Subject: Merging upstream version 6.7. Signed-off-by: Daniel Baumann --- man2/unlink.2 | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'man2/unlink.2') diff --git a/man2/unlink.2 b/man2/unlink.2 index 85cb670..7485a32 100644 --- a/man2/unlink.2 +++ b/man2/unlink.2 @@ -10,7 +10,7 @@ .\" Modified 2001-05-17 by aeb .\" Modified 2004-06-23 by Michael Kerrisk .\" -.TH unlink 2 2023-03-30 "Linux man-pages 6.05.01" +.TH unlink 2 2024-02-18 "Linux man-pages 6.7" .SH NAME unlink, unlinkat \- delete a name and possibly the file it refers to .SH LIBRARY @@ -19,20 +19,20 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int unlink(const char *" pathname ); -.PP +.P .BR "#include " "/* Definition of " AT_* " constants */" .B #include -.PP +.P .BI "int unlinkat(int " dirfd ", const char *" pathname ", int " flags ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR unlinkat (): .nf Since glibc 2.10: @@ -46,13 +46,13 @@ deletes a name from the filesystem. If that 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 for it is removed but processes which have the object open may continue to use it. @@ -69,7 +69,7 @@ includes the .B AT_REMOVEDIR flag) except for the differences described here. -.PP +.P If the pathname given in .I pathname is relative, then it is interpreted relative to the directory @@ -81,7 +81,7 @@ the calling process, as is done by and .BR rmdir (2) for a relative pathname). -.PP +.P If the pathname given in .I pathname is relative and @@ -95,13 +95,13 @@ directory of the calling process (like .BR unlink () and .BR rmdir (2)). -.PP +.P If the pathname given in .I pathname is absolute, then .I dirfd is ignored. -.PP +.P .I flags is a bit mask that can either be specified as 0, or by ORing together flag values that control the operation of @@ -117,12 +117,12 @@ on .IR pathname . If the .B AT_REMOVEDIR -flag is specified, then +flag is specified, it performs the equivalent of .BR rmdir (2) on .IR pathname . -.PP +.P See .BR openat (2) for an explanation of the need for @@ -218,7 +218,7 @@ The file to be unlinked is marked immutable or append-only. .B EROFS .I pathname refers to a file on a read-only filesystem. -.PP +.P The same errors that occur for .BR unlink () and -- cgit v1.2.3