source: trunk/libs/newlib/src/newlib/libc/sys/sysvi386/sleep.c @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 185 bytes
Line 
1#include <sys/types.h>
2#include <sys/signal.h>
3
4unsigned
5sleep(unsigned secs) {
6        extern time_t time (time_t *);
7        time_t t = time(0);
8
9        _alarm(secs);
10        _pause();
11        return (time(0) - t);
12}
Note: See TracBrowser for help on using the repository browser.