Add support for sleep, nanosleep, and usleep (XCC)
authorKevin Klues <klueska@cs.berkeley.edu>
Fri, 20 Nov 2015 02:11:18 +0000 (18:11 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 24 Nov 2015 20:24:34 +0000 (15:24 -0500)
commit7f0fe5b0c2e26f1e54600ebf74e53750db9379cf
tree2b662b5898e9e29628efb8fd1226d658cb38a07b
parente5f22b4d993a1ba6a08b5f6e583099467b38431a
Add support for sleep, nanosleep, and usleep (XCC)

The nanosleep call is a pass through to SYS_nanosleep, the usleep call
is a pass through to SYS_block, and sleep is implemented in terms of
nanosleep. We previously had our own copy of sysdeps/posix/sleep.c in
sysdeps/akaros, but this is now removed in favor of
sysdeps/posix/sleep.c which uses nanosleep under the hood.

Signed-off-by: Kevin Klues <klueska@cs.berkeley.edu>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/nanosleep.c [new file with mode: 0644]
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/sleep.c [deleted file]
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/usleep.c [new file with mode: 0644]