TAB*, NL*, BS* etc in <sys/ioctls.h> in GNU/Hurd and GNU/BSD

Samuel Thibault samuel.thibault@ens-lyon.org
Fri Sep 7 21:10:00 GMT 2007


Roland McGrath, le Fri 07 Sep 2007 13:44:38 -0700, a écrit :
> > There is a problem with TAB*, NL*, BS*, etc.: POSIX says that
> > these should get defined when #including <termios.h>, but that's
> > not currently the case.  What would be the preferred way?  Making
> > glibc/termios/termios.h #include <sys/ioctls.h>, or moving these
> > particular definitions into sysdeps/mach/hurd/bits/termios.h?  Do we
> > really need to keep those definitions in <sys/ioctls.h>?
> 
> They are there for compatibility with pre-POSIX applications using old
> BSD-style ioctls.

Hum, and unfortunately c_oflag's OLCUC flag (1<<9) has the same value as
NL2 (0x200)...

Samuel



More information about the Libc-alpha mailing list