Lines Matching refs:fcntl
206 if (flags.cl && fcntl(fd, F_SETFD, 1)) { in os_open_file()
368 CATCH_EINTR(err = fcntl(fd, F_SETFD, FD_CLOEXEC)); in os_set_exec_close()
408 flags = fcntl(fd, F_GETFL); in os_set_fd_async()
413 if (fcntl(fd, F_SETFL, flags) < 0) { in os_set_fd_async()
420 if ((fcntl(fd, F_SETSIG, SIGIO) < 0) || in os_set_fd_async()
421 (fcntl(fd, F_SETOWN, os_getpid()) < 0)) { in os_set_fd_async()
435 flags = fcntl(fd, F_GETFL); in os_clear_fd_async()
440 if (fcntl(fd, F_SETFL, flags) < 0) in os_clear_fd_async()
449 flags = fcntl(fd, F_GETFL); in os_set_fd_block()
458 if (fcntl(fd, F_SETFL, flags) < 0) in os_set_fd_block()
586 err = fcntl(fd, F_SETLK, &lock); in os_lock_file()
591 err = fcntl(fd, F_GETLK, &lock); in os_lock_file()