Path: utzoo!censor!geac!torsqnt!hybrid!scifi!bywater!uunet!ogicse!schaefer From: schaefer@ogicse.ogi.edu (Barton E. Schaefer) Newsgroups: comp.lang.perl Subject: Re: directory entries chopped on SCO Unix Message-ID: <18097@ogicse.ogi.edu> Date: 3 Mar 91 05:49:53 GMT References: Organization: Oregon Graduate Institute (formerly OGC), Beaverton, OR Lines: 18 In article djm@eng.umd.edu (David J. MacKenzie) writes: } I just built pl44 on SCO Unix 3.2.2 and find that the filenames } returned by Perl's readdir function are missing the first two } characters. It works fine on SunOS. Anyone have a fix for this } problem? } -- } David J. MacKenzie Yeah, make sure you DO NOT use -lx when linking. It has (incorrect, ore more accurately, outdated) opendir(), readdir(), closedir() etc. calls, which get used in place of the (correct) ones in libc. As far as I know, the only thing -lx is needed for in 3.2.2 is the ancient rdchk() call, which Perl surely isn't using. You can replace it with select() or an ioctl() if it is used. -- Bart Schaefer schaefer@cse.ogi.edu ZipCode Software Corporation schaefer@zipcode.com