From 6a4c9971896068c53fd5de71080b1c3c73777701 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 18 May 2018 17:23:31 +0200 Subject: [PATCH] pkey_alloc.2: Switch to glibc prototype in SYNOPSIS In the kernel, the type of the arguments to pkey_alloc() is "unsigned long" and that's what the page documented until now. Now that glibc support is added for pkey_alloc(), switch to the glibc prototype, which uses "unsigned int". Reported-by: Szabolcs Nagy Signed-off-by: Michael Kerrisk --- man2/pkey_alloc.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/pkey_alloc.2 b/man2/pkey_alloc.2 index e2a5fb87e..bd1c6e0b6 100644 --- a/man2/pkey_alloc.2 +++ b/man2/pkey_alloc.2 @@ -29,7 +29,7 @@ pkey_alloc, pkey_free \- allocate or free a protection key .nf .B #include .PP -.BI "int pkey_alloc(unsigned long " flags ", unsigned long " access_rights ");" +.BI "int pkey_alloc(unsigned int " flags ", unsigned int " access_rights ");" .BI "int pkey_free(int " pkey ");" .fi .SH DESCRIPTION