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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [sysvi386/] [sleep.c] - Blame information for rev 258

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#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.