Home
last modified time | relevance | path

Searched refs:bufs (Results 1 – 7 of 7) sorted by relevance

/glibc-2.36/io/
Dtst-getcwd.c35 char *bufs[10]; in do_test() local
58 bufs[i] = (char *) malloc (sbs); in do_test()
65 bufs[i] = getcwd (NULL, sbs); in do_test()
69 if (bufs[i] == NULL) in do_test()
78 bufs[i] = (char *) malloc (MAX (1, sbs)); in do_test()
85 if (i != 4 && bufs[i] != NULL) in do_test()
86 memset (bufs[i], '\xff', lens[i]); in do_test()
88 if (strcmp (thepath, bufs[4]) != 0) in do_test()
92 bufs[4], thepath); in do_test()
99 memset (bufs[i], i, lens[i]); in do_test()
[all …]
/glibc-2.36/stdlib/
Dcanonicalize.c189 realpath_stk (const char *name, char *resolved, struct realpath_bufs *bufs) in realpath_stk() argument
214 char *rname = bufs->rname.data; in realpath_stk()
224 while (!__getcwd (bufs->rname.data, bufs->rname.length)) in realpath_stk()
231 if (!scratch_buffer_grow (&bufs->rname)) in realpath_stk()
233 rname = bufs->rname.data; in realpath_stk()
287 while (rname + bufs->rname.length - dest in realpath_stk()
291 if (!scratch_buffer_grow_preserve (&bufs->rname)) in realpath_stk()
293 rname = bufs->rname.data; in realpath_stk()
304 buf = bufs->link.data; in realpath_stk()
305 idx_t bufsize = bufs->link.length; in realpath_stk()
[all …]
Dtestsort.c14 char bufs[500][20]; in main() local
24 lines[i] = bufs[i]; in main()
/glibc-2.36/misc/
Dsyslog.c124 char bufs[1024]; in __vsyslog_internal() local
180 l = __snprintf (bufs, sizeof bufs, in __vsyslog_internal()
183 l = __snprintf (bufs, sizeof bufs, in __vsyslog_internal()
185 if (0 <= l && l < sizeof bufs) in __vsyslog_internal()
193 int vl = __vsnprintf_internal (bufs + l, sizeof bufs - l, fmt, apc, in __vsyslog_internal()
195 if (0 <= vl && vl < sizeof bufs - l) in __vsyslog_internal()
197 buf = bufs; in __vsyslog_internal()
213 __snprintf (bufs, sizeof bufs, in __vsyslog_internal()
216 __snprintf (bufs, sizeof bufs, in __vsyslog_internal()
222 bufsize = __snprintf (bufs, sizeof bufs, in __vsyslog_internal()
[all …]
/glibc-2.36/benchtests/
Dbench-hash-funcs.c74 char *bufs; in do_rand_test() local
77 bufs = (char *) calloc (NRAND_BUFS, RAND_BENCH_MAX_LEN); in do_rand_test()
79 if (bufs == NULL || sizes == NULL) in do_rand_test()
95 memset (bufs + offset, -1, sizes[i]); in do_rand_test()
96 bufs[offset + sizes[i]] = '\0'; in do_rand_test()
100 do_rand_test_kernel_simple (bufs, sizes)); in do_rand_test()
102 do_rand_test_kernel_optimized (bufs, sizes)); in do_rand_test()
107 if (bufs) in do_rand_test()
108 free (bufs); in do_rand_test()
Dbench-hash-funcs-kernel.h62 CAT (do_rand_test_kernel, POSTFIX) (char const *bufs, in CAT()
71 DO_NOT_OPTIMIZE_OUT (RUN_FUNC (bufs + offset, sizes[i])); in CAT()
78 DO_NOT_OPTIMIZE_OUT (RUN_FUNC (bufs + offset, sizes[i])); in CAT()
/glibc-2.36/support/
Dtest-container.c189 static char *bufs[10]; in concat() local
210 if (bufs[n] == NULL) in concat()
212 bufs[n] = xmalloc (len + 1); /* NUL */ in concat()
217 bufs[n] = xrealloc (bufs[n], len + 1); /* NUL */ in concat()
221 strcpy (bufs[n], str); in concat()
222 cp = strchr (bufs[n], '\0'); in concat()
231 return bufs[n]; in concat()