search for: nfds_t

Displaying 17 results from an estimated 17 matches for "nfds_t".

Did you mean: nfds
2023 Jan 14
1
[klibc:time64] time: Use 64-bit time types on all architectures
...ct __pselect6 *); +<32> int pselect6_time64::__pselect6(int, fd_set *, fd_set *, fd_set *, struct timespec *, const struct __pselect6 *); +<64> int pselect6::__pselect6(int, fd_set *, fd_set *, fd_set *, struct timespec *, const struct __pselect6 *); <?> int poll(struct pollfd *, nfds_t, long); -<?> int ppoll::__ppoll(struct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); +<32> int ppoll_time64::__ppoll(struct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); +<64> int ppoll::__ppoll(struct pollfd *, nfds_t, struct timespec *, const...
2023 Jan 26
0
[klibc:time64] select: Make all select calls wrappers for pselect6()
...long); int ioctl(int, int, void *); int flock(int, int); -<?> int _newselect,select::select(int, fd_set *, fd_set *, fd_set *, struct timeval *); int pselect6::__pselect6(int, fd_set *, fd_set *, fd_set *, struct timespec *, const struct __pselect6 *); <?> int poll(struct pollfd *, nfds_t, long); <?> int ppoll::__ppoll(struct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); diff --git a/usr/klibc/select.c b/usr/klibc/select.c index 8ad93a4b..11e71543 100644 --- a/usr/klibc/select.c +++ b/usr/klibc/select.c @@ -4,8 +4,6 @@ #include <errno.h> #include &lt...
2013 Nov 12
0
[klibc:master] poll, select: fix style problems
...sr/klibc/poll.c | 2 +- usr/klibc/select.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/klibc/poll.c b/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 @...
2013 Feb 19
13
[PATCH] mini-os: implement poll(2)
...ut); +} +#else +#define dump_pollfds(pfds, nfds, timeout) +#endif + /* Just poll without blocking */ static int select_poll(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds) { @@ -983,6 +1007,71 @@ out: return ret; } +/* Wrap around select */ +int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout) +{ + int ret; + int i, fd; + struct timeval _timeo, *timeo = NULL; + fd_set rfds, wfds, efds; + int max_fd = -1; + + DEBUG("poll("); + dump_pollfds(_pfd, _nfds, _timeout); + DEBUG(")\n"); + + if (_timeout != -1) { + /* Timeo...
2013 Nov 08
0
[PATCH 2/3] syscalls: Add syscalls needed by arm64
...if defined(__NR_pselect7) @@ -181,7 +182,7 @@ int pselect7::__pselect7(int, fd_set *, fd_set *, fd_set *, struct timespec *, c #elif defined(__NR_pselect6) int pselect6::__pselect6(int, fd_set *, fd_set *, fd_set *, struct timespec *, const struct __pselect6 *); #endif -int poll(struct pollfd *, nfds_t, long); +<?> int poll(struct pollfd *, nfds_t, long); <?> int ppoll::__ppoll(struct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); int fsync(int); int fdatasync,fsync::fdatasync(int); diff --git a/usr/klibc/access.c b/usr/klibc/access.c new file mode 100644 index 000...
2013 Nov 12
0
[klibc:master] syscalls: Add syscalls needed by arm64
...if defined(__NR_pselect7) @@ -181,7 +182,7 @@ int pselect7::__pselect7(int, fd_set *, fd_set *, fd_set *, struct timespec *, c #elif defined(__NR_pselect6) int pselect6::__pselect6(int, fd_set *, fd_set *, fd_set *, struct timespec *, const struct __pselect6 *); #endif -int poll(struct pollfd *, nfds_t, long); +<?> int poll(struct pollfd *, nfds_t, long); <?> int ppoll::__ppoll(struct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); int fsync(int); int fdatasync,fsync::fdatasync(int); diff --git a/usr/klibc/access.c b/usr/klibc/access.c new file mode 100644 index 000...
2009 Nov 14
1
drivers- dynamically adding filedescriptors to poll
...probably also need this, in order to support asynchronous I/O in libusb-1.0. The latter would be a huge improvement over the existing libusb-0.1 (compatibility) interface we're using right now. It is my intention to add something like the following: typedef struct { struct pollfd *fds; nfds_t nfds; event_handler_t *handler; } event_t; typedef struct { struct pollfd fds; void (*callback)(void *data); void *data; } event_handler_t; int dstate_event_poll(event_t *events, int timeout); int dstate_event_add(event_handler_t *handler); int dstate_event_del(event_handler_t *handler); Whe...
2006 Apr 22
1
ia64 build failure - no fork or ppoll syscalls in 2.6.16
...r this and pselect at least. Signed-off-by: Jeff Bailey <jbailey@ubuntu.com> --- klibc-1.3.7.orig/klibc/ppoll.c +++ klibc-1.3.7/klibc/ppoll.c @@ -3,6 +3,9 @@ */ #include <sys/poll.h> +#include <sys/syscall.h> + +#if defined(__NR_ppoll) __extern int __ppoll(struct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); @@ -12,3 +15,5 @@ { return __ppoll(ufds, nfds, timeout, sigmask, sizeof *sigmask); } + +#endif --- klibc-1.3.7.orig/klibc/SYSCALLS.def +++ klibc-1.3.7/klibc/SYSCALLS.def @@ -21,7 +21,7 @@ <?!ia64> pid_t clone::__clone(u...
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:
2013 Mar 07
3
[PATCH 0/3] protocol: Abstract out socket operations.
I've been taking a long hard look at the protocol layer. It has evolved over a long time without any particular direction, and the result is, to say the least, not very organized. These patches take a first step at cleaning up the mess by abstracting out socket operations from the rest of the code. The purpose of this is to allow us to slot in a different connection layer under the
2017 Mar 03
5
[PATCH WIP 0/5] Fix virt-rescue.
This set of patches fixes virt-rescue rather cleanly. In particular the problems with handling ^C are completely fixed. Work still to be done before this can go upstream: - Shutdown doesn't work properly if you exit the shell. At the moment to exit you must do 'reboot -f'. Future improvements: - An escape sequence and escape commands that could be handled by virt-rescue,
2017 Mar 03
5
[PATCH 0/5] Fix virt-rescue.
This fixes the main issues in virt-rescue and is usable. There are some enhancements which could be made (in follow up work): - An escape sequence and escape commands that could be handled by virt-rescue, eg. to shut down the appliance, mount or unmount filesystems. - `virt-rescue -i' could be implemented cleanly by performing the right API calls before handing control to the
2017 Mar 03
6
[PATCH v2 0/6] Fix virt-rescue.
This supersedes the two previous patch series: https://www.redhat.com/archives/libguestfs/2017-March/msg00017.html https://www.redhat.com/archives/libguestfs/2017-March/msg00046.html Rich.
2017 Mar 04
7
[PATCH v3] Fix virt-rescue.
Version 3: - Tidies up the code further. - Implements correct handling of SIGTSTP and SIGCONT. - Adds: ^] s - sync filesystems - Adds: ^] z - suspend virt-rescue Rich.
2013 Aug 21
0
Build problems: klibc with Linux 3.10.7
...e 4, sign 0 TYPE fd_set *: size 4, sign 0 TYPE gid_t: size 4, sign 0 TYPE gid_t *: size 4, sign 0 TYPE int: size 4, sign 1 TYPE int *: size 4, sign 0 TYPE intmax_t: size 8, sign 1 TYPE intptr_t: size 4, sign 1 TYPE long: size 4, sign 1 TYPE long long: size 8, sign 1 TYPE mode_t: size 4, sign 0 TYPE nfds_t: size 4, sign 0 TYPE off_t: size 8, sign 1 TYPE off_t *: size 4, sign 0 TYPE pid_t: size 4, sign 1 TYPE sigset_t *: size 4, sign 0 TYPE size_t: size 4, sign 0 TYPE socklen_t: size 4, sign 1 TYPE socklen_t *: size 4, sign 0 TYPE struct dirent *: size 4, sign 0 TYPE struct itimerval *: size 4, sign 0...
2013 Aug 21
5
Build problems: klibc with Linux 3.10.7
On Tue, Aug 20, 2013 at 07:44:39AM +0200, leroy christophe wrote: > > > Find attached two patches I have in order to build klibc 2.0.2 > against kernel 3.8.13 > We had to introduce those patches when going from kernel 3.6 to kernel 3.7 > Hope it helps. > those patches are wrong and again very brittle. just use the way it is described in `make help': A) cd ~/src/linux