Hi Ed;

This just reminded me:

Clang has support for type-safety attributes[1] for fcntl and ioctls.

I gave them a try[2] but they broke compatibility.
For a clean ABI you should consider them.

Best regards,

Pedro.


[1]
http://clang.llvm.org/docs/AttributeReference.html#type-safety-checking
[2]
https://reviews.freebsd.org/D2411


On 08/05/15 11:15, Ed Schouten wrote:
Author: ed
Date: Wed Aug  5 16:15:43 2015
New Revision: 286323
URL: https://svnweb.freebsd.org/changeset/base/286323

Log:
   Make fcntl(F_SETFL) work.

   The stat_put() system call can be used to modify file descriptor
   attributes, such as flags, but also Capsicum permission bits. Support
   for changing Capsicum bits will be added as soon as its dependent
   changes have been pushed through code review.

   Obtained from:       https://github.com/NuxiNL/freebsd

_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to