Home
last modified time | relevance | path

Searched refs:write_buf (Results 1 – 25 of 37) sorted by relevance

12

/external/libxkbcommon/src/xkbcomp/
Dkeymap-dump.c120 #define write_buf(buf, ...) do { \ macro
136 write_buf(buf, "\tvirtual_modifiers "); in write_vmods()
138 write_buf(buf, ","); in write_vmods()
139 write_buf(buf, "%s", xkb_atom_text(keymap->ctx, mod->name)); in write_vmods()
144 write_buf(buf, ";\n\n"); in write_vmods()
157 write_buf(buf, "xkb_keycodes \"%s\" {\n", in write_keycodes()
160 write_buf(buf, "xkb_keycodes {\n"); in write_keycodes()
166 write_buf(buf, "\tminimum = %u;\n", MIN(keymap->min_key_code, 8)); in write_keycodes()
167 write_buf(buf, "\tmaximum = %u;\n", MAX(keymap->max_key_code, 255)); in write_keycodes()
173 write_buf(buf, "\t%-20s = %u;\n", in write_keycodes()
[all …]
/external/rust/crates/libz-sys/src/zlib-ng/test/
Dminideflate.c49 uint8_t *write_buf; in deflate_params() local
58 write_buf = (uint8_t *)malloc(write_buf_size); in deflate_params()
59 if (write_buf == NULL) { in deflate_params()
82 c_stream.next_out = write_buf; in deflate_params()
91 if (c_stream.next_out == write_buf + write_buf_size) { in deflate_params()
92 fwrite(write_buf, 1, write_buf_size, fout); in deflate_params()
93 c_stream.next_out = write_buf; in deflate_params()
102 if (c_stream.next_out == write_buf + write_buf_size) { in deflate_params()
103 fwrite(write_buf, 1, write_buf_size, fout); in deflate_params()
104 c_stream.next_out = write_buf; in deflate_params()
[all …]
/external/crosvm/fuse/src/
Dworker.rs52 write_buf: &'a mut Cursor<Vec<u8>>, field
56 pub fn new(dev_fuse: &'a mut File, write_buf: &'a mut Cursor<Vec<u8>>) -> Self { in new()
57 debug_assert_eq!(write_buf.position(), 0); in new()
61 write_buf, in new()
68 self.write_buf.write(buf) in write()
72 self.dev_fuse.write_all(&self.write_buf.get_ref()[..])?; in flush()
73 self.write_buf.set_position(0); in flush()
74 self.write_buf.get_mut().clear(); in flush()
85 let original = self.write_buf.position(); in write_at()
86 self.write_buf.set_position(offset as u64); in write_at()
[all …]
/external/ltp/testcases/kernel/syscalls/epoll_wait/
Depoll_wait01.c130 char write_buf[write_size]; in verify_epollin() local
131 char read_buf[sizeof(write_buf)]; in verify_epollin()
134 memset(write_buf, 'a', sizeof(write_buf)); in verify_epollin()
136 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollin()
166 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollin()
171 char write_buf[] = "Testing"; in verify_epollio() local
172 char read_buf[sizeof(write_buf)]; in verify_epollio()
176 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollio()
213 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollio()
/external/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite01.c94 char *write_buf[NBUFS]; /* buffer to hold data to be written */ variable
119 nwrite = pwrite(fildes, write_buf[0], K1, 0); in main()
141 nwrite = pwrite(fildes, write_buf[2], K1, K2); in main()
160 nwrite = write(fildes, write_buf[3], K1); in main()
171 nwrite = pwrite(fildes, write_buf[1], K1, K1); in main()
235 write_buf[count] = malloc(K1); in init_buffers()
237 if (write_buf[count] == NULL) { in init_buffers()
240 memset(write_buf[count], count, K1); in init_buffers()
299 if (memcmp(write_buf[count], read_buf, K1) != 0) { in check_file_contents()
328 free(write_buf[count]); in cleanup()
/external/ltp/testcases/kernel/syscalls/pread/
Dpread01.c92 char *write_buf[NBUFS]; /* buffer to hold data to be written */ variable
210 if ((nwrite = pwrite(fildes, write_buf[0], K1, 0)) != K1) { in setup()
222 if ((nwrite = pwrite(fildes, write_buf[2], K1, K2)) != K1) { in setup()
238 if ((nwrite = write(fildes, write_buf[3], K1)) != K1) { in setup()
247 if ((nwrite = pwrite(fildes, write_buf[1], K1, K1)) != K1) { in setup()
268 write_buf[count] = malloc(K1); in init_buffers()
271 if ((write_buf[count] == NULL) || (read_buf[count] == NULL)) { in init_buffers()
275 memset(write_buf[count], count, K1); in init_buffers()
313 if (memcmp(write_buf[count], read_buf[count], K1) != 0) { in compare_bufers()
339 free(write_buf[count]); in cleanup()
Dpread02.c84 char *write_buf[NBUFS]; /* buffer to hold data to be written */ variable
218 if (write(pfd[1], write_buf[0], K1) != K1) { in setup1()
261 write_buf[count] = malloc(K1); in init_buffers()
264 if ((write_buf[count] == NULL) || (read_buf[count] == NULL)) { in init_buffers()
268 memset(write_buf[count], count, K1); in init_buffers()
286 free(write_buf[count]); in cleanup()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync02.c83 char write_buf[10] = "Testing"; /* buffer to hold data to be written */ variable
98 else if (memcmp(addr + 100, write_buf, strlen(write_buf)) != 0) in main()
143 if (write(fildes, write_buf, strlen(write_buf)) != strlen(write_buf)) in setup()
Dmsync01.c84 char write_buf[BUF_SIZE]; /* buffer to hold data to be written */ variable
171 nwrite = write(fildes, write_buf, sizeof(write_buf)); in setup()
Dmsync03.c104 char write_buf[BUF_SIZE]; in setup() local
117 memset(write_buf, 'a', BUF_SIZE); in setup()
119 SAFE_WRITE(cleanup, 1, fd, write_buf, BUF_SIZE); in setup()
/external/perfetto/src/profiling/memory/
Dshared_ring_buffer_write_fuzzer.cc84 SharedRingBuffer::Buffer write_buf; in FuzzRingBufferWrite() local
88 write_buf = buf->BeginWrite(lock, header.write_size); in FuzzRingBufferWrite()
90 if (!write_buf) in FuzzRingBufferWrite()
93 memset(write_buf.data, '\0', write_buf.size); in FuzzRingBufferWrite()
94 buf->EndWrite(std::move(write_buf)); in FuzzRingBufferWrite()
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c47 char write_buf[] = "Testing"; in verify_pollin() local
54 SAFE_WRITE(1, fildes[1], write_buf, sizeof(write_buf)); in verify_pollin()
72 SAFE_READ(1, fildes[0], read_buf, sizeof(write_buf)); in verify_pollin()
/external/ltp/testcases/kernel/syscalls/epoll_ctl/
Depoll_ctl01.c79 char write_buf[] = "test"; in check_epoll_ctl() local
80 char read_buf[sizeof(write_buf)]; in check_epoll_ctl()
87 SAFE_WRITE(1, fd[1], write_buf, sizeof(write_buf)); in check_epoll_ctl()
122 SAFE_READ(1, fd[0], read_buf, sizeof(write_buf)); in check_epoll_ctl()
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap01.c147 char write_buf[] = "hello world\n"; in setup() local
167 if (write(fildes, write_buf, strlen(write_buf)) != strlen(write_buf)) { in setup()
/external/rust/crates/tokio/src/io/util/
Dasync_write_ext.rs5 use crate::io::util::write_buf::{write_buf, WriteBuf};
228 fn write_buf<'a, B>(&'a mut self, src: &'a mut B) -> WriteBuf<'a, Self, B>
233 write_buf(self, src)
Dmod.rs79 mod write_buf;
Dwrite_buf.rs25 pub(crate) fn write_buf<'a, W, B>(writer: &'a mut W, buf: &'a mut B) -> WriteBuf<'a, W, B> in write_buf() function
/external/adhd/cras/src/server/
Dcras_hfp_info.c114 uint8_t *write_buf; member
294 wp = info->write_buf + info->write_wp; in hfp_write_msbc()
313 err = send(info->fd, info->write_buf + info->write_rp, in hfp_write_msbc()
781 info->write_buf = (uint8_t *)malloc(wbs_hci_sco_buffer_size[i]); in hfp_info_start()
832 if (info->write_buf) in hfp_info_stop()
833 free(info->write_buf); in hfp_info_stop()
/external/clang/test/CodeGen/
D2003-11-19-BitFieldArray.c4 int write_buf; member
/external/llvm-project/clang/test/CodeGen/
D2003-11-19-BitFieldArray.c4 int write_buf; member
/external/grpc-grpc/test/core/iomgr/
Dfd_posix_test.cc272 char write_buf[CLIENT_WRITE_BUF_SIZE]; member
283 memset(cl->write_buf, 0, sizeof(cl->write_buf)); in client_init()
313 write_once = write(fd, cl->write_buf, CLIENT_WRITE_BUF_SIZE); in client_session_write()
/external/rust/crates/tokio/tests/
Dio_write_buf.rs52 assert_ok!(wr.write_buf(&mut buf).await); in write_all()
/external/e2fsprogs/lib/ext2fs/
Dext_attr.c202 char *write_buf; in ext2fs_write_ext_attr3() local
205 retval = ext2fs_get_mem(fs->blocksize, &write_buf); in ext2fs_write_ext_attr3()
208 ext2fs_swap_ext_attr(write_buf, inbuf, fs->blocksize, 1); in ext2fs_write_ext_attr3()
210 write_buf = (char *) inbuf; in ext2fs_write_ext_attr3()
214 (struct ext2_ext_attr_header *)write_buf); in ext2fs_write_ext_attr3()
218 retval = io_channel_write_blk64(fs->io, block, 1, write_buf); in ext2fs_write_ext_attr3()
220 ext2fs_free_mem(&write_buf); in ext2fs_write_ext_attr3()
/external/selinux/libsemanage/src/
Dsemanage_store.c1697 char write_buf[32]; in semanage_commit_sandbox() local
1712 memset(write_buf, 0, sizeof(write_buf)); in semanage_commit_sandbox()
1713 snprintf(write_buf, sizeof(write_buf), "%d", commit_number); in semanage_commit_sandbox()
1721 amount_written = write(fd, write_buf, sizeof(write_buf)); in semanage_commit_sandbox()
/external/mesa3d/src/gallium/winsys/virgl/vtest/
Dvirgl_vtest_winsys.c520 struct virgl_hw_res *res, boolean write_buf) in virgl_vtest_emit_res() argument
526 if (write_buf) in virgl_vtest_emit_res()

12