/bionic/libc/tzcode/ |
H A D | asctime.c | 72 asctime_r(register const struct tm *timeptr, char *buf) argument 88 return strcpy(buf, "??? ??? ?? ??:??:?? ????\n"); 112 if (strlen(result) < STD_ASCTIME_BUF_SIZE || buf == buf_asctime) 113 return strcpy(buf, result);
|
H A D | strptime.c | 104 strptime(const char *buf, const char *fmt, struct tm *tm) argument 109 return (char*)(_strptime((const unsigned char*)buf, fmt, tm, &cr)); 113 _strptime(const unsigned char *buf, const char *fmt, struct tm *tm, struct century_relyear *cr) argument 120 bp = (unsigned char *)buf; 433 _conv_num(const unsigned char **buf, int *dest, int llim, int ulim) argument 438 if (**buf < '0' || **buf > '9') 444 result += *(*buf)++ - '0'; 446 } while ((result * 10 <= ulim) && rulim && **buf >= '0' && **buf < 455 strptime_l(const char* buf, const char* fmt, struct tm* tm, locale_t l) argument [all...] |
/bionic/tests/ |
H A D | dlfcn_symlink_support.cpp | 65 std::vector<char> buf; local 66 std::copy(source_file_path.begin(), source_file_path.end(), std::back_inserter(buf)); 67 buf.push_back('\0'); 69 std::string path_dir = dirname(&buf[0]);
|
H A D | net_if_test.cpp | 29 char buf[IF_NAMESIZE] = {}; local 30 char* name = if_indextoname(index, buf); 46 char buf[IF_NAMESIZE] = {}; local 52 EXPECT_STREQ(it->if_name, if_indextoname(it->if_index, buf));
|
H A D | stdio_ext_test.cpp | 42 char buf[128]; local 43 fgets(buf, sizeof(buf), fp); 46 ASSERT_EQ(0, setvbuf(fp, buf, _IOFBF, 1)); 49 ASSERT_EQ(0, setvbuf(fp, buf, _IOFBF, 8)); 60 char buf[128]; local 61 ASSERT_EQ(0, setvbuf(fp, buf, _IOLBF, sizeof(buf))); 94 char buf[16]; local 95 char* s = fgets(buf, sizeo 105 char buf[128]; local [all...] |
H A D | time_test.cpp | 193 char buf[64]; local 197 EXPECT_EQ(10U, strftime(buf, sizeof(buf), "%s", &t)); 198 EXPECT_STREQ("4108320000", buf); 202 EXPECT_EQ(24U, strftime(buf, sizeof(buf), "%c", &t)); 203 EXPECT_STREQ("Sun Mar 10 00:00:00 2100", buf); 211 char buf[64]; local 217 EXPECT_EQ(5U, strftime(buf, sizeof(buf), "< 257 char buf[64]; local 269 char buf[64]; local 286 char buf[64]; local 856 char buf[256]; local 870 char buf[256]; local 877 char buf[32]; local [all...] |
/bionic/tools/versioner/src/ |
H A D | Utils.cpp | 33 char buf[PATH_MAX]; local 34 if (!getcwd(buf, sizeof(buf))) { 37 return buf;
|
/bionic/libc/bionic/ |
H A D | fortify.cpp | 104 size_t __fread_chk(void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { argument 108 return fread(buf, size, count, stream); 111 return fread(buf, size, count, stream); 114 size_t __fwrite_chk(const void* buf, size_t size, size_t count, FILE* stream, size_t buf_size) { argument 118 return fwrite(buf, size, count, stream); 121 return fwrite(buf, size, count, stream); 124 extern char* __getcwd_chk(char* buf, size_t len, size_t actual_size) { argument 126 return getcwd(buf, len); 172 ssize_t __pread64_chk(int fd, void* buf, size_t count, off64_t offset, size_t buf_size) { argument 175 return pread64(fd, buf, coun 178 __pread_chk(int fd, void* buf, size_t count, off_t offset, size_t buf_size) argument 184 __pwrite64_chk(int fd, const void* buf, size_t count, off64_t offset, size_t buf_size) argument 191 __pwrite_chk(int fd, const void* buf, size_t count, off_t offset, size_t buf_size) argument 198 __read_chk(int fd, void* buf, size_t count, size_t buf_size) argument 204 __readlinkat_chk(int dirfd, const char* path, char* buf, size_t size, size_t buf_size) argument 210 __readlink_chk(const char* path, char* buf, size_t size, size_t buf_size) argument 216 __recvfrom_chk(int socket, void* buf, size_t len, size_t buf_size, int flags, sockaddr* src_addr, socklen_t* addrlen) argument 222 __sendto_chk(int socket, const void* buf, size_t len, size_t buflen, int flags, const struct sockaddr* dest_addr, socklen_t addrlen) argument 445 __write_chk(int fd, const void* buf, size_t count, size_t buf_size) argument [all...] |
H A D | iconv.cpp | 139 char buf[16]; member in struct:__iconv_t 231 buf[0] = wc; 237 dst_bytes_used = c32rtomb(buf, wc, &ps); 250 Out16(buf, wc, swap); 255 Out16(buf + 0, hi, swap); 256 Out16(buf + 2, lo, swap); 285 uint16_t In16(const char* buf, bool swap) { argument 286 const uint8_t* src = reinterpret_cast<const uint8_t*>(buf); 293 uint32_t In32(const char* buf, bool swap) { argument 294 const uint8_t* src = reinterpret_cast<const uint8_t*>(buf); [all...] |
H A D | libgen.cpp | 161 char* buf = __get_bionic_tls().basename_buf; local 162 int rc = __basename_r(path, buf, sizeof(__get_bionic_tls().basename_buf)); 163 return (rc < 0) ? NULL : buf; 167 char* buf = __get_bionic_tls().dirname_buf; local 168 int rc = __dirname_r(path, buf, sizeof(__get_bionic_tls().dirname_buf)); 169 return (rc < 0) ? NULL : buf;
|
H A D | statvfs.cpp | 26 # define __fstatfs64(fd,size,buf) __fstatfs(fd,buf) 27 # define __statfs64(path,size,buf) __statfs(path,buf)
|
H A D | bionic_systrace.cpp | 67 char buf[length + WRITE_OFFSET]; local 68 size_t len = snprintf(buf, length + WRITE_OFFSET, "B|%d|%s", getpid(), message); 72 TEMP_FAILURE_RETRY(write(trace_marker_fd, buf, len));
|
H A D | sys_msg.cpp | 34 int msgctl(int id, int cmd, msqid_ds* buf) { argument 41 return syscall(SYS_msgctl, id, cmd, buf); 43 return syscall(SYS_ipc, MSGCTL, id, cmd, 0, buf, 0);
|
/bionic/libc/dns/resolv/ |
H A D | res_mkquery.c | 123 u_char *buf, /* buffer to put query */ 141 if ((buf == NULL) || (buflen < HFIXEDSZ)) 143 memset(buf, 0, HFIXEDSZ); 144 hp = (HEADER *)(void *)buf; 150 cp = buf + HFIXEDSZ; 151 ep = buf + buflen; 153 *dpp++ = buf; 221 return (cp - buf); 233 u_char *buf, /* buffer to put query */ 246 hp = (HEADER *)(void *)buf; 116 res_nmkquery(res_state statp, 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 231 res_nopt(res_state statp, int n0, u_char *buf, int buflen, int anslen) argument [all...] |
/bionic/benchmarks/ |
H A D | stdio_benchmark.cpp | 43 char* buf = new char[chunk_size]; local 50 if (f(buf, chunk_size, 1, fp) != 1) { 56 delete[] buf; 108 char buf[BUFSIZ]; local 112 while (fgets(buf, sizeof(buf), fp) != nullptr) { 178 char buf[BUFSIZ]; local 179 snprintf(buf, sizeof(buf), "this is just a literal string with no format specifiers"); 186 char buf[BUFSI local 195 char buf[BUFSIZ]; local 203 char buf[BUFSIZ]; local [all...] |
H A D | util.h | 57 char* GetAlignedPtr(std::vector<char>* buf, size_t alignment, size_t nbytes); 59 wchar_t* GetAlignedPtr(std::vector<wchar_t>* buf, size_t alignment, size_t nbytes); 61 char* GetAlignedPtrFilled(std::vector<char>* buf, size_t alignment, size_t nbytes, char fill_byte);
|
/bionic/libc/upstream-openbsd/lib/libc/crypt/ |
H A D | arc4random.c | 71 _rs_init(u_char *buf, size_t n) argument 81 chacha_keysetup(&rsx->rs_chacha, buf, KEYSZ * 8, 0); 82 chacha_ivsetup(&rsx->rs_chacha, buf + KEYSZ); 144 u_char *buf = (u_char *)_buf; local 154 memcpy(buf, keystream, m); 156 buf += m; 192 arc4random_buf(void *buf, size_t n) argument 195 _rs_random_buf(buf, n);
|
/bionic/libc/kernel/uapi/linux/ |
H A D | kexec.h | 43 const void * buf; member in struct:kexec_segment
|
H A D | random.h | 33 __u32 buf[0]; member in struct:rand_pool_info
|
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/ |
H A D | kexec.h | 43 const void * buf; member in struct:kexec_segment
|
H A D | random.h | 33 __u32 buf[0]; member in struct:rand_pool_info
|
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/ |
H A D | kexec.h | 43 const void * buf; member in struct:kexec_segment
|
H A D | random.h | 33 __u32 buf[0]; member in struct:rand_pool_info
|
/bionic/libc/upstream-netbsd/lib/libc/gen/ |
H A D | psignal.c | 62 char buf[NL_TEXTMAX]; local 73 v->iov_base = __UNCONST(__strsignal((int)sig, buf, sizeof(buf)));
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | fputwc.c | 45 char buf[MB_LEN_MAX]; local 49 iov.iov_base = buf; 63 size = wcrtomb(buf, wc, st);
|