search for: timeout_ts_p

Displaying 5 results from an estimated 5 matches for "timeout_ts_p".

Did you mean: timeout_ts
2013 Nov 08
0
[PATCH 2/3] syscalls: Add syscalls needed by arm64
...44 index 0000000..69da693 --- /dev/null +++ b/usr/klibc/poll.c @@ -0,0 +1,21 @@ +#include <errno.h> +#include <sys/poll.h> +#include <sys/syscall.h> + +#ifndef __NR_poll + +int poll (struct pollfd *fds, nfds_t nfds, long timeout) +{ + struct timespec timeout_ts; + struct timespec *timeout_ts_p = NULL; + + if (timeout >= 0) { + timeout_ts.tv_sec = timeout / 1000; + timeout_ts.tv_nsec = (timeout % 1000) * 1000000; + timeout_ts_p = &timeout_ts; + } + + return ppoll(fds, nfds, timeout_ts_p, 0); +} + +#endif /* __NR_poll */ diff --git a/usr/klibc/readlink.c b/usr/klibc/readlink.c ne...
2013 Nov 12
0
[klibc:master] syscalls: Add syscalls needed by arm64
...44 index 0000000..69da693 --- /dev/null +++ b/usr/klibc/poll.c @@ -0,0 +1,21 @@ +#include <errno.h> +#include <sys/poll.h> +#include <sys/syscall.h> + +#ifndef __NR_poll + +int poll (struct pollfd *fds, nfds_t nfds, long timeout) +{ + struct timespec timeout_ts; + struct timespec *timeout_ts_p = NULL; + + if (timeout >= 0) { + timeout_ts.tv_sec = timeout / 1000; + timeout_ts.tv_nsec = (timeout % 1000) * 1000000; + timeout_ts_p = &timeout_ts; + } + + return ppoll(fds, nfds, timeout_ts_p, 0); +} + +#endif /* __NR_poll */ diff --git a/usr/klibc/readlink.c b/usr/klibc/readlink.c ne...
2013 Nov 12
0
[klibc:master] poll, select: fix style problems
.../usr/klibc/poll.c index 69da693..f539b99 100644 --- a/usr/klibc/poll.c +++ b/usr/klibc/poll.c @@ -4,7 +4,7 @@ #ifndef __NR_poll -int poll (struct pollfd *fds, nfds_t nfds, long timeout) +int poll(struct pollfd *fds, nfds_t nfds, long timeout) { struct timespec timeout_ts; struct timespec *timeout_ts_p = NULL; diff --git a/usr/klibc/select.c b/usr/klibc/select.c index e416794..7af28fe 100644 --- a/usr/klibc/select.c +++ b/usr/klibc/select.c @@ -8,10 +8,10 @@ struct __pselect6; __extern int __pselect6(int, fd_set *, fd_set *, fd_set *, - const struct timespec *, const st...
2013 Nov 11
5
[PATCH V2 0/3] Introduce arm64 support
Hello, Here is V2 of the arm64 support for klibc patch set. Notable changes since the original series: * fp regs dropped from setjmp/longjmp * chmod, lstat and stat re-implemented with *at functions. * open64 merged into open. As with the original, this series is to be applied against the latest klibc, just after 25a66fa README.klibc: update build information V2 has been tested on x86_64
2013 Nov 08
9
[PATCH 0/3] Introduce arm64 support
Hello, This series introduces arm64 support to klibc. I've rebased the work from Neil Williams and Anil Singhar into the following three patches. Most of the code changes are due to new syscall implementations being needed for arm64 as a only a minimal set of syscalls are defined in the arm64 kernel. This series is to be applied against the latest klibc, just after 25a66fa README.klibc: