/bionic/libc/bionic/ |
H A D | ether_ntoa.c | 38 ether_ntoa_r (const struct ether_addr *addr, char * buf) argument 40 snprintf(buf, 18, "%02x:%02x:%02x:%02x:%02x:%02x", 44 return buf; 53 static char buf[18]; local 54 return ether_ntoa_r(addr, buf);
|
H A D | __getcwd_chk.cpp | 34 extern char* __getcwd_chk(char* buf, size_t len, size_t buflen) { argument 39 return getcwd(buf, len);
|
H A D | gethostname.cpp | 34 int gethostname(char* buf, size_t n) { argument 46 memcpy(buf, name.nodename, name_length);
|
H A D | readlink.cpp | 36 ssize_t readlink(const char* path, char* buf, size_t size) { argument 37 return readlinkat(AT_FDCWD, path, buf, size);
|
H A D | send.cpp | 31 ssize_t send(int socket, const void* buf, size_t len, int flags) { argument 32 return sendto(socket, buf, len, flags, NULL, 0);
|
H A D | __pread64_chk.cpp | 33 extern "C" ssize_t __pread64_chk(int fd, void* buf, size_t count, off64_t offset, size_t buf_size) { argument 42 return pread64(fd, buf, count, offset);
|
H A D | __pread_chk.cpp | 33 extern "C" ssize_t __pread_chk(int fd, void* buf, size_t count, off_t offset, size_t buf_size) { argument 42 return pread(fd, buf, count, offset);
|
H A D | __pwrite64_chk.cpp | 33 extern "C" ssize_t __pwrite64_chk(int fd, const void* buf, size_t count, off64_t offset, argument 43 return pwrite64(fd, buf, count, offset);
|
H A D | __pwrite_chk.cpp | 33 extern "C" ssize_t __pwrite_chk(int fd, const void* buf, size_t count, off_t offset, argument 43 return pwrite(fd, buf, count, offset);
|
H A D | __read_chk.cpp | 33 extern "C" ssize_t __read_chk(int fd, void* buf, size_t count, size_t buf_size) { argument 42 return read(fd, buf, count);
|
H A D | __readlink_chk.cpp | 33 extern "C" ssize_t __readlink_chk(const char* path, char* buf, size_t size, size_t buf_size) { argument 42 return readlink(path, buf, size);
|
H A D | __readlinkat_chk.cpp | 33 extern "C" ssize_t __readlinkat_chk(int dirfd, const char* path, char* buf, size_t size, size_t buf_size) { argument 42 return readlinkat(dirfd, path, buf, size);
|
/bionic/libc/upstream-openbsd/lib/libc/locale/ |
H A D | wctob.c | 37 char buf[MB_LEN_MAX]; local 40 if (c == WEOF || wcrtomb(buf, c, &mbs) != 1) 42 return ((unsigned char)*buf);
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | getline.c | 34 getline(char **__restrict buf, size_t *__restrict buflen, FILE *__restrict fp) argument 36 return getdelim(buf, buflen, '\n', fp);
|
H A D | gets.c | 41 gets(char *buf) argument 47 for (s = buf; (c = getchar_unlocked()) != '\n';) 49 if (s == buf) { 58 return (buf);
|
H A D | setbuf.c | 38 setbuf(FILE *fp, char *buf) argument 40 (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
|
H A D | tmpnam.c | 48 static char buf[L_tmpnam]; local 51 s = buf;
|
H A D | perror.c | 44 char buf[NL_TEXTMAX]; local 55 (void)strerror_r(errno, buf, sizeof(buf)); 56 v->iov_base = buf;
|
H A D | setbuffer.c | 37 setbuffer(FILE *fp, char *buf, int size) argument 40 (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size);
|
/bionic/tests/ |
H A D | inttypes_test.cpp | 24 char buf[512]; local 29 snprintf(buf, sizeof(buf), "%08" PRIdPTR, i); 30 snprintf(buf, sizeof(buf), "%08" PRIiPTR, i); 31 snprintf(buf, sizeof(buf), "%08" PRIoPTR, i); 32 snprintf(buf, sizeof(buf), "%08" PRIuPTR, u); 33 snprintf(buf, sizeo [all...] |
H A D | libc_logging_test.cpp | 26 char buf[BUFSIZ]; local 28 __libc_format_buffer(buf, sizeof(buf), "a"); 29 EXPECT_STREQ("a", buf); 31 __libc_format_buffer(buf, sizeof(buf), "%%"); 32 EXPECT_STREQ("%", buf); 34 __libc_format_buffer(buf, sizeof(buf), "01234"); 35 EXPECT_STREQ("01234", buf); 114 char buf[BUFSIZ]; local 124 char buf[BUFSIZ]; local 134 char buf[BUFSIZ]; local 148 char buf[BUFSIZ]; local 162 char buf[BUFSIZ]; local 172 char buf[BUFSIZ]; local 182 char buf[BUFSIZ]; local [all...] |
H A D | stack_protector_test_helper.cpp | 19 char buf[128]; local 23 volatile char* p = buf; 24 int size = static_cast<int>(sizeof(buf) + 1); 26 // The generic x86-64 target leaves an 8-byte gap between `buf` and the stack guard. 30 while ((p - buf) < size) *p++ = '\0';
|
H A D | string_posix_strerror_r_test.cpp | 41 char buf[256]; local 44 ASSERT_EQ(0, strerror_r(0, buf, sizeof(buf))); 45 ASSERT_STREQ("Success", buf); 46 ASSERT_EQ(0, strerror_r(1, buf, sizeof(buf))); 47 ASSERT_STREQ("Operation not permitted", buf); 50 ASSERT_EQ(0, strerror_r(-1, buf, sizeof(buf))); 51 ASSERT_STREQ("Unknown error -1", buf); [all...] |
H A D | getcwd_test.cpp | 78 char* buf = new char[PATH_MAX]; local 80 char* cwd = getcwd(buf, PATH_MAX); 81 ASSERT_TRUE(cwd == buf);
|
H A D | mntent_test.cpp | 30 char buf[BUFSIZ]; local 31 while (getmntent_r(fp, &entry, buf, sizeof(buf)) != NULL) {
|