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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [time.c] - Blame information for rev 158

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

Line No. Rev Author Line
1 148 jeremybenn
/* libc/sys/linux/time.c - Time-related system calls */
2
 
3
/* Written 2000 by Werner Almesberger */
4
 
5
 
6
#include <errno.h>
7
#include <sys/types.h>
8
#include <sys/time.h>
9
#include <sys/timex.h>
10
#include <linux/times.h>
11
#include <machine/syscall.h>
12
 
13
#define __NR___adjtimex __NR_adjtimex
14
 
15
_syscall1(int,__adjtimex,struct timex *,tx)
16
_syscall1(time_t,time,time_t *,t)
17
_syscall1(clock_t,times,struct tms *,buf)
18
_syscall2(int,getitimer,int,type,struct itimerval *,old)
19
_syscall3(int,setitimer,int,type,const struct itimerval *,new,struct itimerval *,old)
20
_syscall2(int,gettimeofday,struct timeval *,tv,struct timezone *,tz)
21
_syscall2(int,settimeofday,const struct timeval *,tv,const struct timezone *,tz)
22
_syscall2(int,nanosleep,const struct timespec *,req,struct timespec *,rem)
23
 
24
weak_alias(__libc_gettimeofday,__gettimeofday);
25
weak_alias(__adjtimex,adjtimex);
26
weak_alias(__adjtimex,ntp_adjtime);

powered by: WebSVN 2.1.0

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