search for: exceptfd

Displaying 16 results from an estimated 16 matches for "exceptfd".

Did you mean: excepted
2013 Feb 19
13
[PATCH] mini-os: implement poll(2)
..._tis.h> #include <xenbus.h> #include <xenstore.h> +#include <poll.h> #include <sys/types.h> #include <sys/unistd.h> @@ -678,6 +679,29 @@ static void dump_set(int nfds, fd_set *readfds, fd_set *writefds, fd_set *except #define dump_set(nfds, readfds, writefds, exceptfds, timeout) #endif +#ifdef LIBC_DEBUG +static void dump_pollfds(struct pollfd *pfd, int nfds, int timeout) +{ + int i, comma, fd; + + printk("["); + comma = 0; + for (i = 0; i < nfds; i++) { + fd = pfd[i].fd; + if (comma) + printk(", ");...
2008 Jun 06
0
[PATCH] stubdom: permit compilation without lwip
...FIONBIO, &nblock); } /* Fallthrough */ +#endif default: printk("fcntl(%d, %d, %lx/%lo)\n", fd, cmd, arg, arg); errno = ENOSYS; @@ -666,9 +676,12 @@ /* Just poll without blocking */ static int select_poll(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds) { - int i, n = 0, sock_n, sock_nfds = 0; + int i, n = 0; +#ifdef HAVE_LWIP + int sock_n, sock_nfds = 0; fd_set sock_readfds, sock_writefds, sock_exceptfds; struct timeval timeout = { .tv_sec = 0, .tv_usec = 0}; +#endif #ifdef LIBC_VERBOSE static int nb; @@ -678,6 +691,...
2023 Jan 26
0
[klibc:time64] select: Fix handling of NULL timeout when wrapping pselect()
...-git a/usr/klibc/select.c b/usr/klibc/select.c index 7af28fee..8ad93a4b 100644 --- a/usr/klibc/select.c +++ b/usr/klibc/select.c @@ -21,7 +21,8 @@ int select(int nfds, fd_set *readfds, fd_set *writefds, ts.tv_nsec = timeout->tv_usec * 1000; } - result = __pselect6(nfds, readfds, writefds, exceptfds, &ts, NULL); + result = __pselect6(nfds, readfds, writefds, exceptfds, + timeout ? &ts : NULL, NULL); if (timeout) { timeout->tv_sec = ts.tv_sec;
2013 Nov 12
0
[klibc:master] poll, select: fix style problems
...10 +8,10 @@ struct __pselect6; __extern int __pselect6(int, fd_set *, fd_set *, fd_set *, - const struct timespec *, const struct __pselect6 *); + const struct timespec *, const struct __pselect6 *); int select(int nfds, fd_set *readfds, fd_set *writefds, - fd_set *exceptfds, struct timeval *timeout) + fd_set *exceptfds, struct timeval *timeout) { int result; struct timespec ts;
2004 May 29
1
[patch] Filename conversion
...ct(2) that guarantees Linux-like updating of + * the timeout argument to contain the time left, so we can simply + * re-invoke in case of EINTR or EAGAIN. On BSD, select(2) doesn't + * change the timeout argument by itself. + **/ +int do_select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) +{ + if (timeout==NULL) { + return select(n, readfds, writefds, exceptfds, timeout); + } else { + struct timeval intended, before, after; + int result; + + intended = *timeout; + gettimeofday(&before, NULL); + result = select(n, readfds, writefds, exceptfds,...
2013 Nov 08
0
[PATCH 2/3] syscalls: Add syscalls needed by arm64
...t; + +#if !defined(__NR_select) && !defined(__NR__newselect) + +struct __pselect6; +__extern int __pselect6(int, fd_set *, fd_set *, fd_set *, + const struct timespec *, const struct __pselect6 *); + +int select(int nfds, fd_set *readfds, fd_set *writefds, + fd_set *exceptfds, struct timeval *timeout) +{ + int result; + struct timespec ts; + + if (timeout) { + ts.tv_sec = timeout->tv_sec; + ts.tv_nsec = timeout->tv_usec * 1000; + } + + result = __pselect6(nfds, readfds, writefds, exceptfds, &ts, NULL); + + if (timeout) { + timeout->tv_sec = ts.tv_sec; +...
2013 Nov 12
0
[klibc:master] syscalls: Add syscalls needed by arm64
...t; + +#if !defined(__NR_select) && !defined(__NR__newselect) + +struct __pselect6; +__extern int __pselect6(int, fd_set *, fd_set *, fd_set *, + const struct timespec *, const struct __pselect6 *); + +int select(int nfds, fd_set *readfds, fd_set *writefds, + fd_set *exceptfds, struct timeval *timeout) +{ + int result; + struct timespec ts; + + if (timeout) { + ts.tv_sec = timeout->tv_sec; + ts.tv_nsec = timeout->tv_usec * 1000; + } + + result = __pselect6(nfds, readfds, writefds, exceptfds, &ts, NULL); + + if (timeout) { + timeout->tv_sec = ts.tv_sec; +...
2018 Jan 22
3
What does this mean? select(1, [0], , NULL, {60, 0}) = 0 (Timeout)
I have been having broken pipe messages for a while. I think since a network architecture change. But I am not sure because I have not been monitoring the errors closely before. I added this (https://rsync.samba.org/issues.html) rsync-debug.sh script with strace of 100. But I have no idea how to interper this output. I guess between 00:55:41 and 03:06:47 nothing is happening? And then some
2018 Jan 22
0
What does this mean? select(1, [0], , NULL, {60, 0}) = 0 (Timeout)
From man 2 select: int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); So, it is waiting for file descriptor #1 to become available with a 60 second timeout which it is hitting. Use lsof to find out what file descriptor #1 is. On 01/22/2018 10:07 AM, Marc Roos via rsync wrote: > > I have been having broken pipe messages for a whil...
2013 Oct 09
0
[PATCH 1/1] Porting klibc to AArch64
...klibc/arch/aarch64/select.c b/usr/klibc/arch/aarch64/select.c index a326e59..59c569d 100644 --- a/usr/klibc/arch/aarch64/select.c +++ b/usr/klibc/arch/aarch64/select.c @@ -14,8 +14,8 @@ int select(int nfds, fd_set *readfds, fd_set *writefds, } result = __pselect6 (nfds, readfds, writefds, exceptfds, &ts, NULL); if (timeout) { - ts.tv_sec = timeout->tv_sec; - ts.tv_nsec = timeout->tv_usec * 1000; + timeout->tv_sec = ts.tv_sec; + timeout->tv_usec = ts.tv_nsec / 1000; } return result; } diff --git a/usr/klibc/arch/aarch64/setjmp.S b/us...
2005 Apr 26
10
Ctrl-c crashes R when run as sudo (PR#7819)
I tried to submit this in R, but not sure if it worked. When running R as sudo, using ctrl-c dumps me to the command line. Hitting exit to exit the terminal window results in R taking 100% of resources. I am using R-2.1.0 on Fedora Core 3. Thanks. Manuel
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:
2015 Apr 03
0
Wine release 1.7.40
...Info. winmm/tests: Add a basic joystick interactive test. ws2_32: Don't try to receive data in an OOB_INLINED socket with MSG_OOB. ws2_32: Convert send/recv flags to native system. ws2_32: Add a helper to check if a socket is bound or not. ws2_32: Ensure sockets in exceptfds get set when an error occurs. ws2_32: Do not poll unbound descriptors. ws2_32: Check for OOB data in select() calls when not OOB_INLINED. ws2_32/tests: Add more WSAEnumNetworkEvents tests. ws2_32/tests: Skip part of OOB test to unfreeze NT4 test. ws2_32: Fix return va...
2012 Jan 25
26
[PATCH v4 00/23] Xenstore stub domain
Changes from v3: - mini-os configuration files moved into stubdom/ - mini-os extra console support now a config option - Fewer #ifdefs - grant table setup uses hypercall bounce - Xenstore stub domain syslog support re-enabled Changes from v2: - configuration support added to mini-os build system - add mini-os support for conditionally compiling frontends, xenbus -
2008 Feb 29
35
[RFC] PVFB: Add refresh period to XenStore parameters?
Hello, Sometimes the backend of PVFB knows that it doesn''t need permanent refresh, when the window is minimized for instance (no refresh at all), or the administration tools know that the window is thumnailed, and so a slow refresh rate is fine. Also, some users may want to tune the refresh rate according to the smoothness they would like, balanced with the CPU time that requires.