Searched defs:buff (Results 1 - 11 of 11) sorted by relevance

/system/extras/tests/bionic/libc/common/
H A Dtest_strftime_2039.c10 char buff[256]; local
17 if (strftime(buff, sizeof buff, "%s", &tm) == 0) {
21 printf("seconds since epoch: %s\n", buff);
24 if (buff[0] == '-') {
30 if (strftime(buff, sizeof buff, "%c", &tm) == 0) {
34 printf("date string : %s\n", buff);
H A Dtest_libgen.c65 "KO: basename_r(\"%s\", <buff>, %d) returned %d (expected %d)\n",
73 "KO: basename_r(\"%s\", <buff>, %d) returned -1 with errno=%d (expected %d)\n",
81 "KO: basename_r(\"%s\", <buff>, %d) returned \"%s\", expected \"%s\"\n",
86 printf("OK: basename_r(\"%s\", <buff>, %d) returned \"%s\"\n",
98 "KO: dirname_r(\"%s\", <buff>, %d) returned %d (expected %d)\n",
106 "KO: dirname_r(\"%s\", <buff>, %d) returned -1 with errno=%d (expected %d)\n",
114 "KO: dirname_r(\"%s\", <buff>, %d) returned \"%s\", expected \"%s\"\n",
119 printf("OK: dirname_r(\"%s\", <buff>, %d) returned \"%s\"\n",
176 char buff[256]; local
188 test_basename_r( "", ".", -1, buff,
[all...]
/system/core/adb/
H A Dutils.c22 buff_addc (char* buff, char* buffEnd, int c) argument
24 int avail = buffEnd - buff;
27 return buff;
30 buff[0] = 0;
31 return buff + 1;
34 buff[0] = (char) c; /* add char and terminating zero */
35 buff[1] = 0;
36 return buff + 1;
40 buff_adds (char* buff, char* buffEnd, const char* s) argument
44 return buff_addb(buff, buffEn
48 buff_addb(char* buff, char* buffEnd, const void* data, int len) argument
72 buff_add(char* buff, char* buffEnd, const char* format, ... ) argument
[all...]
H A Dusb_vendors.c186 int get_adb_usb_ini(char* buff, size_t len);
235 int build_path(char* buff, size_t len, const char* format, const char* home) argument
237 if (snprintf(buff, len, format, home, ANDROID_PATH, ANDROID_ADB_INI) >= (signed)len) {
244 /* fills buff with the path to the adb vendor id file. returns 0 if success */
245 int get_adb_usb_ini(char* buff, size_t len) argument
250 return build_path(buff, len, "%s\\%s\\%s", home);
254 return build_path(buff, len, "%s\\%s\\%s", path);
261 return build_path(buff, len, "%s/%s/%s", home);
H A Dtransport.c142 char buff[8]; local
144 snprintf(buff, sizeof buff, "fd=%d", fd);
145 name = buff;
172 char buff[8]; local
174 snprintf(buff, sizeof buff, "fd=%d", fd);
175 name = buff;
886 char buff[32]; local
889 snprintf(buff, sizeo
[all...]
H A Dsysdeps_win32.c872 unsigned char buff[ BIP_BUFFER_SIZE ]; member in struct:BipBufferRec_
958 memcpy( bip->buff + bip->a_end, src, avail );
980 memcpy( bip->buff + bip->b_end, src, avail );
1051 memcpy( dst, bip->buff + bip->a_start, avail );
1068 memcpy( dst, bip->buff, avail );
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp59 char *buff; local
66 vasprintf(&buff, fmt, argp);
68 res = write(ctrl, buff, strlen(buff));
69 testPrintI("cmd: '%s' res=%d %d/%s", buff, res, errno, strerror(errno));
71 free(buff);
134 char *buff; local
163 asprintf(&buff, match_template, full_tag | uid, uid);
164 testPrintI("looking for '%s'", buff);
165 pos = strstr(ctrl_data, buff);
[all...]
/system/core/init/
H A Dbootchart.c50 unix_read(int fd, void* buff, int len) argument
53 do { ret = read(fd, buff, len); } while (ret < 0 && errno == EINTR);
58 unix_write(int fd, const void* buff, int len) argument
61 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR);
66 proc_read(const char* filename, char* buff, size_t buffsize) argument
71 len = unix_read(fd, buff, buffsize-1);
74 buff[len > 0 ? len : 0] = 0;
87 file_buff_open( FileBuff buff, const char* path ) argument
89 buff->count = 0;
90 buff
94 file_buff_write( FileBuff buff, const void* src, int len ) argument
187 char buff[65]; local
216 char buff[1024]; local
255 char buff[1024]; local
302 char buff[4]; local
362 char buff[2]; local
[all...]
H A Dinit.c617 char buff[PROP_NAME_MAX]; local
618 int len = snprintf( buff, sizeof(buff), "ro.kernel.%s", name );
620 if (len < (int)sizeof(buff))
621 property_set( buff, value );
/system/netd/
H A DBandwidthController.cpp311 char *buff; local
326 asprintf(&buff, "%s penalty_box -m owner --uid-owner %d", opFlag, uid);
327 res = buff;
328 free(buff);
411 char *buff; local
430 asprintf(&buff, "%s costly_%s -m quota2 ! --quota %lld --name %s", opFlag, costName, quota,
432 res = buff;
433 free(buff);
/system/vold/
H A Dcryptfs.c1011 static inline int unix_read(int fd, void* buff, int len) argument
1014 do { ret = read(fd, buff, len); } while (ret < 0 && errno == EINTR);
1018 static inline int unix_write(int fd, const void* buff, int len) argument
1021 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR);

Completed in 170 milliseconds