home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.27 / text0040.txt < prev    next >
Encoding:
Text File  |  1992-05-20  |  966 b   |  26 lines

  1. Submitted-by: haug@grok20.columbiasc.NCR.COM ("Brian R. Haug")
  2.  
  3. In article <1992Mar24.042302.25869@uunet.uu.net> gwyn@smoke.brl.mil (Doug Gwyn) writes:
  4. >Submitted-by: gwyn@smoke.brl.mil (Doug Gwyn)
  5. >
  6. >rewinddir() is more important, because it IS required by 1003.1.  The only
  7. >way I know of to implement it on a system that doesn't support lseek() to
  8. >the beginning (only!) of an open directory is to record the full pathname
  9. >at opendir() time and use this information to reopen the directory (after
  10. >closing the current fd).
  11.  
  12. A co-worker suggested that perhaps the real problem is that rewinddir and
  13. seekdir are of type void and should have some other type so that they may
  14. return an error condition (like the one I'm having to deal with).
  15.  
  16. When Andy Tannenbaum (sp?) remarked "Standards are wonderful, there are so
  17. many to choose from."  He obviously was not in the implementor's shoes!
  18.  
  19.             Share and Enjoy!
  20.  
  21.                   Brian
  22.  
  23.  
  24. Volume-Number: Volume 27, Number 40
  25.  
  26.