/bionic/tests/ |
H A D | fortify_compilation_test.cpp | 32 char buf[4]; local 37 sprintf(buf, "foobar"); // NOLINT(runtime/printf) 42 sprintf(buf, "%s", "foobar"); // NOLINT(runtime/printf) 46 char buf[4]; local 51 snprintf(buf, 5, "foobar"); // NOLINT(runtime/printf) 56 snprintf(buf, 5, "%s", "foobar"); // NOLINT(runtime/printf) 61 snprintf(buf, 5, " %s ", "foobar"); // NOLINT(runtime/printf) 66 snprintf(buf, 5, "%d", 100000); // NOLINT(runtime/printf) 70 char buf[4]; local 75 memcpy(buf, "fooba 79 char buf[4]; local 88 char buf[4]; local 97 char buf[4]; local 106 char buf[4]; local 115 char buf[4]; local 124 char buf[4] = ""; local 133 char buf[4] = ""; local 144 char buf[4]; local 156 char buf[4]; local 168 char buf[4]; local 182 char buf[4]; local 199 char buf[4]; local 236 char buf[4]; local 244 char buf[4]; local 252 char buf[4] = {0}; local 260 char buf[4] = {0}; local 268 char buf[4]; local 276 char buf[4] = {0}; local 284 void *buf = calloc(atoi("5"), 1); local 292 char buf[4] = {0}; local 300 char buf[4] = {0}; local 315 char buf[4] = {0}; local 325 char buf[4] = {0}; local [all...] |
H A D | grp_pwd_test.cpp | 79 char buf[512]; local 84 result = getpwuid_r(uid, &pwd_storage, buf, sizeof(buf), &pwd); 93 char buf[512]; local 98 result = getpwnam_r(username, &pwd_storage, buf, sizeof(buf), &pwd); 258 char buf[512]; local 262 int result = getgrgid_r(gid, &grp_storage, buf, sizeof(buf), &grp); 271 char buf[51 local 393 char buf[2][512]; local 413 char buf[2][512]; local 433 char buf[size]; local [all...] |
H A D | stdlib_test.cpp | 192 char buf[PATH_MAX + 1]; local 193 char* p = realpath("/proc/self/exe", buf); 451 char buf[128]; local 452 ASSERT_EQ(ENOTTY, ptsname_r(STDOUT_FILENO, buf, sizeof(buf))); 460 char* buf = NULL; local 461 ASSERT_EQ(EINVAL, ptsname_r(fd, buf, 128)); 470 char buf[1]; local 471 ASSERT_EQ(ERANGE, ptsname_r(fd, buf, sizeof(buf))); 491 char buf[128]; local 501 char* buf = NULL; local 511 char buf[1]; local [all...] |
H A D | wchar_test.cpp | 459 wchar_t buf[64]; local 461 EXPECT_EQ(24U, wcsftime(buf, sizeof(buf), L"%c", &t)); 462 EXPECT_STREQ(L"Sun Mar 10 00:00:00 2100", buf);
|
H A D | buffer_tests.cpp | 239 uint8_t *buf = new uint8_t[3*max_test_size]; local 248 buf+FENCEPOST_LENGTH, g_single_aligns[i][0], g_single_aligns[i][1])); 259 delete[] buf; 364 uint8_t* buf = &memory[pagesize-i]; local 366 test_func(buf, i);
|
H A D | fortify_test.cpp | 363 char buf[10]; local 365 ASSERT_FORTIFY(strcpy(buf, orig)); 375 char buf[0]; local 377 ASSERT_FORTIFY(strcpy(buf, orig)); 387 char buf[0]; local 389 ASSERT_FORTIFY(strcpy(buf, orig)); 399 char buf[1]; local 401 ASSERT_FORTIFY(strcpy(buf, orig)); 410 char buf[10]; local 411 memcpy(buf, "012345678 420 char buf[10]; local 430 char buf[10]; local 464 char buf[10]; local 474 char* buf = (char *) malloc(10); local 483 char buf[5]; local 488 char buf[10]; local 507 char buf[10]; local 527 char buf[10]; local 534 char buf[10]; local 543 char buf[10]; local 549 char buf[20]; local 564 char buf[10]; local 609 char buf[10]; local 622 char buf[10]; local 628 char buf[10] = {0}; local 641 char buf[1]; local 647 char buf[1]; local 653 char buf[1]; local 661 char buf[1]; local 669 char buf[1] = {0}; local 677 char buf[1] = {0}; local 685 char buf[1]; local 693 char buf[1] = {0}; local 701 char buf[1]; local 709 char buf[1] = {0}; local 717 char buf[1]; local 723 char buf[1]; local 732 char buf[10]; local 751 char buf[10]; local 770 char buf[10]; local 788 char buf[10]; local 806 char buf[10]; local 825 char buf[10]; local 845 char buf[10]; local 864 char buf[10]; local 961 char buf[10]; local 982 char buf[10]; local 991 char buf[10]; local 1000 char buf[10]; local 1022 char buf[BUFSIZ]; local 1035 pollfd buf[1] = {{0, POLLIN, 0}}; local 1042 pollfd buf[1] = {{0, POLLIN, 0}}; local [all...] |
H A D | sys_ptrace_test.cpp | 388 char buf; local 390 TEMP_FAILURE_RETRY(read(worker_pipe_read.get(), &buf, sizeof(buf)));
|
H A D | time_test.cpp | 155 char buf[64]; local 159 EXPECT_EQ(10U, strftime(buf, sizeof(buf), "%s", &t)); 160 EXPECT_STREQ("4108320000", buf); 164 EXPECT_EQ(24U, strftime(buf, sizeof(buf), "%c", &t)); 165 EXPECT_STREQ("Sun Mar 10 00:00:00 2100", buf); 173 char buf[64]; local 179 EXPECT_EQ(5U, strftime(buf, sizeof(buf), "< 219 char buf[64]; local 231 char buf[64]; local [all...] |
H A D | utils.h | 190 char buf[BUFSIZ]; local 192 while ((bytes_read = TEMP_FAILURE_RETRY(read(fds[0], buf, sizeof(buf)))) > 0) { 193 output.append(buf, bytes_read);
|
/bionic/tools/versioner/current/ |
H A D | stdio.h | 330 size_t fread(void *__restrict buf, size_t size, size_t count, 336 size_t fread(void *__restrict buf, size_t size, size_t count, 339 __enable_if(__bos(buf) != __BIONIC_FORTIFY_UNKNOWN_SIZE && 340 size * count > __bos(buf), "size * count is too large") 344 size_t fread(void *__restrict const __pass_object_size0 buf, size_t size, 346 size_t bos = __bos0(buf); 349 return __call_bypassing_fortify(fread)(buf, size, count, stream); 352 return __fread_chk(buf, size, count, stream, bos); 355 size_t fwrite(const void * __restrict buf, size_t size, 361 size_t fwrite(const void * __restrict buf, size_ 439 fread(void *__restrict buf, size_t size, size_t count, FILE * __restrict stream) argument 463 fwrite(const void * __restrict buf, size_t size, size_t count, FILE * __restrict stream) argument [all...] |
/bionic/libc/bionic/ |
H A D | getentropy_linux.c | 76 int getentropy(void *buf, size_t len); 78 static int gotdata(char *buf, size_t len); 79 static int getentropy_getrandom(void *buf, size_t len); 80 static int getentropy_urandom(void *buf, size_t len); 82 static int getentropy_sysctl(void *buf, size_t len); 85 static int getentropy_fallback(void *buf, size_t len); 90 getentropy(void *buf, size_t len) argument 102 ret = getentropy_getrandom(buf, len); 114 ret = getentropy_urandom(buf, len); 137 ret = getentropy_sysctl(buf, le 183 gotdata(char *buf, size_t len) argument 196 getentropy_getrandom(void *buf, size_t len) argument 217 getentropy_urandom(void *buf, size_t len) argument 276 getentropy_sysctl(void *buf, size_t len) argument 342 getentropy_fallback(void *buf, size_t len) argument [all...] |
/bionic/libc/dns/net/ |
H A D | getnameinfo.c | 392 ip6_sa2str(const struct sockaddr_in6 *sa6, char *buf, size_t bufsiz, int flags) argument 399 assert(buf != NULL); 406 n = snprintf(buf, bufsiz, "%u", sa6->sin6_scope_id); 417 char *p = if_indextoname(ifindex, buf); 424 n = snprintf(buf, bufsiz, "%u", sa6->sin6_scope_id);
|
/bionic/libc/dns/resolv/ |
H A D | res_data.c | 175 u_char *buf, /* buffer to put query */ 184 newrr_in, buf, buflen)); 189 res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) { argument 195 return (res_nmkupdate(&_nres, rrecp_in, buf, buflen)); 228 res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) { argument 234 return (res_nsend(&_nres, buf, buflen, ans, anssiz)); 239 res_sendsigned(const u_char *buf, int buflen, ns_tsig_key *key, argument 247 return (res_nsendsigned(&_nres, buf, buflen, key, ans, anssiz)); 169 res_mkquery(int op, const char *dname, int class, int type, const u_char *data, int datalen, const u_char *newrr_in, u_char *buf, int buflen) argument
|
H A D | res_init.c | 175 char buf[BUFSIZ]; local 295 while (fgets(buf, sizeof(buf), fp) != NULL) { 297 if (*buf == ';' || *buf == '#') 300 if (MATCH(buf, "domain")) { 303 cp = buf + sizeof("domain") - 1; 316 if (MATCH(buf, "search")) { 319 cp = buf + sizeof("search") - 1; 353 if (MATCH(buf, "nameserve [all...] |
/bionic/libc/include/ |
H A D | unistd.h | 293 char* getcwd(char* buf, size_t size) __overloadable 294 __error_if_overflows_objectsize(size, __bos(buf)); 298 char* getcwd(char* const __pass_object_size buf, size_t size) __overloadable { 299 size_t bos = __bos(buf); 302 * Clang responds bos==0 if buf==NULL 306 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE || buf == NULL) { 307 return __call_bypassing_fortify(getcwd)(buf, size); 310 return __getcwd_chk(buf, size, bos); 316 ssize_t pread(int fd, void* buf, size_t count, off_t offset) __overloadable 320 ssize_t pread(int fd, void* buf, size_ 551 pread(int fd, void* buf, size_t count, off_t offset) argument 574 pread64(int fd, void* buf, size_t count, off64_t offset) argument 599 pwrite(int fd, const void* buf, size_t count, off_t offset) argument 622 pwrite64(int fd, const void* buf, size_t count, off64_t offset) argument 647 read(int fd, void* buf, size_t count) argument 672 write(int fd, const void* buf, size_t count) argument 693 readlink(const char* path, char* buf, size_t size) argument 716 readlinkat(int dirfd, const char* path, char* buf, size_t size) argument [all...] |
/bionic/libc/kernel/uapi/linux/ |
H A D | cciss_ioctl.h | 57 BYTE __user * buf; member in struct:_IOCTL_Command_struct 67 BYTE __user * buf; member in struct:_BIG_IOCTL_Command_struct
|
H A D | i2c.h | 37 __u8 * buf; member in struct:i2c_msg
|
H A D | sem.h | 57 struct __kernel_legacy_semid_ds __user * buf; member in union:semun
|
/bionic/libc/stdio/ |
H A D | vfscanf.c | 112 char buf[BUF]; /* buffer for numeric conversions */ local 353 buf[n++] = *fp->_p; 357 nconv = mbrtowc(wcp, buf, n, &mbs); 435 buf[n++] = *fp->_p; 439 nconv = mbrtowc(wcp, buf, n, &mbs); 451 ungetc(buf[n], 539 buf[n++] = *fp->_p; 543 nconv = mbrtowc(wcp, buf, n, &mbs); 554 ungetc(buf[n], 608 if (width == 0 || width > sizeof(buf) [all...] |
H A D | vfwscanf.c | 117 wchar_t buf[BUF]; /* buffer for numeric conversions */ local 537 if (width == 0 || width > sizeof(buf) / 538 sizeof(*buf) - 1) 539 width = sizeof(buf) / sizeof(*buf) - 1; 541 for (p = buf; width; width--) { 613 buf + 1 + !!(flags & HAVESIGN)) { 641 if (p > buf) 655 res = wcstoimax(buf, NULL, base); 657 res = wcstoumax(buf, NUL [all...] |
/bionic/libc/upstream-openbsd/lib/libc/time/ |
H A D | wcsftime.c | 289 wchar_t buf[INT_STRLEN_MAXIMUM( local 295 (void) swprintf(buf, 296 sizeof buf/sizeof buf[0], 298 pt = _add(buf, pt, ptlim); 494 wchar_t buf[INT_STRLEN_MAXIMUM(int) + 1]; local 496 (void) swprintf(buf, sizeof buf/sizeof buf[0], format, n); 497 return _add(buf, p [all...] |
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/ |
H A D | cciss_ioctl.h | 57 BYTE __user * buf; member in struct:_IOCTL_Command_struct 67 BYTE __user * buf; member in struct:_BIG_IOCTL_Command_struct
|
H A D | i2c.h | 37 __u8 * buf; member in struct:i2c_msg
|
H A D | sem.h | 57 struct __kernel_legacy_semid_ds __user * buf; member in union:semun
|
/bionic/linker/ |
H A D | linker_utils.cpp | 83 char buf[len]; local 86 char* out_ptr = buf; 98 while (out_ptr > buf && *--out_ptr != '/') { 115 *normalized_path = buf; 158 char buf[512]; local 159 if (strlcpy(buf, path, sizeof(buf)) >= sizeof(buf)) { 164 buf[separator - path] = '\0'; 166 *zip_path = buf; [all...] |