/macosx-10.10/Libc-1044.1.2/stdio/FreeBSD/ |
H A D | fdopen.c | 64 int flags, oflags, fdflags, tmp; local 82 if ((fdflags = _fcntl(fd, F_GETFL, 0)) < 0) 84 tmp = fdflags & O_ACCMODE; 98 if ((oflags & O_APPEND) && !(fdflags & O_APPEND))
|
/macosx-10.10/xnu-2782.1.97/bsd/sys/ |
H A D | filedesc.h | 146 #define fdflags(p, fd) \ macro
|
/macosx-10.10/libpcap-48/libpcap/ |
H A D | pcap.c | 1408 int fdflags; local 1410 fdflags = fcntl(p->fd, F_GETFL, 0); 1411 if (fdflags == -1) { 1416 if (fdflags & O_NONBLOCK) 1450 int fdflags; local 1452 fdflags = fcntl(p->fd, F_GETFL, 0); 1453 if (fdflags == -1) { 1459 fdflags |= O_NONBLOCK; 1461 fdflags &= ~O_NONBLOCK; 1462 if (fcntl(p->fd, F_SETFL, fdflags) [all...] |
/macosx-10.10/ppp-786.1.1/Helpers/pppd/ |
H A D | tty.c | 529 int fdflags; local 573 fdflags = fcntl(0, F_GETFL); 574 if (fdflags != -1 && (fdflags & O_ACCMODE) == O_RDWR) 602 int fdflags, connector_data_len = 0; local 722 if ((fdflags = fcntl(ttyfd, F_GETFL)) == -1 723 || fcntl(ttyfd, F_SETFL, fdflags & ~O_NONBLOCK) < 0)
|
/macosx-10.10/zsh-61/zsh/Src/Modules/ |
H A D | system.c | 451 long fdflags = fcntl(flock_fd, F_GETFD, 0); local 452 if (fdflags != (long)-1) 453 fcntl(flock_fd, F_SETFD, fdflags | FD_CLOEXEC);
|
/macosx-10.10/cxxfilt-11/cxxfilt/bfd/ |
H A D | opncls.c | 302 int fdflags; local 308 fdflags = fcntl (fd, F_GETFL, NULL); 309 if (fdflags == -1) 316 switch (fdflags & (O_ACCMODE))
|
/macosx-10.10/vim-55/src/ |
H A D | memfile.c | 1394 int fdflags = fcntl(mfp->mf_fd, F_GETFD); local 1395 if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0) 1396 fcntl(mfp->mf_fd, F_SETFD, fdflags | FD_CLOEXEC);
|
H A D | ex_cmds2.c | 2899 int fdflags = fcntl(fd_tmp, F_GETFD); local 2900 if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0) 2901 fcntl(fd_tmp, F_SETFD, fdflags | FD_CLOEXEC);
|
H A D | memline.c | 686 int fdflags = fcntl(mfp->mf_fd, F_GETFD); local 687 if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0) 688 fcntl(mfp->mf_fd, F_SETFD, fdflags | FD_CLOEXEC);
|
H A D | fileio.c | 2347 int fdflags = fcntl(fd, F_GETFD); local 2348 if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0) 2349 fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC);
|
/macosx-10.10/zsh-61/zsh/Src/ |
H A D | init.c | 559 long fdflags = fcntl(SHTTY, F_GETFD, 0); local 560 if (fdflags != (long)-1) { 561 fdflags |= FD_CLOEXEC; 562 fcntl(SHTTY, F_SETFD, fdflags);
|
H A D | parse.c | 2599 #define fdflags(f) fdbyte(f, 0) macro 2687 ((fdflags(f) & FDF_MAP) ? "mapped" : "read"), fdversion(f)); 3363 } else if (fdflags(d) & FDF_MAP) { 3364 load_dump_file(file, sbuf, (fdflags(d) & FDF_OTHER), fdother(d)); 3378 ((fdflags(d) & FDF_OTHER) ? fdother(d) : 0)), 0) < 0) {
|
/macosx-10.10/xnu-2782.1.97/bsd/miscfs/devfs/ |
H A D | devfs_fdesc_support.c | 333 (*fdflags(p, fd) & UF_RESERVED)) { 577 if (*fdfile(p, i) != NULL && !(*fdflags(p, i) & UF_RESERVED)) {
|
/macosx-10.10/xnu-2782.1.97/bsd/kern/ |
H A D | kern_guarded.c | 521 * Guarding a file descriptor has some side-effects on the "fdflags" 530 * fdflags are copied to the descriptor from the incoming *fdflagsp argument. 557 #define FDFLAGS_GET(p, fd) (*fdflags(p, fd) & (UF_EXCLOSE|UF_FORKCLOSE)) 559 (*fdflags(p, fd) |= ((bits) & (UF_EXCLOSE|UF_FORKCLOSE))) 561 (*fdflags(p, fd) &= ~((bits) & (UF_EXCLOSE|UF_FORKCLOSE))) 583 return (error); /* can't copyin new fdflags */ 599 goto dropout; /* can't copyout old fdflags */ 647 * fdflags "side-effects" as we go. Note that
|
H A D | posix_shm.c | 615 *fdflags(p, indx) |= UF_EXCLOSE;
|
H A D | sys_generic.c | 854 *fdflags(p, fd) &= ~UF_EXCLOSE; 858 *fdflags(p, fd) |= UF_EXCLOSE;
|
H A D | kern_descrip.c | 2608 *fdflags(p, new) |= fd_flags; 5316 *fdflags(p, fd) |= UF_EXCLOSE;
|
H A D | kern_event.c | 1295 *fdflags(p, fd) |= UF_EXCLOSE;
|
H A D | kern_exec.c | 1771 *fdflags(p, fd) |= UF_INHERIT;
|
/macosx-10.10/xnu-2782.1.97/bsd/vfs/ |
H A D | vfs_syscalls.c | 3433 *fdflags(p, indx) |= UF_EXCLOSE; 3435 *fdflags(p, indx) |= UF_FORKCLOSE;
|