Searched defs:buf (Results 101 - 125 of 144) sorted by relevance

123456

/bionic/tools/versioner/current/
H A Dunistd.h293 char* getcwd(char* buf, size_t size) __overloadable
294 __error_if_overflows_objectsize(size, __bos(buf));
298 char* getcwd(char* const __pass_object_size buf, size_t size) __overloadable {
299 size_t bos = __bos(buf);
302 * Clang responds bos==0 if buf==NULL
306 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE || buf == NULL) {
307 return __call_bypassing_fortify(getcwd)(buf, size);
310 return __getcwd_chk(buf, size, bos);
316 ssize_t pread(int fd, void* buf, size_t count, off_t offset) __overloadable
320 ssize_t pread(int fd, void* buf, size_
551 pread(int fd, void* buf, size_t count, off_t offset) argument
574 pread64(int fd, void* buf, size_t count, off64_t offset) argument
599 pwrite(int fd, const void* buf, size_t count, off_t offset) argument
622 pwrite64(int fd, const void* buf, size_t count, off64_t offset) argument
647 read(int fd, void* buf, size_t count) argument
672 write(int fd, const void* buf, size_t count) argument
693 readlink(const char* path, char* buf, size_t size) argument
716 readlinkat(int dirfd, const char* path, char* buf, size_t size) argument
[all...]
/bionic/libc/bionic/
H A Dgrp_pwd.cpp78 passwd* dst, char* buf, size_t byte_count,
96 // Work out where our strings will go in 'buf', and whether we've got
99 dst->pw_name = buf;
101 dst->pw_dir = buf + required_byte_count;
103 dst->pw_shell = buf + required_byte_count;
110 snprintf(buf, byte_count, "%s%c%s%c%s", src->pw_name, 0, src->pw_dir, 0, src->pw_shell);
128 char* buf, size_t byte_count, passwd** result) {
129 return do_getpw_r(1, name, -1, pwd, buf, byte_count, result);
133 char* buf, size_t byte_count, passwd** result) {
134 return do_getpw_r(0, NULL, uid, pwd, buf, byte_coun
77 do_getpw_r(int by_name, const char* name, uid_t uid, passwd* dst, char* buf, size_t byte_count, passwd** result) argument
127 getpwnam_r(const char* name, passwd* pwd, char* buf, size_t byte_count, passwd** result) argument
132 getpwuid_r(uid_t uid, passwd* pwd, char* buf, size_t byte_count, passwd** result) argument
570 getgroup_r(bool by_name, const char* name, gid_t gid, struct group* grp, char* buf, size_t buflen, struct group** result) argument
590 getgrgid_r(gid_t gid, struct group* grp, char* buf, size_t buflen, struct group** result) argument
594 getgrnam_r(const char* name, struct group* grp, char* buf, size_t buflen, struct group **result) argument
[all...]
H A Dfortify.cpp107 size_t __fread_chk(void* __restrict buf, size_t size, size_t count, argument
112 return fread(buf, size, count, stream);
115 return fread(buf, size, count, stream);
118 size_t __fwrite_chk(const void* __restrict buf, size_t size, size_t count, argument
123 return fwrite(buf, size, count, stream);
126 return fwrite(buf, size, count, stream);
129 extern char* __getcwd_chk(char* buf, size_t len, size_t actual_size) { argument
131 return getcwd(buf, len);
177 ssize_t __pread64_chk(int fd, void* buf, size_t count, off64_t offset, size_t buf_size) { argument
180 return pread64(fd, buf, coun
183 __pread_chk(int fd, void* buf, size_t count, off_t offset, size_t buf_size) argument
189 __pwrite64_chk(int fd, const void* buf, size_t count, off64_t offset, size_t buf_size) argument
196 __pwrite_chk(int fd, const void* buf, size_t count, off_t offset, size_t buf_size) argument
203 __read_chk(int fd, void* buf, size_t count, size_t buf_size) argument
209 __readlinkat_chk(int dirfd, const char* path, char* buf, size_t size, size_t buf_size) argument
215 __readlink_chk(const char* path, char* buf, size_t size, size_t buf_size) argument
221 __recvfrom_chk(int socket, void* buf, size_t len, size_t buf_size, int flags, sockaddr* src_addr, socklen_t* addrlen) argument
227 __sendto_chk(int socket, const void* buf, size_t len, size_t buflen, int flags, const struct sockaddr* dest_addr, socklen_t addrlen) argument
455 __write_chk(int fd, const void* buf, size_t count, size_t buf_size) argument
[all...]
H A Dlibc_logging.cpp160 // Writes number 'value' in base 'base' into buffer 'buf' of size 'buf_size' bytes.
162 static void format_unsigned(char* buf, size_t buf_size, uint64_t value, int base, bool caps) { argument
163 char* p = buf;
164 char* end = buf + buf_size - 1;
182 if (p == buf) {
190 size_t length = p - buf;
192 char ch = buf[i];
193 buf[i] = buf[j];
194 buf[
198 format_integer(char* buf, size_t buf_size, uint64_t value, char conversion) argument
500 char buf[PROP_VALUE_MAX]; local
[all...]
/bionic/libc/dns/nameser/
H A Dns_print.c59 char **buf, size_t *buflen);
62 char **buf, size_t *buflen);
63 static void addlen(size_t len, char **buf, size_t *buflen);
65 char **buf, size_t *buflen);
67 char **buf, size_t *buflen);
85 * Number of characters written to buf, or -1 (check errno).
90 char *buf, size_t buflen)
97 name_ctx, origin, buf, buflen);
105 * Number of characters written to buf, or -1 (check errno).
112 char *buf, size_
88 ns_sprintrr(const ns_msg *handle, const ns_rr *rr, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
108 ns_sprintrrf(const u_char *msg, size_t msglen, const char *name, ns_class class, ns_type type, u_long ttl, const u_char *rdata, size_t rdlen, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
164 addlen(strlen(buf), &buf, &buflen); local
334 addlen(strlen(buf), &buf, &buflen); local
425 addlen(strlen(buf), &buf, &buflen); local
669 addlen(strlen(buf), &buf, &buflen); local
692 addlen(strlen(buf), &buf, &buflen); local
964 addlen(strlen(buf), &buf, &buflen); local
969 addlen(strlen(buf), &buf, &buflen); local
1142 charstr(const u_char *rdata, const u_char *edata, char **buf, size_t *buflen) argument
1177 addname(const u_char *msg, size_t msglen, const u_char **pp, const char *origin, char **buf, size_t *buflen) argument
1222 addlen(size_t len, char **buf, size_t *buflen) argument
1229 addstr(const char *src, size_t len, char **buf, size_t *buflen) argument
1241 addtab(size_t len, size_t target, int spaced, char **buf, size_t *buflen) argument
[all...]
/bionic/libc/tzcode/
H A Dstrftime.c356 char buf[INT_STRLEN_MAXIMUM( local
363 snprintf(buf, sizeof(buf), "%"PRIdMAX,
365 else snprintf(buf, sizeof(buf), "%"PRIuMAX,
367 pt = _add(buf, pt, ptlim, modifier);
632 char buf[INT_STRLEN_MAXIMUM(int) + 1]; local
634 snprintf(buf, sizeof(buf), format, n);
635 return _add(buf, p
[all...]
/bionic/linker/
H A Dlinker_config.cpp152 char buf[1024]; local
153 __libc_format_buffer(buf, sizeof(buf), "%s:%zu: error: %s", file, lineno, msg.c_str());
155 return std::string(buf);
331 char buf[16]; local
332 __libc_format_buffer(buf, sizeof(buf), "%d", target_sdk_version_);
333 params.push_back({ "SDK_VER", buf });
H A Dlinker.cpp345 std::vector<char> buf(PATH_MAX), proc_self_fd(PATH_MAX);
347 if (readlink(&proc_self_fd[0], &buf[0], buf.size()) == -1) {
352 *realpath = &buf[0];
946 char buf[512]; local
947 if (strlcpy(buf, path, sizeof(buf)) >= sizeof(buf)) {
952 buf[separator - path] = '\0';
954 const char* zip_path = buf;
995 format_path(char* buf, size_t buf_size, const char* path, const char* name) argument
1010 char buf[512]; local
[all...]
/bionic/libc/kernel/uapi/linux/android/
H A Dbinder.h117 __u8 buf[8]; member in union:binder_transaction_data::__anon222
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/android/
H A Dbinder.h117 __u8 buf[8]; member in union:binder_transaction_data::__anon1295
/bionic/tests/
H A Dstdio_test.cpp266 char buf[32]; local
267 snprintf(buf, sizeof(buf), "%zd", v);
272 char buf[BUFSIZ]; local
273 EXPECT_EQ(23, snprintf(buf, sizeof(buf), "<%a>", 9990.235));
274 EXPECT_STREQ("<0x1.3831e147ae148p+13>", buf);
278 char buf[BUFSIZ]; local
280 EXPECT_EQ(3, snprintf(buf, sizeof(buf), "<
285 char buf[BUFSIZ]; local
299 char buf[32]; local
310 char buf[BUFSIZ]; local
412 T buf[BUFSIZ]; local
539 char buf[BUFSIZ]; local
545 char buf[BUFSIZ]; local
551 char buf[BUFSIZ]; local
561 char buf[BUFSIZ]; local
571 char buf[BUFSIZ]; local
577 char buf[BUFSIZ]; local
583 char buf[BUFSIZ]; local
593 char buf[BUFSIZ]; local
618 char buf[BUFSIZ]; local
639 char buf[PATH_MAX]; local
657 char buf[128]; local
709 char buf[16]; local
930 char buf[16]; local
952 char buf[16]; local
1053 char buf[65*1024]; local
1191 char buf[6] = {0}; local
1417 char buf[L_ctermid] = {}; local
1445 char buf[16]; local
1457 std::string buf = "world"; local
1464 std::string buf = "world"; local
[all...]
H A Dstring_test.cpp93 char buf[256]; local
98 ASSERT_STREQ("Success", strerror_r(0, buf, sizeof(buf)));
100 ASSERT_STREQ("Success", buf);
102 ASSERT_STREQ("Operation not permitted", strerror_r(1, buf, sizeof(buf)));
104 ASSERT_STREQ("Operation not permitted", buf);
108 ASSERT_STREQ("Unknown error -1", strerror_r(-1, buf, sizeof(buf)));
109 ASSERT_STREQ("Unknown error -1", buf);
277 char buf[1]; local
286 char buf[10]; local
300 char buf[10]; local
310 char buf[1]; local
319 char buf[10]; local
333 char buf[10]; local
342 char buf[10]; local
355 char buf[10]; local
365 char buf[10]; local
378 char buf[10]; local
391 char buf[10]; local
401 char buf[10]; local
411 char buf[10]; local
1075 DoMemsetTest(uint8_t* buf, size_t len) argument
1090 DoStrlenTest(uint8_t* buf, size_t len) argument
1375 DoStrchrTest(uint8_t* buf, size_t len) argument
[all...]
H A Dunistd_test.cpp231 char buf[5]; local
232 ASSERT_EQ(5, read(fd, buf, 5));
233 ASSERT_EQ(buf[0], 'L');
234 ASSERT_EQ(buf[1], 'i');
235 ASSERT_EQ(buf[2], 'n');
236 ASSERT_EQ(buf[3], 'u');
237 ASSERT_EQ(buf[4], 'x');
244 char buf[1]; local
245 ASSERT_EQ(-1, read(-1, buf, sizeof(buf)));
649 utsname buf; local
1167 char buf[sizeof(u.domainname)]; local
[all...]
H A Dgtest_main.cpp285 char buf[200]; local
286 while (fgets(buf, sizeof(buf), fp) != NULL) {
287 char* p = buf;
792 char buf[1024]; local
793 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(child_proc.child_read_fd, buf, sizeof(buf) - 1));
795 buf[bytes_read] = '\0';
796 testcase.GetTest(test_id).AppendTestOutput(buf);
872 char buf[102 local
880 char buf[1024]; local
889 char buf[1024]; local
[all...]
H A Dpthread_test.cpp1908 char buf[PATH_MAX + 2048]; local
1909 ASSERT_GT(snprintf(buf, sizeof(buf), "/proc/%d/status", getpid()), 0);
/bionic/libc/dns/net/
H A Dgethnamaddr.c126 u_char buf[MAXPACKET]; member in union:__anon34
201 res_state res, struct hostent *hent, char *buf, size_t buflen, int *he)
224 eom = answer->buf + anslen;
245 bp = buf;
246 ep = buf + buflen;
247 cp = answer->buf;
252 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp));
277 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp));
298 n = dn_expand(answer->buf, eom, cp, tbuf,
327 n = dn_expand(answer->buf, eo
200 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) argument
510 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen, struct hostent **result, int *errorp) argument
543 gethostbyname2_r(const char *name, int af, struct hostent *hp, char *buf, size_t buflen, struct hostent **result, int *errorp) argument
595 char buf[4]; local
698 gethostbyname_internal_real(const char *name, int af, res_state res, struct hostent *hp, char *buf, size_t buflen, int *he) argument
850 gethostbyaddr_r(const void *addr, socklen_t len, int af, struct hostent *hp, char *buf, size_t buflen, struct hostent **result, int *h_errnop) argument
863 android_gethostbyaddrfornet_real(const void *addr, socklen_t len, int af, struct hostent *hp, char *buf, size_t buflen, int *he, unsigned netid, unsigned mark) argument
933 char buf[INET6_ADDRSTRLEN]; //big enough for IPv4 and IPv6 local
959 netbsd_gethostent_r(FILE *hf, struct hostent *hent, char *buf, size_t buflen, int *he) argument
1169 querybuf *buf; local
1233 querybuf *buf; local
[all...]
H A Dgetaddrinfo.c205 u_char buf[MAXPACKET]; member in union:__anon33
446 char buf[4]; local
448 if (fread(buf, 1, sizeof(buf), proxy) != sizeof(buf)) {
452 int result_code = (int)strtol(buf, NULL, 10);
455 fread(buf, 1, sizeof(buf), proxy);
1331 eom = answer->buf + anslen;
1349 cp = answer->buf;
1892 querybuf *buf, *buf2; local
2158 u_char buf[MAXPACKET]; local
[all...]
/bionic/libc/dns/resolv/
H A Dres_debug.c155 char *buf; local
166 buf = malloc((size_t)buflen);
167 if (buf == NULL) {
246 buf, (u_int)buflen);
249 free(buf);
250 buf = NULL;
252 buf = malloc((size_t)(buflen += 1024));
253 if (buf == NULL) {
264 fputs(buf, file);
270 if (buf !
727 p_sockun(union res_sockaddr_union u, char *buf, size_t size) argument
1182 res_nametoclass(const char *buf, int *successp) argument
1205 res_nametotype(const char *buf, int *successp) argument
[all...]
H A Dres_send.c273 * res_nameinquery(name, type, class, buf, eom)
274 * look for (name,type,class) in the query section of packet (buf,eom)
276 * buf + HFIXEDSZ <= eom
286 const u_char *buf, const u_char *eom)
288 const u_char *cp = buf + HFIXEDSZ;
289 int qdcount = ntohs(((const HEADER*)(const void *)buf)->qdcount);
295 n = dn_expand(buf, eom, cp, tname, sizeof tname);
361 const u_char *buf, int buflen, u_char *ans, int anssiz)
372 (stdout, ";; res_send()\n"), buf, buflen);
379 statp->netid, buf, bufle
285 res_nameinquery(const char *name, int type, int class, const u_char *buf, const u_char *eom) argument
360 res_nsend(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz) argument
749 send_vc(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns, time_t* at, int* rcode, int* delay) argument
1079 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, time_t *at, int *rcode, int* delay) argument
[all...]
H A Dres_cache.c231 _bprint_b( char* p, char* end, const char* buf, int len ) argument
241 memcpy( p, buf, avail );
1463 char* buf; local
1476 buf = (char *)malloc(fileLen+1);
1477 if (buf != NULL) {
1479 fread(buf, fileLen, 1, fp);
1480 XLOG("%s\n", buf);
1481 free(buf);
/bionic/libc/kernel/uapi/drm/
H A Dvia_drm.h154 char __user * buf; member in struct:_drm_via_cmdbuffer
/bionic/libc/stdio/
H A Dstdio.cpp441 int __sread(void* cookie, char* buf, int n) { argument
443 return TEMP_FAILURE_RETRY(read(fp->_file, buf, n));
446 int __swrite(void* cookie, const char* buf, int n) { argument
454 return TEMP_FAILURE_RETRY(write(fp->_file, buf, n));
701 ssize_t getline(char** buf, size_t* len, FILE* fp) { argument
702 return getdelim(buf, len, '\n', fp);
766 void setbuf(FILE* fp, char* buf) { argument
767 setbuffer(fp, buf, BUFSIZ);
770 void setbuffer(FILE* fp, char* buf, int size) { argument
771 setvbuf(fp, buf, bu
[all...]
/bionic/libc/versioner-dependencies/common/kernel_uapi/drm/
H A Dvia_drm.h154 char __user * buf; member in struct:_drm_via_cmdbuffer
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dvfprintf.c124 unsigned char buf[BUFSIZ]; local
134 fake._bf._base = fake._p = buf;
135 fake._bf._size = fake._w = sizeof(buf);
158 char buf[MB_LEN_MAX]; local
183 clen = wcrtomb(buf, *p++, &mbs);
323 char buf[BUF]; /* buffer with space for digits of uintmax_t */ local
649 mbseqlen = wcrtomb(buf,
655 cp = buf;
659 *(cp = buf) = GETARG(int);
924 cp = buf
[all...]
H A Dvfwprintf.c102 unsigned char buf[BUFSIZ]; local
112 fake._bf._base = fake._p = buf;
113 fake._bf._size = fake._w = sizeof(buf);
133 char buf[MB_LEN_MAX]; local
142 len = wcrtomb(buf, wc, &mbs);
151 iov.iov_base = buf;
327 wchar_t buf[BUF]; /* buffer with space for digits of uintmax_t */ local
613 *(cp = buf) = (wchar_t)GETARG(wint_t);
615 *(cp = buf) = (wchar_t)btowc(GETARG(int));
884 cp = buf
[all...]

Completed in 550 milliseconds

123456