/dports/comms/libmodbus/libmodbus-3.1.6/tests/ |
H A D | bandwidth-server-many-up.c | 51 int fdmax; in main() local 79 fdmax = server_socket; in main() 83 if (select(fdmax+1, &rdset, NULL, NULL, NULL) == -1) { in main() 90 for (master_socket = 0; master_socket <= fdmax; master_socket++) { in main() 111 if (newfd > fdmax) { in main() 113 fdmax = newfd; in main() 132 if (master_socket == fdmax) { in main() 133 fdmax--; in main()
|
/dports/devel/deforaos-libsystem/libSystem-0.3.1/src/ |
H A D | event.c | 69 int fdmax; member 90 event->fdmax = -1; in event_new() 150 while(event->loop && (timeout != NULL || event->fdmax != -1)) in event_loop() 249 if((fd = eio->fd) <= event->fdmax && FD_ISSET(fd, fds) in _loop_io() 299 event->fdmax = max(event->fdmax, fd); in event_register_io_read() 322 event->fdmax = max(event->fdmax, fd); in event_register_io_write() 377 event->fdmax = max(event->fdmax, _unregister_io(event->writes, NULL, in event_unregister_io_read() 387 event->fdmax = max(event->fdmax, _unregister_io(event->reads, NULL, in event_unregister_io_write() 396 int fdmax = -1; in _unregister_io() local 403 fdmax = max(fdmax, eio->fd); in _unregister_io() [all …]
|
/dports/mail/qmail-notify/qmail-notify-0.93/ |
H A D | iopoll.c | 11 int fdmax; in iopoll() local 20 for (fdmax = 0, i = 0, io = fds; i < nfds; ++i, ++io) { in iopoll() 23 if (fd >= fdmax) fdmax = fd + 1; in iopoll() 31 if ((r = select(fdmax, &rfds, &wfds, (fd_set*)0, &tv)) <= 0) return r; in iopoll()
|
/dports/shells/zsh/zsh-5.8.1/Src/Modules/ |
H A D | zselect.c | 40 handle_digits(char *nam, char *argptr, fd_set *fdset, int *fdmax) in handle_digits() argument 56 if (fd+1 > *fdmax) in handle_digits() 57 *fdmax = fd+1; in handle_digits() 68 int i, fd, fdsetind = 0, fdmax = 0, fdcount; in bin_zselect() local 165 &fdmax)) in bin_zselect() 169 } else if (handle_digits(nam, argptr, fdset+fdsetind, &fdmax)) in bin_zselect() 175 i = select(fdmax, (SELECT_ARG_2_T)fdset, (SELECT_ARG_2_T)(fdset+1), in bin_zselect() 195 for (fd = 0; fd < fdmax; fd++) { in bin_zselect()
|
/dports/devel/bglibs/bglibs-2.04/sys/ |
H A D | iopoll.c | 11 int fdmax; in iopoll() local 20 for (fdmax = 0, i = 0, io = fds; i < nfds; ++i, ++io) { in iopoll() 23 if (fd >= fdmax) fdmax = fd + 1; in iopoll() 31 if ((r = select(fdmax, &rfds, &wfds, (fd_set*)0, &tv)) <= 0) return r; in iopoll()
|
/dports/security/ossec-hids-server/ossec-hids-3.6.0/src/remoted/ |
H A D | syslog.c | 46 int fdmax; /* max socket number + 1 */ in HandleSyslog() local 57 fdmax = logr.netinfo->fdmax; /* value preset to max fd + 1 */ in HandleSyslog() 70 if (select (fdmax, &fdwork, NULL, NULL, NULL) < 0) { in HandleSyslog() 76 for (sock = 0; sock <= fdmax; sock++) { in HandleSyslog()
|
H A D | syslogtcp.c | 145 int fdmax; /* max socket number + 1 */ in HandleSyslogTCP() local 153 fdmax = logr.netinfo->fdmax; /* value preset to max fd + 1 */ in HandleSyslogTCP() 181 if (select (fdmax, &fdwork, NULL, NULL, NULL) < 0) { in HandleSyslogTCP() 187 for (sock = 0; sock <= fdmax; sock++) { in HandleSyslogTCP()
|
H A D | secure.c | 28 int fdmax; /* max socket number + 1 */ in HandleSecure() local 81 fdmax = logr.netinfo->fdmax; /* value preset to max fd + 1 */ in HandleSecure() 86 if (select (fdmax, &fdwork, NULL, NULL, NULL) < 0) { in HandleSecure() 92 for (sock = 0; sock <= fdmax; sock++) { in HandleSecure()
|
/dports/security/ossec-hids-local/ossec-hids-3.6.0/src/remoted/ |
H A D | syslog.c | 46 int fdmax; /* max socket number + 1 */ in HandleSyslog() local 57 fdmax = logr.netinfo->fdmax; /* value preset to max fd + 1 */ in HandleSyslog() 70 if (select (fdmax, &fdwork, NULL, NULL, NULL) < 0) { in HandleSyslog() 76 for (sock = 0; sock <= fdmax; sock++) { in HandleSyslog()
|
H A D | syslogtcp.c | 145 int fdmax; /* max socket number + 1 */ in HandleSyslogTCP() local 153 fdmax = logr.netinfo->fdmax; /* value preset to max fd + 1 */ in HandleSyslogTCP() 181 if (select (fdmax, &fdwork, NULL, NULL, NULL) < 0) { in HandleSyslogTCP() 187 for (sock = 0; sock <= fdmax; sock++) { in HandleSyslogTCP()
|
H A D | secure.c | 28 int fdmax; /* max socket number + 1 */ in HandleSecure() local 81 fdmax = logr.netinfo->fdmax; /* value preset to max fd + 1 */ in HandleSecure() 86 if (select (fdmax, &fdwork, NULL, NULL, NULL) < 0) { in HandleSecure() 92 for (sock = 0; sock <= fdmax; sock++) { in HandleSecure()
|
/dports/security/ossec-hids-agent/ossec-hids-3.6.0/src/remoted/ |
H A D | syslog.c | 46 int fdmax; /* max socket number + 1 */ in HandleSyslog() local 57 fdmax = logr.netinfo->fdmax; /* value preset to max fd + 1 */ in HandleSyslog() 70 if (select (fdmax, &fdwork, NULL, NULL, NULL) < 0) { in HandleSyslog() 76 for (sock = 0; sock <= fdmax; sock++) { in HandleSyslog()
|
H A D | syslogtcp.c | 145 int fdmax; /* max socket number + 1 */ in HandleSyslogTCP() local 153 fdmax = logr.netinfo->fdmax; /* value preset to max fd + 1 */ in HandleSyslogTCP() 181 if (select (fdmax, &fdwork, NULL, NULL, NULL) < 0) { in HandleSyslogTCP() 187 for (sock = 0; sock <= fdmax; sock++) { in HandleSyslogTCP()
|
H A D | secure.c | 28 int fdmax; /* max socket number + 1 */ in HandleSecure() local 81 fdmax = logr.netinfo->fdmax; /* value preset to max fd + 1 */ in HandleSecure() 86 if (select (fdmax, &fdwork, NULL, NULL, NULL) < 0) { in HandleSecure() 92 for (sock = 0; sock <= fdmax; sock++) { in HandleSecure()
|
/dports/misc/rump/buildrump.sh-b914579/src/lib/libc/rpc/ |
H A D | svc_fdset.c | 65 int fdmax; member 100 fprintf(stderr, "%p[%d] fd_set<", fds->fdset, fds->fdmax); in svc_fdset_print() 101 for (int i = 0; i <= fds->fdmax; i++) { in svc_fdset_print() 144 while (fds->fdmax >= 0 && !FD_ISSET(fds->fdmax, fds->fdset)) in svc_fdset_sanitize() 145 fds->fdmax--; in svc_fdset_sanitize() 150 svc_maxfd = __svc_fdset.fdmax; in svc_fdset_sanitize() 330 fds->fdmax = -1; in svc_fdset_zero() 346 if (fd > fds->fdmax) in svc_fdset_set() 347 fds->fdmax = fd; in svc_fdset_set() 421 return &fds->fdmax; in svc_fdset_getmax()
|
/dports/converters/cocot/cocot-cocot-1.1-20120313/ |
H A D | loop.c | 38 int fdmax = max(STDIN_FILENO, STDOUT_FILENO) + 1; in loop() local 39 if (fdmax < mfd) in loop() 40 fdmax = mfd + 1; in loop() 52 if (select(fdmax, &fds, NULL, NULL, NULL) <= 0) in loop()
|
/dports/astro/gpxloggerd/gpxloggerd-0.2.4/ |
H A D | gpxloggerd.c | 312 int ch, fdmax; in main() local 494 fdmax = 0; in main() 496 fdmax = gpsdata.gps_fd > fdmax ? gpsdata.gps_fd : fdmax; in main() 498 fdmax = signal_fd[0] > fdmax ? signal_fd[0] : fdmax; in main() 499 fdmax++; in main() 508 n = select(fdmax, &fds, NULL, NULL, &tv); in main()
|
/dports/net/gnu-radius/radius-1.6.1/snmplib/ |
H A D | snmp_sess.c | 106 int fdmax; in snmp_fdset() local 108 fdmax = -1; in snmp_fdset() 113 if (sp->sd > fdmax) in snmp_fdset() 114 fdmax = sp->sd; in snmp_fdset() 116 return fdmax+1; in snmp_fdset()
|
/dports/sysutils/uptimed/uptimed-0.4.6/src/ |
H A D | uptimed.c | 192 int i, fdmax; in bg() local 210 fdmax = getdtablesize(); in bg() 212 fdmax = sysconf(_SC_OPEN_MAX); in bg() 214 if (fdmax <= 0) in bg() 215 fdmax = 3; in bg() 217 for (i = 0; i < fdmax; i++) in bg()
|
/dports/mail/emailrelay/emailrelay-1.9/src/gnet/ |
H A D | geventloop_unix.cpp | 54 int fdmax( int = 0 ) const ; 167 int GNet::FdSet::fdmax( int n ) const in fdmax() function in GNet::FdSet 261 int n = m_read_set.fdmax( m_write_set.fdmax(m_exception_set.fdmax()) ) ; in runOnce()
|
/dports/security/nmap/nmap-7.91/ncat/ |
H A D | ncat_listen.c | 275 logdebug("selecting, fdmax %d\n", client_fdlist.fdmax); in ncat_listen_stream() 285 fds_ready = fselect(client_fdlist.fdmax + 1, &readfds, &writefds, NULL, tvp); in ncat_listen_stream() 629 int fdmax, nbytes, n, fds_ready; in ncat_listen_dgram() local 736 logdebug("selecting, fdmax %d\n", listen_fdlist.fdmax); in ncat_listen_dgram() 744 fds_ready = fselect(listen_fdlist.fdmax + 1, &fds, NULL, NULL, tvp); in ncat_listen_dgram() 746 fds_ready = fselect(listen_fdlist.fdmax + 1, &fds, NULL, NULL, NULL); in ncat_listen_dgram() 759 for (i = 0; i <= listen_fdlist.fdmax && fds_ready > 0; i++) { in ncat_listen_dgram() 861 fdmax = socket_n; in ncat_listen_dgram() 875 fds_ready = fselect(fdmax + 1, &fds, NULL, NULL, tvp); in ncat_listen_dgram() 1075 for (i = 0; i <= broadcast_fdlist.fdmax; i++) { in shutdown_sockets() [all …]
|
/dports/databases/evolution-data-server/evolution-data-server-3.42.1/src/camel/ |
H A D | camel-file-utils.c | 456 gint errnosav, flags, fdmax; in camel_read() local 469 fdmax = MAX (fd, cancel_fd) + 1; in camel_read() 474 res = select (fdmax, &rdset, 0, 0, &tv); in camel_read() 552 gint errnosav, flags, fdmax; in camel_write() local 558 fdmax = MAX (fd, cancel_fd) + 1; in camel_write() 571 res = select (fdmax, &rdset, &wrset, 0, &tv); in camel_write()
|
/dports/security/pkcs11-tools/pkcs11-tools-2.5.0/.gnulib/lib/ |
H A D | execve.c | 61 unsigned int fdmax = _getmaxstdio (); in execve() local 63 for (fd = 0; fd < fdmax; fd++) in execve()
|
/dports/games/kodi-addon-game.libretro.picodrive/game.libretro.picodrive-1.97.0.19-Matrix/depends/common/picodrive/platform/libpicofe/linux/ |
H A D | plat.c | 145 int i, ret, fdmax = -1; in plat_wait_event() local 156 if (fds_hnds[i] > fdmax) fdmax = fds_hnds[i]; in plat_wait_event() 160 ret = select(fdmax + 1, &fdset, NULL, NULL, timeout); in plat_wait_event()
|
/dports/devel/m4/m4-1.4.19/lib/ |
H A D | windows-spawn.c | 316 unsigned int fdmax = _getmaxstdio (); in init_inheritable_handles() local 317 if (fdmax < 3) in init_inheritable_handles() 318 fdmax = 3; in init_inheritable_handles() 319 for (; fdmax > 3; fdmax--) in init_inheritable_handles() 321 unsigned int fd = fdmax - 1; in init_inheritable_handles() 338 handles_count = fdmax; in init_inheritable_handles()
|