/bionic/libc/bionic/ |
D | cpuacct.c | 38 char buf[80]; in cpuacct_add() local 40 count = snprintf(buf, sizeof(buf), "/acct/uid/%d/tasks", uid); in cpuacct_add() 41 fp = fopen(buf, "w+"); in cpuacct_add() 44 buf[count - sizeof("tasks")] = 0; in cpuacct_add() 45 if (mkdir(buf, 0775) < 0) in cpuacct_add() 49 buf[count - sizeof("tasks")] = '/'; in cpuacct_add() 50 fp = fopen(buf, "w+"); in cpuacct_add()
|
D | fdprintf.c | 36 char *buf=0; in vfdprintf() local 38 ret = vasprintf(&buf, format, ap); in vfdprintf() 42 ret = write(fd, buf, ret); in vfdprintf() 43 free(buf); in vfdprintf()
|
D | logd_write.c | 158 char buf[LOG_BUF_SIZE]; in __libc_android_log_vprint() local 160 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __libc_android_log_vprint() 162 return __android_log_write(prio, tag, buf); in __libc_android_log_vprint() 168 char buf[LOG_BUF_SIZE]; in __libc_android_log_print() local 171 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __libc_android_log_print() 174 return __android_log_write(prio, tag, buf); in __libc_android_log_print() 181 char buf[LOG_BUF_SIZE]; in __libc_android_log_assert() local 184 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __libc_android_log_assert() 187 __android_log_write(ANDROID_LOG_FATAL, tag, buf); in __libc_android_log_assert()
|
/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 | 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, loff_t offset); 30 ssize_t pread(int fd, void *buf, size_t nbytes, off_t offset) in pread() argument 32 return __pread64(fd, buf, nbytes, offset); in pread()
|
D | pwrite.c | 31 extern int __pwrite64(int fd, void *buf, size_t nbytes, loff_t offset); 33 ssize_t pwrite(int fd, void *buf, size_t nbytes, off_t offset) in pwrite() argument 35 return __pwrite64(fd, buf, nbytes, offset); in pwrite()
|
D | ptsname_r.c | 35 int ptsname_r( int fd, char* buf, size_t buflen) in ptsname_r() argument 41 if (buf == NULL) { in ptsname_r() 56 memcpy( buf, buff, len+1 ); in ptsname_r()
|
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()
|
/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/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;
|
/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,
|