mirror of https://github.com/mkerrisk/man-pages
unlink.2: Glibc falls back to unlink() or rmdir() on kernels that lack unlinkat()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
cf81f364e8
commit
d20e418098
|
@ -278,6 +278,22 @@ SVr4, 4.3BSD, POSIX.1-2001, POSIX.1-2008.
|
|||
|
||||
.BR unlinkat ():
|
||||
POSIX.1-2008.
|
||||
.SH NOTES
|
||||
.SS Glibc notes
|
||||
On older kernels where
|
||||
.BR unlinkat ()
|
||||
is unavailable, the glibc wrapper function falls back to the use of
|
||||
.BR unlink (2)
|
||||
or
|
||||
.BR rmdir (2).
|
||||
When
|
||||
.I pathname
|
||||
is a relative pathname,
|
||||
glibc constructs a pathname based on the symbolic link in
|
||||
.IR /proc/self/fd
|
||||
that corresponds to the
|
||||
.IR dirfd
|
||||
argument.
|
||||
.SH BUGS
|
||||
Infelicities in the protocol underlying NFS can cause the unexpected
|
||||
disappearance of files which are still being used.
|
||||
|
|
Loading…
Reference in New Issue