Searched refs:sbuf (Results 1 – 3 of 3) sorted by relevance
/system/core/adb/ |
D | file_sync_client.c | 210 static int write_data_file(int fd, const char *path, syncsendbuf *sbuf) in write_data_file() argument 220 sbuf->id = ID_DATA; in write_data_file() 224 ret = adb_read(lfd, sbuf->data, SYNC_DATA_MAX); in write_data_file() 235 sbuf->size = htoll(ret); in write_data_file() 236 if(writex(fd, sbuf, sizeof(unsigned) * 2 + ret)){ in write_data_file() 247 static int write_data_buffer(int fd, char* file_buffer, int size, syncsendbuf *sbuf) in write_data_buffer() argument 252 sbuf->id = ID_DATA; in write_data_buffer() 259 memcpy(sbuf->data, &file_buffer[total], count); in write_data_buffer() 260 sbuf->size = htoll(count); in write_data_buffer() 261 if(writex(fd, sbuf, sizeof(unsigned) * 2 + count)){ in write_data_buffer() [all …]
|
/system/core/toolbox/ |
D | cat.c | 157 struct stat sbuf; in raw_cat() local 163 if (fstat(wfd, &sbuf) == 0) { in raw_cat() 164 bsize = sbuf.st_blksize > CAT_BUFSIZ ? in raw_cat() 165 sbuf.st_blksize : CAT_BUFSIZ; in raw_cat()
|
/system/vold/ |
D | Volume.cpp | 401 struct stat sbuf; in createBindMounts() local 403 if (stat(SEC_STG_SECIMGDIR, &sbuf)) { in createBindMounts() 407 if (!S_ISDIR(sbuf.st_mode)) { in createBindMounts()
|