Lines Matching refs:fcntl
201 if (flags.cl && fcntl(fd, F_SETFD, 1)) { in os_open_file()
363 CATCH_EINTR(err = fcntl(fd, F_SETFD, FD_CLOEXEC)); in os_set_exec_close()
403 flags = fcntl(fd, F_GETFL); in os_set_fd_async()
408 if (fcntl(fd, F_SETFL, flags) < 0) { in os_set_fd_async()
415 if ((fcntl(fd, F_SETSIG, SIGIO) < 0) || in os_set_fd_async()
416 (fcntl(fd, F_SETOWN, os_getpid()) < 0)) { in os_set_fd_async()
430 flags = fcntl(fd, F_GETFL); in os_clear_fd_async()
435 if (fcntl(fd, F_SETFL, flags) < 0) in os_clear_fd_async()
444 flags = fcntl(fd, F_GETFL); in os_set_fd_block()
453 if (fcntl(fd, F_SETFL, flags) < 0) in os_set_fd_block()
581 err = fcntl(fd, F_SETLK, &lock); in os_lock_file()
586 err = fcntl(fd, F_GETLK, &lock); in os_lock_file()