Searched refs:fd2 (Results 1 - 25 of 42) 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;
/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/libjingle/source/talk/base/
H A Dlinuxfdwalk_unittest.cc77 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/
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/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/chromium_org/native_client_sdk/src/libraries/nacl_io_test/
H A Dkernel_proxy_test.cc137 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...]
H A Dkernel_object_test.cc111 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/
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/qemu/android/utils/
H A Dtimezone.c178 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/
H A Dfindtextrel.c309 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);
H A Delfcmp.c160 int fd2; local
162 Elf *elf2 = open_file (fname2, &fd2, &ebl2);
510 close (fd2);
/external/chromium/base/
H A Dfile_descriptor_shuffle_unittest.cc30 fd2(in_fd2) {
36 other.fd2 == fd2;
41 int fd2; member in struct:Action
/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/kernel-headers/original/linux/
H A Dsync.h341 * @fd2: file descriptor of second fence
346 __s32 fd2; /* fd of second fence */ member in struct:sync_merge_data
400 * the sync_pts in both the calling fd and sync_merge_data.fd2. Returns the
H A Daudit.h536 extern void __audit_fd_pair(int fd1, int fd2);
552 static inline void audit_fd_pair(int fd1, int fd2) argument
555 __audit_fd_pair(fd1, fd2);
/external/chromium_org/net/tools/testserver/
H A Dtestserver_base.py39 def __init__(self, fd1, fd2) :
41 self.__fd2 = fd2
/external/qemu/
H A Dsockets.h386 int socket_pair(int *fd1, int *fd2);
/external/chromium_org/native_client_sdk/src/libraries/ppapi_simple/
H A Dps_instance.cc207 int fd2 = open(getenv("PS_STDERR"), O_WRONLY); local
208 dup2(fd2, 2);
/external/bison/darwin-lib/
H A Dstdio.h1280 (int fd1, char const *file1, int fd2, char const *file2)
1283 (int fd1, char const *file1, int fd2, char const *file2));
1287 (int fd1, char const *file1, int fd2, char const *file2)
1291 (int fd1, char const *file1, int fd2, char const *file2));
H A Dunistd.h1362 (int fd1, const char *path1, int fd2, const char *path2,
1366 (int fd1, const char *path1, int fd2, const char *path2,
1371 (int fd1, const char *path1, int fd2, const char *path2,
1376 (int fd1, const char *path1, int fd2, const char *path2,

Completed in 553 milliseconds

12