Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Posix Timers?




On Jan 5, 2008, at 8:53 AM, Andre-John Mas wrote:

Could someone tell me whether MacOS X supports POSIX timers?


If you mean the api specified in <http://www.jaluna.com/doc/c5/html/Overview/x5408.html > (just the first hit on google), then the answer would seem to be no:

$ find /usr/include -name '*.h'|xargs egrep 'clock_(settime|gettime| getres)|timer_(create|delete|settime|gettime|getoverrun)|nanosleep'
/usr/include/php/ext/standard/ basic_functions.h:PHP_FUNCTION(time_nanosleep);
/usr/include/php/main/php_config.h:/* Define if you have the nanosleep function. */
/usr/include/time.h:int nanosleep(const struct timespec *, struct timespec *) __DARWIN_ALIAS_C(nanosleep);


Only nanosleep seems to be there.

--
Steve Checkoway

    "Anyone who says that the solution is to educate the users
    hasn't ever met an actual user." -- Bruce Schneier




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >Posix Timers? (From: Andre-John Mas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.