Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.unix-wizards,net.bugs.usg Subject: Re: ls(1) on System V Message-ID: <9955@brl-tgr.ARPA> Date: Sun, 14-Apr-85 06:12:31 EST Article-I.D.: brl-tgr.9955 Posted: Sun Apr 14 06:12:31 1985 Date-Received: Tue, 16-Apr-85 00:25:17 EST References: <176@mplvax.UUCP> <3411@allegra.UUCP>, <2116@sun.uucp> <350@bu-cs.UUCP> Organization: Ballistic Research Lab Lines: 24 Xref: watmath net.unix-wizards:12819 net.bugs.usg:215 > > This is the second S5R2 bug that is fixed "for free" if you convert > > to the Berkeley "directory library". The library provides directory > > entries with null-terminated names, fixing this bug; the previous bug > > was a shell problem caused, if I remember correctly, by testing whether > > the result of an "open" of a directory was > 0 rather than whether it > > was >= 0. > > > > I've converted lots of S5R2 programs to use the library; it's very easy. > > I'd vote for putting it into 1) the /usr/group standard, 2) the System V > > Interface Definition (which currently, bless its soul, does *not* commit > > to what directories look like when you open them), and therefore 3) > > System V. I second the motion! Benefits include: (1) Easier coding (2) Cleaner coding (3) Portable coding (4) Faster operation due to buffering Of course virtually ALL the UNIX System V Release 2 utilities have been so converted in the BRL UNIX System V emulation for 4.2BSD (out of necessity). If AT&T wants `em they can have `em. I also previously posted a UNIX System V edition of the directory access library routines. They should be added to the standard C library!