/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
H A D | decorate_proc_maps.cc | 12 bool CopyFdToFd(int in_fd, int out_fd) { argument 18 write(out_fd, buf, got);
|
/external/ltp/testcases/kernel/syscalls/sendfile/ |
H A D | 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_f [all...] |
H A D | sendfile08.c | 46 static int out_fd; variable 64 TEST(sendfile(out_fd, in_fd, NULL, strlen(TEST_MSG_IN))); 69 ret = lseek(out_fd, 0, SEEK_SET); 73 ret = read(out_fd, buf, BUFSIZ); 96 tst_resm(TCONF, "The out_fd must be socket before kernel"); 117 out_fd = open(out_file, O_TRUNC | O_CREAT | O_RDWR, 0777); 118 if (out_fd == -1) 120 ret = write(out_fd, TEST_MSG_OUT, strlen(TEST_MSG_OUT)); 127 close(out_fd);
|
H A D | 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);
|
H A D | 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);
|
H A D | sendfile02.c | 70 int out_fd; variable 105 out_fd = create_server(); 119 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size - offset)); 206 close(out_fd);
|
H A D | sendfile04.c | 69 int out_fd; variable 112 out_fd = create_server(); 127 TEST(sendfile(out_fd, in_fd, protected_buffer, sb.st_size)); 204 close(out_fd);
|
H A D | sendfile05.c | 64 int out_fd; variable 86 out_fd = create_server(); 96 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size)); 168 close(out_fd);
|
H A D | 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);
|
/external/boringssl/src/crypto/bio/ |
H A D | fd.c | 272 int BIO_get_fd(BIO *bio, int *out_fd) { argument 273 return BIO_ctrl(bio, BIO_C_GET_FD, 0, (char *) out_fd);
|
/external/strace/tests/ |
H A D | 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/ |
H A D | 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/ |
H A D | qual_fault.c | 47 static int out_fd; variable 178 out_fd = open_file(out_prefix, proc); 181 dup2(out_fd, 3);
|
/external/toybox/toys/pending/ |
H A D | gzip.c | 115 int out_fd = xcreate(out_name, local 119 out = xfdopen(out_fd, "w"); 142 int both_files, out_fd; local 148 if (!strcmp(out_name, "-")) out_fd = dup(1); 150 out_fd = open(out_name, O_CREAT|O_WRONLY|((toys.optflags&FLAG_f)?0:O_EXCL), 153 if (out_fd == -1) perror_exit("open %s", out_name); 156 out = gzdopen(out_fd, toybuf);
|
/external/valgrind/coregrind/m_ume/ |
H A D | main.c | 68 VG_(pre_exec_check)(const HChar* exe_name, Int* out_fd, Bool allow_setuid) argument 122 // Write the 'out_fd' param if necessary, or close the file. 123 if (!sr_isError(res) && out_fd) { 124 *out_fd = fd;
|
/external/e2fsprogs/contrib/android/ |
H A D | ext2simg.c | 181 int out_fd; local 211 out_fd = open(params.out_file, O_WRONLY | O_CREAT | O_TRUNC, 0664); 212 if (out_fd == -1) 214 if (sparse_file_write(s, out_fd, params.gzip, params.sparse, params.crc) < 0) 222 close(out_fd);
|
/external/boringssl/src/tool/ |
H A D | digest.cc | 82 // OpenFile opens the regular file named |filename| and sets |*out_fd| to be a 85 static bool OpenFile(int *out_fd, const std::string &filename) { argument 86 *out_fd = -1; 110 *out_fd = fd;
|
/external/linux-kselftest/tools/testing/selftests/exec/ |
H A D | execveat.c | 140 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); local 144 sendfile(out_fd, in_fd, NULL, info.st_size); 146 close(out_fd);
|
/external/toybox/toys/other/ |
H A D | bzcat.c | 443 static void flush_bunzip_outbuf(struct bunzip_data *bd, int out_fd) argument 446 if (write(out_fd, bd->outbuf, bd->outbufPos) != bd->outbufPos) 505 // If !len, write up to len bytes of data to buf. Otherwise write to out_fd. 513 int out_fd, char *outbuf, int len) 564 if (bd->outbufPos == IOBUF_SIZE) flush_bunzip_outbuf(bd, out_fd); 512 write_bunzip_data(struct bunzip_data *bd, struct bwdata *bw, int out_fd, char *outbuf, int len) argument
|