• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
using stat
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using stat


  • Subject: using stat
  • From: Hugh Hoover <email@hidden>
  • Date: Sun, 12 Sep 2004 01:27:25 -0700

Hi - I'm attempting to use stat on 10.3.5 and getting back strange results...
The first items in the result stat_buf struct seems more or less correct, dev, inode, uid, gid, times, size, etc.
The nlinks field seems suspicious, but the killer is the st_flags field - it's ALWAYS 0 - even for directories (which is why I'm doing the stat - to find out if I have a directory or not).


I've checked the sys/stat.h header and everything appears to be in order there. I'm pretty sure I've got the right set of headers (for 10.3).

Any suggestions?

TIA
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: using stat
      • From: Shantonu Sen <email@hidden>
  • Prev by Date: Re: Using dead notification with mach ports
  • Next by Date: global register variable clobbered by save/restore
  • Previous by thread: Calling shm_open from a CFM app.
  • Next by thread: Re: using stat
  • Index(es):
    • Date
    • Thread