Answer to -ldir problem.

Chip Salzenberg chip at ateng.com
Thu Jul 13 00:18:48 AEST 1989


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 at ateng.com> or <uunet!ateng!chip>
A T Engineering         |       Me?  Speak for my company?  Surely you jest!



More information about the Comp.unix.xenix mailing list