2 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
12 libc_hidden_proto(nanosleep)
14 int usleep (__useconds_t usec)
16 const struct timespec ts = {
17 .tv_sec = (long int) (usec / 1000000),
18 .tv_nsec = (long int) (usec % 1000000) * 1000ul
20 return(nanosleep(&ts, NULL));