Searched defs:buf (Results 1 - 25 of 137) sorted by relevance

123456

/bionic/libc/bionic/
H A Dether_ntoa.c38 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.cpp34 extern char* __getcwd_chk(char* buf, size_t len, size_t buflen) { argument
39 return getcwd(buf, len);
H A Dgethostname.cpp34 int gethostname(char* buf, size_t n) { argument
46 memcpy(buf, name.nodename, name_length);
H A Dreadlink.cpp36 ssize_t readlink(const char* path, char* buf, size_t size) { argument
37 return readlinkat(AT_FDCWD, path, buf, size);
H A Dsend.cpp31 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.cpp33 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.cpp33 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.cpp33 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.cpp33 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.cpp33 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.cpp33 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.cpp33 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 Dwctob.c37 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 Dgetline.c34 getline(char **__restrict buf, size_t *__restrict buflen, FILE *__restrict fp) argument
36 return getdelim(buf, buflen, '\n', fp);
H A Dgets.c41 gets(char *buf) argument
47 for (s = buf; (c = getchar_unlocked()) != '\n';)
49 if (s == buf) {
58 return (buf);
H A Dsetbuf.c38 setbuf(FILE *fp, char *buf) argument
40 (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
H A Dtmpnam.c48 static char buf[L_tmpnam]; local
51 s = buf;
H A Dperror.c44 char buf[NL_TEXTMAX]; local
55 (void)strerror_r(errno, buf, sizeof(buf));
56 v->iov_base = buf;
H A Dsetbuffer.c37 setbuffer(FILE *fp, char *buf, int size) argument
40 (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size);
/bionic/tests/
H A Dinttypes_test.cpp24 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 Dlibc_logging_test.cpp26 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 Dstack_protector_test_helper.cpp19 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 Dstring_posix_strerror_r_test.cpp41 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 Dgetcwd_test.cpp78 char* buf = new char[PATH_MAX]; local
80 char* cwd = getcwd(buf, PATH_MAX);
81 ASSERT_TRUE(cwd == buf);
H A Dmntent_test.cpp30 char buf[BUFSIZ]; local
31 while (getmntent_r(fp, &entry, buf, sizeof(buf)) != NULL) {

Completed in 540 milliseconds

123456