mirror of https://github.com/mkerrisk/man-pages
clock_nanosleep.2, posix_fadvise.2, clock_getcpuclockid.3, mq_receive.3, mq_send.3, posix_fallocate.3: Fix feature test macro requirements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a520b226de
commit
9a30939ed9
|
@ -35,13 +35,17 @@ clock_nanosleep \- high-resolution sleep with specifiable clock
|
|||
.sp
|
||||
Link with \fI\-lrt\fP.
|
||||
.sp
|
||||
.ad l
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.BR clock_nanosleep ():
|
||||
_XOPEN_SOURCE\ >=\ 600
|
||||
.RS 4
|
||||
_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L
|
||||
.RE
|
||||
.ad
|
||||
.SH DESCRIPTION
|
||||
Like
|
||||
.BR nanosleep (2),
|
||||
|
|
|
@ -28,12 +28,23 @@
|
|||
posix_fadvise \- predeclare an access pattern for file data
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #define _XOPEN_SOURCE 600
|
||||
.B #include <fcntl.h>
|
||||
.sp
|
||||
.BI "int posix_fadvise(int " fd ", off_t " offset ", off_t " len \
|
||||
", int " advice ");"
|
||||
.fi
|
||||
.sp
|
||||
.ad l
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.BR posix_fadvise ():
|
||||
.RS 4
|
||||
_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L
|
||||
.RE
|
||||
.ad
|
||||
.SH DESCRIPTION
|
||||
Programs can use
|
||||
.BR posix_fadvise ()
|
||||
|
|
|
@ -33,13 +33,17 @@ clock_getcpuclockid \- obtain ID of a process CPU-time clock
|
|||
.sp
|
||||
Link with \fI\-lrt\fP.
|
||||
.sp
|
||||
.ad l
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.BR clock_getcpuclockid ():
|
||||
_XOPEN_SOURCE\ >=\ 600
|
||||
.RS 4
|
||||
_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L
|
||||
.RE
|
||||
.ad
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
.BR clock_getcpuclockid ()
|
||||
|
|
|
@ -33,7 +33,6 @@ mq_receive, mq_timedreceive \- receive a message from a message queue
|
|||
.BI "ssize_t mq_receive(mqd_t " mqdes ", char *" msg_ptr ,
|
||||
.BI " size_t " msg_len ", unsigned *" msg_prio );
|
||||
.sp
|
||||
.B #define _XOPEN_SOURCE 600
|
||||
.B #include <time.h>
|
||||
.B #include <mqueue.h>
|
||||
.sp
|
||||
|
@ -43,6 +42,18 @@ mq_receive, mq_timedreceive \- receive a message from a message queue
|
|||
.fi
|
||||
.sp
|
||||
Link with \fI\-lrt\fP.
|
||||
.sp
|
||||
.ad l
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.BR mq_timedreceive ():
|
||||
.RS 4
|
||||
_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L
|
||||
.RE
|
||||
.ad
|
||||
.SH DESCRIPTION
|
||||
.BR mq_receive ()
|
||||
removes the oldest message with the highest priority from
|
||||
|
|
|
@ -33,7 +33,6 @@ mq_send, mq_timedsend \- send a message to a message queue
|
|||
.BI "int mq_send(mqd_t " mqdes ", const char *" msg_ptr ,
|
||||
.BI " size_t " msg_len ", unsigned " msg_prio );
|
||||
.sp
|
||||
.B #define _XOPEN_SOURCE 600
|
||||
.B #include <time.h>
|
||||
.B #include <mqueue.h>
|
||||
.sp
|
||||
|
@ -43,6 +42,18 @@ mq_send, mq_timedsend \- send a message to a message queue
|
|||
.fi
|
||||
.sp
|
||||
Link with \fI\-lrt\fP.
|
||||
.sp
|
||||
.ad l
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.BR mq_timedsend ():
|
||||
.RS 4
|
||||
_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L
|
||||
.RE
|
||||
.ad
|
||||
.SH DESCRIPTION
|
||||
.BR mq_send ()
|
||||
adds the message pointed to by
|
||||
|
|
|
@ -25,11 +25,22 @@
|
|||
posix_fallocate \- allocate file space
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #define _XOPEN_SOURCE 600
|
||||
.B #include <fcntl.h>
|
||||
.sp
|
||||
.BI "int posix_fallocate(int " fd ", off_t " offset ", off_t " len );
|
||||
.fi
|
||||
.sp
|
||||
.ad l
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.BR posix_fallocate ():
|
||||
.RS 4
|
||||
_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L
|
||||
.RE
|
||||
.ad
|
||||
.SH DESCRIPTION
|
||||
The function
|
||||
.BR posix_fallocate ()
|
||||
|
|
Loading…
Reference in New Issue