fcntl
extern int fcntl(int fd, int op, ...);
if (fcntl(DEV_FD(dev), F_SETLK, &flk)) {
if (fcntl(DEV_FD(dev), F_SETLK, &flk))
ret = fcntl(fildes, F_FULLFSYNC, NULL);
int flags = fcntl(fStdOut, F_GETFL, 0);
fcntl(fStdOut, F_SETFL, flags);
flags = fcntl(fStdErr, F_GETFL, 0);
fcntl(fStdErr, F_SETFL, flags);
(void) fcntl( hc->conn_fd, F_SETFD, 1 );
(void) fcntl( hc->conn_fd, F_SETFD, 0 );
(void) fcntl( listen_fd, F_SETFD, 1 );
flags = fcntl( listen_fd, F_GETFL, 0 );
if ( fcntl( listen_fd, F_SETFL, flags | O_NDELAY ) < 0 )
flags = fcntl( fd, F_GETFL, 0 );
(void) fcntl( fd, F_SETFL, newflags );
flags = fcntl( fd, F_GETFL, 0 );
(void) fcntl( fd, F_SETFL, newflags );
Syscall *fcntl = get_syscall("_kern_fcntl");
fcntl->GetParameter("op")->SetHandler(new EnumTypeHandler(kFcntlNames));
fcntl->GetParameter("argument")->SetHandler(
if (fcntl(STDIN_FILENO, F_GETFD) != -1) {
if ((flags = fcntl(pdata, F_GETFL, 0)) == -1 ||
fcntl(pdata, F_SETFL, flags | O_NONBLOCK) == -1)
if ((flags = fcntl(pdata, F_GETFL, 0)) == -1 ||
fcntl(pdata, F_SETFL, flags & ~O_NONBLOCK) == -1)
if (fcntl(s, F_SETOWN, getpid()) == -1)
int flags = fcntl(STDIN_FILENO, F_GETFL, 0);
fcntl(STDIN_FILENO, F_SETFL, flags | O_NONBLOCK);
extern int stat(), unlink(), jsys(), fcntl();
fcntl(fDirFd, F_SETFD, FD_CLOEXEC);
fcntl(fDirFd, F_SETFD, FD_CLOEXEC);
fcntl(fDirFd, F_SETFD, FD_CLOEXEC);
fcntl(fDirFd, F_SETFD, FD_CLOEXEC);
fcntl(parentFD, F_SETFD, FD_CLOEXEC);
fcntl(dirFD, F_SETFD, FD_CLOEXEC);
fcntl(fd, F_SETFD, FD_CLOEXEC);
fcntl(fd, F_SETFD, FD_CLOEXEC);
fcntl(fd, F_SETFD, FD_CLOEXEC);
fcntl(fd, F_SETFD, FD_CLOEXEC);
fcntl(fAttrFd, F_SETFD, FD_CLOEXEC);
return fcntl(fd, op, argument);
if (fcntl(fd, F_GETPATH, path) < 0) {
if (fcntl(fd, F_GETPATH, fullPath) < 0) {
HIDDEN_FUNCTION(fcntl);
int flags = fcntl(ffd, F_GETFL);
fcntl(ffd, F_SETFL, flags & ~O_NONBLOCK);
int flags = fcntl(fSocket, F_GETFL);
if (fcntl(fSocket, F_SETFL, flags) < 0) {
auto flags = fcntl(fSocket->Socket(), F_GETFL, 0);
if (fcntl(fSocket->Socket(), F_SETFL, flags | O_NONBLOCK) != 0)
fcntl(fDirFd, F_SETFD, FD_CLOEXEC);
fcntl(fDirFd, F_SETFD, FD_CLOEXEC);
fcntl(fDirFd, F_SETFD, FD_CLOEXEC);
fcntl(fDirFd, F_SETFD, FD_CLOEXEC);
fcntl(parentFD, F_SETFD, FD_CLOEXEC);
fcntl(dirFD, F_SETFD, FD_CLOEXEC);
fcntl(fAttrFd, F_SETFD, FD_CLOEXEC);
fcntl(fQueryFd, F_SETFD, FD_CLOEXEC);
int fl = fcntl(fd, F_GETFL, 0);
fcntl(store->pagefd, F_SETFD, FD_CLOEXEC);
if (fcntl(fd, F_SETLK, &lock) == -1) {
while (fcntl(state_fd, F_SETLKW, &fl) < 0) {
if (fcntl(state_fd, F_SETLK, &fl) < 0) {
i = fcntl(fd, F_GETFD);
fcntl(fd, F_SETFD, i | FD_CLOEXEC);
int flags = fcntl(fd, F_GETFL);
fcntl(fReadPipe, F_SETFD, FD_CLOEXEC);
fcntl(fWritePipe, F_SETFD, FD_CLOEXEC);
|| fcntl(connection.socket, F_SETFD, FD_CLOEXEC) < 0) {
if (socket != -1 && fcntl(socket, F_SETFD, 0) < 0) {
fcntl(s, F_SETFD, FD_CLOEXEC);
statp->_u._ext.ext->resfd = fcntl(fileno(fp), F_DUPFD_CLOEXEC, 0);
fcntl(statp->_vcsock, F_SETFD, FD_CLOEXEC);
fcntl(EXT(statp).nssocks[ns], F_SETFD, FD_CLOEXEC);
fcntl(dirFD, F_SETFD, FD_CLOEXEC);
fcntl (fd, cmd, val)
#define _IO_fcntl fcntl
#define __fcntl fcntl
fcntl(newfd, F_SETFD, FD_CLOEXEC);
if (fcntl(fds[0], F_SETFD, FD_CLOEXEC) != 0
|| fcntl(fds[1], F_SETFD, FD_CLOEXEC) != 0) {
return fcntl(fileDescriptor, F_SETLK, &fileLock);
return fcntl(fileDescriptor, F_SETLKW, &fileLock);
return fcntl(fileDescriptor, F_SETLK, &fileLock);
if (fcntl(fileDescriptor, F_GETLK, &fileLock) == -1)
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) {
if (fcntl(fd, F_SETFL, 0) < 0) {
if (fcntl(fd, F_SETLK, &flock) != 0) {
fcntl(fFDs[1], F_SETFL, O_NONBLOCK);
fcntl(fFDs[1], F_SETFL, 0);
fcntl(fClientSocket, F_SETFL, O_NONBLOCK);
fcntl(fClientSocket, F_SETFL, 0);
if (fcntl(fd, F_SETLK, &flock) == -1) {
if (fcntl(fd, F_SETLK, &flock) == -1) {
if (fcntl(fd, F_SETLK, &flock) == 0) {
if (fcntl(fd, F_SETLK, &flock) == -1) {
if (fcntl(fd, F_SETLK, &flock) == -1) {
if (fcntl(fd, F_SETLK, &flock) == -1) {
if (fcntl(fd, F_SETLK, &flock) == 0) {
if (fcntl(fd, F_SETLKW, &flock) == -1) {
if (fcntl(fd, F_SETLK, &flock) == -1) {
if (fcntl(fd, F_SETLK, &flock) == 0) {
if (fcntl(fd, F_SETLK, &flock) == -1) {
fcntl(fd, F_SETFL, O_NONBLOCK);
int flags = fcntl(sock, F_GETFD);
status = fcntl(sock, F_SETFL, O_NONBLOCK);
status = fcntl(sock1, F_SETFL, O_NONBLOCK);
int flags1 = fcntl(sock, F_GETFL, 0);
status = fcntl(sock, F_SETFL, flags1 | O_NONBLOCK);
status = fcntl(sock1, F_SETFL, flags1 | O_NONBLOCK);