It is currently Tue, 28 Sep 2021 10:08:06 GMT



 
Author Message
 POSIX scandir function

I am trying to port scandir to POSIX.  The only thing I lack now is
the file descriptor for the DIR * in POSIX.  Does anyone know of a
way to optain it?

Right now it stands:

DIR *dirp;

fstat(dirp->dd_fd, &stb);

BSD supports the file descriptor information in the sturct DIR.  I
was wondering if there was a way to obtain that in POSIX.

Ian Fink
f...@arlut.utexa.edu



 Tue, 02 Nov 1999 03:00:00 GMT   
 POSIX scandir function

Nobody does, because there doesn't have to be one.  POSIX does not
mandate that opendir() opens a file descriptor.

--
Geoff Clare <g...@root.co.uk>
UniSoft Limited, London, England.



 Tue, 09 Nov 1999 03:00:00 GMT   
 
   [ 2 post ] 

Similar Threads

1. POSIX newbie: POSIX function calls

2. posix message queues and other posix functions

3. scandir function missing from Solaris 7 Intel

4. scandir compare function

5. Posix timer functions

6. a posix compliant function to read group database?

7. is lstat a POSIX function?

8. POSIX function for time with millisecs

9. POSIX question about error returns from system functions

10. exporting functions in ksh/sh-posix


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software