Home
last modified time | relevance | path

Searched refs:F_DUPFD (Results 1 – 25 of 102) sorted by relevance

12345

/netbsd/external/gpl3/gdb/dist/gnulib/import/m4/
H A Dfcntl.m48 # - supports F_DUPFD correctly
26 dnl cygwin 1.5.x F_DUPFD has wrong errno, and allows negative target
27 dnl haiku alpha 2 F_DUPFD has wrong errno
28 AC_CACHE_CHECK([whether fcntl handles F_DUPFD correctly],
53 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
55 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
57 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
63 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
79 AC_DEFINE([FCNTL_DUPFD_BUGGY], [1], [Define this to 1 if F_DUPFD
/netbsd/external/gpl3/gdb.old/dist/gnulib/import/m4/
H A Dfcntl.m48 # - supports F_DUPFD correctly
26 dnl cygwin 1.5.x F_DUPFD has wrong errno, and allows negative target
27 dnl haiku alpha 2 F_DUPFD has wrong errno
28 AC_CACHE_CHECK([whether fcntl handles F_DUPFD correctly],
53 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
55 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
57 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
63 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
79 AC_DEFINE([FCNTL_DUPFD_BUGGY], [1], [Define this to 1 if F_DUPFD
/netbsd/external/gpl2/xcvs/dist/lib/
H A Ddup2.c35 #ifndef F_DUPFD
59 #ifdef F_DUPFD in dup2()
60 return fcntl (fd, F_DUPFD, desired_fd); in dup2()
H A Ddup-safer.c42 #ifdef F_DUPFD in dup_safer()
43 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); in dup_safer()
/netbsd/external/gpl3/gdb/dist/gnulib/import/
H A Dfcntl.c213 case F_DUPFD: in fcntl()
349 #ifdef F_DUPFD /* POSIX */ in fcntl()
350 case F_DUPFD: in fcntl()
467 result = fcntl (fd, F_DUPFD, target); in rpl_fcntl_DUPFD()
482 result = fcntl (fd, F_DUPFD, target); in rpl_fcntl_DUPFD()
567 case F_DUPFD: in klibc_fcntl()
H A Ddup2.c197 # ifndef F_DUPFD
222 # ifdef F_DUPFD in dup2()
223 result = fcntl (fd, F_DUPFD, desired_fd); in dup2()
H A Dfcntl.in.h211 #ifndef F_DUPFD
212 # define F_DUPFD 1
H A Ddup-safer.c33 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); in dup_safer()
H A Ddup-safer-flag.c36 return fcntl (fd, (flag & O_CLOEXEC) ? F_DUPFD_CLOEXEC : F_DUPFD, in dup_safer_flag()
/netbsd/external/gpl3/gdb.old/dist/gnulib/import/
H A Dfcntl.c213 case F_DUPFD: in fcntl()
349 #ifdef F_DUPFD /* POSIX */ in fcntl()
350 case F_DUPFD: in fcntl()
467 result = fcntl (fd, F_DUPFD, target); in rpl_fcntl_DUPFD()
482 result = fcntl (fd, F_DUPFD, target); in rpl_fcntl_DUPFD()
567 case F_DUPFD: in klibc_fcntl()
H A Ddup2.c197 # ifndef F_DUPFD
222 # ifdef F_DUPFD in dup2()
223 result = fcntl (fd, F_DUPFD, desired_fd); in dup2()
H A Dfcntl.in.h211 #ifndef F_DUPFD
212 # define F_DUPFD 1
H A Ddup-safer.c33 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); in dup_safer()
H A Ddup-safer-flag.c36 return fcntl (fd, (flag & O_CLOEXEC) ? F_DUPFD_CLOEXEC : F_DUPFD, in dup_safer_flag()
/netbsd/external/gpl2/rcs/dist/src/
H A Drcsutil.c836 # ifdef F_DUPFD
837 return fcntl(fd, F_DUPFD, STDERR_FILENO + 1);
896 #ifdef F_DUPFD
898 # define dup(fd) fcntl(fd, F_DUPFD, 0)
911 # ifdef F_DUPFD
912 new = fcntl(old, F_DUPFD, new);
1043 # ifdef F_DUPFD
1049 # ifdef F_DUPFD
1050 fcntl(infd, F_DUPFD, STDIN_FILENO) != STDIN_FILENO
1087 # ifdef F_DUPFD
[all …]
/netbsd/external/bsd/ntp/dist/libntp/
H A Dsocket.c60 #if !defined(SYS_WINNT) && defined(F_DUPFD) in move_fd()
104 newfd = fcntl(fd, F_DUPFD, socket_boundary); in move_fd()
/netbsd/external/bsd/ntp/dist/lib/isc/win32/
H A Dunistd.h36 #undef F_DUPFD
/netbsd/external/mpl/bind/dist/lib/isc/win32/
H A Dunistd.h30 #undef F_DUPFD
/netbsd/bin/sh/
H A Dredir.c86 #define F_DUPFD_CLOEXEC F_DUPFD
279 if ((i = fcntl(fd, F_DUPFD, bigfd + 1)) == -1) { in redirect()
287 i = fcntl(fd, F_DUPFD, big_sh_fd); in redirect()
291 i = fcntl(fd, F_DUPFD, 3); in redirect()
616 if ((fd = fcntl(0, F_DUPFD, i - 1)) >= 0) { in find_big_fd()
/netbsd/external/ibm-public/postfix/dist/src/util/
H A Dvstream.h155 #ifdef F_DUPFD
177 #ifdef F_DUPFD
/netbsd/external/gpl3/gdb/lib/libgnulib/arch/m68k/gnulib/import/
H A Dfcntl.h691 #ifndef F_DUPFD
692 # define F_DUPFD 1 macro
/netbsd/external/gpl3/gdb/lib/libgnulib/arch/mipseb/gnulib/import/
H A Dfcntl.h691 #ifndef F_DUPFD
692 # define F_DUPFD 1 macro
/netbsd/external/gpl3/gdb/lib/libgnulib/arch/powerpc64/gnulib/import/
H A Dfcntl.h691 #ifndef F_DUPFD
692 # define F_DUPFD 1 macro
/netbsd/external/gpl3/gdb/lib/libgnulib/arch/sh3eb/gnulib/import/
H A Dfcntl.h691 #ifndef F_DUPFD
692 # define F_DUPFD 1 macro
/netbsd/external/gpl3/gdb/lib/libgnulib/arch/sh3el/gnulib/import/
H A Dfcntl.h691 #ifndef F_DUPFD
692 # define F_DUPFD 1 macro

12345