diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-05-10 19:55:33 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-05-11 17:28:45 +1200 |
| commit | a39bcd0b855e964788ee8e254cda07e534dacca8 (patch) | |
| tree | 76139a5c64666a92c73b617f0a9a04ef7bc4b7c4 /man2 | |
| parent | 57d2facb7875b02b0b4d0bd1b5104ba14e1d378c (diff) | |
| download | man-pages-a39bcd0b855e964788ee8e254cda07e534dacca8.tar.gz | |
mq_getsetattr.2: Use syscall(SYS_...); for system calls without a wrapper
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2')
| -rw-r--r-- | man2/mq_getsetattr.2 | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/man2/mq_getsetattr.2 b/man2/mq_getsetattr.2 index 2f11b9d449..23dd2a8b9f 100644 --- a/man2/mq_getsetattr.2 +++ b/man2/mq_getsetattr.2 @@ -27,14 +27,13 @@ mq_getsetattr \- get/set message queue attributes .SH SYNOPSIS .nf -.B #include <mqueue.h> +.BR "#include <mqueue.h>" " /* Definition of " "struct mq_attr" " */" +.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */" +.B #include <unistd.h> .PP -.BI "int mq_getsetattr(mqd_t " mqdes ", const struct mq_attr *" newattr , -.BI " struct mq_attr *" oldattr ); +.BI "int syscall(SYS_mq_getsetattr, mqd_t " mqdes , +.BI " const struct mq_attr *" newattr ", struct mq_attr *" oldattr ); .fi -.PP -.IR Note : -There is no glibc wrapper for this system call; see NOTES. .SH DESCRIPTION Do not use this system call. .PP @@ -48,9 +47,7 @@ see the description of .SH CONFORMING TO This interface is nonstandard; avoid its use. .SH NOTES -Glibc does not provide a wrapper for this system call; call it using -.BR syscall (2). -(Actually, never call it unless you are writing a C library!) +Never call it unless you are writing a C library! .SH SEE ALSO .BR mq_getattr (3), .BR mq_overview (7) |
