[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/build/uClibc/librt/timer_settime.c b/ap/build/uClibc/librt/timer_settime.c
new file mode 100644
index 0000000..2703fa9
--- /dev/null
+++ b/ap/build/uClibc/librt/timer_settime.c
@@ -0,0 +1,28 @@
+/*
+ * timer_settime.c - set the timer.
+ */
+
+#include <errno.h>
+#include <stdlib.h>
+#include <time.h>
+#include <sys/syscall.h>
+
+#include "kernel-posix-timers.h"
+
+#ifdef __NR_timer_settime
+
+#define __NR___syscall_timer_settime __NR_timer_settime
+static __inline__ _syscall4(int, __syscall_timer_settime, kernel_timer_t, ktimerid,
+ int, flags, const void *, value, void *, ovalue);
+
+/* Set the expiration time for a timer */
+int timer_settime(timer_t timerid, int flags, const struct itimerspec *value,
+ struct itimerspec *ovalue)
+{
+ struct timer *kt = (struct timer *)timerid;
+
+ /* Set timeout */
+ return __syscall_timer_settime(kt->ktimerid, flags, value, ovalue);
+}
+
+#endif