fcntl 24 ext/io/nonblock/nonblock.c int f = fcntl(fd, F_GETFL); fcntl 66 ext/io/nonblock/nonblock.c if (fcntl(fd, F_SETFL, f) == -1) fcntl 94 ext/io/nonblock/nonblock.c if (fcntl(restore[0], F_SETFL, restore[1]) == -1) fcntl 182 ext/sdbm/_sdbm.c flags = fcntl(fd, F_GETFD); /* should not fail except EBADF. */ fcntl 189 ext/sdbm/_sdbm.c ret = fcntl(fd, F_SETFD, flags); fcntl 287 ext/socket/init.c int flags = fcntl(fd, F_GETFD); fcntl 489 ext/socket/init.c flags = fcntl(fd, F_GETFL); fcntl 497 ext/socket/init.c if (fcntl(fd, F_SETFL, flags) == -1) { fcntl 305 include/ruby/win32.h extern int fcntl(int, int, ...); fcntl 213 io.c flags = fcntl(fd, F_GETFD); /* should not fail except EBADF. */ fcntl 222 io.c ret = fcntl(fd, F_SETFD, flags2); fcntl 242 io.c int flags = fcntl(fd, F_GETFD); fcntl 367 io.c ret = fcntl(fd, F_DUPFD_CLOEXEC, minfd); fcntl 375 io.c ret = fcntl(fd, F_DUPFD, minfd); fcntl 382 io.c ret = fcntl(fd, F_DUPFD, minfd); fcntl 385 io.c ret = fcntl(fd, F_DUPFD, minfd); fcntl 2454 io.c oflags = fcntl(fptr->fd, F_GETFL); fcntl 2463 io.c if (fcntl(fptr->fd, F_SETFL, oflags) == -1) { fcntl 4006 io.c if ((ret = fcntl(fd, F_GETFD)) == -1) rb_sys_fail_path(fptr->pathv); fcntl 4013 io.c if ((ret = fcntl(fd, F_GETFD)) == -1) rb_sys_fail_path(fptr->pathv); fcntl 4055 io.c if ((ret = fcntl(fptr->fd, F_GETFD)) == -1) rb_sys_fail_path(fptr->pathv); fcntl 4058 io.c ret = fcntl(fd, F_SETFD, ret); fcntl 4067 io.c if ((ret = fcntl(fd, F_GETFD)) == -1) rb_sys_fail_path(fptr->pathv); fcntl 4070 io.c ret = fcntl(fd, F_SETFD, ret); fcntl 5845 io.c ret = fcntl(0, F_MAXFD); /* async-signal-safe */ fcntl 5860 io.c ret = fcntl(fd, F_GETFD); /* async-signal-safe */ fcntl 5862 io.c fcntl(fd, F_SETFD, ret|FD_CLOEXEC); /* async-signal-safe */ fcntl 7616 io.c oflags = fcntl(fd, F_GETFL); fcntl 9215 io.c return (VALUE)fcntl(arg->fd, arg->cmd, arg->narg); fcntl 32 missing/dup2.c if (fcntl(fd1, F_GETFL) < 0) fcntl 34 missing/dup2.c if (fcntl(fd2, F_GETFL) >= 0) fcntl 39 missing/dup2.c if (fcntl(fd1, F_DUPFD, fd2) < 0) fcntl 49 missing/flock.c return fcntl(fd, (operation & LOCK_NB) ? F_SETLK : F_SETLKW, &lock); fcntl 2664 process.c ret = fcntl(fd, F_GETFD); /* async-signal-safe */ fcntl 2680 process.c ret = fcntl(fd, F_GETFD); /* async-signal-safe */ fcntl 2687 process.c ret = fcntl(fd, F_SETFD, ret); /* async-signal-safe */ fcntl 2703 process.c ret = fcntl(fd, F_GETFD); /* async-signal-safe */ fcntl 2710 process.c ret = fcntl(fd, F_SETFD, ret); /* async-signal-safe */ fcntl 1905 ruby.c if (fcntl(fd, F_SETFL, 0) < 0) { fcntl 1381 thread_pthread.c oflags = fcntl(fd, F_GETFL); fcntl 1385 thread_pthread.c err = fcntl(fd, F_SETFL, oflags);