/system/extras/tests/bionic/libc/common/ |
H A D | test_strftime_2039.c | 10 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 D | test_libgen.c | 65 "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/init/ |
H A D | bootchart.c | 50 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 D | init.c | 698 char buff[PROP_NAME_MAX]; local 699 int len = snprintf( buff, sizeof(buff), "ro.kernel.%s", name ); 701 if (len < (int)sizeof(buff)) 702 property_set( buff, value );
|
/system/core/adb/ |
H A D | usb_vendors.c | 232 int get_adb_usb_ini(char* buff, size_t len); 282 int build_path(char* buff, size_t len, const char* format, const char* home) argument 284 if (snprintf(buff, len, format, home, ANDROID_PATH, ANDROID_ADB_INI) >= (signed)len) { 291 /* fills buff with the path to the adb vendor id file. returns 0 if success */ 292 int get_adb_usb_ini(char* buff, size_t len) argument 297 return build_path(buff, len, "%s\\%s\\%s", home); 301 return build_path(buff, len, "%s\\%s\\%s", path); 308 return build_path(buff, len, "%s/%s/%s", home);
|
H A D | transport.c | 147 char buff[8]; local 149 snprintf(buff, sizeof buff, "fd=%d", fd); 150 name = buff; 177 char buff[8]; local 179 snprintf(buff, sizeof buff, "fd=%d", fd); 180 name = buff; 1004 char buff[32]; local 1007 snprintf(buff, sizeo [all...] |
H A D | sysdeps_win32.c | 872 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 D | socketTag.cpp | 59 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/netd/ |
H A D | BandwidthController.cpp | 301 char *buff; local 321 asprintf(&buff, "%s %s -m owner --uid-owner %d", opFlag, chain, uid); 322 res = buff; 323 free(buff); 475 char *buff; local 497 asprintf(&buff, "%s bw_costly_%s -m quota2 ! --quota %lld --name %s", opFlag, costName, quota, 499 res = buff; 500 free(buff);
|
/system/vold/ |
H A D | cryptfs.c | 293 static inline int unix_read(int fd, void* buff, int len) argument 295 return TEMP_FAILURE_RETRY(read(fd, buff, len)); 298 static inline int unix_write(int fd, const void* buff, int len) argument 300 return TEMP_FAILURE_RETRY(write(fd, buff, len));
|