/bionic/libc/inet/ |
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);
|
/bionic/libc/stdio/ |
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 | setbuffer.c | 37 setbuffer(FILE *fp, char *buf, int size) argument 40 (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size);
|
H A D | fgets.c | 45 fgets(char *buf, int n, FILE *fp) argument 56 s = buf; 65 if (s == buf) { 91 return (buf); 101 return (buf);
|
H A D | fwrite.c | 43 fwrite(const void *buf, size_t size, size_t count, FILE *fp) argument 50 iov.iov_base = (void *)buf;
|
H A D | setvbuf.c | 43 setvbuf(FILE *fp, char *buf, int mode, size_t size) argument 51 * particular implementation. Note, buf and size are ignored 87 buf = NULL; /* force local allocation */ 92 if (buf == NULL) { 93 if ((buf = malloc(size)) == NULL) { 101 buf = malloc(size); 104 if (buf == NULL) { 133 fp->_bf._base = fp->_p = (unsigned char *)buf;
|
H A D | tmpfile.c | 51 char buf[sizeof(_PATH_TMP) + sizeof(TRAILER)]; local 53 (void)memcpy(buf, _PATH_TMP, sizeof(_PATH_TMP) - 1); 54 (void)memcpy(buf + sizeof(_PATH_TMP) - 1, TRAILER, sizeof(TRAILER)); 59 fd = mkstemp(buf); 63 (void)unlink(buf);
|
H A D | vsscanf.c | 40 eofread(void *cookie, char *buf, int len) argument
|
H A D | fread.c | 48 fread(void *buf, size_t size, size_t count, FILE *fp) argument 66 p = buf;
|
/bionic/tests/ |
H A D | regex_test.cpp | 29 char buf[80]; local 30 regerror(REG_NOMATCH, &re, buf, sizeof(buf)); 32 ASSERT_STREQ("regexec() failed to match", buf); 34 ASSERT_STREQ("No match", buf);
|
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 | string_test.cpp | 54 char buf[256]; local 57 ASSERT_EQ(0, strerror_r(0, buf, sizeof(buf))); 58 ASSERT_STREQ("Success", buf); 59 ASSERT_EQ(0, strerror_r(1, buf, sizeof(buf))); 60 ASSERT_STREQ("Operation not permitted", buf); 63 ASSERT_EQ(0, strerror_r(-1, buf, sizeof(buf))); 64 ASSERT_STREQ("Unknown error 4294967295", buf); [all...] |
/bionic/libc/unistd/ |
H A D | pread.c | 31 ssize_t pread(int fd, void *buf, size_t nbytes, off_t offset) argument 33 return pread64(fd, buf, nbytes, (off64_t)offset);
|
H A D | pwrite.c | 31 ssize_t pwrite(int fd, const void *buf, size_t nbytes, off_t offset) argument 33 return pwrite64(fd, buf, nbytes, (off64_t)offset);
|
H A D | recv.c | 31 ssize_t recv(int socket, void *buf, size_t buflen, unsigned int flags) argument 33 return recvfrom(socket, buf, buflen, flags, NULL, 0);
|
H A D | send.c | 31 ssize_t send(int socket, const void *buf, size_t buflen, unsigned int flags) argument 33 return (ssize_t) sendto(socket, buf, buflen, flags, NULL, 0);
|
H A D | ptsname_r.c | 35 int ptsname_r( int fd, char* buf, size_t buflen) argument 41 if (buf == NULL) { 56 memcpy( buf, buff, len+1 );
|
/bionic/libc/bionic/ |
H A D | cpuacct.c | 39 char buf[80]; local 43 count = snprintf(buf, sizeof(buf), "/acct/uid/%d/tasks", uid); 44 fd = open(buf, O_RDWR | O_CREAT, 0666); 47 buf[count - sizeof("tasks")] = 0; 48 if (mkdir(buf, 0775) < 0) 52 buf[count - sizeof("tasks")] = '/'; 53 fd = open(buf, O_RDWR | O_CREAT, 0666);
|
H A D | fdprintf.c | 36 char *buf=0; local 38 ret = vasprintf(&buf, format, ap); 42 ret = write(fd, buf, ret); 43 free(buf);
|
H A D | getcwd.cpp | 32 extern "C" int __getcwd(char* buf, size_t size); 34 char* getcwd(char* buf, size_t size) { argument 36 if (buf != NULL && size == 0) { 43 if (buf == NULL) { 50 buf = allocated_buf = static_cast<char*>(malloc(allocated_size)); 51 if (buf == NULL) { 58 int rc = __getcwd(buf, size); 68 buf = strdup(allocated_buf); 71 buf = allocated_buf; 75 return buf; [all...] |
/bionic/libc/upstream-netbsd/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/kernel/common/linux/ |
H A D | circ_buf.h | 22 char *buf; member in struct:circ_buf
|
H A D | random.h | 34 __u32 buf[0]; member in struct:rand_pool_info
|