Searched refs:fdflags (Results 1 - 20 of 20) sorted by relevance

/macosx-10.10/Libc-1044.1.2/stdio/FreeBSD/
H A Dfdopen.c64 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 Dfiledesc.h146 #define fdflags(p, fd) \ macro
/macosx-10.10/libpcap-48/libpcap/
H A Dpcap.c1408 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 Dtty.c529 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 Dsystem.c451 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 Dopncls.c302 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 Dmemfile.c1394 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 Dex_cmds2.c2899 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 Dmemline.c686 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 Dfileio.c2347 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 Dinit.c559 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 Dparse.c2599 #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 Ddevfs_fdesc_support.c333 (*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 Dkern_guarded.c521 * 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 Dposix_shm.c615 *fdflags(p, indx) |= UF_EXCLOSE;
H A Dsys_generic.c854 *fdflags(p, fd) &= ~UF_EXCLOSE;
858 *fdflags(p, fd) |= UF_EXCLOSE;
H A Dkern_descrip.c2608 *fdflags(p, new) |= fd_flags;
5316 *fdflags(p, fd) |= UF_EXCLOSE;
H A Dkern_event.c1295 *fdflags(p, fd) |= UF_EXCLOSE;
H A Dkern_exec.c1771 *fdflags(p, fd) |= UF_INHERIT;
/macosx-10.10/xnu-2782.1.97/bsd/vfs/
H A Dvfs_syscalls.c3433 *fdflags(p, indx) |= UF_EXCLOSE;
3435 *fdflags(p, indx) |= UF_FORKCLOSE;

Completed in 494 milliseconds