Searched refs:sfd (Results 1 - 20 of 20) sorted by relevance

/illumos-gate/usr/src/lib/libstmfproxy/common/
H A Dstmftransport.c77 int sfd, new_sfd; local
84 if ((sfd = socket(AF_INET, SOCK_STREAM, 0)) <= 0) {
92 if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &on,
105 if (bind(sfd, (struct sockaddr *)&serv_addr,
112 (void) listen(sfd, 5);
114 new_sfd = accept(sfd, (struct sockaddr *)&cli_addr, &cliLen);
124 close(sfd);
139 (void) close(sfd);
145 (void) close(sfd);
152 while (connect(sfd, (struc
[all...]
/illumos-gate/usr/src/cmd/ipf/lib/common/
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);
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/cmd/filesync/
H A Drecon.c666 { int sfd, dfd; local
672 sfd = open(srcname, 0);
673 if (sfd < 0)
678 close(sfd);
683 count = read(sfd, srcbuf, COPY_BSIZE);
685 count = read(sfd, srcbuf, COPY_BSIZE)) {
706 close(sfd);
/illumos-gate/usr/src/cmd/truss/
H A Dramdata.c47 int sfd; /* shared tmp file descriptor */ variable
H A Dramdata.h131 extern int sfd; /* file descriptor to shared tmp file */
H A Dmain.c595 sfd = open(tmps, O_CREAT|O_APPEND|O_EXCL|O_RDWR, 0600);
596 if (sfd == -1)
1671 if (write(sfd, buf, sizeof (fentry) + i + j) == -1)
1689 if (write(sfd, buf, bufsz) == -1)
1719 if (fstat(sfd, &fsi) == -1)
1725 if (pread(sfd, &ntry, sizeof (hdntry_t), c_offset) !=
1742 if (pread(sfd, t, ntry.sz_lib, c_offset) != ntry.sz_lib)
1754 if (pread(sfd, s, ntry.sz_key, c_offset) != ntry.sz_key)
1775 if (pread(sfd, ncp, ntry.sz_key, c_offset) !=
1834 if (fstat(sfd,
[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/lib/udapl/udapl_tavor/tavor/
H A Ddapl_tavor_hca.c313 int sfd, retval, af; local
331 sfd = socket(af, SOCK_DGRAM, 0);
332 if (sfd < 0) {
340 (void) close(sfd);
348 retval = ioctl(sfd, SIOCGLIFADDR, (caddr_t)&lifreq);
350 (void) close(sfd);
368 (void) close(sfd);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipsecalgs.c246 int sfd = socket(PF_POLICY, SOCK_RAW, PF_POLICY_V1); local
252 if (sfd < 0) {
295 cnt = write(sfd, sync_req_buf, req_len);
305 cnt = read(sfd, sync_req_buf, req_len);
326 (void) close(sfd);
332 int sfd = socket(PF_POLICY, SOCK_RAW, PF_POLICY_V1); local
345 if (sfd < 0) {
354 cnt = write(sfd, &msg, sizeof (msg));
364 cnt = read(sfd, reply_buf, sizeof (reply_buf));
375 (void) close(sfd);
[all...]
H A Dipsecconf.c598 int sfd; local
610 sfd = get_pf_pol_socket();
611 if (sfd < 0) {
620 cnt = write(sfd, &msg, sizeof (msg));
629 cnt = read(sfd, reply_buf, sizeof (reply_buf));
641 (void) close(sfd);
708 (void) close(sfd);
2615 int sfd; local
2618 sfd = get_pf_pol_socket();
2619 if (sfd <
2698 int sfd; local
2781 int sfd; local
[all...]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dfork.c530 int efd, sfd; local
552 sfd = contract_open(ctid, "process", "status", O_RDONLY);
553 if (sfd < 0) {
558 if (err = ct_status_read(sfd, CTD_COMMON, &status)) {
563 startd_close(sfd);
571 startd_close(sfd);
H A Drestarter.c2228 int efd, sfd; local
2249 if ((sfd = contract_open(ctid, "process", "status", O_RDONLY))
2255 if (err = ct_status_read(sfd, CTD_COMMON, &status)) {
2259 startd_close(sfd);
2271 startd_close(sfd);
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c36 get_attrdirs(int indfd, int outdfd, char *attrfile, int *sfd, int *tfd) argument
49 *sfd = fd1;
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dslice.c532 int sfd; local
535 if ((sfd = open(sp->devpath, O_RDONLY|O_NDELAY)) >= 0) {
536 if (ioctl(sfd, DKIOCINFO, &dkinfo) >= 0) {
539 (void) close(sfd);
/illumos-gate/usr/src/cmd/tip/
H A Dtip.h248 int sfd; /* for ~< operation */ variable
H A Dcmds.c66 if ((sfd = creat(cp, 0666)) < 0) {
78 transfer(buf, sfd, value(EOFREAD));
/illumos-gate/usr/src/cmd/sysdef/
H A Dsysdef.c542 int sfd; local
644 if ((sfd = open(sorted_fname, O_RDWR|O_CREAT|O_EXCL,
698 * A note on data synchronization. We opened sfd above,
702 * another file. We have never read from sfd, there
705 if ((fp = fdopen(sfd, "r")) == NULL) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dsys-solaris.c3063 int sfd; local
3092 sfd = open(pty_name, O_RDWR);
3093 if (sfd < 0) {
3098 if (myioctl(sfd, I_PUSH, "ptem") < 0) {
3101 dbglog("Using %s; master fd %d, slave fd %d", pty_name, mfd, sfd);
3106 *slave_fdp = sfd;
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs.c159 int dfd, int sfd, int remaining);
2934 write_rest(bpb_t *wbpb, char *efn, int dfd, int sfd, int remaining) argument
2951 if ((rstat = read(sfd, buf, BPSEC)) < 0) {
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmap.c4400 SM_FILE_T *sfd; local
4424 sfd = safefopen(ldapmap_dequote(lmap->ldap_secret),
4426 if (sfd == NULL)
4433 sfd, TimeOuts.to_fileopen,
4435 (void) sm_io_close(sfd, SM_TIME_DEFAULT);

Completed in 173 milliseconds