Searched refs:dupfd (Results 1 – 10 of 10) sorted by relevance
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfsetfd.c | 37 reg int dupfd; local 40 while((dupfd = sysfcntlf(fd,F_DUPFD,newfd)) < 0 && errno == EINTR) 42 return dupfd; 45 if((dupfd = sysdupf(fd)) < 0 || dupfd >= newfd) 46 return dupfd; 52 CLOSE(dupfd);
|
/illumos-gate/usr/src/test/libc-tests/tests/stdio/ |
H A D | fileno.c | 110 int fd, dupfd; in check_fdopen() local 125 if ((dupfd = dup2(fd, FNO_DUPFD)) != FNO_DUPFD) { in check_fdopen() 128 f = fdopen(dupfd, "r+"); in check_fdopen() 132 check_file(f, dupfd, "fdopen of dup2'd file"); in check_fdopen()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | open.c | 68 int fd, dupfd; in copen() local 250 dupfd = getminor(vp->v_rdev); in copen() 258 if ((fp = getf(dupfd)) == NULL) { in copen() 273 releasef(dupfd); in copen()
|
/illumos-gate/usr/src/cmd/varpd/ |
H A D | varpd.c | 172 int dupfd; in varpd_fd_setup() local 175 dupfd = open(_PATH_DEVNULL, O_RDONLY); in varpd_fd_setup() 176 if (dupfd < 0) in varpd_fd_setup() 179 if (dup2(dupfd, STDIN_FILENO) == -1) in varpd_fd_setup()
|
/illumos-gate/usr/src/cmd/sendmail/libmilter/ |
H A D | listener.c | 721 socket_t dupfd = INVALID_SOCKET; local 879 dupfd = fcntl(connfd, F_DUPFD, 256); 880 if (ValidSocket(dupfd) && SM_FD_OK_SELECT(dupfd)) 883 connfd = dupfd; 884 dupfd = INVALID_SOCKET;
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | io.c | 400 int dupfd; in restore() local 403 if ((dupfd = fdmap[i].dup_fd) > 0) in restore() 404 renamef(dupfd, fdmap[i].org_fd); in restore()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | io.c | 1268 int dupfd,toclose= -1; in sh_redirect() local 1273 dupfd = strtol(fname,&number,10); in sh_redirect() 1276 toclose = dupfd; in sh_redirect() 1279 if(*number || dupfd > IOUFD) in sh_redirect() 1284 VALIDATE_FD(shp, dupfd); in sh_redirect() 1285 if(shp->subshell && dupfd==1) in sh_redirect() 1291 dupfd = sffileno(sfstdout); in sh_redirect() 1293 else if(shp->sftable[dupfd]) in sh_redirect() 1294 sfsync(shp->sftable[dupfd]); in sh_redirect() 1295 if(dupfd!=1 && fn < 10) in sh_redirect() [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pcontrol.c | 453 dupfd(int fd, int dfd) in dupfd() function 577 (fd = dupfd(fd, 0)) < 0) { in Pxcreate() 587 (fd = dupfd(fd, 0)) < 0) { in Pxcreate() 597 (fd = dupfd(fd, 0)) < 0) { in Pxcreate() 885 (fd = dupfd(fd, 0)) < 0) { in Pgrab() 915 (fd = dupfd(fd, 0)) < 0) { in Pgrab() 936 (fd = dupfd(fd, 0)) < 0) { in Pgrab() 1584 (fd = dupfd(fd, P->asfd)) != P->asfd) { in Preopen() 1596 (fd = dupfd(fd, P->statfd)) != P->statfd) { in Preopen() 1608 (fd = dupfd(fd, P->ctlfd)) != P->ctlfd) { in Preopen() [all …]
|
H A D | Psyscall.c | 140 (fd = dupfd(fd, 0)) < 0) in Pcreate_agent() 146 (fd = dupfd(fd, 0)) < 0) in Pcreate_agent()
|
H A D | Pcontrol.h | 275 extern int dupfd(int, int);
|