clear/set/test_bit header ??

Dan Nelson dnelson at allantgroup.com
Wed Apr 13 15:03:57 PDT 2005


In the last episode (Apr 13), Aziz KEZZOU said:
> Hi hackers,
> I am trying to port a software from Linux to FreeBSD (5.3). But, I
> can't find the equivalent header in FreeBSD of <asm/bitops.h> in Linux
> ?
> 
> Here are the prototypes of the functions I am using:
> int clear_bit(int offset, int * flag);
> int set_bit(int offset, int * flag);
> int test_bit(int offset, int * flag);
> 
> Any hints?

Try the macros in <bitstring.h>; see the bitstring manpage for usage.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-hackers mailing list