Home
last modified time | relevance | path

Searched refs:fdnum (Results 1 – 25 of 39) sorted by relevance

12

/dports/textproc/fcitx5/fcitx5-5.0.11/test/
H A Dtestunixfd.cpp28 int fdnum = -1; in main() local
34 fdnum = fd.fd(); in main()
38 FCITX_ASSERT(!fd_is_valid(fdnum)); in main()
43 fdnum = fd.release(); in main()
46 FCITX_ASSERT(fd_is_valid(fdnum)); in main()
47 close(fdnum); in main()
48 FCITX_ASSERT(!fd_is_valid(fdnum)); in main()
53 fdnum = fd1.release(); in main()
56 FCITX_ASSERT(fd_is_valid(fdnum)); in main()
61 FCITX_ASSERT(!fd_is_valid(fdnum)); in main()
[all …]
/dports/news/inn/inn-2.6.4/lib/
H A Dreservedfd.c16 fdreserve(int fdnum) in fdreserve() argument
21 if (fdnum <= 0) { in fdreserve()
34 Reserved_fd = xmalloc(fdnum * sizeof(FILE *)); in fdreserve()
35 allocated = fdnum; in fdreserve()
37 if (allocated < fdnum) { in fdreserve()
38 Reserved_fd = xrealloc(Reserved_fd, fdnum * sizeof(FILE *)); in fdreserve()
39 allocated = fdnum; in fdreserve()
40 } else if (Maxfd > fdnum) { in fdreserve()
41 for (i = fdnum ; i < Maxfd ; i++) { in fdreserve()
46 for (i = start ; i < fdnum ; i++) { in fdreserve()
[all …]
/dports/news/inn-current/inn-2.7-20211226/lib/
H A Dreservedfd.c12 fdreserve(int fdnum) in fdreserve() argument
17 if (fdnum <= 0) { in fdreserve()
30 Reserved_fd = xmalloc(fdnum * sizeof(FILE *)); in fdreserve()
31 allocated = fdnum; in fdreserve()
33 if (allocated < fdnum) { in fdreserve()
34 Reserved_fd = xrealloc(Reserved_fd, fdnum * sizeof(FILE *)); in fdreserve()
35 allocated = fdnum; in fdreserve()
36 } else if (Maxfd > fdnum) { in fdreserve()
37 for (i = fdnum; i < Maxfd; i++) { in fdreserve()
42 for (i = start; i < fdnum; i++) { in fdreserve()
[all …]
/dports/sysutils/shlock/inn-2.6.4/lib/
H A Dreservedfd.c16 fdreserve(int fdnum) in fdreserve() argument
21 if (fdnum <= 0) { in fdreserve()
34 Reserved_fd = xmalloc(fdnum * sizeof(FILE *)); in fdreserve()
35 allocated = fdnum; in fdreserve()
37 if (allocated < fdnum) { in fdreserve()
38 Reserved_fd = xrealloc(Reserved_fd, fdnum * sizeof(FILE *)); in fdreserve()
39 allocated = fdnum; in fdreserve()
40 } else if (Maxfd > fdnum) { in fdreserve()
41 for (i = fdnum ; i < Maxfd ; i++) { in fdreserve()
46 for (i = start ; i < fdnum ; i++) { in fdreserve()
[all …]
/dports/misc/rump/buildrump.sh-b914579/src/lib/libc/rpc/
H A Dsvc_fdset.c69 int fdnum; member
182 fds->fdnum = FD_SETSIZE; in svc_pollfd_alloc()
186 svc_pollfd_init(fds->fdp, fds->fdnum); in svc_pollfd_alloc()
199 for (int i = 0; i < fds->fdnum; i++) in svc_pollfd_add()
213 svc_pollfd_init(pfd + fds->fdnum, FD_SETSIZE); in svc_pollfd_add()
214 pfd[fds->fdnum].fd = fd; in svc_pollfd_add()
215 fds->fdused = fds->fdnum + 1; in svc_pollfd_add()
217 fds->fdnum += FD_SETSIZE; in svc_pollfd_add()
230 for (int i = 0; i < fds->fdnum; i++) { in svc_pollfd_del()
334 fds->fdnum = fds->fdused = 0; in svc_fdset_zero()
[all …]
/dports/www/anyterm/anyterm-1.1.29/libpbe/include/
H A DFileMonitor.hh43 int fdnum; member in pbe::FileMonitor
48 fdnum(check_inotify_init()), in FileMonitor()
49 fd(fdnum,"inotify handle") in FileMonitor()
51 int rc = ::inotify_add_watch(fdnum,fn.c_str(),IN_MODIFY); in FileMonitor()
/dports/net-p2p/c-lightning/lightning-0.10.2/lightningd/
H A Dsubd.c217 if (fdnum == dev_disconnect_fd) { in subd()
221 if (fdnum == execfail[1]) { in subd()
226 if (!move_fd(actual_fd, fdnum)) in subd()
228 fdnum++; in subd()
234 if (fdnum == execfail[1]) { in subd()
240 dev_disconnect_fd = fdnum; in subd()
241 fdnum++; in subd()
246 if (!move_fd(execfail[1], fdnum)) in subd()
248 execfail[1] = fdnum; in subd()
249 fdnum++; in subd()
[all …]
/dports/sysutils/burp/burp-2.4.0/src/server/
H A Dmain.c896 for(int fdnum=SD_LISTEN_FDS_START; in socket_activated_init_listen_sockets() local
897 fdnum<SD_LISTEN_FDS_START+n; fdnum++) in socket_activated_init_listen_sockets()
906 fdnum, &addr)) in socket_activated_init_listen_sockets()
912 fdnum, &addr)) in socket_activated_init_listen_sockets()
919 logp("Strange socket activation fd: %d\n", fdnum); in socket_activated_init_listen_sockets()
923 fd=fdnum; in socket_activated_init_listen_sockets()
/dports/sysutils/burp-devel/burp-2.5.4/src/server/
H A Dmain.c896 for(int fdnum=SD_LISTEN_FDS_START; in socket_activated_init_listen_sockets() local
897 fdnum<SD_LISTEN_FDS_START+n; fdnum++) in socket_activated_init_listen_sockets()
906 fdnum, &addr)) in socket_activated_init_listen_sockets()
912 fdnum, &addr)) in socket_activated_init_listen_sockets()
919 logp("Strange socket activation fd: %d\n", fdnum); in socket_activated_init_listen_sockets()
923 fd=fdnum; in socket_activated_init_listen_sockets()
/dports/dns/totd/totd-1.5.1/
H A Dtotd.c449 int max_fd, fdnum, i; in totd_eventloop() local
538 fdnum = select (max_fd + 1, &fd_read, &fd_write, NULL, tvp); in totd_eventloop()
539 if (fdnum < 0) { in totd_eventloop()
/dports/irc/srvx/srvx-1.3.1/src/
H A Dioset.c255 int put_avail, nbr, fdnum; in ioset_buffered_read() local
291 fdnum = fd->fd; in ioset_buffered_read()
294 if (!fds[fdnum]) in ioset_buffered_read()
/dports/news/inn/inn-2.6.4/include/inn/
H A Dlibinn.h177 extern bool fdreserve(int fdnum);
/dports/sysutils/shlock/inn-2.6.4/include/inn/
H A Dlibinn.h177 extern bool fdreserve(int fdnum);
/dports/net/socat/socat-1.7.4.2/Config/
H A DMakefile.AIX-5-346 xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
65 xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
H A DMakefile.MacOSX-10-546 xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
65 xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
H A DMakefile.NetBSD-5-146 xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
65 xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
H A DMakefile.OpenBSD-4-346 xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
65 xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
H A DMakefile.Cygwin-1-5-2546 xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
65 xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
H A DMakefile.FreeBSD-6-146 xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
65 xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
H A DMakefile.Linux-2-6-2446 xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
65 xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
H A DMakefile.SunOS-5-1046 xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
65 xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
H A DMakefile.DragonFly-2-8-246 xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
65 xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
/dports/news/inn-current/inn-2.7-20211226/include/inn/
H A Dlibinn.h180 extern bool fdreserve(int fdnum);
/dports/net/socat/socat-1.7.4.2/
H A DMakefile.in46 xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \
64 xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \
/dports/www/websocat/websocat-1.9.0/src/
H A Dunix_peer.rs352 let fdnum: libc::c_int = match addr.to_str().map(|x|x.parse()) { in unix_listen_peer() localVariable
360 let l = unsafe { std::os::unix::net::UnixListener::from_raw_fd(fdnum) } ; in unix_listen_peer()

12