]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
bdflush.2, capget.2, get_mempolicy.2, ipc.2, lookup_dcookie.2, mbind.2, migrate_pages...
authorAlejandro Colomar <alx.manpages@gmail.com>
Thu, 4 Feb 2021 11:15:27 +0000 (12:15 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 6 Feb 2021 20:45:41 +0000 (21:45 +0100)
.../glibc$ grep_syscall_wrapper bdflush
.../glibc$ grep_syscall_wrapper capget
.../glibc$ grep_syscall_wrapper capset
.../glibc$ grep_syscall_wrapper get_mempolicy
.../glibc$ grep_syscall_wrapper ipc
.../glibc$ grep_syscall_wrapper lookup_dcookie
.../glibc$ grep_syscall_wrapper mbind
.../glibc$ grep_syscall_wrapper migrate_pages
.../glibc$

function grep_syscall_wrapper()
{
if ! [ -v 1 ]; then
>&2 echo "Usage: ${FUNCNAME[0]} <syscall>";
return ${EX_USAGE};
fi

find * -type f \
|grep '\.h$' \
|sort -V \
|xargs pcregrep -Mn \
  "(?s)^[^\s#][\w\s]+\s+\**${1}\s*\([\w\s()[\]*,]*?(...)?\)[\w\s()]*;" \
|sed -E 's/^[^:]+:[0-9]+:/&\n/';
}

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/bdflush.2
man2/capget.2
man2/get_mempolicy.2
man2/ipc.2
man2/lookup_dcookie.2
man2/mbind.2
man2/migrate_pages.2

index 93190ee3a8781939de1e96a0b292c052c5561846..6e69155bfc4b3b4559f9e4b1b0f7aa03d42500f9 100644 (file)
@@ -34,6 +34,9 @@ bdflush \- start, flush, or tune buffer-dirty-flush daemon
 .BI "int bdflush(int "  func ", long *" address );
 .BI "int bdflush(int "  func ", long " data );
 .fi
+.PP
+.IR Note :
+There is no glibc wrapper for this system call; see VERSIONS.
 .SH DESCRIPTION
 .IR Note :
 Since Linux 2.6,
index 226a917e7df644a97ee5af3308dc63c0762b166a..ea504c28c3e1e1332b25b438e7f0d79083cb9896 100644 (file)
@@ -23,6 +23,9 @@ capget, capset \- set/get capabilities of thread(s)
 .BI "int capget(cap_user_header_t " hdrp ", cap_user_data_t " datap );
 .BI "int capset(cap_user_header_t " hdrp ", const cap_user_data_t " datap );
 .fi
+.PP
+.IR Note :
+There are no glibc wrappers for these system calls; see NOTES.
 .SH DESCRIPTION
 These two system calls are the raw kernel interface for getting and
 setting thread capabilities.
@@ -236,6 +239,9 @@ No such thread.
 .SH CONFORMING TO
 These system calls are Linux-specific.
 .SH NOTES
+Glibc does not provide a wrapper for this system call; call it using
+.BR syscall (2).
+.PP
 The portable interface to the capability querying and setting
 functions is provided by the
 .I libcap
index 1ee68933be607ae895ec5fe82ce1cbe451d82eec..fbcab2a7cfd21337400695e29787e2e22a890ede 100644 (file)
@@ -37,6 +37,9 @@ get_mempolicy \- retrieve NUMA memory policy for a thread
 .PP
 Link with \fI\-lnuma\fP.
 .fi
+.PP
+.IR Note :
+There is no glibc wrapper for this system call; see NOTES.
 .SH DESCRIPTION
 .BR get_mempolicy ()
 retrieves the NUMA policy of the calling thread or of a memory address,
@@ -239,6 +242,7 @@ system call was added to the Linux kernel in version 2.6.7.
 .SH CONFORMING TO
 This system call is Linux-specific.
 .SH NOTES
+Glibc does not provide a wrapper for this system call.
 For information on library support, see
 .BR numa (7).
 .SH SEE ALSO
index 46918563854a6decbc3b258aa80a963d37220c51..d2b409ff936a68ef569d58b921ef87469ed55054 100644 (file)
@@ -31,6 +31,9 @@ ipc \- System V IPC system calls
 ", int " third ,
 .BI "        void *" ptr ", long " fifth );
 .fi
+.PP
+.IR Note :
+There is no glibc wrapper for this system call; see NOTES.
 .SH DESCRIPTION
 .BR ipc ()
 is a common kernel entry point for the System\ V IPC calls
@@ -54,6 +57,9 @@ system call; instead,
 .BR semctl (2),
 .BR shmctl (2),
 and so on really are implemented as separate system calls.
+.PP
+Glibc does not provide a wrapper for this system call; call it using
+.BR syscall (2).
 .SH SEE ALSO
 .BR msgctl (2),
 .BR msgget (2),
index c2f2a87e6789981c1eb36f35317b1981feed18fd..e38ca89a438d59251d01ba6d2046881a1a04c590 100644 (file)
@@ -31,6 +31,9 @@ lookup_dcookie \- return a directory entry's path
 .nf
 .BI "int lookup_dcookie(u64 " cookie ", char *" buffer ", size_t " len );
 .fi
+.PP
+.IR Note :
+There is no glibc wrapper for this system call; see NOTES.
 .SH DESCRIPTION
 Look up the full path of the directory entry specified by the value
 .IR cookie .
@@ -89,5 +92,8 @@ It relies on a kernel driver to register cookies for directory entries.
 .PP
 The path returned may be suffixed by the string " (deleted)" if the directory
 entry has been removed.
+.PP
+Glibc does not provide a wrapper for this system call; call it using
+.BR syscall (2).
 .SH SEE ALSO
 .BR oprofile (1)
index d98969e7fc3355fc468c1ac37013246ac2ee2cdf..bfec5dd1bc309a8ad5f9ac354fb6bb6afb7254d7 100644 (file)
@@ -45,6 +45,9 @@ mbind \- set memory policy for a memory range
 .PP
 Link with \fI\-lnuma\fP.
 .fi
+.PP
+.IR Note :
+There is no glibc wrapper for this system call; see NOTES.
 .SH DESCRIPTION
 .BR mbind ()
 sets the NUMA memory policy,
@@ -425,6 +428,7 @@ system call was added to the Linux kernel in version 2.6.7.
 .SH CONFORMING TO
 This system call is Linux-specific.
 .SH NOTES
+Glibc does not provide a wrapper for this system call.
 For information on library support, see
 .BR numa (7).
 .PP
index cbba5350db1b3500f29300fb22a2d5dd1a0754b5..e4c7af92d53bcfac17c5c21bb8df4f8037bc43ce 100644 (file)
@@ -27,6 +27,9 @@ migrate_pages \- move all pages in a process to another set of nodes
 .BI "                   const unsigned long *" new_nodes );
 .fi
 .PP
+.IR Note :
+There is no glibc wrapper for this system call; see NOTES.
+.PP
 Link with \fI\-lnuma\fP.
 .SH DESCRIPTION
 .BR migrate_pages ()
@@ -140,6 +143,7 @@ system call first appeared on Linux in version 2.6.16.
 .SH CONFORMING TO
 This system call is Linux-specific.
 .SH NOTES
+Glibc does not provide a wrapper for this system call.
 For information on library support, see
 .BR numa (7).
 .PP