Home
last modified time | relevance | path

Searched refs:BUFSIZ (Results 1 – 25 of 158) sorted by relevance

1234567

/external/ltp/testcases/kernel/syscalls/llseek/
Dllseek01.c25 static char write_buff[BUFSIZ];
30 TEST(lseek64(fildes, (loff_t) (80 * BUFSIZ), SEEK_SET)); in verify_llseek()
31 if (TST_RET == (80 * BUFSIZ)) in verify_llseek()
36 if (write(fildes, write_buff, BUFSIZ) == -1) in verify_llseek()
41 TEST(lseek64(fildes, (loff_t) BUFSIZ, SEEK_SET)); in verify_llseek()
42 if (TST_RET == BUFSIZ) in verify_llseek()
47 if (write(fildes, write_buff, BUFSIZ) != -1) in verify_llseek()
52 if (write(fildes, write_buff, BUFSIZ) == -1) in verify_llseek()
68 rlp.rlim_cur = rlp.rlim_max = 2 * BUFSIZ; in setup()
73 SAFE_WRITE(1, fildes, write_buff, BUFSIZ); in setup()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/
Dsetvbuf.cpp8 for (size_t i = 0; i < 10 * BUFSIZ; i++) in print_something()
17 char buf[BUFSIZ]; in test_setbuf()
31 char buf[BUFSIZ]; in test_setbuffer()
37 setbuffer(stdout, buf, BUFSIZ); in test_setbuffer()
51 char buf[BUFSIZ]; in test_setvbuf()
57 setvbuf(stdout, buf, _IOLBF, BUFSIZ); in test_setvbuf()
63 setvbuf(stdout, buf, _IOFBF, BUFSIZ); in test_setvbuf()
/external/ltp/testcases/kernel/mem/lib/
Dmem.c244 char fullpath[BUFSIZ]; in check()
247 snprintf(fullpath, BUFSIZ, PATH_KSM "%s", path); in check()
612 char buf[BUFSIZ]; in gather_node_cpus()
613 char path[BUFSIZ], path1[BUFSIZ]; in gather_node_cpus()
619 snprintf(path, BUFSIZ, in gather_node_cpus()
622 snprintf(path1, BUFSIZ, "%s/online", path); in gather_node_cpus()
643 char path[BUFSIZ]; in read_cpuset_files()
650 snprintf(path, BUFSIZ, "%s/%s", prefix, filename); in read_cpuset_files()
654 snprintf(path, BUFSIZ, "%s/cpuset.%s", in read_cpuset_files()
660 if (read(fd, retbuf, BUFSIZ) < 0) in read_cpuset_files()
[all …]
/external/ltp/testcases/kernel/device-drivers/zram/
Dzram03.c181 char filename[BUFSIZ], value[BUFSIZ]; in print()
190 char nread_val[BUFSIZ], nwrite_val[BUFSIZ]; in print_stat()
202 char orig_val[BUFSIZ], compr_val[BUFSIZ]; in print_mm_stat()
203 char mem_val[BUFSIZ], zero_val[BUFSIZ]; in print_mm_stat()
/external/ltp/testcases/kernel/syscalls/fsync/
Dfsync02.c80 char pbuf[BUFSIZ]; in main()
104 offset -= BUFSIZ; in main()
109 if ((ret = write(fd, pbuf, BUFSIZ)) != BUFSIZ) in main()
183 if (write(fd, pbuf, BUFSIZ) != BUFSIZ) in setup()
/external/xz-embedded/userspace/
Dbytetest.c17 static uint8_t out[BUFSIZ];
51 b.out_size = uncomp_size < BUFSIZ ? uncomp_size : BUFSIZ; in main()
69 b.out_size = uncomp_size < BUFSIZ in main()
70 ? uncomp_size : BUFSIZ; in main()
Dxzminidec.c22 static uint8_t in[BUFSIZ];
23 static uint8_t out[BUFSIZ];
59 b.out_size = BUFSIZ; in main()
/external/ltp/testcases/kernel/syscalls/write/
Dwrite01.c17 char buf[BUFSIZ]; in verify_write()
19 memset(buf, 'w', BUFSIZ); in verify_write()
23 for (i = BUFSIZ; i > 0; i--) { in verify_write()
Dwrite03.c25 static char wbuf[BUFSIZ], rbuf[BUFSIZ];
44 memset(rbuf, 0, BUFSIZ); in verify_write()
/external/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock_dgen.c12 char c, buf[BUFSIZ]; in main()
24 if (nchars > BUFSIZ) { in main()
26 BUFSIZ); in main()
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap05.c27 static char path_sys_sz[BUFSIZ];
28 static char path_sys_sz_over[BUFSIZ];
29 static char path_sys_sz_free[BUFSIZ];
30 static char path_sys_sz_resv[BUFSIZ];
31 static char path_sys_sz_surp[BUFSIZ];
32 static char path_sys_sz_huge[BUFSIZ];
/external/python/cpython2/Lib/plat-mac/
Dmacostools.py23 BUFSIZ=0x80000 # Copy in 0.5Mb chunks variable
99 d = ifp.read(BUFSIZ)
102 d = ifp.read(BUFSIZ)
108 d = ifp.read(BUFSIZ)
111 d = ifp.read(BUFSIZ)
/external/ltp/testcases/kernel/syscalls/getcwd/
Dgetcwd03.c30 static char dir[BUFSIZ], dir_link[BUFSIZ];
34 char link[BUFSIZ]; in verify_getcwd()
/external/ltp/testcases/kernel/syscalls/cma/
Dprocess_vm_readv02.c100 char buf[BUFSIZ]; in child_alloc()
109 snprintf(buf, BUFSIZ, "%p", foo); in child_alloc()
120 char buf[BUFSIZ]; in child_invoke()
125 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, BUFSIZ); in child_invoke()
/external/ltp/testcases/kernel/syscalls/sysctl/
Dsysctl01.c40 char osname[BUFSIZ]; in verify_sysctl()
41 size_t length = BUFSIZ; in verify_sysctl()
44 memset(osname, 0, BUFSIZ); in verify_sysctl()
/external/ltp/testcases/kernel/mem/cpuset/
Dcpuset01.c52 char mems[BUFSIZ], buf[BUFSIZ]; in test_cpuset()
72 snprintf(buf, BUFSIZ, "%d", nodes[0]); in test_cpuset()
74 snprintf(buf, BUFSIZ, "%d", nodes[1]); in test_cpuset()
/external/python/cpython2/Modules/
Dmain.c511 setvbuf(stdin, (char *)NULL, _IONBF, BUFSIZ); in Py_Main()
512 setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ); in Py_Main()
513 setvbuf(stderr, (char *)NULL, _IONBF, BUFSIZ); in Py_Main()
524 setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ); in Py_Main()
527 setvbuf(stdin, (char *)NULL, _IOLBF, BUFSIZ); in Py_Main()
528 setvbuf(stdout, (char *)NULL, _IOLBF, BUFSIZ); in Py_Main()
535 setvbuf (stdout, (char *)NULL, _IOLBF, BUFSIZ); in Py_Main()
/external/ltp/testcases/kernel/containers/userns/
Duserns05.c54 char path[BUFSIZ]; in getusernsidbypid()
55 char userid[BUFSIZ]; in getusernsidbypid()
60 if (readlink(path, userid, BUFSIZ) == -1) in getusernsidbypid()
/external/ltp/testcases/kernel/numa/
Dsupport_numa.c67 char line[BUFSIZ], buf[BUFSIZ]; in read_hugepagesize()
76 while (fgets(line, BUFSIZ, fp) != NULL) { in read_hugepagesize()
/external/ltp/testcases/kernel/io/direct_io/
Ddiotest_routines.c116 char buf1[BUFSIZ], buf2[BUFSIZ]; in filecmp()
132 while ((ret1 = read(fd1, buf1, BUFSIZ)) > 0) { in filecmp()
133 ret2 = read(fd2, buf2, BUFSIZ); in filecmp()
/external/ltp/testcases/kernel/mem/tunable/
Dmax_map_count.c87 char buf[BUFSIZ]; in filter_map()
121 char buf[BUFSIZ]; in count_maps()
124 snprintf(buf, BUFSIZ, "/proc/%d/maps", pid); in count_maps()
/external/ltp/testcases/kernel/mem/vma/
Dvma02.c69 char buf[BUFSIZ]; in main()
119 while (fgets(buf, BUFSIZ, fp) != NULL) { in main()
132 while (fgets(buf, BUFSIZ, fp) != NULL) { in main()
Dvma04.c61 static char retbuf[BUFSIZ];
200 char buf[BUFSIZ], tmpstr[BUFSIZ]; in get_vmas()
208 while (fgets(buf, BUFSIZ, fp) != NULL) { in get_vmas()
/external/ltp/testcases/kernel/syscalls/futex/
Dfutex_wake04.c97 char line[BUFSIZ], buf[BUFSIZ]; in read_hugepagesize()
101 while (fgets(line, BUFSIZ, fp) != NULL) { in read_hugepagesize()
/external/ltp/testcases/cve/
Dcve-2016-7042.c31 char buf[BUFSIZ]; in do_test()
44 SAFE_READ(0, fd, buf, BUFSIZ); in do_test()

1234567