Skip to contentSkip to conversation

Sparc termios.h

DISCUSSION Alan Cox 2 participants 4 messages Aug 29, 2006

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

Can someone explain to me the somewhat strange termios structure stuff going on in both sparc32 and sparc64. I'm adding c_ispeed/c_ospeed to termios and updating ports/adding new ioctls when neccessary but I'm not clear what the sparc folks are trying to achieve.

Alan

#1 lore raw

From: Alan Cox <[email protected]>
Date: Tue, 29 Aug 2006 21:59:50 +0100

Quoted 4 lines

Can someone explain to me the somewhat strange termios structure stuff going on in both sparc32 and sparc64. I'm adding c_ispeed/c_ospeed to termios and updating ports/adding new ioctls when neccessary but I'm not clear what the sparc folks are trying to achieve.

Some of the c_cc[] array entries (specifically entries 4 and 5) are aliased, and their meaning is determined by whether ICANON is set.

author
#2 lore raw
In reply to Alan Cox

Ar Maw, 2006-08-29 am 14:53 -0700, ysgrifennodd David Miller:

Quoted 2 lines

Some of the c_cc[] array entries (specifically entries 4 and 5) are aliased, and their meaning is determined by whether ICANON is set.

This is a sys5/solaris perversion you emulate for the existing ioctls then ? So a next generation struct termios need not emulate the junk merely any compat glue ?

Alan

#3 lore raw
In reply to Alan Cox

From: Alan Cox <[email protected]>
Date: Tue, 29 Aug 2006 23:51:25 +0100

Quoted 7 lines

Ar Maw, 2006-08-29 am 14:53 -0700, ysgrifennodd David Miller:

Quoted 2 lines

Some of the c_cc[] array entries (specifically entries 4 and 5) are aliased, and their meaning is determined by whether ICANON is set.

This is a sys5/solaris perversion you emulate for the existing ioctls then ? So a next generation struct termios need not emulate the junk merely any compat glue ?

It's SunOS stuff that we inherited for the Linux ioctls, yes.

If you're redoing things with new ioctl numbers and stuff like that, you should feel no need to retain any of this junk.