| /src/lib/libc/compat/include/ |
| unistd.h | 70 int dup3(int, int, int);
|
| /src/lib/libc/compat/sys/ |
| compat_dup3.c | 41 __warn_references(dup3, 42 "warning: reference to compatibility dup3(); include <unistd.h> to generate correct reference") 45 dup3(int oldfd, int newfd, int flags) function
|
| /src/tests/lib/libc/sys/ |
| t_dup.c | 80 fd = dup3(fd1, fd2, O_CLOEXEC); 200 "Test error conditions of dup3(2) (PR lib/45148)"); 211 ATF_REQUIRE_ERRNO(EINVAL, dup3(fd, fd, O_CLOEXEC) == -1); 214 ATF_REQUIRE_ERRNO(EINVAL, dup3(-1, -1, O_CLOEXEC) == -1); 217 ATF_REQUIRE_ERRNO(EBADF, dup3(fd, -1, O_CLOEXEC) == -1); 220 ATF_REQUIRE_ERRNO(EBADF, dup3(-1, fd, O_CLOEXEC) == -1); 223 ATF_REQUIRE_ERRNO(EINVAL, dup3(fd, 1, O_NOFOLLOW) == -1); 231 atf_tc_set_md_var(tc, "descr", "Test dup3(2) against limits"); 242 ATF_REQUIRE_ERRNO(EBADF, dup3(STDERR_FILENO, 249 atf_tc_set_md_var(tc, "descr", "A basic test of dup3(2)") [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/arm/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/i386/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/ia64/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/m68000/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/m68k/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/mips64eb/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/mips64el/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/mipseb/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/mipsel/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/powerpc/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/powerpc64/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/riscv32/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/riscv64/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/sh3eb/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |
| /src/external/gpl3/gdb/lib/libgnulib/arch/sh3el/gnulib/import/ |
| unistd.h | 1054 <https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html>. */ 1057 # define dup3 rpl_dup3 1059 _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1060 _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); 1062 _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1063 _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); 1065 _GL_CXXALIASWARN (dup3); 1067 # undef dup3 macro 1069 _GL_WARN_ON_USE (dup3, "dup3 is unportable - [all...] |