mirror of https://github.com/mkerrisk/man-pages
request_key.2: Give the example program a name
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
cbf1ad35a2
commit
388adc3c19
|
@ -393,7 +393,7 @@ to verify that the requested kay has been instantiated:
|
|||
|
||||
.in +4n
|
||||
.nf
|
||||
$ \fB./a.out user mtk:key1 "Payload data"\fP
|
||||
$ \fB./t_request_key user mtk:key1 "Payload data"\fP
|
||||
$ \fBgrep \(aq2dddaf50\(aq /proc/keys\fP
|
||||
2dddaf50 I--Q--- 1 perm 3f010000 1000 1000 user mtk:key1: 12
|
||||
.fi
|
||||
|
@ -401,6 +401,8 @@ $ \fBgrep \(aq2dddaf50\(aq /proc/keys\fP
|
|||
.SS Program source
|
||||
\&
|
||||
.nf
|
||||
/* t_request_key.c */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <keyutils.h>
|
||||
#include <stdio.h>
|
||||
|
|
Loading…
Reference in New Issue