OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [sysvi386/] [sleep.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
#include <sys/types.h>
2
#include <sys/signal.h>
3
 
4
unsigned
5
sleep(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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.