lookup_dcookie.2: Use syscall(SYS_...); for system calls without a wrapper

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-05-10 19:55:27 +02:00 committed by Michael Kerrisk
parent aecad91d0b
commit 3977e9ff1f
1 changed files with 9 additions and 5 deletions

View File

@ -29,11 +29,18 @@
lookup_dcookie \- return a directory entry's path lookup_dcookie \- return a directory entry's path
.SH SYNOPSIS .SH SYNOPSIS
.nf .nf
.BI "int lookup_dcookie(uint64_t " cookie ", char *" buffer ", size_t " len ); .BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
.B #include <unistd.h>
.PP
.BI "int syscall(SYS_lookup_dcookie, uint64_t " cookie ", char *" buffer ,
.BI " size_t " len );
.fi .fi
.PP .PP
.IR Note : .IR Note :
There is no glibc wrapper for this system call; see NOTES. glibc provides no wrapper for
.BR lookup_dcookie (),
necessitating the use of
.BR syscall (2).
.SH DESCRIPTION .SH DESCRIPTION
Look up the full path of the directory entry specified by the value Look up the full path of the directory entry specified by the value
.IR cookie . .IR cookie .
@ -92,8 +99,5 @@ It relies on a kernel driver to register cookies for directory entries.
.PP .PP
The path returned may be suffixed by the string " (deleted)" if the directory The path returned may be suffixed by the string " (deleted)" if the directory
entry has been removed. entry has been removed.
.PP
Glibc does not provide a wrapper for this system call; call it using
.BR syscall (2).
.SH SEE ALSO .SH SEE ALSO
.BR oprofile (1) .BR oprofile (1)