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

123

/ast/src/lib/libast/comp/
H A Dfcntl.c25 * -last fcntl
30 #ifndef fcntl
32 NoN(fcntl)
47 #undef fcntl
48 extern int fcntl(int, int, ...);
87 op = fcntl(fd, op, va_arg(ap, int));
H A Ddup2.c43 return(fcntl(d1, F_DUPFD, d2));
H A Dspawnveg.c193 fcntl(err[0], F_SETFD, FD_CLOEXEC);
194 fcntl(err[1], F_SETFD, FD_CLOEXEC);
/ast/src/lib/libast/aso/
H A Daso-fcntl.c33 #include <fcntl.h>
65 if (fcntl(apl->fd, F_SETLKW, &lock) >= 0)
80 fcntl(apl->fd, F_SETLK, &lock);
137 if (fcntl(fd, F_SETLKW, &lock) < 0)
149 fcntl(fd, F_SETLK, &lock);
183 return fcntl(apl->fd, F_SETLKW, &lock) < 0 ? -1 : k;
186 Asometh_t _aso_meth_fcntl = { "fcntl", ASO_PROCESS, aso_init_fcntl, aso_lock_fcntl };
/ast/src/lib/libcoshell/
H A Dcosync.c102 if (!fcntl(fd, F_SETLK, &lock))
105 fcntl(fd, F_SETLK, &lock);
H A Dcoopen.c209 if (pio[i] < 10 && (n = fcntl(pio[i], F_DUPFD, 10)) >= 0)
357 fcntl(pio[1], F_SETFD, FD_CLOEXEC);
358 fcntl(pio[2], F_SETFD, FD_CLOEXEC);
/ast/src/lib/libast/disc/
H A Dsfdcdio.c68 (void)fcntl(f->file, F_SETFL, di->cntl);
93 (void)fcntl(f->file, F_SETFL, di->cntl);
147 (void)fcntl(f->file,F_SETFL,di->cntl);
175 if((cntl = fcntl(f->file,F_GETFL,0)) < 0)
180 if(fcntl(f->file,F_SETFL,cntl) < 0)
184 if(fcntl(f->file,F_DIOINFO,&dio) < 0)
222 (void)fcntl(f->file,F_SETFL,cntl);
/ast/src/cmd/3d/
H A Dfcntl3d.c71 NoN(fcntl)
H A Dast.c82 #define fcntl FCNTL macro
H A Dlicense.c81 fcntl(lic, F_SETFD, FD_CLOEXEC);
/ast/src/lib/libast/dir/
H A Dopendir.c59 fcntl(fd, F_SETFD, FD_CLOEXEC) ||
/ast/src/cmd/mailx/
H A Dproc.c190 fcntl(fileno(fp), F_SETFD, 1);
211 fcntl(fileno(fp), F_SETFD, 1);
414 fcntl(p[READ], F_SETFD, 1);
415 fcntl(p[WRITE], F_SETFD, 1);
511 fcntl(savein, F_SETFD, 1);
512 fcntl(infd, F_SETFD, 1);
527 fcntl(saveout, F_SETFD, 1);
528 fcntl(outfd, F_SETFD, 1);
560 fcntl(READ, F_SETFD, 0);
569 fcntl(WRIT
[all...]
/ast/src/lib/libcs/
H A Dcslib.h169 #define setauth(f,t) ((t=fcntl(f,F_GETFL,0))>=0&&fcntl(f,F_SETFL,t|FAPPEND)>=0)
170 #define getauth(f,t) ((t=fcntl(f,F_GETFL,0))>=0&&(t&FAPPEND))
H A Dcsbind.c115 if ((fl = fcntl(fd, F_GETFL, 0)) != -1)
117 fcntl(fd, F_SETFL, fl|FNDELAY);
119 fcntl(fd, F_SETFL, fl|O_NONBLOCK);
140 fcntl(fd, F_SETFL, fl);
H A Dcsdaemon.c116 if (!(fds & (1<<i)) && !fcntl(i, F_GETFD, 0))
H A Dcsname.c73 for (i = fd; i < fd + 3 && fcntl(i, F_SETFD, FD_CLOEXEC) < 0; i++);
/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)
256 m->arg.fd.parent.flag = fcntl(arg1, F_GETFD, 0);
261 m->arg.fd.child.flag = fcntl(arg2, F_GETFD, 0);
262 if ((m->save = fcntl(arg2, F_dupfd_cloexec, 3)) < 0)
268 fcntl(m->save, F_SETFD, FD_CLOEXEC);
271 if (fcntl(arg1, F_DUPFD, arg2) != arg2)
280 fcntl(arg1, F_SETFD, FD_CLOEXEC);
285 fcntl(arg1, F_SETFD, 0);
354 fcntl(
[all...]
/ast/src/lib/libvcodex/
H A Dvchdr.h55 #include <fcntl.h>
/ast/src/lib/libtksh/tcl/
H A DtclUnixChan.c263 curStatus = fcntl(fd, F_GETFL, 0);
269 if (fcntl(fd, F_SETFL, curStatus) < 0) {
272 curStatus = fcntl(fd, F_GETFL, 0);
276 curStatus = fcntl(fd, F_GETFL, 0);
282 if (fcntl(fd, F_SETFL, curStatus) < 0) {
728 curStatus = fcntl(fd, F_GETFL, 0);
734 if (fcntl(fd, F_SETFL, curStatus) < 0) {
737 curStatus = fcntl(fd, F_GETFL, 0);
741 curStatus = fcntl(fd, F_GETFL, 0);
747 if (fcntl(f
[all...]
/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)
127 fcntl(fd,F_SETFD,FD_CLOEXEC);
157 fcntl(1,F_SETFD,0);
557 sp->pwdfd = fcntl(n,F_DUPFD,10);
562 fcntl(sp->pwdfd,F_SETFD,FD_CLOEXEC);
685 fcntl(fd,F_SETFD,FD_CLOEXEC);
696 if (fcntl(sp->tmpfd,F_DUPFD,1) != 1)
/ast/src/lib/libtk/unix/
H A DtkUnixPort.h37 #include <fcntl.h>
/ast/src/lib/libcmd/
H A Dfds.c231 if ((flags = fcntl(i, F_GETFL, (char*)0)) == -1)
249 x = (fcntl(i, F_GETFD, (char*)0) > 0) ? "x" : "-";
/ast/src/cmd/ksh93/edit/
H A Dhistory.c154 if((n = fcntl(acctfd, F_DUPFD, 10)) >= 0)
172 fcntl(acctfd,F_SETFD,FD_CLOEXEC);
273 if((n=fcntl(fd,F_DUPFD,10))>=0)
303 fcntl(fd,F_SETFD,FD_CLOEXEC);
397 fcntl(fd,F_SETFD,FD_CLOEXEC);
1201 if(fcntl(newfd, F_DUPFD, oldfd) !=oldfd)
1203 fcntl(oldfd,F_SETFD,FD_CLOEXEC);
/ast/src/lib/libast/features/
H A Dfcntl.c27 * generate POSIX fcntl.h
46 #include <fcntl.h>
92 printf("#include <fcntl.h>\n");
166 printf("#define fcntl _ast_fcntl\n");
337 printf("extern int fcntl(int, int, ...);\n");

Completed in 31 milliseconds

123