Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 12 of 12) sorted by relevance

/system/core/adb/
Dutils.c22 buff_addc (char* buff, char* buffEnd, int c) in buff_addc() argument
24 int avail = buffEnd - buff; in buff_addc()
27 return buff; in buff_addc()
30 buff[0] = 0; in buff_addc()
31 return buff + 1; in buff_addc()
34 buff[0] = (char) c; /* add char and terminating zero */ in buff_addc()
35 buff[1] = 0; in buff_addc()
36 return buff + 1; in buff_addc()
40 buff_adds (char* buff, char* buffEnd, const char* s) in buff_adds() argument
44 return buff_addb(buff, buffEnd, s, slen); in buff_adds()
[all …]
Dutils.h45 char* buff_addc (char* buff, char* buffEnd, int c);
48 char* buff_adds (char* buff, char* buffEnd, const char* s);
53 char* buff_addb (char* buff, char* buffEnd, const void* data, int len);
56 char* buff_add (char* buff, char* buffEnd, const char* format, ... );
Dusb_vendors.c205 int get_adb_usb_ini(char* buff, size_t len);
255 int build_path(char* buff, size_t len, const char* format, const char* home) in build_path() argument
257 if (snprintf(buff, len, format, home, ANDROID_PATH, ANDROID_ADB_INI) >= (signed)len) { in build_path()
265 int get_adb_usb_ini(char* buff, size_t len) in get_adb_usb_ini() argument
270 return build_path(buff, len, "%s\\%s\\%s", home); in get_adb_usb_ini()
274 return build_path(buff, len, "%s\\%s\\%s", path); in get_adb_usb_ini()
281 return build_path(buff, len, "%s/%s/%s", home); in get_adb_usb_ini()
Dtransport.c142 char buff[8]; in read_packet() local
144 snprintf(buff, sizeof buff, "fd=%d", fd); in read_packet()
145 name = buff; in read_packet()
172 char buff[8]; in write_packet() local
174 snprintf(buff, sizeof buff, "fd=%d", fd); in write_packet()
175 name = buff; in write_packet()
995 char buff[32]; in register_socket_transport() local
998 snprintf(buff, sizeof buff, "T-%p", t); in register_socket_transport()
999 serial = buff; in register_socket_transport()
Dsysdeps_win32.c872 unsigned char buff[ BIP_BUFFER_SIZE ]; member
958 memcpy( bip->buff + bip->a_end, src, avail ); in bip_buffer_write()
980 memcpy( bip->buff + bip->b_end, src, avail ); in bip_buffer_write()
1051 memcpy( dst, bip->buff + bip->a_start, avail ); in bip_buffer_read()
1068 memcpy( dst, bip->buff, avail ); in bip_buffer_read()
/system/core/init/
Dbootchart.c50 unix_read(int fd, void* buff, int len) in unix_read() argument
53 do { ret = read(fd, buff, len); } while (ret < 0 && errno == EINTR); in unix_read()
58 unix_write(int fd, const void* buff, int len) in unix_write() argument
61 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR); in unix_write()
66 proc_read(const char* filename, char* buff, size_t buffsize) in proc_read() argument
71 len = unix_read(fd, buff, buffsize-1); in proc_read()
74 buff[len > 0 ? len : 0] = 0; in proc_read()
87 file_buff_open( FileBuff buff, const char* path ) in file_buff_open() argument
89 buff->count = 0; in file_buff_open()
90 buff->fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0755); in file_buff_open()
[all …]
Dinit.c604 char buff[PROP_NAME_MAX]; in import_kernel_nv() local
605 int len = snprintf( buff, sizeof(buff), "ro.kernel.%s", name ); in import_kernel_nv()
607 if (len < (int)sizeof(buff)) in import_kernel_nv()
608 property_set( buff, value ); in import_kernel_nv()
/system/extras/tests/bionic/libc/common/
Dtest_libgen.c176 char buff[256]; in main() local
188 test_basename_r( "", ".", -1, buff, 0, ERANGE ); in main()
189 test_basename_r( "", ".", -1, buff, 1, ERANGE ); in main()
190 test_basename_r( "", ".", 1, buff, 2, 0 ); in main()
191 test_basename_r( "", ".", 1, buff, sizeof(buff), 0 ); in main()
192 test_basename_r( "/usr/lib", "lib", 3, buff, sizeof(buff), 0 ); in main()
193 test_basename_r( "/usr/", "usr", 3, buff, sizeof(buff), 0 ); in main()
194 test_basename_r( "usr", "usr", 3, buff, sizeof(buff), 0 ); in main()
195 test_basename_r( "/", "/", 1, buff, sizeof(buff), 0 ); in main()
196 test_basename_r( ".", ".", 1, buff, sizeof(buff), 0 ); in main()
[all …]
Dtest_strftime_2039.c10 char buff[256]; in main() local
17 if (strftime(buff, sizeof buff, "%s", &tm) == 0) { in main()
21 printf("seconds since epoch: %s\n", buff); in main()
24 if (buff[0] == '-') { in main()
30 if (strftime(buff, sizeof buff, "%c", &tm) == 0) { in main()
34 printf("date string : %s\n", buff); in main()
/system/extras/tests/iptables/qtaguid/
DsocketTag.cpp59 char *buff; in doCtrlCommand() local
66 vasprintf(&buff, fmt, argp); in doCtrlCommand()
68 res = write(ctrl, buff, strlen(buff)); in doCtrlCommand()
69 testPrintI("cmd: '%s' res=%d %d/%s", buff, res, errno, strerror(errno)); in doCtrlCommand()
71 free(buff); in doCtrlCommand()
134 char *buff; in checkTag() local
163 asprintf(&buff, match_template, full_tag | uid, uid); in checkTag()
164 testPrintI("looking for '%s'", buff); in checkTag()
165 pos = strstr(ctrl_data, buff); in checkTag()
180 free(buff); in checkTag()
/system/netd/
DBandwidthController.cpp275 char *buff; in makeIptablesNaughtyCmd() local
293 asprintf(&buff, "%s penalty_box -m owner --uid-owner %d", opFlag, uid); in makeIptablesNaughtyCmd()
294 res = buff; in makeIptablesNaughtyCmd()
295 free(buff); in makeIptablesNaughtyCmd()
378 char *buff; in makeIptablesQuotaCmd() local
400 asprintf(&buff, "%s costly_%s -m quota2 ! --quota %lld --name %s", opFlag, costName, quota, in makeIptablesQuotaCmd()
402 res = buff; in makeIptablesQuotaCmd()
403 free(buff); in makeIptablesQuotaCmd()
/system/vold/
Dcryptfs.c1088 static inline int unix_read(int fd, void* buff, int len) in unix_read() argument
1091 do { ret = read(fd, buff, len); } while (ret < 0 && errno == EINTR); in unix_read()
1095 static inline int unix_write(int fd, const void* buff, int len) in unix_write() argument
1098 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR); in unix_write()