ifdefs: O_NONBLOCK O_NOCTTY TIOCMGET

Matthew Selsky Matthew.Selsky at twosigma.com
Mon Nov 6 14:06:12 UTC 2017


On Sat, Nov 04, 2017 at 10:22:25PM -0700, Hal Murray via devel wrote:
> 
> While looking at some code, I noticed several symbols that are sometimes 
> protected with an ifdef and sometimes assumed to exist.
> 
> I think they are all required by POSIX, and thus the ifdefs are not needed.
> 
> Is there any simple way to verify that a symbol is required by POSIX, and/or 
> the parts of POSIX we require?
> 
> Any reason I don't get rid of the ifdefs?

Hey Hal,

I see O_NONBLOCK and O_NOCTTY referenced on http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html

I haven't yet found TIOCMGET mentioned in the POSIX spec.


Cheers,
-Matt


More information about the devel mailing list