aboutsummaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-05-21 23:03:34 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-02-25 16:33:02 +0100
commitcd639d9116b65037d9652ef81f2316478aaa38b1 (patch)
tree31b653ebfe56223fd66f3a1f7c564f6563b8f06c /man2
parent20e9513d5d8dd5d3b17877d8f37ab78ebbc71558 (diff)
downloadman-pages-cd639d9116b65037d9652ef81f2316478aaa38b1.tar.gz
request_key.2: Add LIBRARY section
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man2')
-rw-r--r--man2/request_key.218
1 files changed, 4 insertions, 14 deletions
diff --git a/man2/request_key.2 b/man2/request_key.2
index 0473d1b52c..a6467f9d69 100644
--- a/man2/request_key.2
+++ b/man2/request_key.2
@@ -7,17 +7,17 @@
.TH REQUEST_KEY 2 2021-08-27 Linux "Linux Key Management Calls"
.SH NAME
request_key \- request a key from the kernel's key management facility
+.SH LIBRARY
+Linux Key Management Utilities
+.RI ( libkeyutils ", " -lkeyutils )
.SH SYNOPSIS
.nf
.B #include <keyutils.h>
.PP
.BI "key_serial_t request_key(const char *" type ", const char *" description ,
.BI " const char *" callout_info ,
-.BI " key_serial_t " dest_keyring ");"
+.BI " key_serial_t " dest_keyring );
.fi
-.PP
-.IR Note :
-There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION
.BR request_key ()
attempts to find a key of the given
@@ -432,16 +432,6 @@ The ability to instantiate keys upon request was added
in Linux 2.6.13.
.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.
-(The accompanying package provides the
-.I <keyutils.h>
-header file.)
-When employing the wrapper in that library, link with
-.IR \-lkeyutils .
.SH EXAMPLES
The program below demonstrates the use of
.BR request_key ().