Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/epoll_wait/
Depoll_wait01.c161 char write_buf[write_size]; in verify_epollin() local
162 char read_buf[sizeof(write_buf)]; in verify_epollin()
164 memset(write_buf, 'a', sizeof(write_buf)); in verify_epollin()
166 SAFE_WRITE(cleanup, 1, fds[1], write_buf, sizeof(write_buf)); in verify_epollin()
196 SAFE_READ(cleanup, 1, fds[0], read_buf, sizeof(write_buf)); in verify_epollin()
201 char write_buf[] = "Testing"; in verify_epollio() local
202 char read_buf[sizeof(write_buf)]; in verify_epollio()
204 SAFE_WRITE(cleanup, 1, fds[1], write_buf, sizeof(write_buf)); in verify_epollio()
236 SAFE_READ(cleanup, 1, fds[0], read_buf, sizeof(write_buf)); in verify_epollio()
/external/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite01.c93 char *write_buf[NBUFS]; /* buffer to hold data to be written */ variable
118 nwrite = pwrite(fildes, write_buf[0], K1, 0); in main()
140 nwrite = pwrite(fildes, write_buf[2], K1, K2); in main()
159 nwrite = write(fildes, write_buf[3], K1); in main()
170 nwrite = pwrite(fildes, write_buf[1], K1, K1); in main()
234 write_buf[count] = malloc(K1); in init_buffers()
236 if (write_buf[count] == NULL) { in init_buffers()
239 memset(write_buf[count], count, K1); in init_buffers()
298 if (memcmp(write_buf[count], read_buf, K1) != 0) { in check_file_contents()
327 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.c91 char *write_buf[NBUFS]; /* buffer to hold data to be written */ variable
209 if ((nwrite = pwrite(fildes, write_buf[0], K1, 0)) != K1) { in setup()
221 if ((nwrite = pwrite(fildes, write_buf[2], K1, K2)) != K1) { in setup()
237 if ((nwrite = write(fildes, write_buf[3], K1)) != K1) { in setup()
246 if ((nwrite = pwrite(fildes, write_buf[1], K1, K1)) != K1) { in setup()
267 write_buf[count] = malloc(K1); in init_buffers()
270 if ((write_buf[count] == NULL) || (read_buf[count] == NULL)) { in init_buffers()
274 memset(write_buf[count], count, K1); in init_buffers()
312 if (memcmp(write_buf[count], read_buf[count], K1) != 0) { in compare_bufers()
338 free(write_buf[count]); in cleanup()
Dpread02.c83 char *write_buf[NBUFS]; /* buffer to hold data to be written */ variable
220 if (write(pfd[1], write_buf[0], K1) != K1) { in setup1()
263 write_buf[count] = malloc(K1); in init_buffers()
266 if ((write_buf[count] == NULL) || (read_buf[count] == NULL)) { in init_buffers()
270 memset(write_buf[count], count, K1); in init_buffers()
288 free(write_buf[count]); in cleanup()
/external/ltp/testcases/kernel/syscalls/access/
Daccess02.c145 char write_buf[] = "abc"; in setup1() local
155 if (write(fd1, write_buf, strlen(write_buf)) != strlen(write_buf)) { in setup1()
258 char write_buf[] = "abc"; in access_verify() local
282 rval = write(fd2, write_buf, strlen(write_buf)); in access_verify()
305 rval = write(fd4, write_buf, strlen(write_buf)); in access_verify()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync02.c83 char write_buf[10] = "Testing"; /* buffer to hold data to be written */ variable
99 else if (memcmp(addr + 100, write_buf, strlen(write_buf)) != 0) in main()
145 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/lseek/
Dlseek06.c161 char write_buf[BUFSIZ]; /* buffer to hold data */ in setup() local
170 strcpy(write_buf, "abcdefg"); in setup()
180 if (write(fildes, write_buf, strlen(write_buf)) != strlen(write_buf)) { in setup()
Dlseek08.c155 char write_buf[BUFSIZ]; /* buffer to hold data */ in setup() local
164 strcpy(write_buf, "abcdefg\n"); in setup()
174 if (write(fildes, write_buf, strlen(write_buf)) <= 0) { in setup()
Dlseek09.c175 char write_buf[BUFSIZ]; /* buffer to hold data */ in setup() local
184 strcpy(write_buf, "abcdefg"); in setup()
194 if (write(fildes, write_buf, strlen(write_buf)) <= 0) { in setup()
/external/ltp/testcases/kernel/syscalls/poll/
Dpoll01.c67 char write_buf[] = "Testing"; in verify_pollin() local
74 SAFE_WRITE(cleanup, 1, fildes[1], write_buf, sizeof(write_buf)); in verify_pollin()
92 SAFE_READ(cleanup, 1, fildes[0], read_buf, sizeof(write_buf)); in verify_pollin()
/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()
130 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/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/valgrind/coregrind/
Dvgdb.c384 Bool write_buf(int fd, 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()
676 write_buf(sigusr1_fd, &control_c, 1, in received_signal()
968 while (!write_buf(to_pid, buf, 1, in standalone_send_commands()
1001 write_buf(to_pid, hexcommand, strlen(hexcommand), in standalone_send_commands()
/external/selinux/libsemanage/src/
Dsemanage_store.c1641 char write_buf[32]; in semanage_commit_sandbox() local
1656 memset(write_buf, 0, sizeof(write_buf)); in semanage_commit_sandbox()
1657 snprintf(write_buf, sizeof(write_buf), "%d", commit_number); in semanage_commit_sandbox()
1665 amount_written = write(fd, write_buf, sizeof(write_buf)); in semanage_commit_sandbox()
/external/opencv/cxcore/src/
Dcxpersistence.cpp4489 char* write_buf = 0; in icvWriteGraph() local
4543 CV_CALL( write_buf = (char*)cvAlloc( write_buf_size )); in icvWriteGraph()
4555 char* src_ptr = write_buf; in icvWriteGraph()
4595 cvWriteRawData( fs, write_buf, write_count, dt ); in icvWriteGraph()
4597 src_ptr = write_buf; in icvWriteGraph()
4604 cvWriteRawData( fs, write_buf, write_count, dt ); in icvWriteGraph()
4623 cvFree( &write_buf ); in icvWriteGraph()