Home
last modified time | relevance | path

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

12

/external/libxkbcommon/xkbcommon/src/xkbcomp/
Dkeymap-dump.c118 #define write_buf(buf, ...) do { \ macro
134 write_buf(buf, "\tvirtual_modifiers "); in write_vmods()
136 write_buf(buf, ","); in write_vmods()
137 write_buf(buf, "%s", xkb_atom_text(keymap->ctx, mod->name)); in write_vmods()
142 write_buf(buf, ";\n\n"); in write_vmods()
155 write_buf(buf, "xkb_keycodes \"%s\" {\n", in write_keycodes()
158 write_buf(buf, "xkb_keycodes {\n"); in write_keycodes()
164 write_buf(buf, "\tminimum = %u;\n", min(keymap->min_key_code, 8)); in write_keycodes()
165 write_buf(buf, "\tmaximum = %u;\n", max(keymap->max_key_code, 255)); in write_keycodes()
171 write_buf(buf, "\t%-20s = %u;\n", in write_keycodes()
[all …]
/external/ltp/testcases/kernel/syscalls/epoll_wait/
Depoll_wait01.c142 char write_buf[write_size]; in verify_epollin() local
143 char read_buf[sizeof(write_buf)]; in verify_epollin()
146 memset(write_buf, 'a', sizeof(write_buf)); in verify_epollin()
148 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollin()
178 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollin()
183 char write_buf[] = "Testing"; in verify_epollio() local
184 char read_buf[sizeof(write_buf)]; in verify_epollio()
188 SAFE_WRITE(1, fds[1], write_buf, sizeof(write_buf)); in verify_epollio()
225 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()
Dpwrite02.c48 static char write_buf[K1]; variable
125 memset(write_buf, 'a', K1); in setup()
151 TEST(pwrite(pipe_fds[1], write_buf, K1, 0)); in test_espipe()
166 TEST(pwrite(fd, write_buf, K1, -1)); in test_einval()
177 TEST(pwrite(fd, write_buf, K1, 0)); in test_ebadf1()
188 TEST(pwrite(fd, write_buf, K1, 0)); in test_ebadf2()
/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.c109 char write_buf[BUF_SIZE]; in setup() local
122 memset(write_buf, 'a', BUF_SIZE); in setup()
124 SAFE_WRITE(cleanup, 1, fd, write_buf, BUF_SIZE); in setup()
/external/ltp/testcases/kernel/syscalls/epoll_ctl/
Depoll_ctl01.c89 char write_buf[] = "test"; in check_epoll_ctl() local
90 char read_buf[sizeof(write_buf)]; in check_epoll_ctl()
97 SAFE_WRITE(1, fd[1], write_buf, sizeof(write_buf)); in check_epoll_ctl()
132 SAFE_READ(1, fd[0], read_buf, sizeof(write_buf)); in check_epoll_ctl()
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c60 char write_buf[] = "Testing"; in verify_pollin() local
67 SAFE_WRITE(1, fildes[1], write_buf, sizeof(write_buf)); in verify_pollin()
85 SAFE_READ(1, fildes[0], read_buf, sizeof(write_buf)); in verify_pollin()
/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/libxcam/tests/
Dtest-soft-image.cpp111 XCamReturn write_buf ();
205 SoftElement::write_buf () { in write_buf() function in SoftElement
206 return _file.write_buf (_buf); in write_buf()
384 outs[i]->write_buf (); in write_image()
718 outs[0]->write_buf (); in main()
731 outs[0]->write_buf (); in main()
Dtest-image-blend.cpp97 file_out.write_buf (geo_out); in geo_correct_image()
376 ret = file_out.write_buf (output_buf); in main()
/external/valgrind/coregrind/
Dvgdb.c384 Bool write_buf(int fd, const char* buf, int size, const char* desc, Bool notify) in write_buf() function
445 return write_buf(to_pid, buf, nrread, "to_pid", /* notify */ True); in read_from_gdb_write_to_pid()
469 return write_buf(to_gdb, buf, nrread, "to_gdb", /* notify */ False); in read_from_pid_write_to_gdb()
671 write_buf(sigusr1_fd, &control_c, 1, in received_signal()
963 while (!write_buf(to_pid, buf, 1, in standalone_send_commands()
977 write_buf(to_pid, "$QStartNoAckMode#b0", 19, "write start no ack mode", in standalone_send_commands()
1007 write_buf(to_pid, hexcommand, strlen(hexcommand), in standalone_send_commands()
/external/clang/test/CodeGen/
D2003-11-19-BitFieldArray.c4 int write_buf; member
/external/e2fsprogs/lib/ext2fs/
Dext_attr.c113 char *write_buf; in ext2fs_write_ext_attr3() local
116 retval = ext2fs_get_mem(fs->blocksize, &write_buf); in ext2fs_write_ext_attr3()
119 ext2fs_swap_ext_attr(write_buf, inbuf, fs->blocksize, 1); in ext2fs_write_ext_attr3()
121 write_buf = (char *) inbuf; in ext2fs_write_ext_attr3()
125 (struct ext2_ext_attr_header *)write_buf); in ext2fs_write_ext_attr3()
129 retval = io_channel_write_blk64(fs->io, block, 1, write_buf); in ext2fs_write_ext_attr3()
131 ext2fs_free_mem(&write_buf); in ext2fs_write_ext_attr3()
/external/libxcam/xcore/
Dimage_file_handle.h39 XCamReturn write_buf (const SmartPtr<VideoBuffer> &buf);
Dimage_file_handle.cpp71 ImageFileHandle::write_buf (const SmartPtr<VideoBuffer> &buf) in write_buf() function in XCam::ImageFileHandle
Dxcam_utils.cpp313 ret = file.write_buf (buf); in dump_video_buf()
/external/selinux/libsemanage/src/
Dsemanage_store.c1651 char write_buf[32]; in semanage_commit_sandbox() local
1666 memset(write_buf, 0, sizeof(write_buf)); in semanage_commit_sandbox()
1667 snprintf(write_buf, sizeof(write_buf), "%d", commit_number); in semanage_commit_sandbox()
1675 amount_written = write(fd, write_buf, sizeof(write_buf)); in semanage_commit_sandbox()
/external/libxcam/modules/soft/
Dsoft_image.h307 inline XCamReturn write_buf (const SmartPtr<SoftImageT> &buf);
337 SoftImageFile<SoftImageT>::write_buf (const SmartPtr<SoftImageT> &buf) in write_buf() function
/external/mesa3d/src/gallium/winsys/virgl/vtest/
Dvirgl_vtest_winsys.c496 struct virgl_hw_res *res, boolean write_buf) in virgl_vtest_emit_res() argument
502 if (write_buf) in virgl_vtest_emit_res()
/external/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c641 struct virgl_hw_res *res, boolean write_buf) in virgl_drm_emit_res() argument
647 if (write_buf) in virgl_drm_emit_res()
/external/python/cpython2/Modules/
DcPickle.c349 char *write_buf; member
484 py_str = PyString_FromStringAndSize(self->write_buf, in write_other()
501 memcpy(self->write_buf + self->buf_size, s, n); in write_other()
3061 self->write_buf = NULL; in newPicklerobject()
3110 self->write_buf = (char *)PyMem_Malloc(WRITE_BUF_SIZE); in newPicklerobject()
3111 if (self->write_buf == NULL) { in newPicklerobject()
3179 PyMem_Free(self->write_buf); in Pickler_dealloc()

12