home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15198 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.5 KB  |  33 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!gatech!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!reuven
  3. From: reuven@athena.mit.edu (Reuven M. Lerner)
  4. Subject: Is a dirent.h available for Think C 5.0?
  5. Message-ID: <REUVEN.92Sep9000139@e40-008-6.mit.edu>
  6. Sender: news@athena.mit.edu (News system)
  7. Nntp-Posting-Host: e40-008-6.mit.edu
  8. Organization: Massachusetts Institute of Technology
  9. Date: Wed, 9 Sep 1992 04:01:47 GMT
  10. Lines: 21
  11.  
  12. I'm working on my first Mac program (which also happens to be my
  13. bachelor's thesis), and I've run into a few problems. The most major
  14. one so far appears when I try to compile some code that was written
  15. for a Unix box, and that I'm trying to incorporate into my code. (The
  16. Unix software is part of the WAIS -- Wide Area Information Server --
  17. package from Thinking Machines; among other things, my thesis will act
  18. as a primitive WAIS client.)
  19.  
  20. Anyway, Think C 5.0 appears to be choking on variables of type struct
  21. dirent. This sort of makes sense, since dirents appear in Unix
  22. machines, and aren't really applicable to Macs. Nevertheless, I
  23. haven't been able to figure out a way around this problem -- somehow
  24. or other, I think I'm going to need dirents on the Mac.
  25.  
  26. Does anyone know how to do this? Is it a simple case of defining the
  27. structure in an include file, and then using Think C's Unix library
  28. functions for accessing files? Do I have to rewrite some functions and
  29. structure definitions? Or have I stumbled onto a major hole in the
  30. library, and should I look somewhere else for information?
  31.  
  32. Thanks for any help you can provide.
  33.