Home
last modified time | relevance | path

Searched refs:BUFSIZ (Results 1 - 25 of 184) sorted by relevance

12345678

/third_party/ltp/testcases/kernel/syscalls/llseek/
H A Dllseek01.c25 static char write_buff[BUFSIZ];
30 TEST(lseek(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(lseek(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(SAFE_WRITE_ALL, fildes, write_buff, BUFSIZ); in setup()
[all...]
/third_party/ltp/testcases/kernel/syscalls/process_madvise/
H A Dprocess_madvise.h39 char label[BUFSIZ]; in read_address_mapping()
40 char line[BUFSIZ]; in read_address_mapping()
41 char smaps[BUFSIZ]; in read_address_mapping()
42 char ptr_str[BUFSIZ]; in read_address_mapping()
45 snprintf(smaps, BUFSIZ, "/proc/%i/smaps", getpid()); in read_address_mapping()
46 snprintf(ptr_str, BUFSIZ, "%lx", address); in read_address_mapping()
50 while (fgets(line, BUFSIZ, f) != NULL) { in read_address_mapping()
/third_party/node/deps/openssl/openssl/crypto/evp/
H A Devp_key.c17 #ifndef BUFSIZ
18 # define BUFSIZ 256 macro
56 char buff[BUFSIZ]; in EVP_read_pw_string_min()
65 (len >= BUFSIZ) ? BUFSIZ - 1 : len) < 0 in EVP_read_pw_string_min()
68 (len >= BUFSIZ) ? BUFSIZ - 1 : len, in EVP_read_pw_string_min()
72 OPENSSL_cleanse(buff, BUFSIZ); in EVP_read_pw_string_min()
/third_party/openssl/crypto/evp/
H A Devp_key.c17 #ifndef BUFSIZ
18 # define BUFSIZ 256 macro
56 char buff[BUFSIZ]; in EVP_read_pw_string_min()
65 (len >= BUFSIZ) ? BUFSIZ - 1 : len) < 0 in EVP_read_pw_string_min()
68 (len >= BUFSIZ) ? BUFSIZ - 1 : len, in EVP_read_pw_string_min()
72 OPENSSL_cleanse(buff, BUFSIZ); in EVP_read_pw_string_min()
/third_party/node/deps/openssl/openssl/crypto/ui/
H A Dui_util.c15 #ifndef BUFSIZ
16 #define BUFSIZ 256 macro
22 char buff[BUFSIZ]; in UI_UTIL_read_pw_string()
26 UI_UTIL_read_pw(buf, buff, (length > BUFSIZ) ? BUFSIZ : length, in UI_UTIL_read_pw_string()
28 OPENSSL_cleanse(buff, BUFSIZ); in UI_UTIL_read_pw_string()
/third_party/openssl/crypto/ui/
H A Dui_util.c15 #ifndef BUFSIZ
16 #define BUFSIZ 256 macro
22 char buff[BUFSIZ]; in UI_UTIL_read_pw_string()
26 UI_UTIL_read_pw(buf, buff, (length > BUFSIZ) ? BUFSIZ : length, in UI_UTIL_read_pw_string()
28 OPENSSL_cleanse(buff, BUFSIZ); in UI_UTIL_read_pw_string()
/third_party/ltp/testcases/kernel/device-drivers/zram/
H A Dzram03.c103 char filename[BUFSIZ], value[BUFSIZ]; in print()
113 char nread_val[BUFSIZ], nwrite_val[BUFSIZ]; in print_stat()
124 char orig_val[BUFSIZ], compr_val[BUFSIZ]; in print_mm_stat()
125 char mem_val[BUFSIZ], zero_val[BUFSIZ]; in print_mm_stat()
/third_party/musl/libc-test/src/functionalext/supplement/network/network_gtest/
H A Dnetdb_test.cpp126 char node[BUFSIZ]; in HWTEST_F()
146 char node[BUFSIZ]; in HWTEST_F()
166 char node[BUFSIZ]; in HWTEST_F()
185 char node[BUFSIZ]; in HWTEST_F()
205 char node[BUFSIZ]; in HWTEST_F()
225 char node[BUFSIZ]; in HWTEST_F()
294 char buf[BUFSIZ]; in HWTEST_F()
310 char buf2[BUFSIZ]; in HWTEST_F()
332 char buf[BUFSIZ]; in HWTEST_F()
371 char buf[BUFSIZ]; in HWTEST_F()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dsetdomainname.c32 char cbuf[BUFSIZ] = {0}; in setdomainname_0100()
45 char buf[BUFSIZ] = {0}; in setdomainname_0100()
71 char cbuf[BUFSIZ] = {0}; in setdomainname_0200()
84 char buf[BUFSIZ] = {0}; in setdomainname_0200()
H A Dsethostname.c32 char cbuf[BUFSIZ] = {0}; in sethostname_0100()
45 char buf[BUFSIZ] = {0}; in sethostname_0100()
71 char cbuf[BUFSIZ] = {0}; in sethostname_0200()
84 char buf[BUFSIZ] = {0}; in sethostname_0200()
/third_party/ltp/testcases/kernel/syscalls/write/
H A 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()
H A Dwrite03.c25 static char wbuf[BUFSIZ], rbuf[BUFSIZ];
44 memset(rbuf, 0, BUFSIZ); in verify_write()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
H A 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];
/third_party/ltp/testcases/network/nfs/nfslock01/
H A Dnfs_flock_dgen.c21 char c, buf[BUFSIZ]; in main()
35 if (nchars > BUFSIZ) { in main()
36 fprintf(stderr, "Exceeded the maximum limit of the buffer (%d)\n", BUFSIZ); in main()
H A Dnfs_flock.c27 char buf[BUFSIZ]; in main()
45 if (nchars > BUFSIZ) { in main()
46 fprintf(stderr, "Exceeded the maximum limit of the buffer (%d)\n", BUFSIZ); in main()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A D__flbf.c26 char buf[BUFSIZ]; in __flbf_0100()
46 char buf[BUFSIZ]; in __flbf_0200()
66 char buf[BUFSIZ]; in __flbf_0300()
H A Dsetbuffer.c33 char buf[BUFSIZ] = {0}; in setbuffer_0100()
35 setbuffer(fp, buf, BUFSIZ); in setbuffer_0100()
69 setbuffer(f, NULL, BUFSIZ); in setbuffer_0200()
/third_party/ltp/testcases/kernel/mem/lib/
H A Dmem.c245 char fullpath[BUFSIZ]; in check()
248 snprintf(fullpath, BUFSIZ, PATH_KSM "%s", path); in check()
545 char buf[BUFSIZ]; in gather_node_cpus()
546 char path[BUFSIZ], path1[BUFSIZ]; in gather_node_cpus()
552 snprintf(path, BUFSIZ, in gather_node_cpus()
555 snprintf(path1, BUFSIZ, "%s/online", path); in gather_node_cpus()
575 char cpus[BUFSIZ] = ""; in write_cpusets()
644 char path[BUFSIZ]; in set_sys_tune()
648 snprintf(path, BUFSIZ, PATH_SYSV in set_sys_tune()
[all...]
/third_party/ltp/testcases/kernel/containers/userns/
H A Duserns05.c31 char path[BUFSIZ]; in getusernsidbypid()
32 char userid[BUFSIZ]; in getusernsidbypid()
37 SAFE_READLINK(path, userid, BUFSIZ); in getusernsidbypid()
/third_party/musl/porting/uniproton/kernel/src/stdio/
H A D__fdopen.c22 if (!(f=malloc(sizeof *f + UNGET + BUFSIZ + sizeof(pthread_mutex_t)))) return 0; in __fdopen()
40 f->buf_size = BUFSIZ; in __fdopen()
41 f->lock = (pthread_mutex_t *)((unsigned char *)f + sizeof *f + UNGET + BUFSIZ); in __fdopen()
/third_party/musl/porting/liteos_m/kernel/src/stdio/
H A D__fdopen.c22 if (!(f=malloc(sizeof *f + UNGET + BUFSIZ + sizeof(pthread_mutex_t)))) return 0; in __fdopen()
40 f->buf_size = BUFSIZ; in __fdopen()
41 f->lock = (pthread_mutex_t *)((unsigned char *)f + sizeof *f + UNGET + BUFSIZ); in __fdopen()
/third_party/ltp/testcases/kernel/syscalls/getcwd/
H A Dgetcwd03.c30 static char dir[BUFSIZ], dir_link[BUFSIZ];
34 char link[BUFSIZ]; in verify_getcwd()
/third_party/musl/porting/liteos_a/kernel/src/stdio/
H A D__fdopen.c23 if (!(f=malloc(sizeof *f + UNGET + BUFSIZ + sizeof(pthread_mutex_t)))) return 0; in __fdopen()
44 f->buf_size = BUFSIZ; in __fdopen()
45 f->lock = (pthread_mutex_t *)((unsigned char *)f + sizeof *f + UNGET + BUFSIZ); in __fdopen()
/third_party/ltp/testcases/kernel/numa/
H A Dsupport_numa.c66 char line[BUFSIZ], buf[BUFSIZ]; in read_hugepagesize()
75 while (fgets(line, BUFSIZ, fp) != NULL) { in read_hugepagesize()
/third_party/ltp/testcases/kernel/syscalls/sysctl/
H A Dsysctl01.c40 char osname[BUFSIZ]; in verify_sysctl()
41 size_t length = BUFSIZ; in verify_sysctl()
44 memset(osname, 0, BUFSIZ); in verify_sysctl()

Completed in 13 milliseconds

12345678