* doc/glibc-functions/pkey_alloc.texi: New file.
* doc/glibc-functions/pkey_set.texi: New file.
* doc/glibc-functions/pkey_get.texi: New file.
* doc/glibc-functions/pkey_free.texi: New file.
* doc/glibc-functions/pkey_mprotect.texi: New file.
* doc/gnulib.texi (Glibc sys/mman.h): Include them.
--- /dev/null
+@node pkey_alloc
+@subsection @code{pkey_alloc}
+@findex pkey_alloc
+
+Documentation:
+@itemize
+@item
+@ifinfo
+@ref{Memory Protection,,Memory Protection,libc},
+@end ifinfo
+@ifnotinfo
+@url{https://www.gnu.org/software/libc/manual/html_node/Memory-Protection.html},
+@end ifnotinfo
+@item
+@uref{https://www.kernel.org/doc/man-pages/online/pages/man2/pkey_alloc.2.html,,man pkey_alloc}.
+@end itemize
+
+Gnulib module: ---
+
+Portability problems fixed by Gnulib:
+@itemize
+@end itemize
+
+Portability problems not fixed by Gnulib:
+@itemize
+@item
+This function is missing on all non-glibc platforms:
+glibc 2.26, Mac OS X 10.5, FreeBSD 12.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, OSF/1 5.1, Solaris 11.4, Cygwin, mingw, MSVC 14, Interix 3.5, BeOS, Android 9.0.
+@end itemize
--- /dev/null
+@node pkey_free
+@subsection @code{pkey_free}
+@findex pkey_free
+
+Documentation:
+@itemize
+@item
+@ifinfo
+@ref{Memory Protection,,Memory Protection,libc},
+@end ifinfo
+@ifnotinfo
+@url{https://www.gnu.org/software/libc/manual/html_node/Memory-Protection.html},
+@end ifnotinfo
+@item
+@uref{https://www.kernel.org/doc/man-pages/online/pages/man2/pkey_free.2.html,,man pkey_free}.
+@end itemize
+
+Gnulib module: ---
+
+Portability problems fixed by Gnulib:
+@itemize
+@end itemize
+
+Portability problems not fixed by Gnulib:
+@itemize
+@item
+This function is missing on all non-glibc platforms:
+glibc 2.26, Mac OS X 10.5, FreeBSD 12.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, OSF/1 5.1, Solaris 11.4, Cygwin, mingw, MSVC 14, Interix 3.5, BeOS, Android 9.0.
+@end itemize
--- /dev/null
+@node pkey_get
+@subsection @code{pkey_get}
+@findex pkey_get
+
+Documentation:@*
+@ifinfo
+@ref{Memory Protection,,Memory Protection,libc}.
+@end ifinfo
+@ifnotinfo
+@url{https://www.gnu.org/software/libc/manual/html_node/Memory-Protection.html}.
+@end ifnotinfo
+
+Gnulib module: ---
+
+Portability problems fixed by Gnulib:
+@itemize
+@end itemize
+
+Portability problems not fixed by Gnulib:
+@itemize
+@item
+This function is missing on all non-glibc platforms:
+glibc 2.26, Mac OS X 10.5, FreeBSD 12.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, OSF/1 5.1, Solaris 11.4, Cygwin, mingw, MSVC 14, Interix 3.5, BeOS, Android 9.0.
+@end itemize
--- /dev/null
+@node pkey_mprotect
+@subsection @code{pkey_mprotect}
+@findex pkey_mprotect
+
+Documentation:
+@itemize
+@item
+@ifinfo
+@ref{Memory Protection,,Memory Protection,libc},
+@end ifinfo
+@ifnotinfo
+@url{https://www.gnu.org/software/libc/manual/html_node/Memory-Protection.html},
+@end ifnotinfo
+@item
+@uref{https://www.kernel.org/doc/man-pages/online/pages/man2/pkey_mprotect.2.html,,man pkey_mprotect}.
+@end itemize
+
+Gnulib module: ---
+
+Portability problems fixed by Gnulib:
+@itemize
+@end itemize
+
+Portability problems not fixed by Gnulib:
+@itemize
+@item
+This function is missing on all non-glibc platforms:
+glibc 2.26, Mac OS X 10.5, FreeBSD 12.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, OSF/1 5.1, Solaris 11.4, Cygwin, mingw, MSVC 14, Interix 3.5, BeOS, Android 9.0.
+@end itemize
--- /dev/null
+@node pkey_set
+@subsection @code{pkey_set}
+@findex pkey_set
+
+Documentation:@*
+@ifinfo
+@ref{Memory Protection,,Memory Protection,libc}.
+@end ifinfo
+@ifnotinfo
+@url{https://www.gnu.org/software/libc/manual/html_node/Memory-Protection.html}.
+@end ifnotinfo
+
+Gnulib module: ---
+
+Portability problems fixed by Gnulib:
+@itemize
+@end itemize
+
+Portability problems not fixed by Gnulib:
+@itemize
+@item
+This function is missing on all non-glibc platforms:
+glibc 2.26, Mac OS X 10.5, FreeBSD 12.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, OSF/1 5.1, Solaris 11.4, Cygwin, mingw, MSVC 14, Interix 3.5, BeOS, Android 9.0.
+@end itemize
* mincore::
* mlock2::
* mremap::
+* pkey_alloc::
+* pkey_free::
+* pkey_get::
+* pkey_mprotect::
+* pkey_set::
* remap_file_pages::
@end menu
@include glibc-functions/mincore.texi
@include glibc-functions/mlock2.texi
@include glibc-functions/mremap.texi
+@include glibc-functions/pkey_alloc.texi
+@include glibc-functions/pkey_free.texi
+@include glibc-functions/pkey_get.texi
+@include glibc-functions/pkey_mprotect.texi
+@include glibc-functions/pkey_set.texi
@include glibc-functions/remap_file_pages.texi
@node Glibc sys/mount.h