_fcntl
return (_fcntl(oldfd, F_DUP3FD | (fdflags << F_DUP3FD_SHIFT), newfd));
flags = _fcntl(fd, F_GETFD, 0);
rc = _fcntl(fd, F_SETFD, flags | FD_CLOEXEC);
return (_fcntl(fd, F_ISUNIONSTACK, 0) > 0);
(void)_fcntl(pdes[1], F_SETFD, 0);
(void)_fcntl(pdes[1], F_SETFD, 0);
(void)_fcntl(pdes[0], F_SETFD, 0);
(void)_fcntl(fileno(iop), F_SETFD, 0);
if (_fcntl(fae->fae_fildes, F_SETFD, 0) == -1)
if (_fcntl(fae->fae_newfildes, F_SETFD, 0) == -1)
_fcntl(pdes[1], F_SETFD, 0)) < 0)
if (_fcntl(pdesw[0], F_SETFD, 0) < 0)
#define fcntl _fcntl
_fcntl(client_socket, F_SETFL, O_NONBLOCK);
_fcntl(s, F_SETOWN, pid);
if ((nfd = _fcntl(fd, F_DUPFD, __rpc_minfd)) == -1)
_fcntl(fd, F_SETFD, 1); /* make it "close on exec" */
_fcntl(fd, F_SETFD, 1); /* make it "close on exec" */
flags = _fcntl(sock, F_GETFL, 0);
if (_fcntl(sock, F_SETFL, flags | O_NONBLOCK) == -1)
if ((fdflags = _fcntl(fd, F_GETFL, 0)) < 0)
tmp = _fcntl(fd, F_GETFD, 0);
rc = _fcntl(fd, F_SETFD, tmp | FD_CLOEXEC);
if (_fcntl(fp->_file, F_SETFL, dflags) < 0) {
fdflags = _fcntl(fp->_file, F_GETFD, 0);
(void) _fcntl(fp->_file, F_SETFD,
if ((oflags & O_CLOEXEC ? _fcntl(f, F_DUP2FD_CLOEXEC, wantfd) :
if ((dflags = _fcntl(fp->_file, F_GETFL)) < 0) {
if (_fcntl(ysd->dom_socket, F_SETFD, 1) == -1)
#define fcntl _fcntl