Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!hao!oddjob!gargoyle!ihnp4!cbosgd!cblpf!cbstr1!Karl.Kleinpaste From: Karl.Kleinpaste@cbstr1.att.com Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: 4.2BSD / System V ioctl questions Message-ID: <350@cbstr1.att.com> Date: Fri, 28-Aug-87 10:56:35 EDT Article-I.D.: cbstr1.350 Posted: Fri Aug 28 10:56:35 1987 Date-Received: Sun, 30-Aug-87 01:48:22 EDT References: <299@rruxa.UUCP> <416@ea.ecn.purdue.edu> Sender: karl@cbstr1.att.com Lines: 29 Xref: mnetor comp.unix.questions:3772 comp.unix.wizards:3949 davy@ea.ecn.purdue.edu writes: > The System V ioctl is a gross hack. The SysV termio ioctl() is wonderfully orthogonal, as compared to the random cruft stuffed into the tchars structure, the "local mode word" crap, and ltchars structures of BSD. The cc[] array is just begging for organized extensions; just change NCC and add new #definitions for the new slots, and you can do with it what you will. Phooey on BSD. > tinfo.c_cc[EOF] = 1; /* min chars to read */ > tinfo.c_cc[EOL] = 0; /* timeout */ Forpetesake, if you're going to use the "min" and "time" fields, kindly call them by their right names: VMIN and VTIME. Use the names as appropriate to the use of the fields. Furthermore, you neglected the leading V on the names you did use. (Yes, overloading VEOF/VEOL with VMIN/VTIME was not too bright.) > > 2. are there (stty and gtty)-like calls available in System V. > > Nope. They're actually gone from 4.3BSD too; they're implemented as library > routines. False. There are stty/gtty compatibility routines in the kernel; you can issue an actual stty() system call, which will take a V7-style ioctl() package and perform some standardized conversions into the SysV termio scheme. There is still an file. Karl