diff options
Diffstat (limited to 'src/lib/libc/string/ffs.3')
| -rw-r--r-- | src/lib/libc/string/ffs.3 | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/lib/libc/string/ffs.3 b/src/lib/libc/string/ffs.3 index 6464bea2b1..eea0994cb1 100644 --- a/src/lib/libc/string/ffs.3 +++ b/src/lib/libc/string/ffs.3 | |||
| @@ -11,11 +11,7 @@ | |||
| 11 | .\" 2. Redistributions in binary form must reproduce the above copyright | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| 12 | .\" notice, this list of conditions and the following disclaimer in the | 12 | .\" notice, this list of conditions and the following disclaimer in the |
| 13 | .\" documentation and/or other materials provided with the distribution. | 13 | .\" documentation and/or other materials provided with the distribution. |
| 14 | .\" 3. All advertising materials mentioning features or use of this software | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
| 15 | .\" must display the following acknowledgement: | ||
| 16 | .\" This product includes software developed by the University of | ||
| 17 | .\" California, Berkeley and its contributors. | ||
| 18 | .\" 4. Neither the name of the University nor the names of its contributors | ||
| 19 | .\" may be used to endorse or promote products derived from this software | 15 | .\" may be used to endorse or promote products derived from this software |
| 20 | .\" without specific prior written permission. | 16 | .\" without specific prior written permission. |
| 21 | .\" | 17 | .\" |
| @@ -31,10 +27,9 @@ | |||
| 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 32 | .\" SUCH DAMAGE. | 28 | .\" SUCH DAMAGE. |
| 33 | .\" | 29 | .\" |
| 34 | .\" from: @(#)ffs.3 5.3 (Berkeley) 4/19/91 | 30 | .\" $OpenBSD: ffs.3,v 1.8 2012/01/14 13:31:32 jmc Exp $ |
| 35 | .\" $Id: ffs.3,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $ | ||
| 36 | .\" | 31 | .\" |
| 37 | .Dd April 19, 1991 | 32 | .Dd $Mdocdate: January 14 2012 $ |
| 38 | .Dt FFS 3 | 33 | .Dt FFS 3 |
| 39 | .Os | 34 | .Os |
| 40 | .Sh NAME | 35 | .Sh NAME |
| @@ -47,17 +42,20 @@ | |||
| 47 | .Sh DESCRIPTION | 42 | .Sh DESCRIPTION |
| 48 | The | 43 | The |
| 49 | .Fn ffs | 44 | .Fn ffs |
| 50 | function | 45 | function finds the first bit set in |
| 51 | finds the first bit set in | ||
| 52 | .Fa value | 46 | .Fa value |
| 53 | and returns the index of that bit. | 47 | and returns the index of that bit. |
| 54 | Bits are numbered starting from 1, starting at the right-most | 48 | Bits are numbered starting from 1, starting at the rightmost bit. |
| 55 | bit. | ||
| 56 | A return value of 0 means that the argument was zero. | 49 | A return value of 0 means that the argument was zero. |
| 57 | .Sh SEE ALSO | 50 | .Sh SEE ALSO |
| 58 | .Xr bitstring 3 | 51 | .Xr bitstring 3 |
| 52 | .Sh STANDARDS | ||
| 53 | The | ||
| 54 | .Fn ffs | ||
| 55 | function conforms to | ||
| 56 | .St -p1003.1-2008 . | ||
| 59 | .Sh HISTORY | 57 | .Sh HISTORY |
| 60 | The | 58 | The |
| 61 | .Fn ffs | 59 | .Fn ffs |
| 62 | function appeared in | 60 | function first appeared in |
| 63 | .Bx 4.3 . | 61 | .Bx 4.2 . |
