/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | poll.c | 34 ppoll(struct pollfd *_RESTRICT_KYWD fds, nfds_t nfd, argument 38 return (_pollsys(fds, nfd, tsp, sigmask)); 42 poll(struct pollfd *fds, nfds_t nfd, int timeout) argument 55 return (_pollsys(fds, nfd, tsp, NULL));
|
/illumos-gate/usr/src/cmd/sendmail/libmilter/ |
H A D | worker.c | 337 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] [all...] |
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipfs.c | 569 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); 705 int nfd = -1; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | netcat.c | 668 readwrite(int nfd) argument 679 pfd[0].fd = nfd; 691 (void) close(nfd); 699 if ((n = read(nfd, buf, plen)) < 0) 702 (void) shutdown(nfd, SHUT_RD); 707 atelnet(nfd, buf, n); 724 (void) shutdown(nfd, SHUT_WR); 728 if (atomicio(vwrite, nfd, buf, n) != n) 737 atelnet(int nfd, unsigned char *buf, unsigned int size) argument 761 if (atomicio(vwrite, nfd, obu [all...] |
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | support.c | 179 int nfd = *ofd; local 208 (*flp->fl_fptr)(&npath, &nfile, &nfd, _flags, &nelf, ref, off, 217 if ((npath != *opath) || (nfd != *ofd) || (nelf != *oelf)) { 219 *opath, npath, *ofd, nfd, *oelf, nelf)); 224 *ofd = nfd;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | trace.c | 278 int nfd; local 345 nfd = open(fn, O_CREAT|O_EXCL|O_WRONLY, 0644); 346 if (nfd != -1 && fstat(nfd, &stbuf) == -1) { 347 (void) close(nfd); 351 nfd = open(fn, O_APPEND|O_WRONLY, 0644); 356 if (nfd == -1 || (n_ftrace = fdopen(nfd, "a")) == NULL) { 361 if (nfd != -1) 362 (void) close(nfd); [all...] |
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | clnt_generic.c | 762 int nfd; local 764 if ((nfd = fcntl(fd, F_DUPFD, RPC_MINFD)) == -1) 767 if (t_sync(nfd) == -1) { 768 (void) close(nfd); 778 return (nfd);
|
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | elf_notes.c | 77 int nfd; local 85 nfd = 0; 90 nfd++; 97 v[0].p_filesz = (sizeof (Note) * (10 + 2 * nlwp + nzomb + nfd)) 110 + nfd * roundup(sizeof (prfdinfo_t), sizeof (Word));
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | ttymon.c | 533 int nfd = 0; local 540 nfd++; 543 return (nfd);
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_persist.c | 691 int nfd; local 706 if ((nfd = open(newfile, O_WRONLY | O_CREAT | O_TRUNC, 713 if ((nfp = fdopen(nfd, "w")) == NULL) { 715 (void) close(nfd);
|
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starfire/ |
H A D | cvcd.c | 125 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);
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | files.c | 730 const char *nname, int ofd, int nfd, Elf *oelf, Elf *nelf) 744 if (nfd != ofd) { 745 if (nfd == -1) 749 dbg_print(lml, MSG_INTL(MSG_FIL_FDCHANGE), ofd, nfd, str); 729 Dbg_file_modified(Lm_list *lml, const char *obj, const char *oname, const char *nname, int ofd, int nfd, Elf *oelf, Elf *nelf) argument
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdladm.c | 717 int nfd, lock_fd; local 748 if ((nfd = open(newfile, O_WRONLY | O_CREAT | O_TRUNC, 755 if ((nfp = fdopen(nfd, "w")) == NULL) { 756 (void) close(nfd); 768 if (fchmod(nfd, db_perms) < 0) { 777 if (fchown(nfd, UID_DLADM, GID_NETADM) < 0) {
|
H A D | libdlflow.c | 326 int nfd, fn_rc, lock_fd; local 354 if ((nfd = open(tmp_db_file, O_WRONLY|O_CREAT|O_TRUNC, 361 if ((nfp = fdopen(nfd, "w")) == NULL) { 362 (void) close(nfd); 402 if (fchmod(nfd, DLADM_FLOW_DB_PERMS) == -1) 405 if (fchown(nfd, DLADM_FLOW_DB_OWNER, DLADM_FLOW_DB_GROUP) == -1)
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socksyscalls.c | 446 int nfd; local 499 if (error = falloc(nvp, FWRITE|FREAD, &nfp, &nfd)) { 517 setf(nfd, nfp); 532 f_setfd(nfd, FD_CLOEXEC); 540 svs[0] = nfd; 543 (void) closeandsetf(nfd, NULL); 639 int nfd; local 683 if ((nfd = ufalloc(0)) == -1) { 690 setf(nfd, NULL); 714 setf(nfd, NUL [all...] |
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | flush.c | 938 int nfd = fcntl(fd, F_BADFD, action); local 939 if (nfd < 0 || nfd != fd)
|
/illumos-gate/usr/src/cmd/ptools/pfiles/ |
H A D | pfiles.c | 329 ulong_t nfd = rlim.rlim_cur; local 330 if (nfd == RLIM_INFINITY) 335 " Current rlimit: %lu file descriptors\n", nfd);
|
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | biosdisk.c | 157 int base, unit, nfd = 0; local 168 (nfd >= *(unsigned char *)PTOV(BIOS_NUMDRIVES))) 185 nfd++;
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_deleted.c | 176 s10_poll(sysret_t *rval, struct pollfd *fds, nfds_t nfd, int timeout) argument 190 fds, nfd, tsp, NULL));
|
/illumos-gate/usr/src/uts/common/inet/sockmods/ |
H A D | socksctp.c | 1669 int nfd; local 1699 if ((nfd = ufalloc(0)) == -1) { 1708 if (so_copyout(&nfd, (void *)arg, sizeof (nfd), 1774 setf(nfd, nfp); 1792 setf(nfd, NULL); 1805 setf(nfd, NULL);
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | io.c | 723 int nfd= -1; local 728 nfd = open(path,flags,st.st_mode); 731 nfd = open(path,flags); 732 if(nfd>=0) 734 fd = nfd;
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 2081 int nfd; local 2083 if ((nfd = open(_PATH_DEVNULL, O_RDONLY)) < 0) { 2087 if (nfd != STDIN_FILENO) { 2088 if (dup2(nfd, STDIN_FILENO) < 0) { 2093 (void) close(nfd);
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | scalls.c | 1009 _pollsys(struct pollfd *fds, nfds_t nfd, const timespec_t *timeout, argument 1017 rv = __pollsys(fds, nfd, timeout, sigmask);
|
/illumos-gate/usr/src/cmd/sgs/ar/common/ |
H A D | file.c | 1610 arwrite(const char *name, int nfd, const char *dst, size_t size) { argument 1611 if (write(nfd, dst, size) != size) {
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_printf.c | 809 dt_pfargd_t *pfd, *nfd = NULL; local 841 nfd->pfd_next = pfd; 847 nfd = pfd; 989 nfd->pfd_next = pfd; 1006 dt_pfargd_t *pfd, *nfd; local 1008 for (pfd = pfv->pfv_argv; pfd != NULL; pfd = nfd) { 1009 nfd = pfd->pfd_next;
|