From 3977e9ff1feb8c65021884b2ef94e5b25ef0e693 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 10 May 2021 19:55:27 +0200 Subject: [PATCH] lookup_dcookie.2: Use syscall(SYS_...); for system calls without a wrapper Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man2/lookup_dcookie.2 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/man2/lookup_dcookie.2 b/man2/lookup_dcookie.2 index 2f0559707..6c178e367 100644 --- a/man2/lookup_dcookie.2 +++ b/man2/lookup_dcookie.2 @@ -29,11 +29,18 @@ lookup_dcookie \- return a directory entry's path .SH SYNOPSIS .nf -.BI "int lookup_dcookie(uint64_t " cookie ", char *" buffer ", size_t " len ); +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_lookup_dcookie, uint64_t " cookie ", char *" buffer , +.BI " size_t " len ); .fi .PP .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 Look up the full path of the directory entry specified by the value .IR cookie . @@ -92,8 +99,5 @@ It relies on a kernel driver to register cookies for directory entries. .PP The path returned may be suffixed by the string " (deleted)" if the directory entry has been removed. -.PP -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). .SH SEE ALSO .BR oprofile (1)