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

12

/ast/src/cmd/3d/
H A Dfcntl3d.c56 if (!(n & FD_CLOEXEC))
H A Dlicense.c81 fcntl(lic, F_SETFD, FD_CLOEXEC);
H A Dexecve3d.c142 if ((fp->flags & FILE_OPEN) && ((fp->flags & FILE_CLOEXEC) || (size = FCNTL(fp - state.file, F_GETFD, NiL)) >= 0 && (size & FD_CLOEXEC)) && !FSTAT(fp - state.file, &state.path.st))
H A Dlib.c502 if (ffd & FD_CLOEXEC)
H A Dvcs.c480 FCNTL(fd, F_SETFD, FD_CLOEXEC);
/ast/src/lib/libast/dir/
H A Dopendir.c59 fcntl(fd, F_SETFD, FD_CLOEXEC) ||
/ast/src/lib/libast/comp/
H A Dfcntl.c77 op = ioctl(fd, n == FD_CLOEXEC ? FIOCLEX : FIONCLEX, 0);
H A Dspawnveg.c193 fcntl(err[0], F_SETFD, FD_CLOEXEC);
194 fcntl(err[1], F_SETFD, FD_CLOEXEC);
H A Dsyslog.c274 fcntl(log.fd, F_SETFD, FD_CLOEXEC);
/ast/src/lib/libcs/
H A Dcsname.c73 for (i = fd; i < fd + 3 && fcntl(i, F_SETFD, FD_CLOEXEC) < 0; i++);
H A Dcssend.c196 else fcntl(j, F_SETFD, FD_CLOEXEC);
H A Dmsguser.c123 fcntl(msg_ack.fd, F_SETFD, FD_CLOEXEC);
/ast/src/lib/libast/features/
H A Dfcntl.c101 #ifndef FD_CLOEXEC
102 printf("#define FD_CLOEXEC 1\n");
/ast/src/lib/libast/misc/
H A Dprocopen.c268 fcntl(m->save, F_SETFD, FD_CLOEXEC);
280 fcntl(arg1, F_SETFD, FD_CLOEXEC);
362 fcntl(m->arg.fd.child.fd, F_SETFD, FD_CLOEXEC);
879 fcntl(proc->rfd, F_SETFD, FD_CLOEXEC);
881 fcntl(proc->wfd, F_SETFD, FD_CLOEXEC);
/ast/src/lib/libcoshell/
H A Dcoopen.c357 fcntl(pio[1], F_SETFD, FD_CLOEXEC);
358 fcntl(pio[2], F_SETFD, FD_CLOEXEC);
H A Dcoexec.c77 fcntl(cs->fd, F_SETFD, FD_CLOEXEC);
/ast/src/cmd/ksh93/edit/
H A Dhistory.c172 fcntl(acctfd,F_SETFD,FD_CLOEXEC);
303 fcntl(fd,F_SETFD,FD_CLOEXEC);
397 fcntl(fd,F_SETFD,FD_CLOEXEC);
1203 fcntl(oldfd,F_SETFD,FD_CLOEXEC);
/ast/src/cmd/ksh93/sh/
H A Dsubshell.c127 fcntl(fd,F_SETFD,FD_CLOEXEC);
143 sh_fcntl(sp->pipefd,F_SETFD,FD_CLOEXEC);
562 fcntl(sp->pwdfd,F_SETFD,FD_CLOEXEC);
685 fcntl(fd,F_SETFD,FD_CLOEXEC);
H A Dio.c621 fcntl(fd,F_SETFD,FD_CLOEXEC);
939 if(fcntl(pv[out],F_SETFD,FD_CLOEXEC) >=0)
970 fcntl(pv[out],F_SETFD,FD_CLOEXEC);
1536 fcntl(fd,F_SETFD,FD_CLOEXEC);
1706 sh_fcntl(savefd,F_SETFD,FD_CLOEXEC);
1787 fcntl(origfd,F_SETFD,FD_CLOEXEC);
2237 fcntl(fd,F_SETFD,FD_CLOEXEC);
2572 if(arg&FD_CLOEXEC)
H A Dxec.c118 fcntl(subpipe[0],F_SETFD,FD_CLOEXEC);
120 fcntl(subpipe[2],F_SETFD,FD_CLOEXEC);
3634 if(fcntl(*shp->cpipe,F_SETFD,FD_CLOEXEC)>=0)
3638 if(fcntl(shp->cpipe[1],F_SETFD,FD_CLOEXEC) >=0)
3645 if(fcntl(shp->outpipe[0],F_SETFD,FD_CLOEXEC)>=0)
3722 fcntl(i,F_SETFD,FD_CLOEXEC);
3815 if(fd>=0 && (!(otype&FPOU) || (otype&FCOOP)) && fcntl(fd,F_SETFD,FD_CLOEXEC)>=0)
3826 if(fcntl(shp->outpipe[0],F_SETFD,FD_CLOEXEC)>=0)
3865 if((otype&FPIN) && (!(otype&FPOU) || (otype&FCOOP)) && fcntl(shp->inpipe[1],F_SETFD,FD_CLOEXEC)>=0)
/ast/src/lib/libast/vmalloc/
H A Dmalloc.c1182 #ifdef FD_CLOEXEC
1183 fcntl(fd, F_SETFD, FD_CLOEXEC);
1240 #ifdef FD_CLOEXEC
1242 fcntl(fd, F_SETFD, FD_CLOEXEC);
/ast/src/lib/libtksh/tcl/
H A DtclUnixFile.c254 fcntl(fd, F_SETFD, FD_CLOEXEC);
H A DtclUnixChan.c1178 fcntl(fd, F_SETFD, FD_CLOEXEC);
2009 fcntl(sock, F_SETFD, FD_CLOEXEC);
2386 (void) fcntl(newsock, F_SETFD, FD_CLOEXEC);
/ast/src/lib/libast/sfio/
H A Dsfhdr.h609 # ifndef FD_CLOEXEC
610 # define FD_CLOEXEC 1 macro
611 # endif /*FD_CLOEXEC*/
612 # define SETCLOEXEC(fd) ((void)fcntl((fd),F_SETFD,FD_CLOEXEC))
/ast/src/cmd/builtin/
H A Dpty.c278 fcntl(*master, F_SETFD, FD_CLOEXEC);
280 fcntl(*slave, F_SETFD, FD_CLOEXEC);

Completed in 72 milliseconds

12