LWN.net Logo

Speaking of prctl

Speaking of prctl

Posted Sep 5, 2008 15:40 UTC (Fri) by wahern (subscriber, #37304)
In reply to: Speaking of prctl by quotemstr
Parent article: High- (but not too high-) resolution timeouts

One nice thing about such interfaces is that you can usually check for the interface using the C preprocessor (i.e. "#if defined FD_CLOEXEC ... #elif defined HANDLE_FLAG_INHERIT ..."). For totally obscure non-portable interfaces, that's definitely a win, especially for those of us not willing to use autoconf (or unable, such as when porting to Visual Studio).


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds