diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-11-17 18:47:53 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-11-17 21:51:23 +0100 |
| commit | 18e7c4597c4e72fa5210c7887273e363c456c9ee (patch) | |
| tree | 97cfd22e731a4c859ae71783d70943ff72e6cb60 /man/man2/add_key.2 | |
| parent | 8fc6fdd8291d906e58a175b5e1b20da680aaeb4a (diff) | |
| download | man-pages-18e7c4597c4e.tar.gz | |
man/: Terminology consistency reforms (n, size, length)
Use 'length' for the lenght of a string.
Use 'n' for the number of elements.
Use 'size' for the number of bytes. (And in wide-character string
functions, 'size' also refers to the number of wide characters.)
The change is quite large, and I might have made some mistakes.
But overall, this should improve consistency in use of these terms.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man2/add_key.2')
| -rw-r--r-- | man/man2/add_key.2 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man/man2/add_key.2 b/man/man2/add_key.2 index b316c15c21..a4515efc51 100644 --- a/man/man2/add_key.2 +++ b/man/man2/add_key.2 @@ -15,7 +15,7 @@ Standard C library .B #include <keyutils.h> .P .BI "key_serial_t add_key(const char *" type ", const char *" description , -.BI " const void " payload [. plen "], size_t " plen , +.BI " const void " payload [. size "], size_t " size , .BI " key_serial_t " keyring ");" .fi .P @@ -29,8 +29,8 @@ and .IR description , instantiates it with the .I payload -of length -.IR plen , +of size +.IR size , attaches it to the nominated .IR keyring , and returns the key's serial number. @@ -102,7 +102,7 @@ keys of any type. If this interface is used to create a keyring, then .I payload should be NULL and -.I plen +.I size should be zero. .TP .I \[dq]user\[dq] |
