Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.lang.perl Subject: Re: ioctl problems under SunOS 4.0 Message-ID: <123555@uunet.UU.NET> Date: 22 Feb 91 03:25:19 GMT References: <91696@lll-winken.LLNL.GOV> Organization: UUNET Communications Services, Falls Church, VA Lines: 25 In article <91696@lll-winken.LLNL.GOV> ira@isg.llnl.gov (Ira Morrison) writes: >I am a new perl user and am having a problem with ioctl. I'm running >on a Sun with SunOS 4.0. The description of ioctl in the perl man >pages (i don't have the book yet) seems to imply using the packing for >the older version of ioctl (e.g. ccccs). SunOS uses the new SV tty driver, but pushes a compatibility Streams module that translates the old BSD ioctls to the new format. Try man 3 stty, which points you towards ttcompat(4). With Sun, you can choose to use either one. Look in perl's h2pl directory at cbreak.pl. Use the model that you find most palatable. If you have no preference, use the new one. The new SV tty driver is superior to the old BSD one, because: (1) the entire state can be retrieved or altered in one operation (2) the driver has more bits, so each can work independently (3) System V has to do something right occasionally :-) (4) BSD fought for its extended chars and got them adopted by POSIX. BSD now uses the new driver, too. -- [rbj@uunet 1] stty sane unknown mode: sane