mirror of https://github.com/mkerrisk/man-pages
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>
This commit is contained in:
parent
57d2facb78
commit
a39bcd0b85
|
@ -27,14 +27,13 @@
|
||||||
mq_getsetattr \- get/set message queue attributes
|
mq_getsetattr \- get/set message queue attributes
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.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
|
.PP
|
||||||
.BI "int mq_getsetattr(mqd_t " mqdes ", const struct mq_attr *" newattr ,
|
.BI "int syscall(SYS_mq_getsetattr, mqd_t " mqdes ,
|
||||||
.BI " struct mq_attr *" oldattr );
|
.BI " const struct mq_attr *" newattr ", struct mq_attr *" oldattr );
|
||||||
.fi
|
.fi
|
||||||
.PP
|
|
||||||
.IR Note :
|
|
||||||
There is no glibc wrapper for this system call; see NOTES.
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
Do not use this system call.
|
Do not use this system call.
|
||||||
.PP
|
.PP
|
||||||
|
@ -48,9 +47,7 @@ see the description of
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
This interface is nonstandard; avoid its use.
|
This interface is nonstandard; avoid its use.
|
||||||
.SH NOTES
|
.SH NOTES
|
||||||
Glibc does not provide a wrapper for this system call; call it using
|
Never call it unless you are writing a C library!
|
||||||
.BR syscall (2).
|
|
||||||
(Actually, never call it unless you are writing a C library!)
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR mq_getattr (3),
|
.BR mq_getattr (3),
|
||||||
.BR mq_overview (7)
|
.BR mq_overview (7)
|
||||||
|
|
Loading…
Reference in New Issue