socketcall.2: Add note about missing glibc wrapper
PATCH 1/1 socketcall.2: Add note about missing glibc wrapper
......
.../glibc$ grep_glibc_prototype socketcall
.../glibc$
Signed-off-by Alejandro Colomar <[email protected]>
--- man2/socketcall.2 | 6 ++++++ 1 file changed, 6 insertions(+)
man2/socketcall.2 +6 -0
@@ -31,6 +31,9 @@ socketcall \- socket system calls .PP .BI "int socketcall(int " call ", unsigned long *" args ); .fi +.PP +.IR Note : +There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION .BR socketcall () is a common kernel entry point for the socket system calls.
@@ -153,6 +156,9 @@ T} This call is specific to Linux, and should not be used in programs intended to be portable. .SH NOTES +Glibc does not provide a wrapper for this system call; call it using +.BR syscall (2). +.PP On a some architectures\(emfor example, x86-64 and ARM\(emthere is no .BR socketcall () system call; instead
Signature · 1 line
2.30.0
Hi Alex,
Quoted 6 lines · Alejandro Colomar
......
.../glibc$
grep_glibc_prototypesocketcall
.../glibc$Signed-off-by Alejandro Colomar <[email protected]>
Thanks! Patch applied.
Cheers,
Michael
Quoted 29 lines
--- man2/socketcall.2 | 6 ++++++ 1 file changed, 6 insertions(+)man2/socketcall.2 +6
-0@@ -31,6 +31,9 @@ socketcall \- socket system calls .PP .BI "int socketcall(int " call ", unsigned long *" args ); .fi +.PP +.IR Note : +There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION .BR socketcall () is a common kernel entry point for the socket system calls.@@ -153,6 +156,9 @@ T} This call is specific to Linux, and should not be used in programs intended to be portable. .SH NOTES +Glibc does not provide a wrapper for this system call; call it using +.BR syscall (2). +.PP On a some architectures\(emfor example, x86-64 and ARM\(emthere is no .BR socketcall () system call; instead
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/