lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080829152733.GA20151@finial.ellipticsemi.com>
Date:	Fri, 29 Aug 2008 11:27:33 -0400
From:	Nick Bowler <nbowler@...ipticsemi.com>
To:	Tejun Heo <tj@...nel.org>
Cc:	Andrew Morton <akpm@...ux-foundation.org>,
	fuse-devel@...ts.sourceforge.net, miklos@...redi.hu,
	greg@...ah.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/5] CUSE: implement CUSE - Character device in
	Userspace

On 04:09 Fri 29 Aug     , Tejun Heo wrote:
> Hello, Andrew.
> 
> Andrew Morton wrote:
> >> +struct cuse_conn {
> >> +	struct fuse_conn	fc;
> >> +	struct cdev		cdev;
> >> +	struct vfsmount		*mnt;
> >> +	struct device		*dev;
> >> +	bool			cdev_added:1;
> >> +	bool			disconnected:1;	/* channel disconnected */
> > 
> > I didn't know you could do that with bools.
> 
> Hmm... I thought it was like any other integral types, no?
> 

Boolean bit-fields are indeed valid.  Usual semantics for objects of type
_Bool apply.

C99 6.7.2.1 Structure and union specifiers

4   A bit-field shall have a type that is a qualified or unqualified
    version of _Bool, signed int, unsigned int, or some other
    implementation-defined type.

-- 
Nick Bowler, Elliptic Semiconductor (http://www.ellipticsemi.com/)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ