fcntl 526 lib/common/io.c int flag = fcntl(fd, F_GETFL); fcntl 531 lib/common/io.c if (fcntl(fd, F_SETFL, flag | O_NONBLOCK) < 0) { fcntl 115 maint/gnulib/lib/accept4.c if ((fcntl_flags = fcntl (fd, F_GETFD, 0)) < 0 fcntl 116 maint/gnulib/lib/accept4.c || fcntl (fd, F_SETFD, fcntl_flags | FD_CLOEXEC) == -1) fcntl 132 maint/gnulib/lib/accept4.c if ((fcntl_flags = fcntl (fd, F_GETFL, 0)) < 0 fcntl 133 maint/gnulib/lib/accept4.c || fcntl (fd, F_SETFL, fcntl_flags | O_NONBLOCK) == -1) fcntl 43 maint/gnulib/lib/cloexec.c int flags = fcntl (desc, F_GETFD, 0); fcntl 50 maint/gnulib/lib/cloexec.c || fcntl (desc, F_SETFD, newflags) != -1) fcntl 82 maint/gnulib/lib/cloexec.c return fcntl (fd, F_DUPFD_CLOEXEC, 0); fcntl 36 maint/gnulib/lib/dup-safer-flag.c return fcntl (fd, (flag & O_CLOEXEC) ? F_DUPFD_CLOEXEC : F_DUPFD, fcntl 33 maint/gnulib/lib/dup-safer.c return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); fcntl 176 maint/gnulib/lib/dup2.c return fcntl (fd, F_GETFL) == -1 ? -1 : fd; fcntl 59 maint/gnulib/lib/dup3.c if (newfd < 0 || newfd >= getdtablesize () || fcntl (oldfd, F_GETFD) == -1) fcntl 84 maint/gnulib/lib/dup3.c result = fcntl (oldfd, F_DUPFD_CLOEXEC, newfd); fcntl 144 maint/gnulib/lib/error.c return 0 <= fcntl (fd, F_GETFL); fcntl 202 maint/gnulib/lib/fcntl.c fcntl (int fd, int action, /* arg */...) fcntl 203 maint/gnulib/lib/fcntl.c #undef fcntl fcntl 328 maint/gnulib/lib/fcntl.c result = fcntl (fd, action); fcntl 424 maint/gnulib/lib/fcntl.c result = fcntl (fd, action, x); fcntl 432 maint/gnulib/lib/fcntl.c result = fcntl (fd, action, p); fcntl 462 maint/gnulib/lib/fcntl.c int flags = fcntl (fd, F_GETFD); fcntl 467 maint/gnulib/lib/fcntl.c result = fcntl (fd, F_DUPFD, target); fcntl 468 maint/gnulib/lib/fcntl.c if (0 <= result && fcntl (fd, F_SETFD, flags) == -1) fcntl 482 maint/gnulib/lib/fcntl.c result = fcntl (fd, F_DUPFD, target); fcntl 512 maint/gnulib/lib/fcntl.c result = fcntl (fd, F_DUPFD_CLOEXEC, target); fcntl 533 maint/gnulib/lib/fcntl.c int flags = fcntl (result, F_GETFD); fcntl 534 maint/gnulib/lib/fcntl.c if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1) fcntl 560 maint/gnulib/lib/fcntl.c result = fcntl (fd, action, arg); fcntl 571 maint/gnulib/lib/fcntl.c while (fcntl (arg, F_GETFL) != -1 || errno != EBADF) fcntl 138 maint/gnulib/lib/fcntl.in.h _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); fcntl 139 maint/gnulib/lib/fcntl.in.h _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); fcntl 145 maint/gnulib/lib/fcntl.in.h _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); fcntl 150 maint/gnulib/lib/fcntl.in.h _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); fcntl 152 maint/gnulib/lib/fcntl.in.h _GL_CXXALIASWARN (fcntl); fcntl 156 maint/gnulib/lib/fcntl.in.h _GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - " fcntl 211 maint/gnulib/lib/flock.c r = fcntl (fd, cmd, &fl); fcntl 58 maint/gnulib/lib/freadable.c int flags = fcntl (fd, F_GETFL, NULL); fcntl 1379 maint/gnulib/lib/fts.c dir_fd = fcntl (dir_fd, F_DUPFD_CLOEXEC, STDERR_FILENO + 1); fcntl 1729 maint/gnulib/lib/fts.c cwd_fd = fcntl (cwd_fd, F_DUPFD_CLOEXEC, STDERR_FILENO + 1); fcntl 58 maint/gnulib/lib/fwritable.c int flags = fcntl (fd, F_GETFL, NULL); fcntl 924 maint/gnulib/lib/mountlist.c while (fcntl (lockfd, F_SETLKW, &flock) == -1) fcntl 140 maint/gnulib/lib/nonblocking.c fcntl_flags = fcntl (desc, F_GETFL, 0); fcntl 151 maint/gnulib/lib/nonblocking.c fcntl_flags = fcntl (desc, F_GETFL, 0); fcntl 160 maint/gnulib/lib/nonblocking.c return fcntl (desc, F_SETFL, fcntl_flags); fcntl 52 maint/gnulib/lib/opendir-safer.c int f = fcntl (fd, F_DUPFD_CLOEXEC, STDERR_FILENO + 1); fcntl 251 maint/gnulib/lib/pipe-filter-gi.c if ((fcntl_flags = fcntl (filter->fd[1], F_GETFL, 0)) < 0 fcntl 252 maint/gnulib/lib/pipe-filter-gi.c || fcntl (filter->fd[1], F_SETFL, fcntl_flags | O_NONBLOCK) == -1 fcntl 253 maint/gnulib/lib/pipe-filter-gi.c || (fcntl_flags = fcntl (filter->fd[0], F_GETFL, 0)) < 0 fcntl 254 maint/gnulib/lib/pipe-filter-gi.c || fcntl (filter->fd[0], F_SETFL, fcntl_flags | O_NONBLOCK) == -1) fcntl 413 maint/gnulib/lib/pipe-filter-ii.c if ((fcntl_flags = fcntl (fd[1], F_GETFL, 0)) < 0 fcntl 414 maint/gnulib/lib/pipe-filter-ii.c || fcntl (fd[1], F_SETFL, fcntl_flags | O_NONBLOCK) == -1 fcntl 415 maint/gnulib/lib/pipe-filter-ii.c || (fcntl_flags = fcntl (fd[0], F_GETFL, 0)) < 0 fcntl 416 maint/gnulib/lib/pipe-filter-ii.c || fcntl (fd[0], F_SETFL, fcntl_flags | O_NONBLOCK) == -1) fcntl 120 maint/gnulib/lib/pipe2.c if ((fcntl_flags = fcntl (fd[1], F_GETFL, 0)) < 0 fcntl 121 maint/gnulib/lib/pipe2.c || fcntl (fd[1], F_SETFL, fcntl_flags | O_NONBLOCK) == -1 fcntl 122 maint/gnulib/lib/pipe2.c || (fcntl_flags = fcntl (fd[0], F_GETFL, 0)) < 0 fcntl 123 maint/gnulib/lib/pipe2.c || fcntl (fd[0], F_SETFL, fcntl_flags | O_NONBLOCK) == -1) fcntl 131 maint/gnulib/lib/pipe2.c if ((fcntl_flags = fcntl (fd[1], F_GETFD, 0)) < 0 fcntl 132 maint/gnulib/lib/pipe2.c || fcntl (fd[1], F_SETFD, fcntl_flags | FD_CLOEXEC) == -1 fcntl 133 maint/gnulib/lib/pipe2.c || (fcntl_flags = fcntl (fd[0], F_GETFD, 0)) < 0 fcntl 134 maint/gnulib/lib/pipe2.c || fcntl (fd[0], F_SETFD, fcntl_flags | FD_CLOEXEC) == -1) fcntl 65 maint/gnulib/lib/popen.c int cloexec0 = fcntl (STDIN_FILENO, F_GETFD); fcntl 66 maint/gnulib/lib/popen.c int cloexec1 = fcntl (STDOUT_FILENO, F_GETFD); fcntl 81 maint/gnulib/lib/popen.c || fcntl (STDIN_FILENO, F_SETFD, fcntl 82 maint/gnulib/lib/popen.c fcntl (STDIN_FILENO, F_GETFD) | FD_CLOEXEC) == -1) fcntl 88 maint/gnulib/lib/popen.c || fcntl (STDOUT_FILENO, F_SETFD, fcntl 89 maint/gnulib/lib/popen.c fcntl (STDOUT_FILENO, F_GETFD) | FD_CLOEXEC) == -1) fcntl 194 maint/gnulib/lib/ptsname_r.c if (fcntl (fd, F_GETFL) != -1) fcntl 42 maint/gnulib/lib/stdopen.c if (fcntl (fd, F_GETFD) < 0) fcntl 40 maint/gnulib/lib/unlockpt.c if (fcntl (fd, F_GETFD) < 0) fcntl 59 maint/gnulib/tests/test-cloexec.c int i = fcntl (fd, F_GETFD); fcntl 76 maint/gnulib/tests/test-dirent-safer.c int fd = fcntl (dfd, F_DUPFD_CLOEXEC, STDERR_FILENO + 1); fcntl 72 maint/gnulib/tests/test-dup-safer.c return 0 <= fcntl (fd, F_GETFL); fcntl 93 maint/gnulib/tests/test-dup-safer.c int i = fcntl (fd, F_GETFD); fcntl 66 maint/gnulib/tests/test-dup2.c return 0 <= fcntl (fd, F_GETFL); fcntl 88 maint/gnulib/tests/test-dup2.c int i = fcntl (fd, F_GETFD); fcntl 59 maint/gnulib/tests/test-dup3.c return 0 <= fcntl (fd, F_GETFL); fcntl 74 maint/gnulib/tests/test-dup3.c ASSERT ((flags = fcntl (fd, F_GETFD)) >= 0); fcntl 105 maint/gnulib/tests/test-execute-child.c return 0 <= fcntl (fd, F_GETFL); fcntl 327 maint/gnulib/tests/test-execute-main.c ASSERT (fcntl (STDOUT_FILENO, F_DUPFD, 10) >= 0); fcntl 337 maint/gnulib/tests/test-execute-main.c ASSERT (fcntl (STDOUT_FILENO, F_DUPFD_CLOEXEC, 10) >= 0); fcntl 96 maint/gnulib/tests/test-fchdir.c ASSERT (fcntl (fd, F_DUPFD_CLOEXEC, new_fd) == new_fd); fcntl 98 maint/gnulib/tests/test-fchdir.c ASSERT (fcntl (new_fd, F_DUPFD, fd) == fd); fcntl 32 maint/gnulib/tests/test-fcntl-h-c++.cc SIGNATURE_CHECK (GNULIB_NAMESPACE::fcntl, int, (int, int, ...)); fcntl 25 maint/gnulib/tests/test-fcntl.c SIGNATURE_CHECK (fcntl, int, (int, int, ...)); fcntl 66 maint/gnulib/tests/test-fcntl.c return 0 <= fcntl (fd, F_GETFL); fcntl 87 maint/gnulib/tests/test-fcntl.c int i = fcntl (fd, F_GETFD); fcntl 244 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (-1, F_DUPFD, 0) == -1); fcntl 247 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_DUPFD, 0) == -1); fcntl 250 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (bad_fd, F_DUPFD, 0) == -1); fcntl 253 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (-1, F_DUPFD_CLOEXEC, 0) == -1); fcntl 256 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_DUPFD_CLOEXEC, 0) == -1); fcntl 259 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (bad_fd, F_DUPFD_CLOEXEC, 0) == -1); fcntl 264 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD, -1) == -1); fcntl 267 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD, bad_fd) == -1); fcntl 270 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD_CLOEXEC, -1) == -1); fcntl 273 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD_CLOEXEC, bad_fd) == -1); fcntl 286 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD, fd) == fd + 1); fcntl 295 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd, F_DUPFD_CLOEXEC, fd + 2) == fd + 2); fcntl 306 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 2, F_DUPFD, fd + 1) == fd + 1); fcntl 316 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 2, F_DUPFD_CLOEXEC, 0) == fd); fcntl 328 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (-1, F_GETFD) == -1); fcntl 331 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_GETFD) == -1); fcntl 334 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (bad_fd, F_GETFD) == -1); fcntl 339 maint/gnulib/tests/test-fcntl.c int result = fcntl (fd, F_GETFD); fcntl 343 maint/gnulib/tests/test-fcntl.c result = fcntl (fd + 1, F_GETFD); fcntl 352 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (-1, F_SETFD, 0) == -1); fcntl 355 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_SETFD, 0) == -1); fcntl 358 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (bad_fd, F_SETFD, 0) == -1); fcntl 365 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (-1, F_GETFL) == -1); fcntl 368 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_GETFL) == -1); fcntl 371 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (bad_fd, F_GETFL) == -1); fcntl 378 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (-1, F_SETFL, 0) == -1); fcntl 381 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_SETFL, 0) == -1); fcntl 384 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (bad_fd, F_SETFL, 0) == -1); fcntl 391 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (-1, F_GETOWN) == -1); fcntl 394 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_GETOWN) == -1); fcntl 397 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (bad_fd, F_GETOWN) == -1); fcntl 404 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (-1, F_SETOWN, 0) == -1); fcntl 407 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (fd + 1, F_SETOWN, 0) == -1); fcntl 410 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (bad_fd, F_SETOWN, 0) == -1); fcntl 429 maint/gnulib/tests/test-fcntl.c ASSERT (fcntl (1, F_DUPFD_CLOEXEC, 10) >= 0); fcntl 52 maint/gnulib/tests/test-fopen-gnu.c flags = fcntl (fd, F_GETFD); fcntl 62 maint/gnulib/tests/test-fopen-gnu.c flags = fcntl (fd, F_GETFD); fcntl 104 maint/gnulib/tests/test-open.h flags = fcntl (fd, F_GETFD); fcntl 55 maint/gnulib/tests/test-pipe.c return 0 <= fcntl (fd, F_GETFL); fcntl 70 maint/gnulib/tests/test-pipe.c ASSERT ((flags = fcntl (fd, F_GETFD)) >= 0); fcntl 84 maint/gnulib/tests/test-pipe.c ASSERT ((flags = fcntl (fd, F_GETFL)) >= 0); fcntl 58 maint/gnulib/tests/test-pipe2.c return 0 <= fcntl (fd, F_GETFL); fcntl 73 maint/gnulib/tests/test-pipe2.c ASSERT ((flags = fcntl (fd, F_GETFD)) >= 0); fcntl 89 maint/gnulib/tests/test-pipe2.c ASSERT ((flags = fcntl (fd, F_GETFL)) >= 0); fcntl 137 maint/gnulib/tests/test-poll.c int oldflags = fcntl (s, F_GETFL, NULL); fcntl 140 maint/gnulib/tests/test-poll.c fcntl (s, F_SETFL, oldflags | O_NONBLOCK); fcntl 126 maint/gnulib/tests/test-select.h int oldflags = fcntl (s, F_GETFL, NULL); fcntl 129 maint/gnulib/tests/test-select.h fcntl (s, F_SETFL, oldflags | O_NONBLOCK); fcntl 87 maint/gnulib/tests/test-spawn-pipe-child.c return 0 <= fcntl (fd, F_GETFL);