Anyone know how to portably get the time from a stat buf?

On this issue: Open Group web page has the wrong name for the field,
calls it st_mtim, the correct name is st_mtime.

My header files on OSX are indecipherable gibberish.

Specs say a struct timespec is required for this field, however
OSX seems to just have a time_t there which turns out to be
a plain integer. However it seems to depend on whether _DARWIN_C_SOURCE
is defined or not, if it is, or, _POSIX_C_SOURCE is not, then
instead the stat struct contains a struct timespec names st_mtimespec.
I have to assume this isn't the case for Felix use because that field isn't
found when I try to use it :)

Either way it seems OSX header files are broken.


--
john skaller
skal...@users.sourceforge.net





------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to