[comp.unix.xenix] Warning! Dev Sys 2.3 "-ldir" is broken!

chip@ateng.com (Chip Salzenberg) (06/15/89)

I just recently installed SCO's Development System 2.3 on my system.  At
about the same time, I got the latest GNU Make.  Having noticed that the new
development system includes SVR3 <dirent.h> and -ldir library, I figured I
should use it instead of <sys/ndir.h> and -lx.

Wrongo.

It seems that the SVr3-compatible readdir() is BROKEN.  It works until you
use it on a relatively large directory, about 1024 bytes or more.  It fails
by stopping early, returning NULL from readdir() even though there are more
files left to read.

Oh well.  At least the old -lx readdir() still works.
-- 
You may redistribute this article only to those who may freely do likewise.
Chip Salzenberg         |       <chip@ateng.com> or <uunet!ateng!chip>
A T Engineering         |       Me?  Speak for my company?  Surely you jest!