Print this page
XXXX ffs(3c) manpage is a little confusing
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3c/ffs.3c.man.txt
+++ new/usr/src/man/man3c/ffs.3c.man.txt
1 1 FFS(3C) Standard C Library Functions FFS(3C)
2 2
3 3
4 4
5 5 NAME
6 6 ffs - find first set bit
7 7
8 8 SYNOPSIS
9 9 #include <strings.h>
10 10
↓ open down ↓ |
10 lines elided |
↑ open up ↑ |
11 11 int ffs(int i);
12 12
13 13 int ffsl(ong i);
14 14
15 15 int ffsll(long long i);
16 16
17 17 int fls(int i);
18 18
19 19 int flsl(long i);
20 20
21 - int flsl(long long i);
21 + int flsll(long long i);
22 22
23 23
24 24 DESCRIPTION
25 25 The ffs(), ffsl(), and ffsll() functions finds the first bit set
26 26 (beginning with the least significant bit) and return the index of that
27 27 bit. Bits are numbered starting at one (the least significant bit).
28 28
29 29
30 30 The fls(), flsl(), and flsll() functions find the last bit set
31 - (beginning with the most significant bit) and return the index of that
31 + (beginning with the least significant bit) and return the index of that
32 32 bit. Bits are numbered starting at one (the least significant bit).
33 33
34 34 RETURN VALUES
35 35 The ffs(), ffsl(), and ffsll() functions returns the index of the first
36 36 bit set. If i is 0, then they return 0.
37 37
38 38
39 39 The fls(), flsl(), and flsll() functions return the index of the last
40 40 bit set. If i is 0, then they return 0.
41 41
42 42 ERRORS
43 43 No errors are defined.
44 44
45 45 ATTRIBUTES
46 46 See attributes(5) for descriptions of the following attributes:
47 47
48 48
49 49
50 50
51 51 +--------------------+-----------------+
52 52 | ATTRIBUTE TYPE | ATTRIBUTE VALUE |
53 53 +--------------------+-----------------+
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
54 54 |Interface Stability | Committed |
55 55 +--------------------+-----------------+
56 56 |MT-Level | MT-Safe |
57 57 +--------------------+-----------------+
58 58
59 59 SEE ALSO
60 60 attributes(5), standards(5)
61 61
62 62
63 63
64 - July 24, 2002 FFS(3C)
64 + May 21, 2015 FFS(3C)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX