[Gluster-devel] !! operator

Emmanuel Dreyfus manu at netbsd.org
Sat Apr 2 14:59:28 UTC 2016


Hello 

I found a !! in glusterfs sources. Is it a C syntax I do not know, a
bug, or just a weird syntax?

xlators/cluster/afr/src/afr-inode-write.c: 
     local->stable_write = !!((fd->flags|flags)&(O_SYNC|O_DSYNC));


-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu at netbsd.org


More information about the Gluster-devel mailing list