delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/16/09:01:43

Date: Fri, 16 Feb 1996 16:30:41 +0300 (MSK)
From: "Alexander V. Lukyanov" <lav AT video DOT yars DOT free DOT net>
To: eliz AT is DOT elta DOT co DOT il, fdonahoe AT wilkes1 DOT wilkes DOT edu
Subject: Re: Re ioctl.h missing
Cc: djgpp AT delorie DOT com

> From: Frank Donahoe <fdonahoe AT wilkes1 DOT wilkes DOT edu>

> The Alexandrian direct cut looks better and better.

Well, I looked at the source of ls.c and it is interesting that
ioctl.h is probably included to get the constant TIOCGWINSZ.
At least in Solaris ioctl.h does *not* define that constant,
it is defined in termios.h and it is not included.
sys/ioctl.h defines just a few constants like LIOC*, DIOC*,
IOCTYPE, which are not mentioned in ls.c. So why it was needed
to include sys/ioctl.h *always* when _POSIX_SOURCE is not defined?
I know that BSD defines TIOCGWINSZ in sys/ttycom.h which is included
from sys/ioctl.h *and* from sys/termios.h. So there should be more
complicated logic to determine what to include.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019