/external/ltp/testcases/kernel/syscalls/llseek/ |
D | llseek01.c | 93 char write_buff[BUFSIZ]; /* buffer to hold data */ 117 TEST(lseek64(fildes, (loff_t) (80 * BUFSIZ), SEEK_SET)); in main() 125 if (TEST_RETURN != (loff_t) (80 * BUFSIZ)) { in main() 128 (int64_t) offset, BUFSIZ); in main() 136 if (write(fildes, write_buff, BUFSIZ) != -1) { in main() 142 offset = lseek64(fildes, (loff_t) BUFSIZ, SEEK_SET); in main() 143 if (offset != (loff_t) BUFSIZ) { in main() 152 if (write(fildes, write_buff, BUFSIZ) != BUFSIZ) { in main() 160 if (write(fildes, write_buff, BUFSIZ) != -1) { in main() 192 rlp.rlim_cur = rlp.rlim_max = 2 * BUFSIZ; in setup() [all …]
|
/external/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 258 char fullpath[BUFSIZ]; in check() 261 snprintf(fullpath, BUFSIZ, PATH_KSM "%s", path); in check() 650 char buf[BUFSIZ]; in gather_node_cpus() 651 char path[BUFSIZ], path1[BUFSIZ]; in gather_node_cpus() 657 snprintf(path, BUFSIZ, in gather_node_cpus() 660 snprintf(path1, BUFSIZ, "%s/online", path); in gather_node_cpus() 681 char path[BUFSIZ]; in read_cpuset_files() 688 snprintf(path, BUFSIZ, "%s/%s", prefix, filename); in read_cpuset_files() 692 snprintf(path, BUFSIZ, "%s/cpuset.%s", in read_cpuset_files() 698 if (read(fd, retbuf, BUFSIZ) < 0) in read_cpuset_files() [all …]
|
/external/dhcpcd-6.8.2/compat/ |
D | getline.c | 37 #undef BUFSIZ 38 #define BUFSIZ 128 macro 58 if (*buf == NULL || bytes != 0 || *buflen < BUFSIZ) { in getline() 59 newlen = *buflen + BUFSIZ; in getline() 67 memset(p, 0, BUFSIZ); in getline() 68 if (fgets(p, BUFSIZ, fp) == NULL) in getline()
|
/external/ltp/testcases/kernel/syscalls/fsync/ |
D | fsync02.c | 80 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/ |
D | bytetest.c | 17 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()
|
D | xzminidec.c | 22 static uint8_t in[BUFSIZ]; 23 static uint8_t out[BUFSIZ]; 59 b.out_size = BUFSIZ; in main()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap05.c | 39 static char path_sys_sz[BUFSIZ]; 40 static char path_sys_sz_over[BUFSIZ]; 41 static char path_sys_sz_free[BUFSIZ]; 42 static char path_sys_sz_resv[BUFSIZ]; 43 static char path_sys_sz_surp[BUFSIZ]; 44 static char path_sys_sz_huge[BUFSIZ];
|
/external/python/cpython2/Lib/plat-mac/ |
D | macostools.py | 23 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/asyncio/ |
D | asyncio02.c | 167 if (testrun(Flags[flag_cnt], BUFSIZ + 1, 1) != OK) { in main() 179 if (testrun(Flags[flag_cnt], BUFSIZ, 2) != OK) { in main() 193 for (i = BUFSIZ - 1; i >= 0; i -= DECR) { in main() 280 if ((dp = malloc((unsigned)BUFSIZ + 1)) == NULL) { in setup()
|
/external/ltp/testcases/kernel/syscalls/cma/ |
D | process_vm_readv02.c | 100 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()
|
D | process_vm_readv03.c | 136 char buf[BUFSIZ]; in child_alloc() 154 snprintf(buf, BUFSIZ, "%p", (void *)foo); in child_alloc() 165 char buf[BUFSIZ]; in fetch_remote_addrs() 171 SAFE_READ(tst_exit, 0, pipe_fd[0], buf, BUFSIZ); in fetch_remote_addrs()
|
/external/python/cpython2/Modules/ |
D | main.c | 501 setvbuf(stdin, (char *)NULL, _IONBF, BUFSIZ); in Py_Main() 502 setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ); in Py_Main() 503 setvbuf(stderr, (char *)NULL, _IONBF, BUFSIZ); in Py_Main() 514 setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ); in Py_Main() 517 setvbuf(stdin, (char *)NULL, _IOLBF, BUFSIZ); in Py_Main() 518 setvbuf(stdout, (char *)NULL, _IOLBF, BUFSIZ); in Py_Main() 525 setvbuf (stdout, (char *)NULL, _IOLBF, BUFSIZ); in Py_Main()
|
/external/ltp/testcases/kernel/syscalls/write/ |
D | write01.c | 35 char buf[BUFSIZ]; in verify_write() 37 memset(buf, 'w', BUFSIZ); in verify_write() 41 for (i = BUFSIZ; i > 0; i--) { in verify_write()
|
D | write03.c | 38 static char wbuf[BUFSIZ], rbuf[BUFSIZ]; 57 memset(rbuf, 0, BUFSIZ); in verify_write()
|
/external/ltp/testcases/network/nfs/nfslock01/ |
D | nfs_flock_dgen.c | 12 char c, buf[BUFSIZ]; in main() 24 if (nchars > BUFSIZ) { in main() 26 BUFSIZ); in main()
|
/external/ltp/testcases/kernel/syscalls/getcwd/ |
D | getcwd03.c | 42 static char dir[BUFSIZ], dir_link[BUFSIZ]; 46 char link[BUFSIZ]; in verify_getcwd()
|
/external/ltp/testcases/kernel/mem/cpuset/ |
D | cpuset01.c | 52 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/libedit/src/ |
D | fgetln.c | 56 bufsiz = BUFSIZ; in fgetln() 66 size_t nbufsiz = bufsiz + BUFSIZ; in fgetln() 78 if (fgets(&buf[bufsiz], BUFSIZ, fp) == NULL) { in fgetln()
|
/external/ltp/testcases/kernel/io/direct_io/ |
D | diotest_routines.c | 116 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/python/cpython2/Launcher/ |
D | launcher_main.cpp | 66 setvbuf(stdin, (char *)NULL, _IONBF, BUFSIZ); in main() 67 setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ); in main() 68 setvbuf(stderr, (char *)NULL, _IONBF, BUFSIZ); in main()
|
/external/ltp/testcases/kernel/containers/userns/ |
D | userns05.c | 54 char path[BUFSIZ]; in getusernsidbypid() 55 char userid[BUFSIZ]; in getusernsidbypid() 60 if (readlink(path, userid, BUFSIZ) == -1) in getusernsidbypid()
|
/external/ltp/testcases/kernel/mem/vma/ |
D | vma04.c | 61 static char retbuf[BUFSIZ]; 200 char buf[BUFSIZ], tmpstr[BUFSIZ]; in get_vmas() 208 while (fgets(buf, BUFSIZ, fp) != NULL) { in get_vmas()
|
D | vma02.c | 69 char buf[BUFSIZ]; in main() 119 while (fgets(buf, BUFSIZ, fp) != NULL) { in main() 132 while (fgets(buf, BUFSIZ, fp) != NULL) { in main()
|
/external/ltp/testcases/kernel/mem/tunable/ |
D | max_map_count.c | 85 char buf[BUFSIZ]; in filter_map() 119 char buf[BUFSIZ]; in count_maps() 122 snprintf(buf, BUFSIZ, "/proc/%d/maps", pid); in count_maps()
|
/external/selinux/libsepol/src/ |
D | genbools.c | 35 char name1[BUFSIZ]; in process_boolean() 51 strncpy(name1, tok, BUFSIZ - 1); in process_boolean() 82 char localbools[BUFSIZ]; 83 char name[BUFSIZ];
|