Home
last modified time | relevance | path

Searched refs:in_fd (Results 1 – 25 of 27) sorted by relevance

12

/external/virglrenderer/vtest/
Dvtest_server.c89 static int run_renderer(int in_fd, int out_fd) in run_renderer() argument
95 ret = vtest_wait_for_fd_read(in_fd); in run_renderer()
99 ret = vtest_block_read(in_fd, &header, sizeof(header)); in run_renderer()
105 ret = vtest_create_renderer(in_fd, out_fd, header[0]); in run_renderer()
151 close(in_fd); in run_renderer()
157 int ret, sock = -1, in_fd, out_fd; in main() local
178 in_fd = ret; in main()
203 in_fd = wait_for_socket_accept(sock); in main()
204 out_fd = in_fd; in main()
211 run_renderer(in_fd, out_fd); in main()
[all …]
Dvtest_renderer.c54 int in_fd; member
113 int vtest_create_renderer(int in_fd, int out_fd, uint32_t length) in vtest_create_renderer() argument
119 renderer.in_fd = in_fd; in vtest_create_renderer()
152 ret = vtest_block_read(renderer.in_fd, vtestname, length); in vtest_create_renderer()
169 renderer.in_fd = -1; in vtest_destroy_renderer()
239 ret = vtest_block_read(renderer.in_fd, &res_create_buf, sizeof(res_create_buf)); in vtest_create_resource()
268 ret = vtest_block_read(renderer.in_fd, &res_unref_buf, sizeof(res_unref_buf)); in vtest_resource_unref()
290 ret = vtest_block_read(renderer.in_fd, cbuf, length_dw * 4); in vtest_submit_cmd()
329 ret = vtest_block_read(renderer.in_fd, thdr_buf, VCMD_TRANSFER_HDR_SIZE * 4); in vtest_transfer_get()
368 ret = vtest_block_read(renderer.in_fd, thdr_buf, VCMD_TRANSFER_HDR_SIZE * 4); in vtest_transfer_put()
[all …]
Dvtest.h28 int vtest_create_renderer(int in_fd, int out_fd, uint32_t length);
/external/toybox/toys/pending/
Dgzip.c68 static int do_deflate(int in_fd, int out_fd, int dd, int level)
78 if (!(gz = gzdopen(dd ? in_fd : out_fd, b))) perror_exit("gzdopen");
83 while ((len = read(in_fd, toybuf, sizeof(toybuf))) > 0)
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));
106 else WOULD_EXIT(x, gzip_fd(in_fd, out_fd));
113 static void do_gzip(int in_fd, char *arg) in do_gzip() argument
120 if (!in_fd || (toys.optflags&FLAG_c)) out_fd = 1; in do_gzip()
121 if (isatty(in_fd)) { in do_gzip()
123 return error_msg("%s:need -f to read TTY"+3*!!in_fd, arg); in do_gzip()
[all …]
/external/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile03.c64 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()
Dsendfile09.c64 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()
Dsendfile08.c46 static int in_fd; variable
65 TEST(sendfile(out_fd, in_fd, NULL, strlen(TEST_MSG_IN))); in main()
102 in_fd = SAFE_CREAT(cleanup, in_file, 0700); in setup()
104 ret = write(in_fd, TEST_MSG_IN, strlen(TEST_MSG_IN)); in setup()
107 close(in_fd); in setup()
109 in_fd = SAFE_OPEN(cleanup, in_file, O_RDONLY); in setup()
120 close(in_fd); in cleanup()
Dsendfile07.c65 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()
Dsendfile02.c100 int in_fd; in do_sendfile() local
108 if ((in_fd = open(in_file, O_RDONLY)) < 0) { in do_sendfile()
113 if ((before_pos = lseek(in_fd, 0, SEEK_CUR)) < 0) { in do_sendfile()
118 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size - offset)); in do_sendfile()
120 if ((after_pos = lseek(in_fd, 0, SEEK_CUR)) < 0) { in do_sendfile()
151 close(in_fd); in do_sendfile()
Dsendfile06.c68 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()
Dsendfile05.c84 int in_fd; in do_sendfile() local
89 if ((in_fd = open(in_file, O_RDONLY)) < 0) { in do_sendfile()
95 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size)); in do_sendfile()
113 close(in_fd); in do_sendfile()
Dsendfile04.c103 int in_fd; in do_sendfile() local
115 if ((in_fd = open(in_file, O_RDONLY)) < 0) { in do_sendfile()
125 TEST(sendfile(out_fd, in_fd, protected_buffer, sb.st_size)); in do_sendfile()
143 close(in_fd); in do_sendfile()
/external/honggfuzz/libhfuzz/
Dpersistent.c77 int in_fd = STDIN_FILENO; in HonggfuzzRunFromFile() local
81 if ((in_fd = open(argv[argc - 1], O_RDONLY)) == -1) { in HonggfuzzRunFromFile()
83 in_fd = STDIN_FILENO; in HonggfuzzRunFromFile()
92 ssize_t len = files_readFromFd(in_fd, buf, _HF_INPUT_MAX_SIZE); in HonggfuzzRunFromFile()
/external/autotest/utils/
Dparallel.py92 in_fd = os.open('/dev/null', os.O_RDONLY)
94 os.dup2(in_fd, 0)
96 os.close(in_fd)
/external/perfetto/src/perfetto_cmd/
Drate_limiter.cc187 base::ScopedFile in_fd(base::OpenFile(GetStateFilePath(), O_RDONLY)); in LoadState() local
189 if (!in_fd) in LoadState()
192 ssize_t bytes = PERFETTO_EINTR(read(in_fd.get(), &buf, sizeof(buf))); in LoadState()
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Ddecorate_proc_maps.cc12 bool CopyFdToFd(int in_fd, int out_fd) { in CopyFdToFd() argument
16 ssize_t got = read(in_fd, buf, kBufSize); in CopyFdToFd()
/external/bcc/tests/cc/
Dtest_c_api.cc136 int in_fd, out_fd; in mntns_func() local
165 in_fd = open(buf, O_RDONLY); in mntns_func()
166 if (in_fd < 0) { in mntns_func()
178 while ((rb = read(in_fd, buf, sizeof (buf))) > 0) { in mntns_func()
184 close(in_fd); in mntns_func()
/external/strace/tests-m32/
Dread-write.c118 int in_fd = err_desc ? 5 : 0; in test_dump() local
128 long rc = k_read(in_fd, buf, len); in test_dump()
134 tprintf("%s(%d, ", "read", in_fd); in test_dump()
/external/strace/tests/
Dread-write.c118 int in_fd = err_desc ? 5 : 0; in test_dump() local
128 long rc = k_read(in_fd, buf, len); in test_dump()
134 tprintf("%s(%d, ", "read", in_fd); in test_dump()
/external/strace/tests-mx32/
Dread-write.c118 int in_fd = err_desc ? 5 : 0; in test_dump() local
128 long rc = k_read(in_fd, buf, len); in test_dump()
134 tprintf("%s(%d, ", "read", in_fd); in test_dump()
/external/linux-kselftest/tools/testing/selftests/exec/
Dexecveat.c141 int in_fd = open_or_die(src, O_RDONLY); in exe_cp() local
145 fstat(in_fd, &info); in exe_cp()
146 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp()
147 close(in_fd); in exe_cp()
/external/toybox/toys/other/
Dbzcat.c84 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/libchrome/base/memory/
Dplatform_shared_memory_region_posix.cc63 ScopedFDPair::ScopedFDPair(ScopedFD in_fd, ScopedFD in_readonly_fd) in ScopedFDPair() argument
64 : fd(std::move(in_fd)), readonly_fd(std::move(in_readonly_fd)) {} in ScopedFDPair()
Dplatform_shared_memory_region.h44 ScopedFDPair(ScopedFD in_fd, ScopedFD in_readonly_fd);
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h783 #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 …]

12