/bionic/libc/netbsd/nameser/ |
D | ns_print.c | 64 char **buf, size_t *buflen); 67 char **buf, size_t *buflen); 68 static void addlen(size_t len, char **buf, size_t *buflen); 70 char **buf, size_t *buflen); 72 char **buf, size_t *buflen); 94 char *buf, size_t buflen) in ns_sprintrr() argument 101 name_ctx, origin, buf, buflen); in ns_sprintrr() 118 char *buf, size_t buflen) in ns_sprintrrf() argument 120 const char *obuf = buf; in ns_sprintrrf() 132 T(addstr("\t\t\t", (size_t)3, &buf, &buflen)); in ns_sprintrrf() [all …]
|
/bionic/libc/string/ |
D | strerror.c | 37 static char buf[256]; in strerror() local 39 (void)strerror_r(num, buf, sizeof(buf)); in strerror() 40 return (buf); in strerror()
|
D | strerror_r.c | 128 __num2string(int num, int sign, int setid, char *buf, size_t buflen, 135 len = strlcpy(buf, def, buflen); 139 len = strlcpy(buf, def, buflen); 143 ret = __itoa(num, sign, buf, len, buflen); 157 __strsignal(int num, char *buf) 159 __num2string(num, 0, 2, buf, NL_TEXTMAX, (char **)sys_siglist, NSIG, 161 return buf;
|
/bionic/libc/unistd/ |
D | getcwd.c | 30 extern int __getcwd(char * buf, size_t size); 32 char *getcwd(char *buf, size_t size) in getcwd() argument 34 return ( __getcwd(buf, size) < 0 ) ? NULL : buf; in getcwd()
|
D | ptsname_r.c | 35 char* ptsname_r( int fd, char* buf, size_t buflen) in ptsname_r() argument 41 if (buf == NULL) { in ptsname_r() 54 memcpy( buf, buff, len+1 ); in ptsname_r() 55 return buf; in ptsname_r()
|
D | pathconf.c | 141 struct statfs buf; in pathconf() local 142 int ret = statfs( path, &buf ); in pathconf() 149 return __filesizebits(&buf); in pathconf() 152 return __link_max(&buf); in pathconf() 161 return __name_max(&buf); in pathconf() 170 return __2_symlinks(&buf); in pathconf() 209 struct statfs buf; in fpathconf() local 210 int ret = fstatfs(fildes, &buf); in fpathconf() 217 return __filesizebits(&buf); in fpathconf() 220 return __link_max(&buf); in fpathconf() [all …]
|
D | pread.c | 28 extern int __pread64(int fd, void *buf, size_t nbytes, off_t lo, off_t hi); 30 ssize_t pread(int fd, void *buf, size_t nbytes, off_t offset) in pread() argument 32 return __pread64(fd, buf, nbytes, offset, 0); in pread()
|
D | pwrite.c | 31 extern int __pwrite64(int fd, void *buf, size_t nbytes, off_t lo, off_t hi); 33 ssize_t pwrite(int fd, void *buf, size_t nbytes, off_t offset) in pwrite() argument 35 return __pwrite64(fd, buf, nbytes, offset, 0); in pwrite()
|
D | recv.c | 31 ssize_t recv(int socket, void *buf, size_t buflen, unsigned int flags) in recv() argument 33 return recvfrom(socket, buf, buflen, flags, NULL, 0); in recv()
|
D | send.c | 31 ssize_t send(int socket, const void *buf, size_t buflen, unsigned int flags) in send() argument 33 return (ssize_t) sendto(socket, buf, buflen, flags, NULL, 0); in send()
|
/bionic/libc/stdio/ |
D | gets.c | 40 gets(char *buf) in gets() argument 45 for (s = buf; (c = getchar()) != '\n';) in gets() 47 if (s == buf) in gets() 54 return (buf); in gets()
|
D | setbuf.c | 38 setbuf(FILE *fp, char *buf) in setbuf() argument 40 (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ); in setbuf()
|
D | setbuffer.c | 37 setbuffer(FILE *fp, char *buf, int size) in setbuffer() argument 40 (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size); in setbuffer()
|
D | tmpfile.c | 51 char buf[sizeof(_PATH_TMP) + sizeof(TRAILER)]; in tmpfile() local 53 (void)memcpy(buf, _PATH_TMP, sizeof(_PATH_TMP) - 1); in tmpfile() 54 (void)memcpy(buf + sizeof(_PATH_TMP) - 1, TRAILER, sizeof(TRAILER)); in tmpfile() 59 fd = mkstemp(buf); in tmpfile() 63 (void)unlink(buf); in tmpfile()
|
D | fgets.c | 45 fgets(char *buf, int n, FILE *fp) in fgets() argument 55 s = buf; in fgets() 64 if (s == buf) in fgets() 87 return (buf); in fgets() 96 return (buf); in fgets()
|
D | setvbuf.c | 43 setvbuf(FILE *fp, char *buf, int mode, size_t size) in setvbuf() argument 86 buf = NULL; /* force local allocation */ in setvbuf() 91 if (buf == NULL) { in setvbuf() 92 if ((buf = malloc(size)) == NULL) { in setvbuf() 100 buf = malloc(size); in setvbuf() 103 if (buf == NULL) { in setvbuf() 131 fp->_bf._base = fp->_p = (unsigned char *)buf; in setvbuf()
|
D | tmpnam.c | 48 static char buf[L_tmpnam]; in tmpnam() local 51 s = buf; in tmpnam()
|
D | stdio.c | 44 __sread(void *cookie, char *buf, int n) in __sread() argument 49 ret = read(fp->_file, buf, n); in __sread() 59 __swrite(void *cookie, const char *buf, int n) in __swrite() argument 66 return (write(fp->_file, buf, n)); in __swrite()
|
D | fwrite.c | 43 fwrite(const void *buf, size_t size, size_t count, FILE *fp) in fwrite() argument 49 iov.iov_base = (void *)buf; in fwrite()
|
/bionic/libc/netbsd/resolv/ |
D | res_mkquery.c | 124 u_char *buf, /* buffer to put query */ in res_nmkquery() argument 142 if ((buf == NULL) || (buflen < HFIXEDSZ)) in res_nmkquery() 144 memset(buf, 0, HFIXEDSZ); in res_nmkquery() 145 hp = (HEADER *)(void *)buf; in res_nmkquery() 150 cp = buf + HFIXEDSZ; in res_nmkquery() 151 ep = buf + buflen; in res_nmkquery() 153 *dpp++ = buf; in res_nmkquery() 221 return (cp - buf); in res_nmkquery() 233 u_char *buf, /* buffer to put query */ in res_nopt() argument 246 hp = (HEADER *)(void *)buf; in res_nopt() [all …]
|
D | __res_send.c | 31 res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) 34 return __res_send(buf, buflen, ans, anssiz);
|
/bionic/libc/bionic/ |
D | logd_write.c | 132 char buf[LOG_BUF_SIZE]; in __libc_android_log_vprint() local 134 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __libc_android_log_vprint() 136 return __android_log_write(prio, tag, buf); in __libc_android_log_vprint() 142 char buf[LOG_BUF_SIZE]; in __libc_android_log_print() local 145 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __libc_android_log_print() 148 return __android_log_write(prio, tag, buf); in __libc_android_log_print() 155 char buf[LOG_BUF_SIZE]; in __libc_android_log_assert() local 158 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __libc_android_log_assert() 161 __android_log_write(ANDROID_LOG_FATAL, tag, buf); in __libc_android_log_assert()
|
/bionic/libc/tzcode/ |
D | asctime.c | 78 asctime_r(timeptr, buf) in asctime_r() argument 80 char * buf; 116 if (strlen(result) < STD_ASCTIME_BUF_SIZE || buf == buf_asctime) { 117 (void) strcpy(buf, result); 118 return buf;
|
D | strptime.c | 97 strptime(const char *buf, const char *fmt, struct tm *tm) in strptime() argument 99 return(_strptime(buf, fmt, tm, 1)); in strptime() 103 _strptime(const char *buf, const char *fmt, struct tm *tm, int initialize) in _strptime() argument 116 bp = (unsigned char *)buf; in _strptime() 410 _conv_num(const unsigned char **buf, int *dest, int llim, int ulim) in _conv_num() argument 415 if (**buf < '0' || **buf > '9') in _conv_num() 421 result += *(*buf)++ - '0'; in _conv_num() 423 } while ((result * 10 <= ulim) && rulim && **buf >= '0' && **buf <= '9'); in _conv_num()
|
/bionic/libc/kernel/common/linux/ |
D | relay.h | 58 struct rchan_buf *buf[NR_CPUS]; member 64 int (*subbuf_start) (struct rchan_buf *buf, 69 void (*buf_mapped)(struct rchan_buf *buf, 72 void (*buf_unmapped)(struct rchan_buf *buf, 78 struct rchan_buf *buf,
|