From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 13 22:03:56 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC2C516A4CE for ; Wed, 13 Apr 2005 22:03:56 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C3C743D2D for ; Wed, 13 Apr 2005 22:03:56 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j3DM3uHZ051055; Wed, 13 Apr 2005 17:03:56 -0500 (CDT) (envelope-from dan) Date: Wed, 13 Apr 2005 17:03:55 -0500 From: Dan Nelson To: Aziz KEZZOU Message-ID: <20050413220355.GF4842@dan.emsphone.com> References: <37e13166050413134839311008@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37e13166050413134839311008@mail.gmail.com> X-OS: FreeBSD 5.4-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-hackers@freebsd.org Subject: Re: clear/set/test_bit header ?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2005 22:03:57 -0000 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 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 ; see the bitstring manpage for usage. -- Dan Nelson dnelson@allantgroup.com