ffs.3: Updated ffs() feature test macro requirements for glibc 2.12

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-09-18 05:30:36 +02:00
parent d5c5839246
commit be403e3d56
1 changed files with 24 additions and 2 deletions

View File

@ -37,14 +37,36 @@ ffs, ffsl, ffsll \- find first bit set in a word
.sp
.BI "int ffs(int " i );
.sp
.B #define _GNU_SOURCE
.br
.B #include <string.h>
.sp
.BI "int ffsl(long int " i );
.sp
.BI "int ffsll(long long int " i );
.fi
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.PD 0
.ad l
.sp
.BR ffs ():
.RS 4
.TP 4
Since glibc 2.12:
_SVID_SOURCE || _BSD_SOURCE ||
_POSIX_C_SOURCE\ >=\ 200809L || _XOPEN_SOURCE\ >=\ 700 ||
.TP
Before glibc 2.12:
none
.RE
.PP
.BR ffsl (),
.BR ffsll ():
_GNU_SOURCE
.ad
.PD
.SH DESCRIPTION
The
.BR ffs ()