On Tue, Mar 8, 2011 at 9:14 AM, Drasko DRASKOVIC wrote: > in uClibc/include/unistd.h I can see : > > #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED > /* Set an alarm to go off (generating a SIGALRM signal) in VALUE > microseconds. If INTERVAL is nonzero, when the alarm goes off, the > timer is reset to go off every INTERVAL microseconds thereafter. > Returns the number of microseconds remaining before the alarm. */ > extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) > __THROW; > > /* Sleep USECONDS microseconds, or until a signal arrives that is not blocked > or ignored. > > This function is a cancellation point and therefore not marked with > __THROW. */ > extern int usleep (__useconds_t __useconds); > #endif > > So, usleep() is defined only if __USE_BSD.
you ignored a pretty large part of the code: > #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED BSD *or* the xopen extended spec > 1) Why so ? > > 2) What if I do not use BSD system, but uClinux ? that isnt what it means. please read the feature_test_macros man page. -mike _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev