projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yet another ugly legacy syscall rename...
[oweals/musl.git]
/
src
/
signal
/
getitimer.c
1
#include <sys/time.h>
2
#include "syscall.h"
3
4
int getitimer(int which, struct itimerval *old)
5
{
6
int ret;
7
long kold[4];
8
9
if (!(ret = syscall2(__NR_getitimer, which, (long)&kold)))
10
*old = (struct itimerval){ { kold[0], kold[1] }, { kold[2], kold[3] } };
11
return ret;
12
}