2 Copyright © 2008, The AROS Development Team. All rights reserved.
5 POSIX.1-2001 function usleep()
6 Function is removed from POSIX.1-2008
9 #include <aros/debug.h>
13 /*****************************************************************************
24 Suspends program execution for a given number of microseconds.
27 usec - number of microseconds to wait
30 0 on success, -1 on error
33 This function is not part of POSIX.1-2008 anymore. Don't use this
34 function. As an alternative nanosleep() can be used.
44 This function is part of libarosc.a and may be removed in the future.
46 ******************************************************************************/
50 req
.tv_sec
= usec
/1000000;
51 req
.tv_nsec
= (usec
% 1000000)*1000;
53 return nanosleep(&req
, NULL
);