HomeSort by relevance Sort by last modified time
    Searched refs:fd2 (Results 1 - 25 of 76) sorted by null

1 2 3 4

  /external/bison/lib/
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/
syscalls-2007.c 38 int fd, fd2; local
48 fd2 = eventfd (5, 0);
49 eventfd_read (fd2, &ev);
52 pfd[1].fd = fd2;
  /external/oprofile/libutil++/
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;
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/libjingle/source/talk/base/
linuxfdwalk_unittest.cc 77 int fd2 = open("/dev/null", O_WRONLY); local
78 EXPECT_LE(0, fd2);
84 EXPECT_TRUE(fds.insert(fd2).second);
89 EXPECT_EQ(0, close(fd2));
  /external/valgrind/main/memcheck/tests/
file_locking.c 80 int fd2; local
102 fd2 = open_lock_and_map("child", filename);
103 if (fd2 >= 0)
105 close(fd2);
  /system/core/toolbox/
cmp.c 13 int fd1, fd2; local
56 fd2 = open(argv[optind+1], O_RDONLY);
57 if(fd2 < 0) {
64 res2 = read(fd2, &buf2, sizeof(buf2));
  /external/valgrind/main/none/tests/
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);
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);
  /hardware/samsung_slsi/exynos5/include/
gralloc_priv.h 80 int fd2; member in struct:private_handle_t
111 fd(fd), fd1(-1), fd2(-1), magic(sMagic), flags(flags), size(size),
123 fd(fd), fd1(fd1), fd2(-1), magic(sMagic), flags(flags), size(size),
133 private_handle_t(int fd, int fd1, int fd2, int size, int flags, int w,
135 fd(fd), fd1(fd1), fd2(fd2), magic(sMagic), flags(flags), size(size),
  /system/core/libsync/
sync.c 37 int sync_merge(const char *name, int fd1, int fd2)
42 data.fd2 = fd2;
  /bionic/libc/kernel/common/linux/
sync.h 24 __s32 fd2; member in struct:sync_merge_data
  /system/core/include/sync/
sync.h 46 int sync_merge(const char *name, int fd1, int fd2);
  /external/chromium_org/third_party/ots/test/
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);
  /libcore/luni/src/main/java/java/nio/
PipeImpl.java 40 FileDescriptor fd2 = new FileDescriptor(); local
41 Libcore.os.socketpair(AF_UNIX, SOCK_STREAM, 0, fd1, fd2);
46 this.source = new PipeSourceChannel(selectorProvider, fd2);
  /external/chromium_org/native_client_sdk/src/libraries/nacl_io_test/
kernel_proxy_test.cc 137 int fd1, fd2, fd3; local
164 fd2 = ki_open("/foo/bar", O_RDONLY | O_CREAT);
165 EXPECT_NE(-1, fd2);
173 EXPECT_EQ(5, ki_write(fd2, "WORLD", 5));
185 EXPECT_EQ(0, ki_close(fd2));
198 fd2 = ki_open("/foo/bar", O_RDONLY);
199 EXPECT_NE(-1, fd2);
200 len = ki_read(fd2, text, sizeof(text));
230 int fd2 = ki_dup(fd); local
231 EXPECT_NE(-1, fd2);
    [all...]
kernel_object_test.cc 111 int fd2 = proxy->AllocateFD(handle_b); local
118 EXPECT_EQ(1, fd2);
128 EXPECT_EQ(0, proxy->AcquireHandle(fd2, &handle_b));
153 proxy->FreeFD(fd2);
  /external/liblzf/
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);
  /hardware/samsung_slsi/exynos5/gralloc/
mapper.cpp 119 if (hnd->fd2 >= 0) {
120 ret = ion_import(getIonFd(module), hnd->fd2, &hnd->handle2);
122 ALOGE("error importing handle2 %d %x\n", hnd->fd2, hnd->format);
182 if (hnd->fd2 >= 0)
183 ion_sync_fd(getIonFd(module), hnd->fd2);
gralloc.cpp 237 int err, planes, fd, fd1, fd2 = 0; local
305 err = ion_alloc_fd(ionfd, chroma_size, 0, heap_mask, ion_flags, &fd2);
309 *hnd = new private_handle_t(fd, fd1, fd2, luma_size, usage, w, h,
375 if (hnd->fd2 >= 0)
376 close(hnd->fd2);
395 if (hnd->fd2 >= 0)
396 close(hnd->fd2);
  /system/extras/tests/ext4/
rand_emmc_perf.c 185 int fd, fd2; local
246 fd2 = open("/dev/urandom", O_RDONLY);
247 if (fd2 < 0) {
250 if (read(fd2, &seed, sizeof(seed)) != sizeof(seed)) {
253 close(fd2);
  /external/clang/test/CXX/special/class.inhctor/
p3.cpp 22 D2 fd2() { return 1; } // expected-error {{no viable conversion}} function
  /external/qemu/android/utils/
timezone.c 178 int fd1, fd2, result = 0; local
197 fd2 = open( path, O_RDONLY );
198 if (fd2 < 0) {
213 do { ret = read(fd2, &temp[1], 1); } while (ret < 0 && errno == EINTR);
226 close(fd2);
  /external/elfutils/src/
findtextrel.c 309 int fd2 = -1; local
377 fd2 = open64 (difname, O_RDONLY);
378 if (fd2 != -1
379 && (elf2 = elf_begin (fd2, ELF_C_READ_MMAP, NULL)) != NULL)
470 if (fd2 != -1)
471 close (fd2);
  /external/chromium/base/
file_descriptor_shuffle_unittest.cc 30 fd2(in_fd2) {
36 other.fd2 == fd2;
41 int fd2; member in struct:Action

Completed in 560 milliseconds

1 2 3 4