Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!purdue!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: How to get a file's info from C Message-ID: <12991@smoke.BRL.MIL> Date: 25 May 90 04:15:04 GMT References: <948:May2221:21:5290@stealth.acf.nyu.edu> <1990May24.172957.7421@dg-rtp.dg.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 12 In article <1990May24.172957.7421@dg-rtp.dg.com> goudreau@larrybud.rtp.dg.com (Bob Goudreau) writes: >If portability between Sys V and BSD is your goal, then the readdir() >& stat() approach will put you up the same kind of creek as ls will; >the two systems use a different interface to readdir(). (In fact, >my V.2 manual doesn't even show a readdir() entry at all; it appears >the function didn't appear in System V until V.3 was released.) However, you can obtain a portable implementation of an SVR3-compatible dirent library from me for use on UNIX systems like pre-4.4BSD flavors that don't have a POSIX-compliant dirent library. You can edit your Makefiles to use this add-on library (and headers) until such time as your native system is brought up to date.