Lines Matching refs:fcntl
199 if (flags.cl && fcntl(fd, F_SETFD, 1)) { in os_open_file()
342 CATCH_EINTR(err = fcntl(fd, F_SETFD, FD_CLOEXEC)); in os_set_exec_close()
382 flags = fcntl(fd, F_GETFL); in os_set_fd_async()
387 if (fcntl(fd, F_SETFL, flags) < 0) { in os_set_fd_async()
394 if ((fcntl(fd, F_SETSIG, SIGIO) < 0) || in os_set_fd_async()
395 (fcntl(fd, F_SETOWN, os_getpid()) < 0)) { in os_set_fd_async()
409 flags = fcntl(fd, F_GETFL); in os_clear_fd_async()
414 if (fcntl(fd, F_SETFL, flags) < 0) in os_clear_fd_async()
423 flags = fcntl(fd, F_GETFL); in os_set_fd_block()
432 if (fcntl(fd, F_SETFL, flags) < 0) in os_set_fd_block()
560 err = fcntl(fd, F_SETLK, &lock); in os_lock_file()
565 err = fcntl(fd, F_GETLK, &lock); in os_lock_file()