Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2015 11:11:36 -0500
From:      Pedro Giffuni <pfg@FreeBSD.org>
To:        freebsd-toolchain@FreeBSD.org
Subject:   type-safety checks for fcntl and ioctl
Message-ID:  <5527F638.9090609@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Hello;

I had a try on adding the ioctl() and fcntl() clang attributes to our
system headers but failed miserably, apparently due to xlint issues:
...
fcntl.h(307): syntax error [249]
...

There is few documentation about this [1][2] so I am sharing the
link of my (simple but probably incomplete) experiment in case
someone feels like picking it up some day:
https://people.freebsd.org/~pfg/patches/fcntl-type-safety.diff

Regards,

Pedro.

References:
[1]
http://clang.llvm.org/docs/AttributeReference.html#type-safety-checking
[2]
http://hpc-ua.org/hpc-ua-12/files/proceedings/3.pdf




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5527F638.9090609>