#include <unistd.h>
|
|
int
usleep (useconds_t microseconds); |
This function is implemented using nanosleep by pausing for microseconds microseconds or until a signal occurs. Consequently, in this implementation, sleeping has no effect on the state of process timers, and there is no special handling for SIGALRM.
#include<unistd.h>
#include<stdio.h>
int main()
{
unsigned long t = 2;
int i;
i = usleep(t);
printf("Expected: 0 usleep returned: %d", i);
return 0;
}
Output
Expected: 0 usleep returned: 0
| [EINTR] | |
| A signal was delivered to the process and its action was to invoke a signal-catching function. | |
|
© 2007-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |
|