Searched refs:buf (Results 51 - 75 of 105) sorted by relevance

12345

/bionic/libc/upstream-openbsd/lib/libc/gen/
H A Dexec.c139 char *bp, *cur, *path, buf[PATH_MAX]; local
155 bp = buf;
185 if (lp + ln + 2 > sizeof(buf)) {
197 bcopy(p, buf, lp);
198 buf[lp] = '/';
199 bcopy(name, buf + lp + 1, ln);
200 buf[lp + ln + 1] = '\0';
/bionic/libc/tzcode/
H A Dstrptime.c102 strptime(const char *buf, const char *fmt, struct tm *tm) argument
107 return (char*)(_strptime((const unsigned char*)buf, fmt, tm, &cr));
111 _strptime(const unsigned char *buf, const char *fmt, struct tm *tm, struct century_relyear *cr) argument
118 bp = (unsigned char *)buf;
412 _conv_num(const unsigned char **buf, int *dest, int llim, int ulim) argument
417 if (**buf < '0' || **buf > '9')
423 result += *(*buf)++ - '0';
425 } while ((result * 10 <= ulim) && rulim && **buf >= '0' && **buf <
[all...]
H A Dstrftime.c381 char buf[INT_STRLEN_MAXIMUM( local
388 (void) snprintf(buf, sizeof(buf), "%lld",
390 else (void) snprintf(buf, sizeof(buf), "%llu",
392 pt = _add(buf, pt, ptlim, modifier);
647 char buf[INT_STRLEN_MAXIMUM(int) + 1]; local
649 (void) snprintf(buf, sizeof(buf), format, n);
650 return _add(buf, p
[all...]
/bionic/libc/bionic/
H A Dsysconf.cpp104 char buf[256]; local
105 while (fgets(buf, sizeof(buf), fp) != NULL) {
108 char* p = strchr(buf, ' ');
112 if (__matches_cpuN(buf)) {
127 char buf[256]; local
128 while (fgets(buf, sizeof(buf), fp) != NULL) {
130 if (sscanf(buf, pattern, &total) == 1) {
H A Dlibc_logging.cpp157 // Writes number 'value' in base 'base' into buffer 'buf' of size 'buf_size' bytes.
159 static void format_unsigned(char* buf, size_t buf_size, uint64_t value, int base, bool caps) { argument
160 char* p = buf;
161 char* end = buf + buf_size - 1;
179 if (p == buf) {
187 size_t length = p - buf;
189 char ch = buf[i];
190 buf[i] = buf[j];
191 buf[
195 format_integer(char* buf, size_t buf_size, uint64_t value, char conversion) argument
[all...]
H A Dstubs.cpp58 passwd* dst, char* buf, size_t byte_count,
76 // Work out where our strings will go in 'buf', and whether we've got
79 dst->pw_name = buf;
81 dst->pw_dir = buf + required_byte_count;
83 dst->pw_shell = buf + required_byte_count;
90 snprintf(buf, byte_count, "%s%c%s%c%s", src->pw_name, 0, src->pw_dir, 0, src->pw_shell);
107 char* buf, size_t byte_count, passwd** result) {
108 return do_getpw_r(1, name, -1, pwd, buf, byte_count, result);
112 char* buf, size_t byte_count, passwd** result) {
113 return do_getpw_r(0, NULL, uid, pwd, buf, byte_coun
57 do_getpw_r(int by_name, const char* name, uid_t uid, passwd* dst, char* buf, size_t byte_count, passwd** result) argument
106 getpwnam_r(const char* name, passwd* pwd, char* buf, size_t byte_count, passwd** result) argument
111 getpwuid_r(uid_t uid, passwd* pwd, char* buf, size_t byte_count, passwd** result) argument
[all...]
/bionic/libc/dns/nameser/
H A Dns_ttl.c47 static int fmt1(int t, char s, char **buf, size_t *buflen);
156 fmt1(int t, char s, char **buf, size_t *buflen) { argument
163 strcpy(*buf, tmp);
164 *buf += len;
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dvsscanf.c40 eofread(void *cookie, char *buf, int len) argument
H A Dvfwscanf.c114 wchar_t buf[BUF]; /* buffer for numeric conversions */ local
537 if (width == 0 || width > sizeof(buf) /
538 sizeof(*buf) - 1)
539 width = sizeof(buf) / sizeof(*buf) - 1;
541 for (p = buf; width; width--) {
613 buf + 1 + !!(flags & HAVESIGN)) {
641 if (p > buf)
655 res = wcstoimax(buf, NULL, base);
657 res = wcstoumax(buf, NUL
[all...]
H A Dsscanf.c41 eofread(void *cookie, char *buf, int len) argument
/bionic/libc/dns/resolv/
H A Dres_data.c175 u_char *buf, /* buffer to put query */
184 newrr_in, buf, buflen));
189 res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) { argument
195 return (res_nmkupdate(&_nres, rrecp_in, buf, buflen));
228 res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) { argument
234 return (res_nsend(&_nres, buf, buflen, ans, anssiz));
239 res_sendsigned(const u_char *buf, int buflen, ns_tsig_key *key, argument
247 return (res_nsendsigned(&_nres, buf, buflen, key, ans, anssiz));
169 res_mkquery(int op, const char *dname, int class, int type, const u_char *data, int datalen, const u_char *newrr_in, u_char *buf, int buflen) argument
H A Dres_init.c176 char buf[BUFSIZ]; local
294 while (fgets(buf, sizeof(buf), fp) != NULL) {
296 if (*buf == ';' || *buf == '#')
299 if (MATCH(buf, "domain")) {
302 cp = buf + sizeof("domain") - 1;
315 if (MATCH(buf, "search")) {
318 cp = buf + sizeof("search") - 1;
352 if (MATCH(buf, "nameserve
[all...]
H A Dres_debug.c163 char *buf; local
174 buf = malloc((size_t)buflen);
175 if (buf == NULL) {
254 buf, (u_int)buflen);
257 free(buf);
258 buf = NULL;
260 buf = malloc((size_t)(buflen += 1024));
261 if (buf == NULL) {
272 fputs(buf, file);
278 if (buf !
735 p_sockun(union res_sockaddr_union u, char *buf, size_t size) argument
1190 res_nametoclass(const char *buf, int *successp) argument
1213 res_nametotype(const char *buf, int *successp) argument
[all...]
H A Dres_query.c134 u_char buf[MAXPACKET]; local
150 buf, sizeof(buf));
154 n = res_nopt(statp, n, buf, sizeof(buf), anslen);
164 n = res_nsend(statp, buf, n, answer, anslen);
H A Dres_send.c276 * res_nameinquery(name, type, class, buf, eom)
277 * look for (name,type,class) in the query section of packet (buf,eom)
279 * buf + HFIXEDSZ <= eom
289 const u_char *buf, const u_char *eom)
291 const u_char *cp = buf + HFIXEDSZ;
292 int qdcount = ntohs(((const HEADER*)(const void *)buf)->qdcount);
298 n = dn_expand(buf, eom, cp, tname, sizeof tname);
365 const u_char *buf, int buflen, u_char *ans, int anssiz)
385 (stdout, ";; res_send()\n"), buf, buflen);
393 statp->netid, buf, bufle
288 res_nameinquery(const char *name, int type, int class, const u_char *buf, const u_char *eom) argument
364 res_nsend(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz) argument
736 send_vc(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns) argument
1047 send_dg(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns, int *v_circuit, int *gotsomewhere) argument
[all...]
/bionic/libc/stdio/
H A Dfread.c43 fread(void *buf, size_t size, size_t count, FILE *fp) argument
70 p = buf;
/bionic/tests/
H A Dtime_test.cpp106 char buf[64]; local
110 EXPECT_EQ(10U, strftime(buf, sizeof(buf), "%s", &t));
111 EXPECT_STREQ("4108320000", buf);
115 EXPECT_EQ(24U, strftime(buf, sizeof(buf), "%c", &t));
116 EXPECT_STREQ("Sun Mar 10 00:00:00 2100", buf);
123 char buf[64]; local
127 strftime(buf, sizeof(buf), "
[all...]
H A Dunistd_test.cpp198 char buf[5]; local
199 ASSERT_EQ(5, read(fd, buf, 5));
200 ASSERT_EQ(buf[0], 'L');
201 ASSERT_EQ(buf[1], 'i');
202 ASSERT_EQ(buf[2], 'n');
203 ASSERT_EQ(buf[3], 'u');
204 ASSERT_EQ(buf[4], 'x');
211 char buf[1]; local
212 ASSERT_EQ(-1, read(-1, buf, sizeof(buf)));
[all...]
/bionic/libc/dns/
H A Dgethnamaddr.c100 u_char buf[MAXPACKET]; member in union:__anon11
203 eom = answer->buf + anslen;
223 cp = answer->buf;
229 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
259 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
282 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf);
312 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf);
350 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
476 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen, argument
565 char buf[ local
798 char buf[INET6_ADDRSTRLEN]; //big enough for IPv4 and IPv6 local
1260 querybuf *buf; local
1322 querybuf *buf; local
[all...]
/bionic/libc/include/
H A Dunistd.h208 ssize_t read(int fd, void* buf, size_t count) { argument
209 size_t bos = __bos0(buf);
217 return __read_real(fd, buf, count);
225 return __read_real(fd, buf, count);
229 return __read_chk(fd, buf, count, bos);
/bionic/libc/upstream-openbsd/lib/libc/time/
H A Dwcsftime.c289 wchar_t buf[INT_STRLEN_MAXIMUM( local
296 (void) swprintf(buf,
297 sizeof buf/sizeof buf[0],
300 (void) swprintf(buf,
301 sizeof buf/sizeof buf[0],
303 pt = _add(buf, pt, ptlim);
499 wchar_t buf[INT_STRLEN_MAXIMUM(int) + 1]; local
501 (void) swprintf(buf, sizeo
[all...]
/bionic/libc/include/sys/
H A Dsocket.h301 ssize_t recvfrom(int fd, void* buf, size_t len, int flags, const struct sockaddr* src_addr, socklen_t* addr_len) { argument
302 size_t bos = __bos0(buf);
306 return __recvfrom_real(fd, buf, len, flags, src_addr, addr_len);
310 return __recvfrom_real(fd, buf, len, flags, src_addr, addr_len);
318 return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len);
322 ssize_t recv(int socket, void* buf, size_t len, int flags) { argument
323 return recvfrom(socket, buf, len, flags, NULL, 0);
/bionic/libc/kernel/uapi/linux/
H A Dsem.h57 struct semid_ds __user *buf; member in union:semun
H A Dcciss_ioctl.h60 BYTE __user *buf; member in struct:_IOCTL_Command_struct
70 BYTE __user *buf; member in struct:_BIG_IOCTL_Command_struct
/bionic/libc/dns/net/
H A Dgetaddrinfo.c207 u_char buf[MAXPACKET]; member in union:__anon18
473 char buf[4]; local
475 if (fread(buf, 1, sizeof(buf), proxy) != sizeof(buf)) {
479 int result_code = (int)strtol(buf, NULL, 10);
482 fread(buf, 1, sizeof(buf), proxy);
1329 eom = answer->buf + anslen;
1347 cp = answer->buf
1881 querybuf *buf, *buf2; local
2148 u_char buf[MAXPACKET]; local
[all...]

Completed in 3306 milliseconds

12345