Home
last modified time | relevance | path

Searched refs:write_buf (Results 1 - 25 of 29) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/pwrite/
H A Dpwrite04.c31 static char *write_buf[2]; variable
49 SAFE_PWRITE(1, fd, write_buf[0], K2, 0); in verify_pwrite()
59 SAFE_PWRITE(1, fd, write_buf[1], K1, 0); in verify_pwrite()
71 write_buf[0] = SAFE_MALLOC(K2); in setup()
72 memset(write_buf[0], 0, K2); in setup()
73 write_buf[1] = SAFE_MALLOC(K1); in setup()
74 memset(write_buf[0], 1, K1); in setup()
79 free(write_buf[0]); in cleanup()
80 free(write_buf[1]); in cleanup()
H A Dpwrite01.c30 static char *write_buf[NBUFS]; variable
53 if (memcmp(write_buf[count], read_buf[count], K1) != 0) { in check_file_contents()
65 SAFE_PWRITE(1, fildes, write_buf[0], K1, 0); in verify_pwrite()
69 SAFE_PWRITE(1, fildes, write_buf[2], K1, K2); in verify_pwrite()
73 SAFE_WRITE(SAFE_WRITE_ALL, fildes, write_buf[3], K1); in verify_pwrite()
76 SAFE_PWRITE(1, fildes, write_buf[1], K1, K1); in verify_pwrite()
88 write_buf[count] = SAFE_MALLOC(K1); in setup()
90 memset(write_buf[count], count, K1); in setup()
101 free(write_buf[count]); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/
H A Depoll_wait01.c133 char write_buf[write_size]; in verify_epollin() local
134 char read_buf[sizeof(write_buf)]; in verify_epollin()
137 memset(write_buf, 'a', sizeof(write_buf)); in verify_epollin()
139 SAFE_WRITE(SAFE_WRITE_ALL, fds[1], write_buf, sizeof(write_buf)); in verify_epollin()
169 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollin()
174 char write_buf[] = "Testing"; in verify_epollio() local
175 char read_buf[sizeof(write_buf)]; in verify_epollio()
179 SAFE_WRITE(SAFE_WRITE_ALL, fds[1], write_buf, sizeo in verify_epollio()
[all...]
/third_party/ltp/testcases/kernel/syscalls/pread/
H A Dpread01.c29 static char *write_buf[NBUFS]; variable
49 if (memcmp(write_buf[count], read_buf[count], K1) != 0) { in compare_bufers()
84 write_buf[count] = SAFE_MALLOC(K1); in setup()
86 memset(write_buf[count], count, K1); in setup()
91 SAFE_PWRITE(1, fildes, write_buf[0], K1, 0); in setup()
92 SAFE_PWRITE(1, fildes, write_buf[2], K1, K2); in setup()
93 SAFE_PWRITE(1, fildes, write_buf[3], K1, K3); in setup()
94 SAFE_PWRITE(1, fildes, write_buf[1], K1, K1); in setup()
103 free(write_buf[count]); in cleanup()
/third_party/libsnd/tests/
H A Ddwvw_test.c56 { static int write_buf [BUFFER_SIZE] ; in dwvw_test() local
78 write_buf [k] = bit_mask & lrint (value) ; in dwvw_test()
82 write_buf [k] = bit_mask & (arith_shift_left (rand (), 11) ^ (rand () >> 11)) ; in dwvw_test()
84 sf_write_int (file, write_buf, BUFFER_SIZE) ; in dwvw_test()
95 { if (read_buf [k] != write_buf [k]) in dwvw_test()
97 write_buf [k] >> (32 - bit_width), read_buf [k] >> (32 - bit_width), in dwvw_test()
99 oct_save_int (write_buf, read_buf, BUFFER_SIZE) ; in dwvw_test()
/third_party/ltp/testcases/kernel/syscalls/write/
H A Dwrite06.c33 static char *write_buf[2]; variable
41 SAFE_WRITE(SAFE_WRITE_ALL, fd, write_buf[0], K2); in verify_write()
53 SAFE_WRITE(SAFE_WRITE_ALL, fd, write_buf[1], K1); in verify_write()
72 memset(write_buf[0], 0, K2); in setup()
73 memset(write_buf[1], 1, K1); in setup()
90 {&write_buf[0], .size = K2},
91 {&write_buf[1], .size = K1},
/third_party/ltp/testcases/kernel/syscalls/msync/
H A 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()
141 /* Write the string in write_buf at the 100 byte offset */ in setup()
142 if (write(fildes, write_buf, strlen(write_buf)) != (long)strlen(write_buf)) in setup()
H A Dmsync01.c84 char write_buf[BUF_SIZE]; /* buffer to hold data to be written */ variable
170 nwrite = write(fildes, write_buf, sizeof(write_buf)); in setup()
H A Dmsync03.c104 char write_buf[BUF_SIZE]; in setup() local
117 memset(write_buf, 'a', BUF_SIZE); in setup()
119 SAFE_WRITE(cleanup, SAFE_WRITE_ALL, fd, write_buf, BUF_SIZE); in setup()
/third_party/ltp/testcases/kernel/syscalls/poll/
H A Dpoll01.c47 char write_buf[] = "Testing"; in verify_pollin() local
54 SAFE_WRITE(SAFE_WRITE_ALL, fildes[1], write_buf, sizeof(write_buf)); in verify_pollin()
72 SAFE_READ(1, fildes[0], read_buf, sizeof(write_buf)); in verify_pollin()
/third_party/ltp/testcases/kernel/syscalls/epoll_ctl/
H A Depoll_ctl01.c76 char write_buf[] = "test"; in check_epoll_ctl() local
77 char read_buf[sizeof(write_buf)]; in check_epoll_ctl()
84 SAFE_WRITE(SAFE_WRITE_ALL, fd[1], write_buf, sizeof(write_buf)); in check_epoll_ctl()
120 SAFE_READ(1, fd[0], read_buf, sizeof(write_buf)); in check_epoll_ctl()
/third_party/backends/backend/
H A Dcanon_lide70-common.c372 write_buf (int fd, size_t count, unsigned char *buf, in write_buf() function
397 write_buf (fd, count, buf, 0x00, 0x00); in big_write()
398 write_buf (fd, count, buf, 0x00, 0xb0); in big_write()
399 write_buf (fd, count, buf, 0x01, 0x60); in big_write()
400 write_buf (fd, count, buf, 0x02, 0x10); in big_write()
407 write_buf (fd, count, buf, 0x00, 0x00); in big_write_2224()
408 write_buf (fd, count, buf, 0x00, 0xb0); in big_write_2224()
409 write_buf (fd, count, buf, 0x01, 0x60); in big_write_2224()
410 write_buf (fd, count, buf, 0x02, 0x10); in big_write_2224()
417 write_buf (f in big_write_film()
[all...]
/third_party/ltp/testcases/kernel/syscalls/mmap/
H A Dmmap01.c147 char write_buf[] = "hello world\n"; in setup() local
167 if (write(fildes, write_buf, strlen(write_buf)) != (long)strlen(write_buf)) { in setup()
/third_party/ffmpeg/libavformat/
H A Dcrypto.c57 uint8_t *write_buf; member
341 av_fast_malloc(&c->write_buf, &c->write_buf_size, out_size); in crypto_write()
343 if (!c->write_buf) in crypto_write()
348 av_aes_crypt(c->aes_encrypt, c->write_buf, c->pad, 1, c->encrypt_iv, 0); in crypto_write()
353 &c->write_buf[c->pad_len ? BLOCKSIZE : 0], in crypto_write()
357 ret = ffurl_write(c->hd, c->write_buf, out_size); in crypto_write()
387 av_freep(&c->write_buf); in crypto_close()
/third_party/node/deps/uv/src/win/
H A Dpipe.c1493 uv_buf_t write_buf; in uv__pipe_write_data() local
1519 write_buf = uv_null_buf_; in uv__pipe_write_data()
1522 write_buf = bufs[0]; in uv__pipe_write_data()
1526 err = uv__build_coalesced_write_req(req, bufs, nbufs, &req, &write_buf); in uv__pipe_write_data()
1536 WriteFile(handle->handle, write_buf.base, write_buf.len, &bytes, NULL); in uv__pipe_write_data()
1552 req->write_buffer = write_buf; in uv__pipe_write_data()
1559 req->u.io.queued_bytes = write_buf.len; in uv__pipe_write_data()
1564 write_buf.base, in uv__pipe_write_data()
1565 write_buf in uv__pipe_write_data()
[all...]
/third_party/openssl/test/helpers/
H A Dhandshake.c723 unsigned char *write_buf; member
736 unsigned char *read_buf = NULL, *write_buf = NULL; in create_peer() local
739 || !TEST_ptr(write_buf = OPENSSL_zalloc(peer_buffer_size)) in create_peer()
744 peer->write_buf = write_buf; in create_peer()
750 OPENSSL_free(write_buf); in create_peer()
758 OPENSSL_free(peer->write_buf); in peer_free_data()
831 ret = SSL_write(peer->ssl, peer->write_buf, write_bytes); in do_app_data_step()
/third_party/libuv/src/win/
H A Dpipe.c1588 uv_buf_t write_buf; in uv__pipe_write_data() local
1614 write_buf = uv_null_buf_; in uv__pipe_write_data()
1617 write_buf = bufs[0]; in uv__pipe_write_data()
1621 err = uv__build_coalesced_write_req(req, bufs, nbufs, &req, &write_buf); in uv__pipe_write_data()
1631 WriteFile(handle->handle, write_buf.base, write_buf.len, &bytes, NULL); in uv__pipe_write_data()
1647 req->write_buffer = write_buf; in uv__pipe_write_data()
1654 req->u.io.queued_bytes = write_buf.len; in uv__pipe_write_data()
1659 write_buf.base, in uv__pipe_write_data()
1660 write_buf in uv__pipe_write_data()
[all...]
/third_party/mesa3d/src/gallium/winsys/virgl/vtest/
H A Dvirgl_vtest_winsys.c558 struct virgl_hw_res *res, boolean write_buf) in virgl_vtest_emit_res()
564 if (write_buf) in virgl_vtest_emit_res()
556 virgl_vtest_emit_res(struct virgl_winsys *vws, struct virgl_cmd_buf *_cbuf, struct virgl_hw_res *res, boolean write_buf) virgl_vtest_emit_res() argument
/third_party/libfuse/example/
H A Dpassthrough_fh.c633 .write_buf = xmp_write_buf,
/third_party/libfuse/include/
H A Dfuse.h756 int (*write_buf) (const char *, struct fuse_bufvec *buf, off_t off, member
H A Dfuse_lowlevel.h1108 * always zero). The write_buf handler must ensure that
1125 void (*write_buf) (fuse_req_t req, fuse_ino_t ino, member
/third_party/mesa3d/src/gallium/winsys/virgl/drm/
H A Dvirgl_drm_winsys.c820 struct virgl_hw_res *res, boolean write_buf) in virgl_drm_emit_res()
826 if (write_buf) in virgl_drm_emit_res()
818 virgl_drm_emit_res(struct virgl_winsys *qws, struct virgl_cmd_buf *_cbuf, struct virgl_hw_res *res, boolean write_buf) virgl_drm_emit_res() argument
/third_party/skia/third_party/externals/freetype/src/sfnt/
H A Dsfwoff2.c74 write_buf( &sfnt, sfnt_size, &dest_offset, buf, s, memory )
77 write_buf( &sfnt, sfnt_size, &offset, buf, s, memory )
210 write_buf( FT_Byte** dst_bytes, in write_buf() function
/third_party/libfuse/lib/modules/
H A Dsubdir.c597 .write_buf = subdir_write_buf,
/third_party/libfuse/lib/
H A Dfuse_lowlevel.c1437 se->op.write_buf(req, nodeid, &bufv, arg->offset, &fi);
1440 /* Need to reset the pipe if ->write_buf() didn't consume all data */
2060 LL_SET_DEFAULT(se->op.write_buf, FUSE_CAP_SPLICE_READ);
2744 (in->opcode != FUSE_WRITE || !se->op.write_buf) &&
2766 if (in->opcode == FUSE_WRITE && se->op.write_buf)

Completed in 27 milliseconds

12