Home
last modified time | relevance | path

Searched refs:fdflags (Results 1 – 11 of 11) sorted by relevance

/src/lib/libcasper/services/cap_fileargs/
H A Dcap_fileargs.h62 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 Dcap_fileargs.c197 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 Dfdopen.c49 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 Dfreopen.c58 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 Ddup3.c42 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 Dstdio.c410 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 Dlistener.c130 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 Dpcap.c3647 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 Ddaemon.c1085 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 Dvfs_syscalls.c895 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 Duipc_usrreq.c3485 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()