/ast/src/lib/libast/comp/ |
H A D | fcntl.c | 25 * -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 D | dup2.c | 43 return(fcntl(d1, F_DUPFD, d2));
|
H A D | spawnveg.c | 193 fcntl(err[0], F_SETFD, FD_CLOEXEC); 194 fcntl(err[1], F_SETFD, FD_CLOEXEC);
|
/ast/src/lib/libast/aso/ |
H A D | aso-fcntl.c | 33 #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 D | cosync.c | 102 if (!fcntl(fd, F_SETLK, &lock)) 105 fcntl(fd, F_SETLK, &lock);
|
H A D | coopen.c | 209 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 D | sfdcdio.c | 68 (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 D | fcntl3d.c | 71 NoN(fcntl)
|
H A D | ast.c | 82 #define fcntl FCNTL macro
|
H A D | license.c | 81 fcntl(lic, F_SETFD, FD_CLOEXEC);
|
/ast/src/lib/libast/dir/ |
H A D | opendir.c | 59 fcntl(fd, F_SETFD, FD_CLOEXEC) ||
|
/ast/src/cmd/mailx/ |
H A D | proc.c | 190 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 D | cslib.h | 169 #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 D | csbind.c | 115 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 D | csdaemon.c | 116 if (!(fds & (1<<i)) && !fcntl(i, F_GETFD, 0))
|
H A D | csname.c | 73 for (i = fd; i < fd + 3 && fcntl(i, F_SETFD, FD_CLOEXEC) < 0; i++);
|
/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) 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 D | vchdr.h | 55 #include <fcntl.h>
|
/ast/src/lib/libtksh/tcl/ |
H A D | tclUnixChan.c | 263 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 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) 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 D | tkUnixPort.h | 37 #include <fcntl.h>
|
/ast/src/lib/libcmd/ |
H A D | fds.c | 231 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 D | history.c | 154 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 D | fcntl.c | 27 * 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");
|