Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: 4.2BSD directory routines on SV??? Message-ID: <6135@brl-smoke.ARPA> Date: Fri, 17-Jul-87 14:18:51 EDT Article-I.D.: brl-smok.6135 Posted: Fri Jul 17 14:18:51 1987 Date-Received: Sat, 18-Jul-87 17:21:12 EDT References: <276@rruxa.UUCP> <6883@ism780c.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB)) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 24 In article <6883@ism780c.UUCP> mikep@ism780c.UUCP (Michael A. Petonic) writes: >In article <276@rruxa.UUCP> jpage@rruxa.UUCP (J Page) writes: >> Anyone know of a Public Domain version of the 4.2BSD directory >> routines(opendir, readdir, scandir, closedir, mkdir) that >> will run in an SV environment??? >If you are running System V.3, then the directory read routines are >already in the library. Now the key is to upgrade to a decent version... >Or you could write your own (very easily). Perhaps if you glanced >at a piece of V.3 code, it would help. But for that, you'd >need a source license... Catch 22. Some people haven't been paying attention. The SVR3.0 directory routines were derived from an earlier public-domain version I supplied, which I recently totally revamped so that common sources would fit all UNIX variants; I posted the new version to comp.sources in early May. The "UFS" (original UNIX directory structure, as in System V) variant did not correctly handle 14-character-long filenames; however my current version of this package does. It is available free upon request. There is no need to reinvent this particular wheel. By the way, I disagree with scandir()'s design and did not provide it (it is not required by POSIX). - Gwyn@BRL.MIL