/external/ltp/testcases/kernel/controllers/freezer/ |
libltp | 30 local out_fd=1 50 out_fd=2 62 out_fd=2 65 out_fd=2 71 out_fd=2 76 #echo "LTP log: $cmd ${TCID} ${TST_COUNT}/${TST_TOTAL}: $tag $msg" 1>&$out_fd 77 echo "${TCID} ${TST_COUNT}/${TST_TOTAL}: $tag $msg" 1>&$out_fd
|
/external/toybox/toys/pending/ |
gzip.c | 67 // Read fron in_fd, write to out_fd, decompress if dd else compress 68 static int do_deflate(int in_fd, int out_fd, int dd, int level) 76 if (out_fd == 1) out_fd = xdup(out_fd); 78 if (!(gz = gzdopen(dd ? in_fd : out_fd, b))) perror_exit("gzdopen"); 81 if (len != writeall(out_fd, toybuf, len)) break; 100 // Read from in_fd, write to out_fd, decompress if dd else compress 101 static int do_deflate(int in_fd, int out_fd, int dd, int level) 105 if (dd) WOULD_EXIT(x, gunzip_fd(in_fd, out_fd)); 116 int len, out_fd = 0; local [all...] |
/device/generic/goldfish-opengl/android-emu/android/utils/ |
debug.c | 112 int null_fd, out_fd, err_fd; local 114 out_fd = _fileno(stdout); 116 stdio_save_out_fd = _dup(out_fd); 119 _dup2(null_fd, out_fd); 129 int out_fd, err_fd; local 131 out_fd = _fileno(stdout); 133 _dup2(stdio_save_out_fd, out_fd); 144 int null_fd, out_fd, err_fd; local 146 out_fd = fileno(stdout); 148 stdio_save_out_fd = dup(out_fd); 161 int out_fd, err_fd; local [all...] |
/device/google/fuchsia/bioniccompat/include/sys/ |
sendfile.h | 31 ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count);
|
/external/ltp/testcases/kernel/syscalls/sendfile/ |
sendfile07.c | 27 * when passing blocked out_fd. Here out_fd is opend with O_NONBLOCK. 30 * 1. Make sockets with socketpair(&p). Use p[1] as out_fd. 31 * 2. Set O_NONBLOCK flag of out_fd on. 32 * 3. Write much datum to out_fd till write() returns EAGAIN. 33 * 4. Call sendfile with out_fd, and expect EAGAIN. 65 int in_fd, out_fd = 0, ignored_fd = 0; variable 68 /* To make out_fd overflow, write much chars 69 to out_fd. MAX_FILL_DATA_LENGTH defines the `much'. */ 89 TEST(sendfile(out_fd, in_fd, NULL, 1)) [all...] |
sendfile08.c | 47 static int out_fd; variable 65 TEST(sendfile(out_fd, in_fd, NULL, strlen(TEST_MSG_IN))); 70 ret = SAFE_LSEEK(cleanup, out_fd, 0, SEEK_SET); 71 ret = read(out_fd, buf, BUFSIZ); 94 tst_resm(TCONF, "The out_fd must be socket before kernel"); 110 out_fd = SAFE_OPEN(cleanup, out_file, O_TRUNC | O_CREAT | O_RDWR, 0777); 112 ret = write(out_fd, TEST_MSG_OUT, strlen(TEST_MSG_OUT)); 119 close(out_fd);
|
sendfile03.c | 29 * 1. Call sendfile(2) with out_fd = -1, and expect EBADF to be returned. 31 * 3. Call sendfile(2) with in_fd = out_fd = -1, and expect EBADF. 64 int in_fd, out_fd; variable 74 int out_fd; member in struct:test_case_t 82 "Test for EBADF, out_fd = -1", NULL, -1, 7, NULL, 0, EBADF}, { 83 "Test for EBADF, in_fd = out_fd = -1", NULL, -1, -1, NULL, 107 TEST(sendfile(testcases[i].out_fd, testcases[i].in_fd, 158 if ((out_fd = open(out_file, O_TRUNC | O_CREAT | O_RDWR, 0777)) < 0) { 173 close(out_fd);
|
sendfile09.c | 65 static int out_fd; variable 91 out_fd = SAFE_OPEN(cleanup, out_file, O_WRONLY); 95 TEST(sendfile(out_fd, in_fd, &t->offset, t->count)); 122 close(out_fd); 162 if (out_fd > 0) 163 close(out_fd);
|
sendfile06.c | 68 int in_fd, out_fd; local 72 out_fd = create_server(); 76 TEST(sendfile(out_fd, in_fd, NULL, sb.st_size)); 84 shutdown(out_fd, SHUT_RDWR); 104 SAFE_CLOSE(cleanup, out_fd);
|
sendfile02.c | 71 int out_fd; variable 106 out_fd = create_server(); 118 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size - offset)); 205 close(out_fd);
|
sendfile04.c | 70 int out_fd; variable 113 out_fd = create_server(); 125 TEST(sendfile(out_fd, in_fd, protected_buffer, sb.st_size)); 202 close(out_fd);
|
sendfile05.c | 65 int out_fd; variable 87 out_fd = create_server(); 95 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size)); 167 close(out_fd);
|
/art/tools/golem/ |
env | 64 local out_fd="${1:-1}" # defaults to 1 if no param was set 68 echo >&$out_fd "${prefix}${target}"
|
/device/google/fuchsia/bioniccompat/src/ |
sendfile.cc | 29 ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count) { 52 int written = write(out_fd, data, bytes);
|
/external/virglrenderer/vtest/ |
vtest.h | 28 int vtest_create_renderer(int in_fd, int out_fd, uint32_t length);
|
vtest_server.c | 89 static int run_renderer(int in_fd, int out_fd) 105 ret = vtest_create_renderer(in_fd, out_fd, header[0]); 157 int ret, sock = -1, in_fd, out_fd; local 184 out_fd = ret; 204 out_fd = in_fd; 211 run_renderer(in_fd, out_fd); 221 run_renderer(in_fd, out_fd); 228 if (in_fd != out_fd) 229 close(out_fd);
|
vtest_renderer.c | 55 int out_fd; member in struct:vtest_renderer 113 int vtest_create_renderer(int in_fd, int out_fd, uint32_t length) 120 renderer.out_fd = out_fd; 170 renderer.out_fd = -1; 192 ret = vtest_block_write(renderer.out_fd, hdr_buf, 8); 195 vtest_block_write(renderer.out_fd, caps_buf, max_size); 221 ret = vtest_block_write(renderer.out_fd, hdr_buf, 8); 224 vtest_block_write(renderer.out_fd, caps_buf, max_size); 351 ret = vtest_block_write(renderer.out_fd, ptr, data_size) [all...] |
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
decorate_proc_maps.cc | 12 bool CopyFdToFd(int in_fd, int out_fd) { 18 write(out_fd, buf, got);
|
/build/make/tools/makeparallel/ |
makeparallel.cpp | 103 int* in_fd, int* out_fd, bool* parallel, bool* keep_going) { 135 if (sscanf(optarg, "%d,%d", in_fd, out_fd) != 2) { 138 // TODO: propagate in_fd, out_fd 275 static void PutJobserverTokens(int out_fd, int tokens) { 279 int ret = TEMP_FAILURE_RETRY(write(out_fd, &buf, 1)); 290 int out_fd = -1; local 310 if (ParseMakeflags(makeflags, &in_fd, &out_fd, ¶llel, &keep_going)) { 311 if (in_fd >= 0 && out_fd >= 0) { 313 CheckFd(out_fd); 315 fcntl(out_fd, F_SETFD, FD_CLOEXEC) [all...] |
/external/autotest/utils/ |
parallel.py | 98 out_fd = os.open(log_file, os.O_WRONLY | os.O_CREAT) 100 os.dup2(out_fd, 2) 101 os.dup2(out_fd, 1) 103 os.close(out_fd)
|
/external/libbrillo/brillo/dbus/ |
dbus_method_invoker_unittest.cc | 214 base::ScopedFD out_fd = EchoFD(fd_stdin); local 215 EXPECT_NE(fd_stdin, out_fd.get()); 216 EXPECT_TRUE(out_fd.is_valid()); 218 out_fd = EchoFD(fd_stdout); 219 EXPECT_NE(fd_stdout, out_fd.get()); 220 EXPECT_TRUE(out_fd.is_valid()); 222 out_fd = EchoFD(fd_stderr); 223 EXPECT_NE(fd_stderr, out_fd.get()); 224 EXPECT_TRUE(out_fd.is_valid());
|
/external/e2fsprogs/contrib/android/ |
ext2simg.c | 181 int out_fd; local 210 out_fd = open(params.out_file, O_WRONLY | O_CREAT | O_TRUNC, 0664); 211 if (out_fd == -1) 213 if (sparse_file_write(s, out_fd, params.gzip, params.sparse, params.crc) < 0) 221 close(out_fd);
|
/external/perfetto/src/perfetto_cmd/ |
rate_limiter.cc | 205 base::ScopedFile out_fd( 207 if (!out_fd) 214 ssize_t written = base::WriteAll(out_fd.get(), &buf, size);
|
/external/strace/tests/ |
qual_fault.c | 47 static int out_fd; variable 179 out_fd = open_file(out_prefix, proc); 182 dup2(out_fd, 3);
|
/external/strace/tests-m32/ |
qual_fault.c | 47 static int out_fd; variable 179 out_fd = open_file(out_prefix, proc); 182 dup2(out_fd, 3);
|