Home
last modified time | relevance | path

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

/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.c698 char buff[PROP_NAME_MAX]; in import_kernel_nv() local
699 int len = snprintf( buff, sizeof(buff), "ro.kernel.%s", name ); in import_kernel_nv()
701 if (len < (int)sizeof(buff)) in import_kernel_nv()
702 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/core/adb/
Dusb_vendors.c232 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) in build_path() argument
284 if (snprintf(buff, len, format, home, ANDROID_PATH, ANDROID_ADB_INI) >= (signed)len) { in build_path()
292 int get_adb_usb_ini(char* buff, size_t len) in get_adb_usb_ini() argument
297 return build_path(buff, len, "%s\\%s\\%s", home); in get_adb_usb_ini()
301 return build_path(buff, len, "%s\\%s\\%s", path); in get_adb_usb_ini()
308 return build_path(buff, len, "%s/%s/%s", home); in get_adb_usb_ini()
Dtransport.c147 char buff[8]; in read_packet() local
149 snprintf(buff, sizeof buff, "fd=%d", fd); in read_packet()
150 name = buff; in read_packet()
177 char buff[8]; in write_packet() local
179 snprintf(buff, sizeof buff, "fd=%d", fd); in write_packet()
180 name = buff; in write_packet()
1004 char buff[32]; in register_socket_transport() local
1007 snprintf(buff, sizeof buff, "T-%p", t); in register_socket_transport()
1008 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/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.cpp301 char *buff; in makeIptablesSpecialAppCmd() local
321 asprintf(&buff, "%s %s -m owner --uid-owner %d", opFlag, chain, uid); in makeIptablesSpecialAppCmd()
322 res = buff; in makeIptablesSpecialAppCmd()
323 free(buff); in makeIptablesSpecialAppCmd()
475 char *buff; in makeIptablesQuotaCmd() local
497 asprintf(&buff, "%s bw_costly_%s -m quota2 ! --quota %lld --name %s", opFlag, costName, quota, in makeIptablesQuotaCmd()
499 res = buff; in makeIptablesQuotaCmd()
500 free(buff); in makeIptablesQuotaCmd()
/system/vold/
Dcryptfs.c293 static inline int unix_read(int fd, void* buff, int len) in unix_read() argument
295 return TEMP_FAILURE_RETRY(read(fd, buff, len)); in unix_read()
298 static inline int unix_write(int fd, const void* buff, int len) in unix_write() argument
300 return TEMP_FAILURE_RETRY(write(fd, buff, len)); in unix_write()