svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
ffs(3c)
ffs(3C) Standard C Library Functions ffs(3C)
NAME
ffs, ffsl, ffsll, fls, flsl, flsll - find first or last bit set in a
bit string
SYNOPSIS
#include <strings.h>
int ffs(int value);
#include <string.h>
int ffsl(long value);
int ffsll(long long value);
int fls(int value);
int flsl(long value);
int flsll(long long value);
DESCRIPTION
The ffs(), ffsl(), and ffsll() functions find the first bit set in
value and return the position of that bit.
The fls(), flsl(), and flsll() functions find the last bit set in value
and return the position of that bit.
Bits are numbered starting at one (the least significant bit).
RETURN VALUES
These functions return the position of the requested bit, or 0 if no
bits are set in value.
ERRORS
No errors are defined.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelAsync-Signal-
Safe _ StandardSee below
Standard
See standards(7) for descriptions of the following standards:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) INTERFACESAPPLICA‐
BLE STANDARDS _ ffs()T{
POSIX.1-2001 through 2008,
SUS through SUSv4,
XPG4v2 through XPG7
T} _ T{ ffsl(), ffsll(), fls(), flsl(), flsll() T}None
SEE ALSO
attributes(7), standards(7)
HISTORY
The ffsl(), fls(), and flsl() functions appeared in FreeBSD 5.3. The
ffsll() and flsll() functions appeared in FreeBSD 7.1. All of these
functions were added to Oracle Solaris in the Solaris 11.0 release.
The ffs() function appeared in 4.3BSD. It was added to Solaris in the
Solaris 2.0 release, with a prototype in the <string.h> header. The
prototype for ffs() was added to the <strings.h> header in the Solaris
2.6 release as required by the XPG4v2 standard.
Oracle Solaris 11.4 2 Jun 2022 ffs(3C)