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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [sysvi386/] [sleep.c] - Rev 438

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

#include <sys/types.h>
#include <sys/signal.h>
 
unsigned
sleep(unsigned secs) {
	extern time_t time (time_t *);
	time_t t = time(0);
 
	_alarm(secs);
	_pause();
	return (time(0) - t);
}
 

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

powered by: WebSVN 2.1.0

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