Date: Wed, 13 Apr 2005 17:03:55 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Aziz KEZZOU <opensource.enthousiat@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: clear/set/test_bit header ?? Message-ID: <20050413220355.GF4842@dan.emsphone.com> In-Reply-To: <37e13166050413134839311008@mail.gmail.com> References: <37e13166050413134839311008@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050413220355.GF4842>