Searched refs:wrbuf (Results 1 – 9 of 9) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe12.c | 18 static char *wrbuf; variable 47 SAFE_WRITE(1, fds[1], wrbuf, max_size); in verify_pipe() 59 TEST(write(fds[1], wrbuf, invalid_size)); in verify_pipe() 87 if (wrbuf) in cleanup() 88 free(wrbuf); in cleanup() 99 wrbuf = SAFE_MALLOC(invalid_size); in setup() 101 memset(wrbuf, 'x', invalid_size); in setup()
|
D | pipe02.c | 22 static char wrbuf[SIZE]; variable 28 SAFE_WRITE(1, fd[1], wrbuf, SIZE); in do_child() 32 SAFE_WRITE(1, fd[1], wrbuf, SIZE); in do_child() 42 memset(wrbuf, 'a', SIZE); in verify_pipe() 68 if (memcmp(wrbuf, rdbuf, SIZE) != 0) { in verify_pipe()
|
D | pipe10.c | 74 char wrbuf[BUFSIZ], rebuf[BUFSIZ]; in main() local 97 strcpy(wrbuf, "abcdefghijklmnopqrstuvwxyz"); in main() 98 length = strlen(wrbuf) + 1; in main() 100 written = write(fd[1], wrbuf, length); in main() 121 greater = strcmp(rebuf, wrbuf); in main()
|
D | pipe01.c | 19 char wrbuf[] = "abcdefghijklmnopqrstuvwxyz"; in verify_pipe() local 31 wr_size = SAFE_WRITE(1, fds[1], wrbuf, sizeof(wrbuf)); in verify_pipe() 40 if ((strncmp(rdbuf, wrbuf, wr_size)) != 0) { in verify_pipe()
|
D | pipe08.c | 68 char wrbuf[BUFSIZ]; in main() local 92 strcpy(wrbuf, "abcdefghijklmnopqrstuvwxyz\0"); in main() 93 length = strlen(wrbuf); in main() 100 written = write(pipefd[1], wrbuf, length); in main()
|
/third_party/ltp/testcases/kernel/syscalls/ioctl/ |
D | ioctl_loop04.c | 23 static char *wrbuf; variable 48 TEST(write(dev_fd, wrbuf, OLD_SIZE)); in verify_ioctl_loop() 70 wrbuf = SAFE_MALLOC(OLD_SIZE); in setup() 71 memset(wrbuf, 'x', OLD_SIZE); in setup() 82 if (wrbuf) in cleanup() 83 free(wrbuf); in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl37.c | 57 char *wrbuf; in setup() local 68 wrbuf = SAFE_MALLOC(orig_value); in setup() 69 memset(wrbuf, 'x', orig_value); in setup() 70 SAFE_WRITE(1, fds[1], wrbuf, orig_value); in setup() 71 free(wrbuf); in setup()
|
/third_party/libuv/test/ |
D | test-stdio-over-pipes.c | 99 uv_buf_t wrbuf; in on_read() local 108 wrbuf = uv_buf_init(output, 12); in on_read() 110 r = uv_write(req, (uv_stream_t*) &in, &wrbuf, 1, after_write); in on_read()
|
D | test-ipc-send-recv.c | 300 uv_buf_t wrbuf; in read_cb() local 339 wrbuf = uv_buf_init(".", 1); in read_cb() 342 &wrbuf, in read_cb()
|