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

123

/bionic/libc/inet/
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);
/bionic/libc/stdio/
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 Dsetbuffer.c37 setbuffer(FILE *fp, char *buf, int size) argument
40 (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size);
H A Dfgets.c45 fgets(char *buf, int n, FILE *fp) argument
56 s = buf;
65 if (s == buf) {
91 return (buf);
101 return (buf);
H A Dfwrite.c43 fwrite(const void *buf, size_t size, size_t count, FILE *fp) argument
50 iov.iov_base = (void *)buf;
H A Dsetvbuf.c43 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 Dtmpfile.c51 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 Dvsscanf.c40 eofread(void *cookie, char *buf, int len) argument
H A Dfread.c48 fread(void *buf, size_t size, size_t count, FILE *fp) argument
66 p = buf;
/bionic/tests/
H A Dregex_test.cpp29 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 Dgetcwd_test.cpp78 char* buf = new char[PATH_MAX]; local
80 char* cwd = getcwd(buf, PATH_MAX);
81 ASSERT_TRUE(cwd == buf);
H A Dstring_test.cpp54 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 Dpread.c31 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 Dpwrite.c31 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 Drecv.c31 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 Dsend.c31 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 Dptsname_r.c35 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 Dcpuacct.c39 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 Dfdprintf.c36 char *buf=0; local
38 ret = vasprintf(&buf, format, ap);
42 ret = write(fd, buf, ret);
43 free(buf);
H A Dgetcwd.cpp32 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 Dpsignal.c62 char buf[NL_TEXTMAX]; local
73 v->iov_base = __UNCONST(__strsignal((int)sig, buf, sizeof(buf)));
/bionic/libc/kernel/common/linux/
H A Dcirc_buf.h22 char *buf; member in struct:circ_buf
H A Drandom.h34 __u32 buf[0]; member in struct:rand_pool_info

Completed in 308 milliseconds

123