Lines Matching refs:fcntl
192 if (flags.cl && fcntl(fd, F_SETFD, 1)) { in os_open_file()
358 CATCH_EINTR(err = fcntl(fd, F_SETFD, FD_CLOEXEC)); in os_set_exec_close()
398 flags = fcntl(fd, F_GETFL); in os_set_fd_async()
403 if (fcntl(fd, F_SETFL, flags) < 0) { in os_set_fd_async()
410 if ((fcntl(fd, F_SETSIG, SIGIO) < 0) || in os_set_fd_async()
411 (fcntl(fd, F_SETOWN, os_getpid()) < 0)) { in os_set_fd_async()
425 flags = fcntl(fd, F_GETFL); in os_clear_fd_async()
430 if (fcntl(fd, F_SETFL, flags) < 0) in os_clear_fd_async()
439 flags = fcntl(fd, F_GETFL); in os_set_fd_block()
448 if (fcntl(fd, F_SETFL, flags) < 0) in os_set_fd_block()
583 err = fcntl(fd, F_SETLK, &lock); in os_lock_file()
588 err = fcntl(fd, F_GETLK, &lock); in os_lock_file()