This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libc struct termios <--> kernel struct termios, how?


Hi,

while investigating an ioctl() "invalid argument" in top (from
procps-1.2.7) on glibc-2.0.93/powerpc, I wondered what's the correct
include file for 'struct termios' and 'TCGETS'. top currently includes
<termios.h>, but the definition there differs from from the kernel
definition (NCCS is 32 resp. 19). Since sizeof(struct termios) is coded
into TCGETS, top will use a value for TCGETS which is not understood by the
kernel.

What is the correct solution for that? Using <asm/termios.h>?

Thanks,
Franz.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]