Searched refs:fcntl (Results 1 - 25 of 1114) sorted by relevance

1234567891011>>

/external/kernel-headers/original/uapi/asm-x86/asm/
H A Dfcntl.h1 #include <asm-generic/fcntl.h>
/external/bison/lib/
H A Ddup-safer.c24 #include <fcntl.h>
33 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1);
H A Ddup-safer-flag.c26 #include <fcntl.h>
31 fcntl(F_DUPFD_CLOEXEC) rather than fcntl(F_DUPFD). */
36 return fcntl (fd, (flag & O_CLOEXEC) ? F_DUPFD_CLOEXEC : F_DUPFD,
H A Dcloexec.c25 #include <fcntl.h>
43 int flags = fcntl (desc, F_GETFD, 0);
50 || fcntl (desc, F_SETFD, newflags) != -1)
82 return fcntl (fd, F_DUPFD_CLOEXEC, 0);
H A Dpipe2.c23 #include <fcntl.h>
43 creating the pipe but later fail at changing fcntl, we want
115 On Unix platforms, O_NONBLOCK is defined by the system. Use fcntl(). */
120 if ((fcntl_flags = fcntl (fd[1], F_GETFL, 0)) < 0
121 || fcntl (fd[1], F_SETFL, fcntl_flags | O_NONBLOCK) == -1
122 || (fcntl_flags = fcntl (fd[0], F_GETFL, 0)) < 0
123 || fcntl (fd[0], F_SETFL, fcntl_flags | O_NONBLOCK) == -1)
131 if ((fcntl_flags = fcntl (fd[1], F_GETFD, 0)) < 0
132 || fcntl (fd[1], F_SETFD, fcntl_flags | FD_CLOEXEC) == -1
133 || (fcntl_flags = fcntl (f
[all...]
/external/valgrind/none/tests/
H A Dfdleak_fcntl.c3 #include <fcntl.h>
13 (void) DO( fcntl(s1, F_DUPFD, s1) );
H A Dfdleak_open.c1 #include <fcntl.h>
H A Dfcntl_setown.c1 #include <fcntl.h>
17 if (fcntl(s, F_SETOWN, getpid()) < 0)
19 perror("fcntl(F_SETOWN)");
H A Dfdleak_creat.c3 #include <fcntl.h>
H A Dfdleak_dup.c2 #include <fcntl.h>
/external/kernel-headers/original/uapi/asm-arm/asm/
H A Dfcntl.h9 #include <asm-generic/fcntl.h>
/external/kernel-headers/original/uapi/asm-arm64/asm/
H A Dfcntl.h27 #include <asm-generic/fcntl.h>
/external/giflib/
H A Dconfig.h9 #include <fcntl.h>
/external/ppp/pppd/plugins/radius/
H A Dlock.c14 #include <fcntl.h>
27 res = fcntl(fd, F_SETLK, &fl);
45 return fcntl(fd, F_SETLK, &fl);
/external/nanopb-c/tests/common/
H A Dtest_helpers.h8 #include <fcntl.h>
/external/clang/test/Sema/
H A Dwarn-type-safety.c127 static const int F_DUPFD_tag __attribute__(( type_tag_for_datatype(fcntl,int) )) = F_DUPFD;
128 static const int F_SETLK_tag __attribute__(( type_tag_for_datatype(fcntl,struct flock *) )) = F_SETLK;
130 int fcntl(int fd, int cmd, ...) __attribute__(( argument_with_type_tag(fcntl,3,2) ));
134 fcntl(0, F_DUPFD, 10); // no-warning
135 fcntl(0, F_SETLK, f); // no-warning
137 fcntl(0, F_SETLK, 10); // expected-warning {{argument type 'int' doesn't match specified 'fcntl' type tag that requires 'struct flock *'}}
138 fcntl(0, F_DUPFD, f); // expected-warning {{argument type 'struct flock *' doesn't match specified 'fcntl' typ
[all...]
/external/libdrm/tests/
H A Dname_from_fd.c29 #include <fcntl.h>
/external/libselinux/src/
H A Dfsetfilecon.c2 #include <fcntl.h>
H A Dlsetfilecon.c2 #include <fcntl.h>
H A Dsetfilecon.c2 #include <fcntl.h>
/external/strace/tests/
H A Dpipe.c6 #include <fcntl.h>
/external/valgrind/memcheck/tests/darwin/
H A Dmkfifo.c6 #include <fcntl.h>
/external/valgrind/memcheck/tests/
H A Derringfds.c5 #include <fcntl.h>
H A Dfwrite.c1 #include <fcntl.h>
H A Dmmaptest.c3 #include <fcntl.h>

Completed in 482 milliseconds

1234567891011>>