Home
last modified time | relevance | path

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

12

/external/clang/test/Sema/
Dwarn-type-safety.c122 #define F_DUPFD 10 macro
127 static const int F_DUPFD_tag __attribute__(( type_tag_for_datatype(fcntl,int) )) = F_DUPFD;
134 fcntl(0, F_DUPFD, 10); // no-warning in test_argument_with_type_tag()
138 …fcntl(0, F_DUPFD, f); // expected-warning {{argument type 'struct flock *' doesn't match specifie… in test_argument_with_type_tag()
142 fcntl(0, b ? F_DUPFD : F_SETLK, 10); // no-warning in test_tag_expresssion()
143 fcntl(0, b + F_DUPFD, 10); // no-warning in test_tag_expresssion()
144 fcntl(0, (b, F_DUPFD), 10); // expected-warning {{expression result unused}} in test_tag_expresssion()
/external/bison/m4/
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],
34 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
48 AC_DEFINE([FCNTL_DUPFD_BUGGY], [1], [Define this to 1 if F_DUPFD
/external/bison/lib/
Ddup2.c119 # ifndef F_DUPFD
144 # ifdef F_DUPFD in dup2()
145 result = fcntl (fd, F_DUPFD, desired_fd); in dup2()
Dfcntl.c178 case F_DUPFD: in rpl_fcntl()
185 case F_DUPFD: in rpl_fcntl()
246 result = rpl_fcntl (fd, F_DUPFD, target); in rpl_fcntl()
253 result = rpl_fcntl (fd, F_DUPFD, target); in rpl_fcntl()
Dfcntl.in.h179 #ifndef F_DUPFD
180 # define F_DUPFD 1
Ddup-safer.c33 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); in dup_safer()
Ddup-safer-flag.c36 return fcntl (fd, (flag & O_CLOEXEC) ? F_DUPFD_CLOEXEC : F_DUPFD, in dup_safer_flag()
/external/strace/xlat/
Dfcntlcmds.h2 #if !(defined(F_DUPFD) || (defined(HAVE_DECL_F_DUPFD) && HAVE_DECL_F_DUPFD))
3 # define F_DUPFD 0 macro
93 XLAT(F_DUPFD),
Dfcntlcmds.in2 F_DUPFD 0
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl01.c75 if ((fd[2] = fcntl(fd[1], F_DUPFD, 1)) == -1) in main()
82 if ((fd[4] = fcntl(fd[1], F_DUPFD, fd2[3])) < 0) in main()
89 if ((fd[8] = fcntl(fd[1], F_DUPFD, fd2[5])) < 0) in main()
Dfcntl02.c142 TEST(fcntl(fd, F_DUPFD, 0)); in main()
Dfcntl12.c86 if (fcntl(1, F_DUPFD, 1) != -1) { in main()
Dfcntl15.c405 if ((fd_B = fcntl(fd_A, F_DUPFD, 0)) < 0) { in run_test()
/external/valgrind/none/tests/
Dfdleak_fcntl.c13 (void) DO( fcntl(s1, F_DUPFD, s1) ); in main()
/external/libchrome/sandbox/linux/bpf_dsl/
Dbpf_dsl_unittest.cc277 emulator.ExpectAllow(FakeSyscall(__NR_fcntl, -5, F_DUPFD)); in TEST()
278 emulator.ExpectAllow(FakeSyscall(__NR_fcntl, 20, F_DUPFD)); in TEST()
279 emulator.ExpectErrno(EPERM, FakeSyscall(__NR_fcntl, -314, F_DUPFD)); in TEST()
431 FakeSyscall(__NR_fcntl, kFakeSockFD, F_DUPFD, 0)); in TEST()
/external/kernel-headers/original/uapi/asm-generic/
Dfcntl.h99 #define F_DUPFD 0 /* dup */ macro
/external/bison/linux-lib/
Dfcntl.h491 #ifndef F_DUPFD
492 # define F_DUPFD 1 macro
/external/bison/darwin-lib/
Dfcntl.h491 #ifndef F_DUPFD
492 # define F_DUPFD 1 macro
/external/minijail/linux-x86/
Dlibconstants.gen.c539 #ifdef F_DUPFD
540 { "F_DUPFD", (unsigned long) F_DUPFD },
/external/strace/
Dfcntl.c101 case F_DUPFD: in print_fcntl()
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dsyscall_parameters_restrictions.cc241 F_DUPFD, in RestrictFcntlCommands()
/external/mksh/src/
Dmain.c1168 if ((rv = fcntl(fd, F_DUPFD, FDBASE)) < 0) { in tty_init_fd()
1397 nfd = fcntl(shl_dbg_fd, F_DUPFD, FDBASE); in initio()
1436 if (fd < FDBASE && (nfd = fcntl(fd, F_DUPFD, FDBASE)) < 0 && in savefd()
Dshf.c75 nfd = fcntl(fd, F_DUPFD, FDBASE); in shf_open()
/external/valgrind/memcheck/tests/x86-linux/
Dscalar.c277 SY(__NR_fcntl, -1, F_DUPFD, x0); FAILx(EBADF); in main()
986 SY(__NR_fcntl64, -1, F_DUPFD, x0); FAILx(EBADF); in main()
/external/valgrind/memcheck/tests/darwin/
Dscalar.c874 SY(__NR_fcntl, -1, F_DUPFD, x0); FAILx(EBADF); in main()
1572 SY(__NR_fcntl64, -1, F_DUPFD, x0); FAILx(EBADF); in main()

12