Home
last modified time | relevance | path

Searched refs:datafd (Results 1 – 25 of 72) sorted by relevance

123

/dports/ftp/wzdftpd/wzdftpd-0.8.3/libwzd-core/
H A Dwzd_data.c106 context->datafd = -1; in data_close()
156 if (context->datafd==(fd_t)-1 || !fd_is_valid(context->datafd)) { in data_set_fd()
161 FD_SET(context->datafd,fdw); in data_set_fd()
162 FD_SET(context->datafd,fde); in data_set_fd()
163 return context->datafd; in data_set_fd()
170 if (context->datafd==(fd_t)-1 || !fd_is_valid(context->datafd)) { in data_set_fd()
175 FD_SET(context->datafd,fdr); in data_set_fd()
177 return context->datafd; in data_set_fd()
199 return context->datafd; in data_check_fd()
327 int maxfd = context->datafd; in do_local_retr()
[all …]
/dports/dns/knot-resolver/knot-resolver-5.4.3/daemon/
H A Dtls_ephemeral_credentials.c60 int datafd = -1; local
79 datafd = open(EPHEMERAL_PRIVKEY_FILENAME, O_RDONLY);
80 if (datafd != -1) {
83 if (fstat(datafd, &stat)) {
93 bytes_read = read(datafd, data.data, stat.st_size);
103 close(datafd);
104 datafd = -1;
111 if (datafd == -1) {
130 if (datafd == -1) {
145 if (datafd != -1) {
[all …]
/dports/sysutils/u-boot-utilite/u-boot-2015.07/tools/palmtreo680/
H A Dflash_u-boot.c47 int devfd, datafd, num_blocks, block; in main() local
67 datafd = open(argv[1], O_RDONLY); in main()
68 if (datafd == -1) { in main()
86 file_size = lseek(datafd, 0, SEEK_END); in main()
93 file_size = lseek(datafd, 0, SEEK_SET); in main()
112 close(datafd); in main()
132 ssize_t read_ret = read(datafd, buf, len); in main()
174 close(datafd); in main()
/dports/security/clamav/clamav-0.104.2/libclamav/
H A Dbinhex.c59 int in_data = 0, in_run = 0, datafd, resfd, ret = CL_CLEAN; in cli_binhex() local
71 if ((ret = cli_gentempfd(ctx->sub_tmpdir, &dname, &datafd)) != CL_SUCCESS) in cli_binhex()
75 close(datafd); in cli_binhex()
114 if (cli_writen(datafd, decoded, todo) != todo) { in cli_binhex()
120 if (lseek(datafd, 0, SEEK_SET) == -1) { in cli_binhex()
125 ret = cli_magic_scan_desc(datafd, dname, ctx, NULL); in cli_binhex()
178 if (lseek(datafd, 0, SEEK_SET) == -1) { in cli_binhex()
183 ret = cli_magic_scan_desc(datafd, dname, ctx, NULL); in cli_binhex()
265 close(datafd); in cli_binhex()
/dports/security/clamav-lts/clamav-0.103.5/libclamav/
H A Dbinhex.c59 int in_data = 0, in_run = 0, datafd, resfd, ret = CL_CLEAN; in cli_binhex() local
71 if ((ret = cli_gentempfd(ctx->sub_tmpdir, &dname, &datafd)) != CL_SUCCESS) in cli_binhex()
75 close(datafd); in cli_binhex()
114 if (cli_writen(datafd, decoded, todo) != todo) { in cli_binhex()
120 if (lseek(datafd, 0, SEEK_SET) == -1) { in cli_binhex()
125 ret = cli_magic_scan_desc(datafd, dname, ctx, NULL); in cli_binhex()
178 if (lseek(datafd, 0, SEEK_SET) == -1) { in cli_binhex()
183 ret = cli_magic_scan_desc(datafd, dname, ctx, NULL); in cli_binhex()
265 close(datafd); in cli_binhex()
/dports/ftp/quftp/quftp-1.0.7/
H A Dftp_data.c72 if ((connection->datafd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { in ftp_open_data_pasv()
85 if (connect(connection->datafd,(SOCKADDR *)&dataaddr, sizeof(dataaddr)) < 0){ in ftp_open_data_pasv()
95 if (connection->datafd) close(connection->datafd); in ftp_close_data()
96 connection->datafd = 0; in ftp_close_data()
107 n = read(connection->datafd, buffer, max_size); in ftp_read_data()
118 while ((n = read(connection->datafd, temp, 1)) > 0) { in ftp_read_data_line()
136 if ((n = write(connection->datafd, buffer, size)) < 0) { in ftp_write_data()
213 connection->datafd = accept(connection->dataconfd, (SOCKADDR *)&servaddr, &len); in ftp_wait_data()
/dports/devel/plan9port/plan9port-1f098efb7370a0b28306d10681e21883fb1c1507/src/cmd/lp/
H A Dlpdaemon.c46 int datafd[400], cntrlfd = -1; variable
252 datafd[filecnt] = tempfile(); in getfiles()
253 if (readfile(datafd[filecnt], bsize) < 0) { in getfiles()
254 close(datafd[filecnt]); in getfiles()
382 forklp(datafd[i]); in main()
405 datafd[0] = tempfile(); in main()
407 if (write(datafd[0], bp, blen) != blen) { in main()
411 if (write(datafd[0], "\n", 1) != 1) { in main()
442 datafd[0] = tempfile(); in main()
443 if(readfile(datafd[0], atoi((const char *)lnbuf)) < 0) { in main()
[all …]
H A Dlpsend.c240 int datafd; in main() local
259 datafd = tempfile(); in main()
260 bsize = prereadfile(datafd); in main()
284 if (seek(datafd, 0L, 0) < 0) { in main()
306 if ((i=pass(datafd, netfd, bsize)) != 0) { in main()
/dports/net/vde2/vde2-2.3.2/src/slirpvde/
H A Dslirpvde.c366 int datafd=0,ctlfd=0; in main() local
465 datafd = vde_datafd(conn); in main()
468 if (datafd < 0 || ctlfd < 0) in main()
471 datafd, ctlfd); in main()
505 datafd=ctlfd=STDIN_FILENO; in main()
531 FD_SET(datafd,&rs); in main()
533 if (datafd>nfds) nfds=datafd; in main()
538 if (FD_ISSET(datafd,&rs)) { in main()
556 if (FD_ISSET(datafd,&rs)) { in main()
557 nx=read(datafd,bufin,BUFSIZE); in main()
/dports/news/inn-current/inn-2.7-20211226/storage/tradindexed/
H A Dtdx-data.c197 if (data->datafd >= 0) in file_open_data()
198 close(data->datafd); in file_open_data()
200 if (data->datafd < 0) in file_open_data()
202 fdflag_close_exec(data->datafd, true); in file_open_data()
223 data->datafd = -1; in tdx_data_new()
254 if (data->datafd >= 0) in tdx_data_open_files()
255 close(data->datafd); in tdx_data_open_files()
328 r = fstat(data->datafd, &st); in map_data()
407 r = fstat(data->datafd, &st); in stale_data()
915 if (data->datafd >= 0) in tdx_data_close()
[all …]
/dports/news/inn/inn-2.6.4/storage/tradindexed/
H A Dtdx-data.c197 if (data->datafd >= 0) in file_open_data()
198 close(data->datafd); in file_open_data()
200 if (data->datafd < 0) in file_open_data()
202 fdflag_close_exec(data->datafd, true); in file_open_data()
223 data->datafd = -1; in tdx_data_new()
254 if (data->datafd >= 0) in tdx_data_open_files()
255 close(data->datafd); in tdx_data_open_files()
328 r = fstat(data->datafd, &st); in map_data()
407 r = fstat(data->datafd, &st); in stale_data()
916 if (data->datafd >= 0) in tdx_data_close()
[all …]
/dports/sysutils/shlock/inn-2.6.4/storage/tradindexed/
H A Dtdx-data.c197 if (data->datafd >= 0) in file_open_data()
198 close(data->datafd); in file_open_data()
200 if (data->datafd < 0) in file_open_data()
202 fdflag_close_exec(data->datafd, true); in file_open_data()
223 data->datafd = -1; in tdx_data_new()
254 if (data->datafd >= 0) in tdx_data_open_files()
255 close(data->datafd); in tdx_data_open_files()
328 r = fstat(data->datafd, &st); in map_data()
407 r = fstat(data->datafd, &st); in stale_data()
916 if (data->datafd >= 0) in tdx_data_close()
[all …]
/dports/emulators/dolphin-emu/dolphin-3152428/Externals/libusb/libusb/os/
H A Dsunos_usb.c750 if (hpriv->eps[0].datafd > 0) { in sunos_usb_open_ep0()
758 if (hpriv->eps[0].datafd < 0) { in sunos_usb_open_ep0()
765 close(hpriv->eps[0].datafd); in sunos_usb_open_ep0()
766 hpriv->eps[0].datafd = -1; in sunos_usb_open_ep0()
781 if (hdev->eps[i].datafd != -1) { in sunos_usb_close_all_eps()
783 hdev->eps[i].datafd = -1; in sunos_usb_close_all_eps()
795 if (hdev->eps[0].datafd >= 0) { in sunos_usb_close_ep0()
796 close(hdev->eps[0].datafd); in sunos_usb_close_ep0()
798 hdev->eps[0].datafd = -1; in sunos_usb_close_ep0()
961 hpriv->eps[ep_index].datafd = fd; in sunos_check_device_and_status_open()
[all …]
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/vendor/github.com/karalabe/usb/libusb/libusb/os/
H A Dsunos_usb.c750 if (hpriv->eps[0].datafd > 0) { in sunos_usb_open_ep0()
758 if (hpriv->eps[0].datafd < 0) { in sunos_usb_open_ep0()
765 close(hpriv->eps[0].datafd); in sunos_usb_open_ep0()
766 hpriv->eps[0].datafd = -1; in sunos_usb_open_ep0()
781 if (hdev->eps[i].datafd != -1) { in sunos_usb_close_all_eps()
783 hdev->eps[i].datafd = -1; in sunos_usb_close_all_eps()
795 if (hdev->eps[0].datafd >= 0) { in sunos_usb_close_ep0()
796 close(hdev->eps[0].datafd); in sunos_usb_close_ep0()
798 hdev->eps[0].datafd = -1; in sunos_usb_close_ep0()
961 hpriv->eps[ep_index].datafd = fd; in sunos_check_device_and_status_open()
[all …]
/dports/net/vde2/vde2-2.3.2/src/vde_cryptcab/
H A Dvde_cryptcab_client.c192 int datafd; in recv_datagram() local
195 datafd = vde_datafd(p1->plug); in recv_datagram()
196 while(datafd < 0) { in recv_datagram()
200 datafd = vde_datafd(p1->plug); in recv_datagram()
205 pfd[1].fd = datafd; in recv_datagram()
/dports/net/vde2/vde2-2.3.2/src/lib/python/
H A DVdeStream_example.py12 p.register(v.datafd().fileno(), POLLIN)
16 if f == v.datafd().fileno() and (e & POLLIN):
H A DVdePlug_example.py11 p.register(v.datafd().fileno(), POLLIN)
15 if f == v.datafd().fileno() and (e & POLLIN):
H A DVdePlug.py59 self._data = os.fdopen(vdeplug_python.datafd(self._magic), 'wb+', os.O_NONBLOCK)
65 def datafd(self): member in VdePlug
/dports/ftp/smbftpd/smbftpd-2.4/ssl/
H A Ddataconn.c50 int ssl_dataconn_open(int datafd) in ssl_dataconn_open() argument
62 SSL_set_fd(ssl_data_con, datafd); in ssl_dataconn_open()
/dports/www/analog/analog-6.0/src/
H A Doutput.c408 datafd = (firstd >= 0)?(p->own->data[firstd]):0; in printtree()
417 (unsigned int)(datad % 60), (datecode_t)(datafd / 1440), in printtree()
418 (unsigned int)((datafd % 1440) / 60), in printtree()
419 (unsigned int)(datafd % 60)); in printtree()
553 datafd = (firstd >= 0)?(p->own->data[firstd]):0; in genrep()
562 (unsigned int)(datad % 60), (datecode_t)(datafd / 1440), in genrep()
563 (unsigned int)((datafd % 1440) / 60), in genrep()
564 (unsigned int)(datafd % 60)); in genrep()
575 datafd = (firstd >= 0)?(badp->data[firstd]):0; in genrep()
583 (unsigned int)((datafd % 1440) / 60), in genrep()
[all …]
/dports/emulators/qemu-guest-agent/qemu-5.0.1/qga/
H A Dcommands-posix.c2280 close(datafd[1]); in qmp_guest_set_user_password()
2297 close(datafd[0]); in qmp_guest_set_user_password()
2298 datafd[0] = -1; in qmp_guest_set_user_password()
2304 close(datafd[1]); in qmp_guest_set_user_password()
2305 datafd[1] = -1; in qmp_guest_set_user_password()
2328 close(datafd[0]); in qmp_guest_set_user_password()
2331 close(datafd[1]); in qmp_guest_set_user_password()
2996 close(datafd[0]); in qmp_guest_set_user_password()
2997 datafd[0] = -1; in qmp_guest_set_user_password()
3003 close(datafd[1]); in qmp_guest_set_user_password()
[all …]
/dports/comms/multimon-ng/multimon-ng-1.1.0/
H A Dxdisplay.c79 int datafd; member
328 close(cli[cnum].datafd); in sigchld_handler()
382 cli[cnum].datafd = datapipe[1]; in xdisp_start()
434 i = write(cli[cnum].datafd, bp, j); in xdisp_update()
/dports/ftp/pure-ftpd/pure-ftpd-1.0.50/src/
H A Dftpd.c863 datafd = -1; in do_ipv6_port()
2109 datafd = -1; in dopasv()
2119 if (datafd == -1) { in dopasv()
2146 datafd = -1; in dopasv()
2154 datafd = -1; in dopasv()
2164 datafd = -1; in dopasv()
2240 datafd = -1; in doport3()
2311 datafd = -1; in doport2()
2371 if (datafd == -1) { in opendata()
2459 fd = datafd; in opendata()
[all …]
/dports/net/dhcpcd/dhcpcd-9.4.1/src/
H A Dprivsep-root.c798 int logfd[2], datafd[2]; in ps_root_start() local
808 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_CXNB, 0, datafd) == -1) in ps_root_start()
810 if (ps_setbuf_fdpair(datafd) == -1) in ps_root_start()
813 if (ps_rights_limit_fdpair(datafd) == -1) in ps_root_start()
827 ctx->ps_data_fd = datafd[1]; in ps_root_start()
828 close(datafd[0]); in ps_root_start()
836 ctx->ps_data_fd = datafd[0]; in ps_root_start()
837 close(datafd[1]); in ps_root_start()
/dports/devel/libburn/libburn-1.5.4/libburn/
H A Dfile.c74 return read_full_buffer(fs->datafd, buffer, size); in file_read()
90 close(fs->datafd); in file_free()
103 if (fstat(fs->datafd, &buf) != 0) in file_size()
150 fs->datafd = fd1; in burn_file_source_new()
178 struct burn_source *burn_fd_source_new(int datafd, int subfd, off_t size) in burn_fd_source_new() argument
183 if (datafd == -1) in burn_fd_source_new()
188 fs->datafd = datafd; in burn_fd_source_new()

123