/netbsd-src/tests/lib/libc/sys/ |
H A D | t_pipe2.c | 65 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); in run() 66 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); in run() 68 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); in run() 69 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0); in run() 73 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) != 0); in run() 74 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) != 0); in run() 76 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) == 0); in run() 77 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) == 0); in run() 81 ATF_REQUIRE(fcntl(fd[0], F_GETNOSIGPIPE) != 0); in run() 82 ATF_REQUIRE(fcntl(fd[1], F_GETNOSIGPIPE) != 0); in run() [all …]
|
H A D | t_socketpair.c | 77 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); in run() 78 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); in run() 80 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); in run() 81 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0); in run() 85 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) != 0); in run() 86 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) != 0); in run() 88 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) == 0); in run() 89 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) == 0); in run()
|
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/ |
H A D | fcntl.c | 202 fcntl (int fd, int action, /* arg */...) in fcntl() function 203 #undef fcntl in fcntl() 205 # define fcntl klibc_fcntl in fcntl() macro 328 result = fcntl (fd, action); in fcntl() 424 result = fcntl (fd, action, x); in fcntl() 432 result = fcntl (fd, action, p); in fcntl() 462 int flags = fcntl (fd, F_GETFD); in rpl_fcntl_DUPFD() 467 result = fcntl (fd, F_DUPFD, target); in rpl_fcntl_DUPFD() 468 if (0 <= result && fcntl (fd, F_SETFD, flags) == -1) in rpl_fcntl_DUPFD() 482 result = fcntl (fd, F_DUPFD, target); in rpl_fcntl_DUPFD() [all …]
|
H A D | fcntl.in.h | 135 # undef fcntl 136 # define fcntl rpl_fcntl 138 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 139 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 145 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 150 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 152 _GL_CXXALIASWARN (fcntl); 154 # undef fcntl 156 _GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - "
|
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/m4/ |
H A D | fcntl.m4 | 1 # fcntl.m4 serial 11 7 # For now, this module ensures that fcntl() 22 AC_CHECK_FUNCS_ONCE([fcntl]) 28 AC_CACHE_CHECK([whether fcntl handles F_DUPFD correctly], 33 #include <fcntl.h> 54 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; 56 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; 64 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) 86 AC_CACHE_CHECK([whether fcntl understands F_DUPFD_CLOEXEC], 90 [[#include <fcntl.h> [all …]
|
/netbsd-src/tests/compat/linux/ |
H A D | h_inotify_init.c | 48 REQUIRE(fcntl(fd, LINUX_F_GETFD) == 0); in _start() 49 REQUIRE((fcntl(fd, LINUX_F_GETFL) & LINUX_O_NONBLOCK) == 0); in _start() 54 REQUIRE(fcntl(fd, LINUX_F_GETFD) == 0); in _start() 55 REQUIRE((fcntl(fd, LINUX_F_GETFL) & LINUX_O_NONBLOCK) != 0); in _start() 60 REQUIRE(fcntl(fd, LINUX_F_GETFD) != 0); in _start() 61 REQUIRE((fcntl(fd, LINUX_F_GETFL) & LINUX_O_NONBLOCK) == 0); in _start()
|
/netbsd-src/tests/lib/libc/gen/ |
H A D | t_closefrom.c | 59 cur1 = fcntl(0, F_MAXFD); in ATF_TC_BODY() 64 cur2 = fcntl(0, F_MAXFD); in ATF_TC_BODY() 93 cur = fcntl(0, F_MAXFD); in ATF_TC_BODY() 101 cur = fcntl(0, F_MAXFD); in ATF_TC_BODY() 107 cur = fcntl(0, F_MAXFD); in ATF_TC_BODY() 151 _exit(fcntl(0, F_MAXFD)); in ATF_TC_BODY()
|
/netbsd-src/tests/kernel/ |
H A D | t_memfd_create.c | 206 ATF_REQUIRE_EQ_MSG(fcntl(fd, F_ADD_SEALS, F_SEAL_WRITE), -1, in ATF_TC_BODY() 223 RL(fcntl(fd, F_ADD_SEALS, F_SEAL_SEAL)); in ATF_TC_BODY() 225 ATF_REQUIRE_EQ_MSG(fcntl(fd, F_ADD_SEALS, F_SEAL_WRITE), -1, in ATF_TC_BODY() 247 rv = fcntl(fd, F_ADD_SEALS, F_SEAL_SEAL); in test_all_seals_except() 310 RL(fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK)); in ATF_TC_BODY() 332 RL(fcntl(fd, F_ADD_SEALS, F_SEAL_GROW)); in ATF_TC_BODY() 354 RL(fcntl(fd, F_ADD_SEALS, F_SEAL_WRITE)); in ATF_TC_BODY() 383 ATF_REQUIRE_EQ_MSG(fcntl(fd, F_ADD_SEALS, F_SEAL_WRITE), -1, in ATF_TC_BODY() 401 RL(fcntl(fd, F_ADD_SEALS, F_SEAL_FUTURE_WRITE)); in ATF_TC_BODY() 430 RL(fcntl(fd, F_ADD_SEALS, F_SEAL_FUTURE_WRITE)); in ATF_TC_BODY()
|
/netbsd-src/external/bsd/blocklist/port/ |
H A D | popenve.c | 96 fcntl(pdes[0], F_SETFD, FD_CLOEXEC); in pdes_get() 97 fcntl(pdes[1], F_SETFD, FD_CLOEXEC); in pdes_get() 107 fcntl(pdes[0], F_SETFL, fcntl(pdes[0], F_GETFL) | flags); in pdes_get() 108 fcntl(pdes[1], F_SETFL, fcntl(pdes[1], F_GETFL) | flags); in pdes_get()
|
/netbsd-src/external/cddl/dtracetoolkit/dist/Examples/ |
H A D | tcl_syscolors_example.txt | 183 [2;32m 0 16624 15 syscall -> fcntl[0m 184 [2;32m 0 16624 7 syscall <- fcntl[0m 309 [2;32m 0 16624 8 syscall -> fcntl[0m 310 [2;32m 0 16624 7 syscall <- fcntl[0m 465 [2;32m 0 16624 8 syscall -> fcntl[0m 466 [2;32m 0 16624 7 syscall <- fcntl[0m 538 [2;32m 0 16624 41 syscall -> fcntl[0m 539 [2;32m 0 16624 11 syscall <- fcntl[0m 540 [2;32m 0 16624 7 syscall -> fcntl[0m 541 [2;32m 0 16624 7 syscall <- fcntl[0m [all …]
|
/netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/ |
H A D | tcl_syscolors_example.txt | 183 [2;32m 0 16624 15 syscall -> fcntl[0m 184 [2;32m 0 16624 7 syscall <- fcntl[0m 309 [2;32m 0 16624 8 syscall -> fcntl[0m 310 [2;32m 0 16624 7 syscall <- fcntl[0m 465 [2;32m 0 16624 8 syscall -> fcntl[0m 466 [2;32m 0 16624 7 syscall <- fcntl[0m 538 [2;32m 0 16624 41 syscall -> fcntl[0m 539 [2;32m 0 16624 11 syscall <- fcntl[0m 540 [2;32m 0 16624 7 syscall -> fcntl[0m 541 [2;32m 0 16624 7 syscall <- fcntl[0m [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/sparc64/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/riscv32/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/arm/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/m68000/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/mipseb/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/sh3el/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/mips64el/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/i386/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/riscv64/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/m68k/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/sparc/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/vax/gnulib/import/ |
H A D | fcntl.h | 45 #include_next <fcntl.h> 71 #include_next <fcntl.h> 646 # undef fcntl 647 # define fcntl rpl_fcntl macro 649 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 650 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 656 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 661 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 663 _GL_CXXALIASWARN (fcntl); 665 # undef fcntl [all …]
|