We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 647852b + 711c923 commit d55a9cdCopy full SHA for d55a9cd
components/lwp/lwp_syscall.h
@@ -30,14 +30,19 @@ typedef uint32_t id_t; /* may contain pid, uid or gid */
30
#define PRIO_PGRP 1
31
#define PRIO_USER 2
32
33
+#ifndef TIMEVAL_TO_TIMESPEC
34
#define TIMEVAL_TO_TIMESPEC(tv, ts) { \
35
(ts)->tv_sec = (tv)->tv_sec; \
36
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
37
}
38
+#endif
39
+
40
+#ifndef TIMESPEC_TO_TIMEVAL
41
#define TIMESPEC_TO_TIMEVAL(tv, ts) { \
42
(tv)->tv_sec = (ts)->tv_sec; \
43
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
44
45
46
47
void sys_exit(int value);
48
ssize_t sys_read(int fd, void *buf, size_t nbyte);
0 commit comments