Home
last modified time | relevance | path

Searched refs:fcntl (Results 1 – 25 of 788) sorted by relevance

12345678910>>...32

/netbsd-src/tests/lib/libc/sys/
H A Dt_pipe2.c65 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 Dt_socketpair.c77 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 Dfcntl.c202 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 Dfcntl.in.h135 # 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 Dfcntl.m41 # 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 Dh_inotify_init.c48 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 Dt_closefrom.c59 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 Dt_memfd_create.c206 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 Dpopenve.c96 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 Dtcl_syscolors_example.txt183  0 16624 15 syscall -> fcntl
184  0 16624 7 syscall <- fcntl
309  0 16624 8 syscall -> fcntl
310  0 16624 7 syscall <- fcntl
465  0 16624 8 syscall -> fcntl
466  0 16624 7 syscall <- fcntl
538  0 16624 41 syscall -> fcntl
539  0 16624 11 syscall <- fcntl
540  0 16624 7 syscall -> fcntl
541  0 16624 7 syscall <- fcntl
[all …]
/netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/
H A Dtcl_syscolors_example.txt183  0 16624 15 syscall -> fcntl
184  0 16624 7 syscall <- fcntl
309  0 16624 8 syscall -> fcntl
310  0 16624 7 syscall <- fcntl
465  0 16624 8 syscall -> fcntl
466  0 16624 7 syscall <- fcntl
538  0 16624 41 syscall -> fcntl
539  0 16624 11 syscall <- fcntl
540  0 16624 7 syscall -> fcntl
541  0 16624 7 syscall <- fcntl
[all …]
/netbsd-src/external/gpl3/gdb/lib/libgnulib/arch/sparc64/gnulib/import/
H A Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 Dfcntl.h45 #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 …]

12345678910>>...32