Path: utzoo!attcan!uunet!samsung!sdd.hp.com!ucsd!ucbvax!lsr-vax.UUCP!brad From: brad@lsr-vax.UUCP (Brad Zoltick - LMO) Newsgroups: comp.sys.sgi Subject: include files for bsd ioctl system calls Message-ID: <9006130029.AA03577@> Date: 13 Jun 90 00:29:49 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 29 In article Russell Taylor writes: > > We have an IRIS 4D running OS 3.2.2. I am trying to find the > include file that defines 'struct sgttyb'. I know it must be there > somewhere, because /usr/include/curses.h makes use of the structure > in one of its definitions. However, I have done : > find /usr/include -name \*.h -exec grep -l sgttyb {} \; > and none of the include files that show up define this structure. The ioctl and fcntl(SYSV) system calls differ significantly between SYSV and bsd and between different versions. This makes writing portable code rather difficult. Anyone who has ported an editor from one Unix system to another encounters problems with different ioctl usage. The structure you require, 'struct sgttyb' is defined under SUNOS in /usr/include/sys/ttold.h. You will probably need 'struct tchars' from this header also. Brad Zoltick Mail addresses for 'brad' at lsr-vax: UUCP: ...uunet!lsr-vax!brad INTERNET: lsr-vax!brad@uunet.uu.net or brad%lsr-vax.UUCP@uunet.uu.net BITNET: At present, must use the INTERNET address through a BITNET-to-Internet gateway.