projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yet another ugly legacy syscall rename...
[oweals/musl.git]
/
src
/
unistd
/
usleep.c
1
#include <unistd.h>
2
#include <time.h>
3
4
int usleep(useconds_t useconds)
5
{
6
struct timespec tv = {
7
.tv_sec = useconds/1000000,
8
.tv_nsec = (useconds%1000000)*1000
9
};
10
return nanosleep(&tv, &tv);
11
}