uClinux: provide missing system calls.
The timerfd calls are missing from Sourcery CodeBench Lite 2011.09-23. We can remove this code once these calls are properly integrated into a current tool chain. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
59163df8b1
commit
ba6cf8b767
16
missing.h
16
missing.h
|
@ -49,4 +49,20 @@ static inline int clock_adjtime(clockid_t id, struct timex *tx)
|
||||||
return syscall(__NR_clock_adjtime, id, tx);
|
return syscall(__NR_clock_adjtime, id, tx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __uClinux__
|
||||||
|
|
||||||
|
static inline int timerfd_create(int clockid, int flags)
|
||||||
|
{
|
||||||
|
return syscall(__NR_timerfd_create, clockid, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int timerfd_settime(int fd, int flags,
|
||||||
|
const struct itimerspec *new_value,
|
||||||
|
struct itimerspec *old_value)
|
||||||
|
{
|
||||||
|
return syscall(__NR_timerfd_settime, fd, flags, new_value, old_value);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue