/external/bison/lib/ |
H A D | fseterr.c | 59 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 D | syscalls-2007.c | 38 int fd, fd2; local 48 fd2 = eventfd (5, 0); 49 eventfd_read (fd2, &ev); 52 pfd[1].fd = fd2;
|
H A D | sys-openat.c | 14 __attribute__((unused)) int fd2 = openat (0x12345678, "/tmp/abc", O_RDONLY); local
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/ |
H A D | bp_signal.c | 30 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 D | child_reader.cpp | 29 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 D | child_reader.h | 88 // 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 D | linuxfdwalk_unittest.cc | 60 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 D | file_locking.c | 80 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 D | pth_cancel2.c | 52 int *fd2=(int *)arg; local 57 async_cancel_safe_write(*fd2,buf,amt); 58 async_cancel_safe_read(*fd2,buf,amt);
|
H A D | fdleak_cmsg.c | 38 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 D | sync.h | 46 int sync_merge(const char *name, int fd1, int fd2);
|
/external/kernel-headers/original/uapi/linux/ |
H A D | sync.h | 19 * @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 D | idempotent.cc | 72 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 D | p3.cpp | 22 D2 fd2() { return 1; } // expected-error {{no viable conversion}} function
|
/external/liblzf/ |
H A D | lzf.c | 371 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 D | kernel_proxy_test.cc | 289 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 D | kernel_object_test.cc | 105 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 D | nacl_io_demo.c | 323 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 D | timezone.c | 179 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 D | findtextrel.c | 325 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 D | file_descriptor_shuffle_unittest.cc | 27 fd2(in_fd2) { 33 other.fd2 == fd2; 38 int fd2; member in struct:base::Action
|
/external/chromium_org/ipc/ |
H A D | ipc_channel.h | 230 IPC_EXPORT bool SocketPair(int* fd1, int* fd2);
|
/external/lldb/examples/interposing/darwin/fd_interposing/ |
H A D | FDInterposing.cpp | 910 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 D | tap_proxy.cc | 309 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 D | testserver_base.py | 41 def __init__(self, fd1, fd2) : 43 self.__fd2 = fd2
|