Searched refs:F_DUPFD (Results 1 - 25 of 25) sorted by relevance

/ast/src/lib/libast/comp/
H A Ddup2.c43 return(fcntl(d1, F_DUPFD, d2));
H A Dfcntl.c63 #if F_DUPFD >= _ast_F_LOCAL
64 case F_DUPFD:
/ast/src/cmd/3d/
H A Dfcntl3d.c43 if (op == F_DUPFD && state.file[n].reserved)
50 case F_DUPFD:
H A Dclose3d.c47 if ((nfd = FCNTL(fd, F_DUPFD, fd + 1)) < 0)
H A Dfork3d.c79 FCNTL(fd, F_DUPFD, mp->fs->fd);
H A Dlib.c103 state.table.fd = FCNTL(fds[0], F_DUPFD, TABLE_FD);
125 state.table.fd = FCNTL(n, F_DUPFD, TABLE_FD);
H A Dinit.c740 n = n ? -1 : FCNTL(TABLE_FD, F_DUPFD, RESERVED_FD);
743 if (state.table.fd <= 0 || FCNTL(state.table.fd, F_DUPFD, TABLE_FD) < 0)
1234 state.table.fd = FCNTL(i, F_DUPFD, TABLE_FD);
1263 if (state.fs[FS_option].fd == 2 && (i = FCNTL(2, F_DUPFD, RESERVED_FD)) >= 0)
H A Dfs.c325 if ((state.ret = FCNTL(fd, F_DUPFD, 0)) < 0)
/ast/src/lib/libast/features/
H A Dfcntl.c106 #ifndef F_DUPFD
109 if (F_DUPFD > f_local) f_local = F_DUPFD;
171 #ifndef F_DUPFD
172 printf("#define F_DUPFD %d\n", ++f_local);
225 printf("#define F_dupfd_cloexec F_DUPFD\n");
/ast/src/lib/libast/sfio/
H A Dsfsetfd.c39 #ifdef F_DUPFD /* the simple case */
40 while((dupfd = sysfcntlf(fd,F_DUPFD,newfd)) < 0 && errno == EINTR)
/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c200 if(fcntl(n,F_DUPFD,FDIN) != FDIN)
390 if(fcntl(n,F_DUPFD,FDVERIFY) != FDVERIFY)
452 if(fcntl(pv[1],F_DUPFD,FDSYNC) != FDSYNC)
H A Dsubshell.c125 if((sp->tmpfd = fd = fcntl(1,F_DUPFD,10)) >= 0)
148 if((sh_fcntl(fds[1],F_DUPFD, 1)) != 1)
557 sp->pwdfd = fcntl(n,F_DUPFD,10);
696 if (fcntl(sp->tmpfd,F_DUPFD,1) != 1)
H A Dio.c599 fd = sh_fcntl(f2,F_DUPFD,10);
659 if((f2 = sh_fcntl(f1,F_DUPFD, f2)) < 0)
935 if((pv[out]=sh_fcntl(fd,F_DUPFD,10)) >=10)
1296 if((fd=sh_fcntl(dupfd,F_DUPFD,3))<0)
1481 if((r=sh_fcntl(fd,F_DUPFD,10)) > 0)
1511 if((fn=fcntl(fd,F_DUPFD,10)) < 0)
1691 if((savefd = sh_fcntl(origfd, F_DUPFD, 10)) < 0 && errno!=EBADF)
1781 sh_fcntl(savefd, F_DUPFD, origfd);
2560 case F_DUPFD:
H A Dmain.c379 if(fno < 10 && ((r=sh_fcntl(fno,F_DUPFD,10))>=10))
H A Dxec.c119 subpipe[2] = fcntl(1,F_DUPFD,10);
123 fcntl(subpipe[1],F_DUPFD,1);
131 fcntl(1,F_DUPFD,i);
143 fcntl(subpipe[2], F_DUPFD, 1);
151 fcntl(1, F_DUPFD, n);
3625 int fd=fcntl(shp->cpipe[1],F_DUPFD,10);
H A Dpath.c1308 fcntl(n, F_DUPFD, 10);
/ast/src/cmd/ksh93/bltins/
H A Dmkservice.c287 fd = fcntl(accept_fd, F_DUPFD, 10);
449 if((sp->fd = fcntl(fd, F_DUPFD, 10))>=10)
/ast/src/lib/libast/misc/
H A Dprocopen.c181 if (fcntl(arg1, F_DUPFD, arg2) != arg2)
204 if (arg1 != i && arg2 != i && fcntl(arg1, F_DUPFD, i) != i)
267 #if F_dupfd_cloexec == F_DUPFD
271 if (fcntl(arg1, F_DUPFD, arg2) != arg2)
354 fcntl(m->arg.fd.child.fd, F_DUPFD, m->arg.fd.parent.fd);
359 fcntl(m->save, F_DUPFD, m->arg.fd.child.fd);
/ast/src/cmd/ie/
H A Dio.h180 # define F_DUPFD 0 macro
183 #endif /* F_DUPFD */
H A Dhistory.c314 fdo= io_renumber(hist_ptr->fixfd,fcntl(hist_ptr->fixfd,F_DUPFD,USERIO));
/ast/src/cmd/ksh93/edit/
H A Dhistory.c154 if((n = fcntl(acctfd, F_DUPFD, 10)) >= 0)
273 if((n=fcntl(fd,F_DUPFD,10))>=0)
389 if((n = sh_fcntl(fd,F_DUPFD, 10)) >= 0)
1201 if(fcntl(newfd, F_DUPFD, oldfd) !=oldfd)
/ast/src/lib/libtksh/src/
H A Dfilecmd.c848 fdOut = fcntl(sffileno(iop), F_DUPFD,10);
854 fdIn = fcntl(sffileno(iop), F_DUPFD,10);
/ast/src/lib/libcoshell/
H A Dcoexec.c60 if (fds[i] < 10 && (j = fcntl(fds[i], F_DUPFD, 10)) >= 0)
H A Dcoopen.c209 if (pio[i] < 10 && (n = fcntl(pio[i], F_DUPFD, 10)) >= 0)
/ast/src/lib/libast/vmalloc/
H A Dmalloc.c1177 if (fd < FD_PRIVATE && (pd = fcntl(fd, F_DUPFD, FD_PRIVATE)) >= 0)

Completed in 554 milliseconds