search for: nfds

Displaying 20 results from an estimated 79 matches for "nfds".

Did you mean: fds
2011 Oct 11
5
[PATCH] libxl: reimplement buffer for bootloading and drop data if buffer is full
...r_interact(libxl_ int bootloader_prod = 0, bootloader_cons = 0; char bootloader_buf[BOOTLOADER_BUF_SIZE]; + /* Set timeout to 1s before starting to discard data */ + wait.tv_sec = BOOTLOADER_TIMEOUT; + wait.tv_usec = 0; + while(1) { fd_set wsel, rsel; int nfds; @@ -185,15 +192,26 @@ static char * bootloader_interact(libxl_ xenconsoled_prod = xenconsoled_cons = 0; if (bootloader_prod == bootloader_cons) bootloader_prod = bootloader_cons = 0; + /* Move buffers around to drop already consumed data */ + if (xe...
2013 Feb 19
13
[PATCH] mini-os: implement poll(2)
...4 --- a/extras/mini-os/lib/sys.c +++ b/extras/mini-os/lib/sys.c @@ -31,6 +31,7 @@ #include <tpm_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...
2004 Jul 14
12
HP-UX 11i and largefiles on rsync 2.6.2
Hello, I'm running HP-UX 11i on an rp74xx. It's 64-bit. C compiler is as follows: B3901BA B.11.11.03 HP C/ANSI C Developer's Bundle for HP-UX 11.i (S800) B3913DB C.03.30.02 HP aC++ Compiler (S800) /usr/bin/cc: LINT B.11.11.02 CXREF B.11.11.02 HP92453-01 B.11.11.02 HP C Compiler $ Sep 8 2000 23:13:51 $ I have successfully compiled rsync 2.6.2 and it
2020 Aug 18
1
Re: [PATCH nbdkit 7/9] server: Add hand-written replacement for poll for Windows.
...stributed I know who you mean, but is it worth a surname? > + * under an incompatible license. However Winsock has select so we > + * can write a simple (but slow) emulation of poll using select. > + */ > +int > +poll (struct pollfd *fds, int n, int timeout) > +{ > + int i, nfds = 0, r; > + fd_set readfds, writefds; > + struct timeval tv, *tvp; > + > + FD_ZERO (&readfds); > + FD_ZERO (&writefds); > + > + for (i = 0; i < n; ++i) { > + if (fds[i].events & POLLIN) > + FD_SET (fds[i].fd, &readfds); > + if (fds[i]...
2018 Feb 23
6
RFC 8305 Happy Eyeballs in OpenSSH
...k(sockfd); +/* + * Return 0 if the addrinfo was not tried. Return -1 if using it + * failed. Return 1 if it was used. + */ +static int +ssh_connect_happy_eyeballs_initiate(const char *host, struct addrinfo *ai, + int *timeout_ms, int needpriv, + struct timeval *initiate, + int *nfds, fd_set *fds, + struct addrinfo *fd_ai[]) +{ + int oerrno, sock; + char ntop[NI_MAXHOST], strport[NI_MAXSERV]; + + memset(ntop, 0, sizeof(ntop)); + memset(strport, 0, sizeof(strport)); + /* If *nfds != 0 then *initiate is initialised. */ + if (*nfds && + (ai == NULL || + !s...
2013 Sep 18
0
libvirt report error "error: End of file while reading data: Input/output error" when start domain
...) debug : virNetClientCallDispatch:1123 : RPC_CLIENT_MSG_RX: client=0x2aad62a2920 len=36 prog=536903814 vers=1 proc=66 type=1 status=0 serial=0 debug : virKeepAliveCheckMessage:374 : ka=0x2aad62a2c20, client=0x2aad62a2920, msg=0x2aad62a2988 debug : virNetMessageClear:55 : msg=0x2aad62a2988 nfds=0 debug : virNetClientIOEventLoopPassTheBuck:1420 : Giving up the buck 0x2aad62a31c0 debug : virNetClientIOEventLoopPassTheBuck:1434 : No thread to pass the buck to debug : virEventPollUpdateHandle:147 : EVENT_POLL_UPDATE_HANDLE: watch=2 events=1 debug : virEventPollInterruptLocked:714 :...
2013 Apr 09
2
fail to convert qemu xml to args with libvirt-1.0.4: An error occurred, but the cause is unknown
...call head=(nil) call=0x100871c0 rv=0 2013-04-09 03:23:47.297+0000: 2670: debug : virEventPollRunOnce:640 : Poll got 1 event(s) 2013-04-09 03:23:47.297+0000: 2670: debug : virEventPollDispatchTimeouts:425 : Dispatch 0 2013-04-09 03:23:47.297+0000: 2669: debug : virNetMessageFree:73 : msg=0x10087500 nfds=0 cb=(nil) 2013-04-09 03:23:47.297+0000: 2670: debug : virEventPollDispatchHandles:470 : Dispatch 1 2013-04-09 03:23:47.297+0000: 2670: debug : virEventPollDispatchHandles:484 : i=0 w=1 2013-04-09 03:23:47.297+0000: 2669: debug : virConnectClose:1483 : conn=0x100878b8 <cut> 2) libvirt-1.0.4...
2023 Jun 17
2
[PATCH] ssh-agent: add systemd socket-based activation
..., result, saved_errno; + int sock = 0, ch, result, saved_errno; char *shell, *format, *pidstr, *agentsocket = NULL; #ifdef HAVE_SETRLIMIT struct rlimit rlim; @@ -2015,6 +2027,9 @@ main(int ac, char **av) struct pollfd *pfd = NULL; size_t npfd = 0; u_int maxfds; +#ifdef WITH_SYSTEMD + int nfds = 0; +#endif /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ sanitise_stdfd(); @@ -2142,6 +2157,25 @@ main(int ac, char **av) parent_pid = getpid(); +#ifdef WITH_SYSTEMD + nfds = sd_listen_fds(1); + if (nfds > 0) { + sock = SD_LISTEN_FDS_START; + if (agentsocket...
2023 Jan 26
0
[klibc:time64] select: Fix handling of NULL timeout when wrapping pselect()
...-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/select.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --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...
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...
2012 May 10
2
[LLVMdev] Wrong Dwarf info with -O2? [PowerPC]
...code (compiled by a 2 weeks old clang) on a PowerPC embedded system using the newest gdb (v7.4). I got a backtrace like this: (gdb) bt #0 0x0fe96314 in poll () from /lib/tls/libc.so.6 #1 0x1002c8ac in mli_poll ( fds=<error reading variable: Unhandled dwarf expression opcode 0x1>, nfds=<optimized out>, timeout=<optimized out>) at msglib.c:7560 #2 0x10027684 in mli_do_work (peer_index=<optimized out>, creply=<error reading variable: Unhandled dwarf expression opcode 0xff>, flags=<optimized out>) at msglib.c:6323 #3 0x1002cce8 in ml_wait_for_...
2020 Aug 18
0
[PATCH nbdkit 7/9] server: Add hand-written replacement for poll for Windows.
...Gnulib contains an + * elaborate emulation of poll written by Paolo, but it's distributed + * under an incompatible license. However Winsock has select so we + * can write a simple (but slow) emulation of poll using select. + */ +int +poll (struct pollfd *fds, int n, int timeout) +{ + int i, nfds = 0, r; + fd_set readfds, writefds; + struct timeval tv, *tvp; + + FD_ZERO (&readfds); + FD_ZERO (&writefds); + + for (i = 0; i < n; ++i) { + if (fds[i].events & POLLIN) + FD_SET (fds[i].fd, &readfds); + if (fds[i].events & POLLOUT) + FD_SET (fds[i].fd, &...
2008 Jun 06
0
[PATCH] stubdom: permit compilation without lwip
...71,7 @@ return lwip_ioctl(files[fd].socket.fd, 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 #i...
2008 Oct 13
1
Need help for debuging
...terisk is using as ACD for over hundred agents. #> thread apply all bt ........ ........ Thread 6 (process 20135): #0 0x00fc17a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x002dfdf4 in poll () from /lib/tls/libc.so.6 #2 0x080675a7 in ast_waitfor_nandfds (c=0xb7469b80, n=2, fds=0x0, nfds=0, exception=0x0, outfd=0x0, ms=0xb7469b4c) at channel.c:1644 #3 0x08069d86 in ast_channel_bridge (c0=0xb22bf9a8, c1=0xa2ae648, config=0xb746a7a0, fo=0xb7469c40, rc=0xb7469c44) at channel.c:1721 #4 0x00548f65 in ast_bridge_call (chan=0xb22bf9a8, peer=0xa2ae648, config=0xb746a7a0) at res_f...
2012 May 10
0
[LLVMdev] Wrong Dwarf info with -O2? [PowerPC]
...> PowerPC embedded system using the newest gdb (v7.4). > > I got a backtrace like this: > > (gdb) bt > #0 0x0fe96314 in poll () from /lib/tls/libc.so.6 > #1 0x1002c8ac in mli_poll ( > fds=<error reading variable: Unhandled dwarf expression opcode 0x1>, > nfds=<optimized out>, timeout=<optimized out>) at msglib.c:7560 > #2 0x10027684 in mli_do_work (peer_index=<optimized out>, > creply=<error reading variable: Unhandled dwarf expression opcode 0xff>, > flags=<optimized out>) at msglib.c:6323 > #3 0x1002...
2015 Oct 02
0
virsh with OSX and virtualbox
...3814 vers=1 proc=66 type=1 status=0 serial=0 2015-10-02 08:52:11.877+0000: 18446744073709551615: debug : virKeepAliveCheckMessage:377 : ka=0x7f9cda700910, client=0x7f9cda7005c0, msg=0x7f9cda700640 2015-10-02 08:52:11.877+0000: 18446744073709551615: debug : virNetMessageClear:57 : msg=0x7f9cda700640 nfds=0 2015-10-02 08:52:11.877+0000: 18446744073709551615: debug : virNetClientIOEventLoopPassTheBuck:1419 : Giving up the buck 0x7f9cda600f00 2015-10-02 08:52:11.877+0000: 18446744073709551615: debug : virNetClientIOEventLoopPassTheBuck:1433 : No thread to pass the buck to 2015-10-02 08:52:11.877+0000:...
2007 Dec 04
0
Queue App - crash (1.4.15)
...dummy_start (data=0xffffffff) at utils.c:843 #3 0xb7f7f13d in pthread_start_thread () from /lib/libpthread.so.0 #4 0xb7ea81ba in clone () from /lib/libc.so.6 Thread 5 (process 8480): #0 0xb7e9f90a in poll () from /lib/libc.so.6 #1 0x0807c583 in ast_waitfor_nandfds (c=0xb71d6a94, n=0, fds=0x0, nfds=0, exception=0x0, outfd=0x0, ms=0xb71d6a90) at channel.c:1982 #2 0x08082797 in ast_waitfor_n (c=0xfffffffc, n=-4, ms=0xfffffffc) at channel.c:2044 #3 0x080718ac in autoservice_run (ign=0x0) at autoservice.c:89 #4 0x080f7e99 in dummy_start (data=0x1f4) at utils.c:843 #5 0xb7f7f13d in pthread...
2008 Oct 10
3
Question about echo cancelation
Hi, I'm using the following setup : Alice ---- IPPhone ------<LAN>----- Media gateway ----<PSTN> ------- Phone ---- Bob For certain calls, users complains about echo : they can ear their own voice in their handset, though media gateway echo cancel is turned on. I'm wondering how this echo cancelation engine is supposed to work. My understanding of echo is that most probably,
2012 Nov 02
2
Remus: Xen 4.2.1 with Debian 6.0 does not work
_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
2012 Nov 02
2
Remus: Xen 4.2.1 with Debian 6.0 does not work
_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users