[comp.sources.d] POSIX Dir vs. Gwyn Dir?

scs@vax3.iti.org (Steve Simmons) (04/10/89)

It seems like more and more often when I get software off the net
which does directory reading, I have to hack it up to get it running.
I'm using the Gwyn directory package layered on top of a system V.1
(UNIX-PC, actually).  Did POSIX change after Doug's stuff came out
and everybody but me upgrade?  Or am I just bumping into old BSD
stuff?

   Steve Simmons         Just another midwestern boy
   scs@vax3.iti.org  -- or -- ...!sharkey!itivax!scs
         "Hey...you *can* get here from here!"

guy@auspex.auspex.com (Guy Harris) (04/11/89)

 >It seems like more and more often when I get software off the net
 >which does directory reading, I have to hack it up to get it running.
 >I'm using the Gwyn directory package layered on top of a system V.1
 >(UNIX-PC, actually).  Did POSIX change after Doug's stuff came out
 >and everybody but me upgrade?  Or am I just bumping into old BSD
 >stuff?

I think you're probably just bumping into old BSD stuff.  Doug's package
is POSIX-compatible; POSIX changed things from the way they were in BSD,
to avoid some namespace collisions.  The main differences are in:

	1) the include file names - <sys/dir.h> became <dirent.h>

and

	2) the structure name - "struct direct" became "struct dirent".