/external/ltp/testcases/kernel/syscalls/sendfile/ |
D | sendfile08.c | 45 static int in_fd; variable 64 TEST(sendfile(out_fd, in_fd, NULL, strlen(TEST_MSG_IN))); in main() 104 in_fd = creat(in_file, 0700); in setup() 105 if (in_fd == -1) in setup() 108 ret = write(in_fd, TEST_MSG_IN, strlen(TEST_MSG_IN)); in setup() 111 close(in_fd); in setup() 113 in_fd = open(in_file, O_RDONLY); in setup() 114 if (in_fd == -1) in setup() 128 close(in_fd); in cleanup()
|
D | sendfile03.c | 64 int in_fd, out_fd; variable 75 int in_fd; member 107 TEST(sendfile(testcases[i].out_fd, testcases[i].in_fd, in main() 145 if ((in_fd = creat(in_file, 00700)) < 0) { in setup() 150 if (write(in_fd, buf, strlen(buf)) < 0) { in setup() 153 close(in_fd); in setup() 154 if ((in_fd = open(in_file, O_RDONLY)) < 0) { in setup() 174 close(in_fd); in cleanup()
|
D | sendfile09.c | 64 static int in_fd; variable 92 in_fd = SAFE_OPEN(cleanup, in_file, O_RDONLY); in do_sendfile() 93 before_pos = SAFE_LSEEK(cleanup, in_fd, 0, SEEK_CUR); in do_sendfile() 95 TEST(sendfile(out_fd, in_fd, &t->offset, t->count)); in do_sendfile() 99 after_pos = SAFE_LSEEK(cleanup, in_fd, 0, SEEK_CUR); in do_sendfile() 121 close(in_fd); in do_sendfile() 159 if (in_fd > 0) in cleanup() 160 close(in_fd); in cleanup()
|
D | sendfile07.c | 65 int in_fd, out_fd = 0, ignored_fd = 0; variable 89 TEST(sendfile(out_fd, in_fd, NULL, 1)); in main() 128 if ((in_fd = creat(in_file, 00700)) < 0) { in setup() 133 if (write(in_fd, buf, strlen(buf)) < 0) { in setup() 136 close(in_fd); in setup() 137 if ((in_fd = open(in_file, O_RDONLY)) < 0) { in setup() 189 close(in_fd); in cleanup()
|
D | sendfile02.c | 99 int in_fd; in do_sendfile() local 107 if ((in_fd = open(in_file, O_RDONLY)) < 0) { in do_sendfile() 114 if ((before_pos = lseek(in_fd, 0, SEEK_CUR)) < 0) { in do_sendfile() 119 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size - offset)); in do_sendfile() 121 if ((after_pos = lseek(in_fd, 0, SEEK_CUR)) < 0) { in do_sendfile() 152 close(in_fd); in do_sendfile()
|
D | sendfile06.c | 68 int in_fd, out_fd; in do_sendfile() local 74 in_fd = SAFE_OPEN(cleanup, IN_FILE, O_RDONLY); in do_sendfile() 76 TEST(sendfile(out_fd, in_fd, NULL, sb.st_size)); in do_sendfile() 77 if ((after_pos = lseek(in_fd, 0, SEEK_CUR)) < 0) { in do_sendfile() 103 SAFE_CLOSE(cleanup, in_fd); in do_sendfile()
|
D | sendfile05.c | 83 int in_fd; in do_sendfile() local 88 if ((in_fd = open(in_file, O_RDONLY)) < 0) { in do_sendfile() 96 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size)); in do_sendfile() 114 close(in_fd); in do_sendfile()
|
D | sendfile04.c | 102 int in_fd; in do_sendfile() local 114 if ((in_fd = open(in_file, O_RDONLY)) < 0) { in do_sendfile() 127 TEST(sendfile(out_fd, in_fd, protected_buffer, sb.st_size)); in do_sendfile() 145 close(in_fd); in do_sendfile()
|
/external/toybox/toys/pending/ |
D | gzip.c | 82 static void do_gunzip(int in_fd, char *arg) in do_gunzip() argument 111 in = gzdopen(in_fd, "r"); in do_gunzip() 135 static void do_gzip(int in_fd, char *in_name) in do_gzip() argument 139 FILE *in = xfdopen(in_fd, "r"); in do_gzip()
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | decorate_proc_maps.cc | 12 bool CopyFdToFd(int in_fd, int out_fd) { in CopyFdToFd() argument 16 ssize_t got = read(in_fd, buf, kBufSize); in CopyFdToFd()
|
/external/autotest/utils/ |
D | parallel.py | 92 in_fd = os.open('/dev/null', os.O_RDONLY) 94 os.dup2(in_fd, 0) 96 os.close(in_fd)
|
/external/linux-kselftest/tools/testing/selftests/exec/ |
D | execveat.c | 139 int in_fd = open_or_die(src, O_RDONLY); in exe_cp() local 143 fstat(in_fd, &info); in exe_cp() 144 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp() 145 close(in_fd); in exe_cp()
|
/external/toybox/toys/other/ |
D | bzcat.c | 84 int in_fd, inbufCount, inbufPos; member 120 if (0 >= (bd->inbufCount = read(bd->in_fd, bd->inbuf, IOBUF_SIZE))) in get_bits() 619 bd->in_fd = -1; in start_bunzip() 622 bd->in_fd = src_fd; in start_bunzip()
|
/external/fio/oslib/ |
D | libmtd.c | 1288 int tmp, ret, in_fd, len, written = 0; in mtd_write_img() local 1310 in_fd = open(img_name, O_RDONLY | O_CLOEXEC); in mtd_write_img() 1311 if (in_fd == -1) in mtd_write_img() 1314 if (fstat(in_fd, &st)) { in mtd_write_img() 1351 ret = read(in_fd, buf, mtd->eb_size - offs - rd); in mtd_write_img() 1372 close(in_fd); in mtd_write_img() 1378 close(in_fd); in mtd_write_img()
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 783 #define __sanitizer_syscall_pre_sendfile(out_fd, in_fd, offset, count) \ argument 784 __sanitizer_syscall_pre_impl_sendfile((long)(out_fd), (long)(in_fd), \ 786 #define __sanitizer_syscall_post_sendfile(res, out_fd, in_fd, offset, count) \ argument 787 __sanitizer_syscall_post_impl_sendfile(res, (long)(out_fd), (long)(in_fd), \ 789 #define __sanitizer_syscall_pre_sendfile64(out_fd, in_fd, offset, count) \ argument 790 __sanitizer_syscall_pre_impl_sendfile64((long)(out_fd), (long)(in_fd), \ 792 #define __sanitizer_syscall_post_sendfile64(res, out_fd, in_fd, offset, count) \ argument 793 __sanitizer_syscall_post_impl_sendfile64(res, (long)(out_fd), (long)(in_fd), \ 2444 void __sanitizer_syscall_pre_impl_sendfile(long out_fd, long in_fd, long offset, 2446 void __sanitizer_syscall_post_impl_sendfile(long res, long out_fd, long in_fd, [all …]
|
/external/openssh/ |
D | clientloop.c | 2593 const char *term, struct termios *tiop, int in_fd, Buffer *cmd, char **env) in client_session2_setup() argument 2610 if (ioctl(in_fd, TIOCGWINSZ, &ws) < 0) in client_session2_setup()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 1360 PRE_SYSCALL(sendfile)(long out_fd, long in_fd, void *offset, long count) {} 1362 POST_SYSCALL(sendfile)(long res, long out_fd, long in_fd, 1369 PRE_SYSCALL(sendfile64)(long out_fd, long in_fd, void *offset, long count) {} 1371 POST_SYSCALL(sendfile64)(long res, long out_fd, long in_fd,
|
/external/valgrind/memcheck/tests/x86-linux/ |
D | scalar.stderr.exp | 2545 Syscall param sendfile(in_fd) contains uninitialised byte(s) 3425 Syscall param sendfile64(in_fd) contains uninitialised byte(s)
|
/external/valgrind/coregrind/m_syswrap/ |
D | syswrap-linux.c | 1529 int, out_fd, int, in_fd, vki_off_t *, offset, in PRE() 1546 int, out_fd, int, in_fd, vki_loff_t *, offset, in PRE()
|
/external/valgrind/memcheck/tests/arm64-linux/ |
D | scalar.stderr.exp | 1567 Syscall param sendfile(in_fd) contains uninitialised byte(s)
|