diff --git a/man2/keyctl.2 b/man2/keyctl.2 index 690781eea..7f5fcb951 100644 --- a/man2/keyctl.2 +++ b/man2/keyctl.2 @@ -30,22 +30,20 @@ keyctl \- manipulate the kernel's key management facility .SH SYNOPSIS .nf -.B #include -.PP -.BI "long keyctl(int " operation ", ...);" -.PP -.B "/* For direct call via syscall(2): */" -.B #include -.B #include +.BR "#include " " /* Definition of " KEY* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" .B #include .PP -.BI "long syscall(__NR_keyctl, int " operation ", unsigned long " arg2 , +.BI "long syscall(SYS_keyctl, int " operation ", unsigned long " arg2 , .BI " unsigned long " arg3 ", unsigned long " arg4 , .BI " unsigned long " arg5 ); .fi .PP .IR Note : -There is no glibc wrapper for this system call; see NOTES. +glibc provides no wrapper for +.BR keyctl (), +necessitating the use of +.BR syscall (2). .SH DESCRIPTION .BR keyctl () allows user-space programs to perform key manipulation. @@ -1954,7 +1952,6 @@ This system call first appeared in Linux 2.6.10. .SH CONFORMING TO This system call is a nonstandard Linux extension. .SH NOTES -Glibc does not provide a wrapper for this system call. A wrapper is provided in the .IR libkeyutils library.