Searched refs:fd2 (Results 1 - 25 of 46) sorted by relevance

12

/external/bison/lib/
H A Dfseterr.c59 int fd2;
64 fd2 = dup (fd);
65 if (fd2 >= 0)
70 if (dup2 (fd2, fd) < 0)
73 close (fd2);
/external/valgrind/main/memcheck/tests/linux/
H A Dsyscalls-2007.c38 int fd, fd2; local
48 fd2 = eventfd (5, 0);
49 eventfd_read (fd2, &ev);
52 pfd[1].fd = fd2;
H A Dsys-openat.c14 __attribute__((unused)) int fd2 = openat (0x12345678, "/tmp/abc", O_RDONLY); local
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/
H A Dbp_signal.c30 static int fd2; variable
55 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0);
134 * fd2 - breakpoint event on sig_handler without SIGIO
141 * - fd2 event breakpoint hit -> count2 == 1
154 fd2 = bp_event(sig_handler, 0);
157 ioctl(fd2, PERF_EVENT_IOC_ENABLE, 0);
166 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0);
169 count2 = bp_count(fd2);
172 close(fd2);
/external/oprofile/libutil++/
H A Dchild_reader.cpp29 fd1(-1), fd2(-1),
114 fd2 = pstderr[0];
128 FD_SET(fd2, &read_fs);
130 if (select(max(fd1, fd2) + 1, &read_fs, 0, 0, 0) >= 0) {
139 if (FD_ISSET(fd2, &read_fs)) {
145 ssize_t temp = read(fd2, buf2 + end2, sz_buf2 - end2);
248 if (fd2 != -1) {
249 close(fd2);
250 fd2 = -1;
H A Dchild_reader.h88 // return false when eof condition is reached on fd1. fd2 can have
93 int fd2; member in class:child_reader
/external/chromium_org/third_party/webrtc/base/
H A Dlinuxfdwalk_unittest.cc60 int fd2 = open("/dev/null", O_WRONLY); local
61 EXPECT_LE(0, fd2);
67 EXPECT_TRUE(fds.insert(fd2).second);
72 EXPECT_EQ(0, close(fd2));
/external/valgrind/main/memcheck/tests/
H A Dfile_locking.c80 int fd2; local
102 fd2 = open_lock_and_map("child", filename);
103 if (fd2 >= 0)
105 close(fd2);
/external/valgrind/main/none/tests/
H A Dpth_cancel2.c52 int *fd2=(int *)arg; local
57 async_cancel_safe_write(*fd2,buf,amt);
58 async_cancel_safe_read(*fd2,buf,amt);
H A Dfdleak_cmsg.c38 int s, fd1, fd2; local
42 fd2 = DO( open(fileb, O_RDWR | O_CREAT | O_TRUNC, 0750) );
72 ((int *)CMSG_DATA(cmsg))[1] = fd2;
86 int s, fd1 = -1, fd2 = -1, size, count = 0, ret; local
136 fd2 = ((int *)CMSG_DATA(cmsg))[1];
143 if (fd2 != -1) write(fd2, "Yeah 2\n", 8);
/external/chromium_org/third_party/hwcplus/include/sync/
H A Dsync.h46 int sync_merge(const char *name, int fd1, int fd2);
/external/kernel-headers/original/uapi/linux/
H A Dsync.h19 * @fd2: file descriptor of second fence
24 __s32 fd2; /* fd of second fence */ member in struct:sync_merge_data
78 * the sync_pts in both the calling fd and sync_merge_data.fd2. Returns the
/external/chromium_org/third_party/ots/test/
H A Didempotent.cc72 int fd2 = open("out2.ttf", local
74 if (fd1 < 0 || fd2 < 0) {
79 (write(fd2, result2, len2) < 0)) {
82 close(fd2);
86 close(fd2);
/external/clang/test/CXX/special/class.inhctor/
H A Dp3.cpp22 D2 fd2() { return 1; } // expected-error {{no viable conversion}} function
/external/liblzf/
H A Dlzf.c371 int fd, fd2; local
410 fd2 = open_out (oname);
411 if (fd2 == -1)
421 rc = compress_fd (fd, fd2);
428 rc = uncompress_fd (fd, fd2);
435 fchmod (fd2, mystat.st_mode);
440 close (fd2);
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
H A Dkernel_proxy_test.cc289 int fd1, fd2, fd3, fd4, fd5; local
303 fd2 = ki_open("../example", O_RDONLY, 0);
304 EXPECT_NE(-1, fd2);
305 EXPECT_EQ(0, ki_fchdir(fd2));
344 int fd1, fd2, fd3; local
371 fd2 = ki_open("/foo/bar", O_RDWR | O_CREAT, 0777);
372 ASSERT_NE(-1, fd2);
380 EXPECT_EQ(5, ki_write(fd2, "WORLD", 5));
391 EXPECT_EQ(0, ki_close(fd2));
402 fd2
413 int fd1, fd2; local
476 int fd2 = ki_dup(fd); local
[all...]
H A Dkernel_object_test.cc105 int fd2 = proxy.AllocateFD(handle_b, ""); local
112 EXPECT_EQ(1, fd2);
122 EXPECT_EQ(0, proxy.AcquireHandle(fd2, &handle_b));
147 proxy.FreeFD(fd2);
/external/chromium_org/native_client_sdk/src/examples/demo/nacl_io_demo/
H A Dnacl_io_demo.c323 int fd2 = open("/dev/jspipe2", O_RDWR | O_NONBLOCK); local
325 int nfds = larger_int_of(fd1, fd2);
331 FD_SET(fd2, &readfds);
341 if (FD_ISSET(fd2, &readfds))
342 EchoInput(fd2);
349 close(fd2);
/external/qemu/android/utils/
H A Dtimezone.c179 int fd1, fd2, result = 0; local
198 fd2 = open( path, O_RDONLY );
199 if (fd2 < 0) {
214 ret = HANDLE_EINTR(read(fd2, &temp[1], 1));
227 close(fd2);
/external/elfutils/0.153/src/
H A Dfindtextrel.c325 int fd2 = -1; local
393 fd2 = open64 (difname, O_RDONLY);
394 if (fd2 != -1
395 && (elf2 = elf_begin (fd2, ELF_C_READ_MMAP, NULL)) != NULL)
486 if (fd2 != -1)
487 close (fd2);
/external/chromium_org/base/posix/
H A Dfile_descriptor_shuffle_unittest.cc27 fd2(in_fd2) {
33 other.fd2 == fd2;
38 int fd2; member in struct:base::Action
/external/chromium_org/ipc/
H A Dipc_channel.h230 IPC_EXPORT bool SocketPair(int* fd1, int* fd2);
/external/lldb/examples/interposing/darwin/fd_interposing/
H A DFDInterposing.cpp910 dup$__interposed__ (int fd2) argument
916 const int fd = ::dup (fd2);
918 StringSP description_sp(new String ("pid=%i: dup (fd2=%i) -> fd=%i", pid, fd2, fd));
927 return ::dup (fd2);
935 dup2$__interposed__ (int fd1, int fd2) argument
941 // If "fd2" is already opened, it will be closed during the
942 // dup2 call below, so we need to see if we have fd2 in our
943 // open map and treat it as a close(fd2)
944 FDEventMap::iterator pos = g_fd_event_map.find (fd2);
[all...]
/external/chromium_org/media/cast/test/utility/
H A Dtap_proxy.cc309 int fd2 = tun_alloc(argv[2], IFF_TAP); local
313 media::cast::test::QueueManager qm1(fd1, fd2, in_pipe.Pass());
314 media::cast::test::QueueManager qm2(fd2, fd1, out_pipe.Pass());
/external/chromium_org/net/tools/testserver/
H A Dtestserver_base.py41 def __init__(self, fd1, fd2) :
43 self.__fd2 = fd2

Completed in 750 milliseconds

12