home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 15095 < prev    next >
Encoding:
Text File  |  1993-01-01  |  812 b   |  24 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!gatech!rpi!utcsri!geac!lethe!druid!pseudo!mjn
  3. From: mjn@pseudo.uucp (Murray Nesbitt)
  4. Subject: Re: What function should I used to get directory information?
  5. Organization: Private system in Toronto, ON
  6. Date: Fri, 1 Jan 1993 09:39:23 GMT
  7. Message-ID: <MJN.93Jan1043923@pseudo.uucp>
  8. Lines: 9
  9. In-Reply-To: cl820@cleveland.Freenet.Edu's message of 29 Dec 1992 20:49:53 GMT
  10. References: <1hqdliINN6cu@usenet.INS.CWRU.Edu>
  11. Sender: mjn@pseudo.uucp (Murray Nesbitt)
  12.  
  13.  
  14. cl820@cleveland.Freenet.Edu (Wei Jin Mai) writes:
  15.  
  16. >            I have tried opendir() and readdir(). There functions  don't 
  17. > provide much information beside directory name. I want to the permission bits
  18. > , the group id and user id.
  19.  
  20. Use stat() in conjunction with opendir() and readdir().
  21.  
  22. -- 
  23. Murray
  24.