/ast/src/lib/libast/comp/ |
H A D | dup2.c | 43 return(fcntl(d1, F_DUPFD, d2));
|
H A D | fcntl.c | 63 #if F_DUPFD >= _ast_F_LOCAL 64 case F_DUPFD:
|
/ast/src/cmd/3d/ |
H A D | fcntl3d.c | 43 if (op == F_DUPFD && state.file[n].reserved) 50 case F_DUPFD:
|
H A D | close3d.c | 47 if ((nfd = FCNTL(fd, F_DUPFD, fd + 1)) < 0)
|
H A D | fork3d.c | 79 FCNTL(fd, F_DUPFD, mp->fs->fd);
|
H A D | lib.c | 103 state.table.fd = FCNTL(fds[0], F_DUPFD, TABLE_FD); 125 state.table.fd = FCNTL(n, F_DUPFD, TABLE_FD);
|
H A D | init.c | 740 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 D | fs.c | 325 if ((state.ret = FCNTL(fd, F_DUPFD, 0)) < 0)
|
/ast/src/lib/libast/features/ |
H A D | fcntl.c | 106 #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 D | sfsetfd.c | 39 #ifdef F_DUPFD /* the simple case */ 40 while((dupfd = sysfcntlf(fd,F_DUPFD,newfd)) < 0 && errno == EINTR)
|
/ast/src/cmd/ksh93/sh/ |
H A D | suid_exec.c | 200 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 D | subshell.c | 125 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 D | io.c | 599 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 D | main.c | 379 if(fno < 10 && ((r=sh_fcntl(fno,F_DUPFD,10))>=10))
|
H A D | xec.c | 119 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 D | path.c | 1308 fcntl(n, F_DUPFD, 10);
|
/ast/src/cmd/ksh93/bltins/ |
H A D | mkservice.c | 287 fd = fcntl(accept_fd, F_DUPFD, 10); 449 if((sp->fd = fcntl(fd, F_DUPFD, 10))>=10)
|
/ast/src/lib/libast/misc/ |
H A D | procopen.c | 181 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 D | io.h | 180 # define F_DUPFD 0 macro 183 #endif /* F_DUPFD */
|
H A D | history.c | 314 fdo= io_renumber(hist_ptr->fixfd,fcntl(hist_ptr->fixfd,F_DUPFD,USERIO));
|
/ast/src/cmd/ksh93/edit/ |
H A D | history.c | 154 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 D | filecmd.c | 848 fdOut = fcntl(sffileno(iop), F_DUPFD,10); 854 fdIn = fcntl(sffileno(iop), F_DUPFD,10);
|
/ast/src/lib/libcoshell/ |
H A D | coexec.c | 60 if (fds[i] < 10 && (j = fcntl(fds[i], F_DUPFD, 10)) >= 0)
|
H A D | coopen.c | 209 if (pio[i] < 10 && (n = fcntl(pio[i], F_DUPFD, 10)) >= 0)
|
/ast/src/lib/libast/vmalloc/ |
H A D | malloc.c | 1177 if (fd < FD_PRIVATE && (pd = fcntl(fd, F_DUPFD, FD_PRIVATE)) >= 0)
|