/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/features/ |
H A D | poll | 28 int sfd[2]; 34 socketpair(AF_UNIX, SOCK_STREAM, 0, sfd) < 0 || 35 shutdown(sfd[1], SHUT_RD) < 0 || 36 shutdown(sfd[0], SHUT_WR) < 0) 43 close(sfd[1]); 46 sfpkrd(sfd[0], buf, sizeof(buf), '\n', -1, 1) < 0) 52 close(sfd[0]); 54 write(sfd[1], msg, sizeof(msg) - 1); 58 close(sfd[0]); 60 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sfd) < 0 || [all …]
|
/illumos-gate/usr/src/lib/libstmfproxy/common/ |
H A D | stmftransport.c | 81 int sfd, new_sfd; in pt_socket_connect() local 88 if ((sfd = socket(AF_INET, SOCK_STREAM, 0)) <= 0) { in pt_socket_connect() 96 if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &on, in pt_socket_connect() 109 if (bind(sfd, (struct sockaddr *)&serv_addr, in pt_socket_connect() 116 (void) listen(sfd, 5); in pt_socket_connect() 118 new_sfd = accept(sfd, (struct sockaddr *)&cli_addr, &cliLen); 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() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/common/ |
H A D | openpty.c | 31 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 D | ipft_sn.c | 47 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 D | printf-15294.c | 69 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 D | isatty.c | 38 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 D | recon.c | 666 { 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 D | dapl_tavor_hca.c | 314 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/test/os-tests/tests/sockfs/ |
H A D | timeouts.c | 144 int sfd, cfd; in main() local 149 sfd = server(sockpath); in main() 195 close(sfd); in main()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipsecalgs.c | 246 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 D | ipsecconf.c | 598 int sfd; in fetch_algorithms() local 610 sfd = get_pf_pol_socket(); in fetch_algorithms() 611 if (sfd < 0) { in fetch_algorithms() 620 cnt = write(sfd, &msg, sizeof (msg)); in fetch_algorithms() 629 cnt = read(sfd, reply_buf, sizeof (reply_buf)); 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 2618 sfd = get_pf_pol_socket(); in pfp_delete_rule() 2619 if (sfd < 0) { in pfp_delete_rule() [all …]
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipfs.c | 461 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 D | fork.c | 530 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()
|
/illumos-gate/usr/src/test/util-tests/tests/grep_xpg4/files/ |
H A D | gout.t10.1 | 10 sfd;
|
H A D | gout.t10.3 | 10 7:sfd;
|
H A D | gout.t10.5 | 10 0:7:sfd;
|
H A D | gout.t10.6 | 10 test.o.0:7:sfd;
|
H A D | gout.t10.7 | 10 test.o.0:0:7:sfd;
|
/illumos-gate/usr/src/lib/libcmdutils/common/ |
H A D | process_xattrs.c | 37 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/sysdef/ |
H A D | sysdef.c | 540 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/truss/ |
H A D | ramdata.c | 47 int sfd; /* shared tmp file descriptor */ variable
|
H A D | main.c | 596 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 D | ramdata.h | 131 extern int sfd; /* file descriptor to shared tmp file */
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | cmds.c | 32 int sfd; variable 76 if ((sfd = creat(cp, 0666)) < 0) { in getfl() 88 transfer(buf, sfd, value(EOFREAD)); in getfl()
|
H A D | tip.h | 238 extern int sfd; /* for ~< operation */
|