~ubuntu-branches/ubuntu/saucy/manpages/saucy

« back to all changes in this revision

Viewing changes to man3/ffs.3

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-11-17 16:35:58 UTC
  • mfrom: (1.1.45 upstream) (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101117163558-9h3ho5jumqm3rdmd
Tags: 3.27-1ubuntu1
* Merge from Debian unstable; remaining changes:
  - ptrace.2, prctl.2: document Ubuntu-specific PTRACE_ATTACH,
    PR_SET_PTRACER behavior.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
.\"
29
29
.\" Modified 2003 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
30
30
.\"
31
 
.TH FFS 3 2009-08-27 "GNU" "Linux Programmer's Manual"
 
31
.TH FFS 3 2010-09-20 "GNU" "Linux Programmer's Manual"
32
32
.SH NAME
33
33
ffs, ffsl, ffsll \- find first bit set in a word
34
34
.SH SYNOPSIS
37
37
.sp
38
38
.BI "int ffs(int " i );
39
39
.sp
40
 
.B #define _GNU_SOURCE
41
 
.br
42
40
.B #include <string.h>
43
41
.sp
44
42
.BI "int ffsl(long int " i );
45
43
.sp
46
44
.BI "int ffsll(long long int " i );
47
45
.fi
 
46
.sp
 
47
.in -4n
 
48
Feature Test Macro Requirements for glibc (see
 
49
.BR feature_test_macros (7)):
 
50
.in
 
51
.PD 0
 
52
.ad l
 
53
.sp
 
54
.BR ffs ():
 
55
.RS 4
 
56
.TP 4
 
57
Since glibc 2.12:
 
58
_SVID_SOURCE || _BSD_SOURCE ||
 
59
_POSIX_C_SOURCE\ >=\ 200809L || _XOPEN_SOURCE\ >=\ 700 ||
 
60
.TP
 
61
Before glibc 2.12:
 
62
none
 
63
.RE
 
64
.PP
 
65
.BR ffsl (),
 
66
.BR ffsll ():
 
67
.RS 4
 
68
_GNU_SOURCE
 
69
.RE
 
70
.ad
 
71
.PD
48
72
.SH DESCRIPTION
49
73
The
50
74
.BR ffs ()
63
87
or 0 if no bits are set in
64
88
.IR i .
65
89
.SH "CONFORMING TO"
66
 
.BR ffs (): 4.3BSD, POSIX.1-2001.
 
90
.BR ffs ():
 
91
4.3BSD, POSIX.1-2001.
 
92
 
67
93
The
68
94
.BR ffsl ()
69
95
and
70
96
.BR ffsll ()
71
 
are glibc extensions.
 
97
functions are glibc extensions.
72
98
.SH NOTES
73
99
BSD systems have a prototype in
74
100
.IR <string.h> .
76
102
.BR memchr (3),
77
103
.BR feature_test_macros (7)
78
104
.SH COLOPHON
79
 
This page is part of release 3.26 of the Linux
 
105
This page is part of release 3.27 of the Linux
80
106
.I man-pages
81
107
project.
82
108
A description of the project,