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
Richard Cochran 2011-12-30 08:33:30 +01:00
parent 59163df8b1
commit ba6cf8b767
2 changed files with 17 additions and 0 deletions

View File

@ -49,4 +49,20 @@ static inline int clock_adjtime(clockid_t id, struct timex *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

1
port.c
View File

@ -26,6 +26,7 @@
#include "bmc.h"
#include "clock.h"
#include "missing.h"
#include "msg.h"
#include "port.h"
#include "print.h"