Lines Matching refs:fcntl
11 #include <fcntl.h>
206 if (flags.cl && fcntl(fd, F_SETFD, 1)) {
368 CATCH_EINTR(err = fcntl(fd, F_SETFD, FD_CLOEXEC));
408 flags = fcntl(fd, F_GETFL);
413 if (fcntl(fd, F_SETFL, flags) < 0) {
420 if ((fcntl(fd, F_SETSIG, SIGIO) < 0) ||
421 (fcntl(fd, F_SETOWN, os_getpid()) < 0)) {
423 printk(UM_KERN_ERR "os_set_fd_async : Failed to fcntl F_SETOWN "
435 flags = fcntl(fd, F_GETFL);
440 if (fcntl(fd, F_SETFL, flags) < 0)
449 flags = fcntl(fd, F_GETFL);
458 if (fcntl(fd, F_SETFL, flags) < 0)
586 err = fcntl(fd, F_SETLK, &lock);
591 err = fcntl(fd, F_GETLK, &lock);