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

1 2 3

  /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 75 static int do_zlib(int in_fd, int out_fd)
83 if (out_fd == 1) out_fd = xdup(out_fd);
85 if (!(gz = gzdopen(dd ? in_fd : out_fd, b))) perror_exit("gzdopen");
88 if (len != writeall(out_fd, toybuf, len)) break;
107 int len, out_fd = 0; local
111 if (!in_fd || (toys.optflags&FLAG_c)) out_fd = 1;
116 } else out_fd = 1;
120 if (!out_fd) {
    [all...]
  /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}"
  /frameworks/native/cmds/dumpstate/
DumpstateInternal.cpp 128 int DumpFileFromFdToFd(const std::string& title, const std::string& path_string, int fd, int out_fd,
132 dprintf(out_fd, "------ %s (%s", title.c_str(), path);
143 dprintf(out_fd, ": %s", stamp);
145 dprintf(out_fd, ") ------\n");
146 fsync(out_fd);
149 if (out_fd != STDOUT_FILENO) {
151 dprintf(out_fd, "%s: skipped on dry run\n", path);
153 dprintf(out_fd, "\t(skipped on dry run)\n");
155 fsync(out_fd);
164 dprintf(out_fd, "*** %s: poll failed: %s\n", path, strerror(errno))
    [all...]
DumpstateInternal.h 58 int DumpFileFromFdToFd(const std::string& title, const std::string& path_string, int fd, int out_fd,
  /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);
  /external/perfetto/src/perfetto_cmd/
rate_limiter.cc 173 base::ScopedFile out_fd; local
174 out_fd.reset(
176 if (!out_fd)
183 ssize_t written = PERFETTO_EINTR(write(out_fd.get(), &buf, size));
  /system/core/debuggerd/
util.h 34 // If out_fd is non-null, packets can optionally have an attached fd.
35 // If out_fd is null, received packets must not have an attached fd.
46 android::base::unique_fd* _Nullable out_fd);
util.cpp 49 ssize_t recv_fd(int sockfd, void* _Nonnull data, size_t len, unique_fd* _Nullable out_fd) {
84 if (out_fd) {
85 *out_fd = std::move(fd);
  /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, &parallel, &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/valgrind/coregrind/
pub_core_ume.h 93 // either binary or "#!" format. On success, 'out_fd' gets the fd of the file
95 extern SysRes VG_(pre_exec_check)(const HChar* exe_name, Int* out_fd,
  /system/core/debuggerd/tombstoned/
intercept_manager.h 56 bool GetIntercept(pid_t pid, DebuggerdDumpType dump_type, android::base::unique_fd* out_fd);
  /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/strace/tests/
qual_fault.c 47 static int out_fd; variable
178 out_fd = open_file(out_prefix, proc);
181 dup2(out_fd, 3);
  /external/strace/tests-m32/
qual_fault.c 47 static int out_fd; variable
178 out_fd = open_file(out_prefix, proc);
181 dup2(out_fd, 3);
  /external/strace/tests-mx32/
qual_fault.c 47 static int out_fd; variable
178 out_fd = open_file(out_prefix, proc);
181 dup2(out_fd, 3);

Completed in 773 milliseconds

1 2 3