Home
last modified time | relevance | path

Searched refs:nfd (Results 1 – 25 of 26) sorted by relevance

12

/titanic_41/usr/src/cmd/sendmail/libmilter/
H A Dworker.c337 int nfd, rfd, i; local
392 nfd = 0;
395 pfd[nfd].fd = RD_PIPE;
396 pfd[nfd].events = MI_POLL_RD_FLAGS;
397 pfd[nfd].revents = 0;
398 nfd++;
419 if (nfd >= dim_pfd)
442 if (nfd < dim_pfd)
445 pfd[nfd].fd = ctx->ctx_sd;
446 pfd[nfd].events = MI_POLL_RD_FLAGS;
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Dpoll.c34 ppoll(struct pollfd *_RESTRICT_KYWD fds, nfds_t nfd, in ppoll() argument
38 return (_pollsys(fds, nfd, tsp, sigmask)); in ppoll()
42 poll(struct pollfd *fds, nfds_t nfd, int timeout) in poll() argument
55 return (_pollsys(fds, nfd, tsp, NULL)); in poll()
/titanic_41/usr/src/cmd/ipf/tools/
H A Dipfs.c569 int nfd, i; local
574 nfd = -1;
582 nfd = open(file, O_RDONLY);
583 if (nfd == -1) {
595 i = read(nfd, &ipn, sizeof(ipn));
598 close(nfd);
606 close(nfd);
618 i = read(nfd, s, n);
625 close(nfd);
662 close(nfd);
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dnetcat.c668 readwrite(int nfd) in readwrite() argument
679 pfd[0].fd = nfd; in readwrite()
691 (void) close(nfd); in readwrite()
699 if ((n = read(nfd, buf, plen)) < 0) in readwrite()
702 (void) shutdown(nfd, SHUT_RD); in readwrite()
707 atelnet(nfd, buf, n); in readwrite()
724 (void) shutdown(nfd, SHUT_WR); in readwrite()
728 if (atomicio(vwrite, nfd, buf, n) != n) in readwrite()
737 atelnet(int nfd, unsigned char *buf, unsigned int size) in atelnet() argument
761 if (atomicio(vwrite, nfd, obuf, 3) != 3) in atelnet()
/titanic_41/usr/src/cmd/sgs/libld/common/
H A Dsupport.c179 int nfd = *ofd; in ld_sup_open() local
208 (*flp->fl_fptr)(&npath, &nfile, &nfd, _flags, &nelf, ref, off, in ld_sup_open()
217 if ((npath != *opath) || (nfd != *ofd) || (nelf != *oelf)) { in ld_sup_open()
219 *opath, npath, *ofd, nfd, *oelf, nelf)); in ld_sup_open()
224 *ofd = nfd; in ld_sup_open()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dtrace.c278 int nfd; in set_tracefile() local
345 nfd = open(fn, O_CREAT|O_EXCL|O_WRONLY, 0644); in set_tracefile()
346 if (nfd != -1 && fstat(nfd, &stbuf) == -1) { in set_tracefile()
347 (void) close(nfd); in set_tracefile()
351 nfd = open(fn, O_APPEND|O_WRONLY, 0644); in set_tracefile()
356 if (nfd == -1 || (n_ftrace = fdopen(nfd, "a")) == NULL) { in set_tracefile()
361 if (nfd != -1) in set_tracefile()
362 (void) close(nfd); in set_tracefile()
366 if (fstat(nfd, &stbuf2) == -1 || !S_ISREG(stbuf2.st_mode) || in set_tracefile()
375 (void) dup2(nfd, STDOUT_FILENO); in set_tracefile()
[all …]
/titanic_41/usr/src/lib/libdladm/common/
H A Dlibdlflow.c326 int nfd, fn_rc, lock_fd; in i_dladm_flow_walk_rw_db() local
354 if ((nfd = open(tmp_db_file, O_WRONLY|O_CREAT|O_TRUNC, in i_dladm_flow_walk_rw_db()
361 if ((nfp = fdopen(nfd, "w")) == NULL) { in i_dladm_flow_walk_rw_db()
362 (void) close(nfd); in i_dladm_flow_walk_rw_db()
402 if (fchmod(nfd, DLADM_FLOW_DB_PERMS) == -1) in i_dladm_flow_walk_rw_db()
405 if (fchown(nfd, DLADM_FLOW_DB_OWNER, DLADM_FLOW_DB_GROUP) == -1) in i_dladm_flow_walk_rw_db()
H A Dlibdladm.c717 int nfd, lock_fd; in i_dladm_rw_db() local
748 if ((nfd = open(newfile, O_WRONLY | O_CREAT | O_TRUNC, in i_dladm_rw_db()
755 if ((nfp = fdopen(nfd, "w")) == NULL) { in i_dladm_rw_db()
756 (void) close(nfd); in i_dladm_rw_db()
768 if (fchmod(nfd, db_perms) < 0) { in i_dladm_rw_db()
777 if (fchown(nfd, UID_DLADM, GID_NETADM) < 0) { in i_dladm_rw_db()
/titanic_41/usr/src/uts/common/exec/elf/
H A Delf_notes.c77 int nfd; in setup_note_header() local
85 nfd = 0; in setup_note_header()
90 nfd++; in setup_note_header()
97 v[0].p_filesz = (sizeof (Note) * (9 + 2 * nlwp + nzomb + nfd)) in setup_note_header()
109 + nfd * roundup(sizeof (prfdinfo_t), sizeof (Word)); in setup_note_header()
/titanic_41/usr/src/lib/libnsl/rpc/
H A Dclnt_generic.c762 int nfd; in __rpc_raise_fd() local
764 if ((nfd = fcntl(fd, F_DUPFD, RPC_MINFD)) == -1) in __rpc_raise_fd()
767 if (t_sync(nfd) == -1) { in __rpc_raise_fd()
768 (void) close(nfd); in __rpc_raise_fd()
778 return (nfd); in __rpc_raise_fd()
/titanic_41/usr/src/lib/libipadm/common/
H A Dipadm_persist.c691 int nfd; in ipadm_rw_db() local
706 if ((nfd = open(newfile, O_WRONLY | O_CREAT | O_TRUNC, in ipadm_rw_db()
713 if ((nfp = fdopen(nfd, "w")) == NULL) { in ipadm_rw_db()
715 (void) close(nfd); in ipadm_rw_db()
/titanic_41/usr/src/cmd/cvcd/sparc/sun4u/starfire/
H A Dcvcd.c125 int nfd; local
210 if ((nfd = open(NODENAME, O_RDONLY)) > 0) {
211 if ((i = read(nfd, utsname.nodename, SYS_NMLN)) <= 0) {
216 (void) close(nfd);
/titanic_41/usr/src/cmd/ttymon/
H A Dttymon.c533 int nfd = 0; local
540 nfd++;
543 return (nfd);
/titanic_41/usr/src/uts/common/fs/sockfs/
H A Dsocksyscalls.c446 int nfd; in so_socketpair() local
499 if (error = falloc(nvp, FWRITE|FREAD, &nfp, &nfd)) { in so_socketpair()
517 setf(nfd, nfp); in so_socketpair()
532 f_setfd(nfd, FD_CLOEXEC); in so_socketpair()
540 svs[0] = nfd; in so_socketpair()
543 (void) closeandsetf(nfd, NULL); in so_socketpair()
639 int nfd; in accept() local
683 if ((nfd = ufalloc(0)) == -1) { in accept()
690 setf(nfd, NULL); in accept()
714 setf(nfd, NULL); in accept()
[all …]
/titanic_41/usr/src/cmd/sgs/liblddbg/common/
H A Dfiles.c730 const char *nname, int ofd, int nfd, Elf *oelf, Elf *nelf) in Dbg_file_modified() argument
744 if (nfd != ofd) { in Dbg_file_modified()
745 if (nfd == -1) in Dbg_file_modified()
749 dbg_print(lml, MSG_INTL(MSG_FIL_FDCHANGE), ofd, nfd, str); in Dbg_file_modified()
/titanic_41/usr/src/lib/libc/port/stdio/
H A Dflush.c938 int nfd = fcntl(fd, F_BADFD, action); in enable_extended_FILE_stdio() local
939 if (nfd < 0 || nfd != fd) in enable_extended_FILE_stdio()
/titanic_41/usr/src/cmd/zlogin/
H A Dzlogin.c2081 int nfd; in main() local
2083 if ((nfd = open(_PATH_DEVNULL, O_RDONLY)) < 0) { in main()
2087 if (nfd != STDIN_FILENO) { in main()
2088 if (dup2(nfd, STDIN_FILENO) < 0) { in main()
2093 (void) close(nfd); in main()
/titanic_41/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c321 ulong_t nfd = rlim.rlim_cur; in show_files() local
322 if (nfd == RLIM_INFINITY) in show_files()
327 " Current rlimit: %lu file descriptors\n", nfd); in show_files()
/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_printf.c809 dt_pfargd_t *pfd, *nfd = NULL; in dt_printf_create() local
841 nfd->pfd_next = pfd; in dt_printf_create()
847 nfd = pfd; in dt_printf_create()
989 nfd->pfd_next = pfd; in dt_printf_create()
1006 dt_pfargd_t *pfd, *nfd; in dt_printf_destroy() local
1008 for (pfd = pfv->pfv_argv; pfd != NULL; pfd = nfd) { in dt_printf_destroy()
1009 nfd = pfd->pfd_next; in dt_printf_destroy()
/titanic_41/usr/src/uts/common/inet/sockmods/
H A Dsocksctp.c1669 int nfd; in sosctp_ioctl() local
1699 if ((nfd = ufalloc(0)) == -1) { in sosctp_ioctl()
1708 if (so_copyout(&nfd, (void *)arg, sizeof (nfd), in sosctp_ioctl()
1774 setf(nfd, nfp); in sosctp_ioctl()
1792 setf(nfd, NULL); in sosctp_ioctl()
1805 setf(nfd, NULL); in sosctp_ioctl()
/titanic_41/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_deleted.c176 s10_poll(sysret_t *rval, struct pollfd *fds, nfds_t nfd, int timeout) in s10_poll() argument
190 fds, nfd, tsp, NULL)); in s10_poll()
/titanic_41/usr/src/lib/libshell/common/sh/
H A Dio.c723 int nfd= -1; in sh_open() local
728 nfd = open(path,flags,st.st_mode); in sh_open()
731 nfd = open(path,flags); in sh_open()
732 if(nfd>=0) in sh_open()
734 fd = nfd; in sh_open()
/titanic_41/usr/src/lib/libc/port/threads/
H A Dscalls.c1009 _pollsys(struct pollfd *fds, nfds_t nfd, const timespec_t *timeout, in _pollsys() argument
1017 rv = __pollsys(fds, nfd, timeout, sigmask); in _pollsys()
/titanic_41/usr/src/uts/common/io/iprb/
H A Diprb.c1120 iprb_dma_t *rfd, *nfd, *lfd; in iprb_rx_add() local
1133 nfd = &ip->rxb[next]; in iprb_rx_add()
1135 PUTRFD32(rfd, RFD_LNK_OFFSET, nfd->paddr); in iprb_rx_add()
/titanic_41/usr/src/cmd/sgs/ar/common/
H A Dfile.c1610 arwrite(const char *name, int nfd, const char *dst, size_t size) { in arwrite() argument
1611 if (write(nfd, dst, size) != size) { in arwrite()

12