| /src/lib/libcasper/services/cap_fileargs/ |
| H A D | cap_fileargs.h | 62 fileargs_t *fileargs_wrap(cap_channel_t *chan, int fdflags); 63 cap_channel_t *fileargs_unwrap(fileargs_t *fa, int *fdflags); 133 fileargs_wrap(cap_channel_t *chan, int fdflags) 137 return (fileargs_init(0, NULL, fdflags, 0, NULL, 0)); 141 fileargs_unwrap(fileargs_t *fa, int *fdflags) 144 if (fdflags != NULL) { 145 *fdflags = fa->fa_flags;
|
| H A D | cap_fileargs.c | 197 fileargs_create(cap_channel_t *chan, int fdflags) in fileargs_create() argument 205 fa->fa_fdflags = fdflags; in fileargs_create() 486 fileargs_wrap(cap_channel_t *chan, int fdflags) in fileargs_wrap() argument 493 return (fileargs_create(chan, fdflags)); in fileargs_wrap()
|
| /src/lib/libc/stdio/ |
| H A D | fdopen.c | 49 int flags, oflags, fdflags, rc, tmp; in fdopen() local 67 if ((fdflags = _fcntl(fd, F_GETFL, 0)) < 0) in fdopen() 70 tmp = fdflags & (O_ACCMODE | O_EXEC); in fdopen() 100 if (fdflags & O_APPEND) in fdopen()
|
| H A D | freopen.c | 58 int dflags, fdflags, flags, isopen, oflags, sverrno, wantfd; in freopen() local 117 fdflags = _fcntl(fp->_file, F_GETFD, 0); in freopen() 118 if (fdflags != -1 && (fdflags & FD_CLOEXEC) == 0) in freopen() 120 fdflags | FD_CLOEXEC); in freopen()
|
| /src/lib/libc/gen/ |
| H A D | dup3.c | 42 int fdflags; in __dup3() local 54 fdflags = ((flags & O_CLOEXEC) != 0 ? FD_CLOEXEC : 0) | in __dup3() 57 return (_fcntl(oldfd, F_DUP3FD | (fdflags << F_DUP3FD_SHIFT), newfd)); in __dup3()
|
| /src/contrib/sendmail/libsm/ |
| H A D | stdio.c | 410 int oflags, tmp, fdflags, fd = *((int *) info); local 439 if ((fdflags = fcntl(fd, F_GETFL, 0)) < 0) 441 tmp = fdflags & O_ACCMODE;
|
| /src/contrib/sendmail/libmilter/ |
| H A D | listener.c | 130 int fdflags; local 455 if ((fdflags = fcntl(sock, F_GETFD, 0)) == -1 || 456 fcntl(sock, F_SETFD, fdflags | FD_CLOEXEC) == -1) 731 int fdflags; local 895 if ((fdflags = fcntl(connfd, F_GETFD, 0)) == -1 || 896 fcntl(connfd, F_SETFD, fdflags | FD_CLOEXEC) == -1)
|
| /src/contrib/libpcap/ |
| H A D | pcap.c | 3647 int fdflags; local 3649 fdflags = fcntl(p->fd, F_GETFL, 0); 3650 if (fdflags == -1) { 3655 if (fdflags & O_NONBLOCK) 3693 int fdflags; local 3695 fdflags = fcntl(p->fd, F_GETFL, 0); 3696 if (fdflags == -1) { 3702 fdflags |= O_NONBLOCK; 3704 fdflags &= ~O_NONBLOCK; 3705 if (fcntl(p->fd, F_SETFL, fdflags) == -1) {
|
| /src/contrib/sendmail/src/ |
| H A D | daemon.c | 1085 int fdflags; local 1190 if ((fdflags = fcntl(d->d_socket, F_GETFD, 0)) == -1 || 1192 fdflags | FD_CLOEXEC) == -1) 1197 fdflags == -1 ? "get" : "set",
|
| /src/sys/kern/ |
| H A D | vfs_syscalls.c | 895 uint8_t fdflags; in sys_fchdir() local 898 error = getvnode_path(td, uap->fd, &cap_fchdir_rights, &fdflags, in sys_fchdir() 902 if ((fdflags & UF_RESOLVE_BENEATH) != 0) { in sys_fchdir() 1051 uint8_t fdflags; in sys_fchroot() local 1053 error = getvnode_path(td, uap->fd, &cap_fchroot_rights, &fdflags, &fp); in sys_fchroot() 1056 if ((fdflags & UF_RESOLVE_BENEATH) != 0) { in sys_fchroot()
|
| H A D | uipc_usrreq.c | 3485 int error, fdflags, newfds; in unp_externalize() local 3490 fdflags = ((flags & MSG_CMSG_CLOEXEC) ? O_CLOEXEC : 0) | in unp_externalize() 3538 _finstall(fdesc, fp, *fdp, fdflags | in unp_externalize()
|