Home
last modified time | relevance | path

Searched refs:sfd (Results 1 – 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/features/
H A Dpoll28 int sfd[2];
43 close(sfd[1]);
52 close(sfd[0]);
58 close(sfd[0]);
64 close(sfd[0]);
78 int sfd[2];
87 shutdown(sfd[1], 0) < 0)
90 dup(sfd[0]);
91 close(sfd[0]);
104 int sfd[2];
[all …]
/illumos-gate/usr/src/lib/libstmfproxy/common/
H A Dstmftransport.c81 int sfd, new_sfd; in pt_socket_connect() local
109 if (bind(sfd, (struct sockaddr *)&serv_addr, in pt_socket_connect()
116 (void) listen(sfd, 5); in pt_socket_connect()
128 (void) close(sfd); in pt_socket_connect()
143 (void) close(sfd); in pt_socket_connect()
149 (void) close(sfd); in pt_socket_connect()
156 while (connect(sfd, (struct sockaddr *)&sin, in pt_socket_connect()
158 (void) close(sfd); in pt_socket_connect()
161 sfd = socket(AF_INET, SOCK_STREAM, 0); in pt_socket_connect()
162 if (sfd < 0) { in pt_socket_connect()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/common/
H A Dopenpty.c31 int sfd; in openpty() local
53 sfd = open(name, O_RDWR | O_NOCTTY); in openpty()
54 if (sfd < 0) { in openpty()
60 if (ioctl(sfd, __I_PUSH_NOCTTY, "ptem") < 0 || in openpty()
61 ioctl(sfd, __I_PUSH_NOCTTY, "ldterm") < 0) { in openpty()
64 (void) close(sfd); in openpty()
67 *sfdp = sfd; in openpty()
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dipft_sn.c47 static int sfd = -1, s_type = -1; variable
60 if (sfd != -1)
61 return sfd;
80 sfd = fd;
90 return close(sfd); in snoop_close()
103 if (read(sfd, (char *)rec, sizeof(*rec)) != sizeof(*rec))
141 if (read(sfd, bufp, i) != i)
174 if (read(sfd, s, i) != i)
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dprintf-15294.c69 int mfd, sfd; in main() local
72 if (!openpty(&mfd, &sfd)) in main()
74 if (isatty(sfd) != 1) in main()
81 if ((sfp = fdopen(sfd, "w")) == NULL) in main()
H A Disatty.c38 int sfd, mfd; in main() local
109 if (!openpty(&mfd, &sfd)) { in main()
113 if (isatty(sfd) != 1) { in main()
128 (void) close(sfd); in main()
/illumos-gate/usr/src/cmd/filesync/
H A Drecon.c666 { int sfd, dfd; in samecompare() local
672 sfd = open(srcname, 0); in samecompare()
673 if (sfd < 0) in samecompare()
678 close(sfd); in samecompare()
683 count = read(sfd, srcbuf, COPY_BSIZE); in samecompare()
685 count = read(sfd, srcbuf, COPY_BSIZE)) { in samecompare()
706 close(sfd); in samecompare()
/illumos-gate/usr/src/lib/udapl/udapl_tavor/tavor/
H A Ddapl_tavor_hca.c314 int sfd, retval, af; in dapli_process_ia() local
332 sfd = socket(af, SOCK_DGRAM, 0); in dapli_process_ia()
333 if (sfd < 0) { in dapli_process_ia()
341 (void) close(sfd); in dapli_process_ia()
349 retval = ioctl(sfd, SIOCGLIFADDR, (caddr_t)&lifreq); in dapli_process_ia()
351 (void) close(sfd); in dapli_process_ia()
369 (void) close(sfd); in dapli_process_ia()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipsecalgs.c246 int sfd = socket(PF_POLICY, SOCK_RAW, PF_POLICY_V1); in kernel_synch() local
252 if (sfd < 0) { in kernel_synch()
295 cnt = write(sfd, sync_req_buf, req_len); in kernel_synch()
305 cnt = read(sfd, sync_req_buf, req_len); in kernel_synch()
326 (void) close(sfd); in kernel_synch()
332 int sfd = socket(PF_POLICY, SOCK_RAW, PF_POLICY_V1); in list_kernel_algs() local
345 if (sfd < 0) { in list_kernel_algs()
354 cnt = write(sfd, &msg, sizeof (msg)); in list_kernel_algs()
364 cnt = read(sfd, reply_buf, sizeof (reply_buf)); in list_kernel_algs()
375 (void) close(sfd); in list_kernel_algs()
H A Dipsecconf.c598 int sfd; in fetch_algorithms() local
611 if (sfd < 0) { in fetch_algorithms()
641 (void) close(sfd); in fetch_algorithms()
708 (void) close(sfd); in fetch_algorithms()
2615 int sfd; in pfp_delete_rule() local
2619 if (sfd < 0) { in pfp_delete_rule()
2682 (void) close(sfd); in pfp_delete_rule()
2698 int sfd; in ipsec_conf_flush() local
2708 if (sfd < 0) { in ipsec_conf_flush()
2781 int sfd; in ipsec_conf_admin() local
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipfs.c461 int sfd = -1, i; local
467 sfd = open(file, O_RDONLY, 0600);
468 if (sfd == -1) {
480 i = read(sfd, &ips, sizeof(ips));
483 close(sfd);
491 close(sfd);
529 close(sfd);
/illumos-gate/usr/src/cmd/svc/startd/
H A Dfork.c530 int efd, sfd; in fork_configd_thread() local
552 sfd = contract_open(ctid, "process", "status", O_RDONLY); in fork_configd_thread()
553 if (sfd < 0) { in fork_configd_thread()
558 if (err = ct_status_read(sfd, CTD_COMMON, &status)) { in fork_configd_thread()
563 startd_close(sfd); in fork_configd_thread()
571 startd_close(sfd); in fork_configd_thread()
H A Drestarter.c2229 int efd, sfd; in restarter_contracts_event_thread() local
2250 if ((sfd = contract_open(ctid, "process", "status", O_RDONLY)) in restarter_contracts_event_thread()
2256 if (err = ct_status_read(sfd, CTD_COMMON, &status)) { in restarter_contracts_event_thread()
2260 startd_close(sfd); in restarter_contracts_event_thread()
2272 startd_close(sfd); in restarter_contracts_event_thread()
/illumos-gate/usr/src/test/util-tests/tests/grep_xpg4/files/
H A Dgout.t10.110 sfd;
H A Dgout.t10.310 7:sfd;
H A Dgout.t10.510 0:7:sfd;
H A Dgout.t10.610 test.o.0:7:sfd;
H A Dgout.t10.710 test.o.0:0:7:sfd;
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c37 get_attrdirs(int indfd, int outdfd, char *attrfile, int *sfd, int *tfd) in get_attrdirs() argument
50 *sfd = fd1; in get_attrdirs()
/illumos-gate/usr/src/cmd/truss/
H A Dramdata.c47 int sfd; /* shared tmp file descriptor */ variable
H A Dmain.c596 sfd = open(tmps, O_CREAT|O_APPEND|O_EXCL|O_RDWR, 0600); in main()
597 if (sfd == -1) in main()
1676 if (write(sfd, buf, sizeof (fentry) + i + j) == -1) in child_to_file()
1694 if (write(sfd, buf, bufsz) == -1) in child_to_file()
1724 if (fstat(sfd, &fsi) == -1) in file_to_parent()
1730 if (pread(sfd, &ntry, sizeof (hdntry_t), c_offset) != in file_to_parent()
1747 if (pread(sfd, t, ntry.sz_lib, c_offset) != ntry.sz_lib) in file_to_parent()
1759 if (pread(sfd, s, ntry.sz_key, c_offset) != ntry.sz_key) in file_to_parent()
1780 if (pread(sfd, ncp, ntry.sz_key, c_offset) != in file_to_parent()
1839 if (fstat(sfd, &fsi) == -1) in file_to_parent()
H A Dramdata.h131 extern int sfd; /* file descriptor to shared tmp file */
/illumos-gate/usr/src/cmd/sysdef/
H A Dsysdef.c540 int sfd; in modules() local
642 if ((sfd = open(sorted_fname, O_RDWR|O_CREAT|O_EXCL, in modules()
703 if ((fp = fdopen(sfd, "r")) == NULL) { in modules()
/illumos-gate/usr/src/cmd/tip/
H A Dcmds.c32 int sfd; variable
76 if ((sfd = creat(cp, 0666)) < 0) { in getfl()
88 transfer(buf, sfd, value(EOFREAD)); in getfl()
H A Dtip.h238 extern int sfd; /* for ~< operation */

12