request_key.2: Give the example program a name

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-11-07 12:50:09 +01:00
parent cbf1ad35a2
commit 388adc3c19
1 changed files with 3 additions and 1 deletions

View File

@ -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>