[comp.unix.xenix] Answer to -ldir problem.

chip@ateng.com (Chip Salzenberg) (07/12/89)

Some time ago I posted a complaint about the Dev Sys 2.3 -ldir library
being broken.

Well, it turns out that the bug is in the _kernel_.  Specifically, the -ldir
library (compatible with <dirent.h>) uses the new getdents() system call.
That system call has a bug in Xenix/386 2.3.1; the bug was fixed in 2.3.2.
There may be a free fix from SCO; I'm not sure.

In any case, thanks to the good people at SCO who clued me in.

And in the meantime, if you're stuck with Xenix/386 2.3.1, you can use -lx
and <sys/ndir.h> just like before.
-- 
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!