/system/core/libcutils/ |
H A D | load_file.c | 25 int sz; local 32 sz = lseek(fd, 0, SEEK_END); 33 if(sz < 0) goto oops; 37 data = (char*) malloc(sz + 1); 40 if(read(fd, data, sz) != sz) goto oops; 42 data[sz] = 0; 44 if(_sz) *_sz = sz;
|
/system/vold/ |
H A D | NetlinkManager.cpp | 52 int sz = 64 * 1024; local 66 if (setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
|
/system/netd/ |
H A D | NetlinkManager.cpp | 57 int sz = 64 * 1024; local 70 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
|
/system/core/mkbootimg/ |
H A D | mkbootimg.c | 31 int sz; local 38 sz = lseek(fd, 0, SEEK_END); 39 if(sz < 0) goto oops; 43 data = (char*) malloc(sz); 46 if(read(fd, data, sz) != sz) goto oops; 49 if(_sz) *_sz = sz;
|
/system/extras/sound/ |
H A D | playwav.c | 37 int (*fill)(void *buf, unsigned sz, void *cookie), 42 unsigned sz, n; local 63 sz = config.buffer_size; 64 if (sz > sizeof(buf)) { 71 if (fill(buf, sz, cookie)) 73 if (write(afd, buf, sz) != sz) 85 if (fill(buf, sz, cookie)) 87 if (write(afd, buf, sz) != sz) 36 pcm_play(unsigned rate, unsigned channels, int (*fill)(void *buf, unsigned sz, void *cookie), void *cookie) argument 125 fill_buffer(void *buf, unsigned sz, void *cookie) argument 196 unsigned sz, n; local [all...] |
/system/core/gpttool/ |
H A D | gpttool.c | 195 u64 parse_size(char *sz) argument 197 int l = strlen(sz); 198 u64 n = strtoull(sz, 0, 10); 200 switch(sz[l-1]){ 221 u64 sz; local 230 sz = ptbl->header.last_lba - next_lba; 232 sz = parse_size(y); 233 if (sz & 511) { 237 sz /= 512; 240 if (sz 259 u64 sz, blk; local [all...] |
/system/core/init/ |
H A D | property_service.c | 434 void get_property_workspace(int *fd, int *sz) argument 437 *sz = pa_workspace.size; 470 unsigned sz; local 472 data = read_file(fn, &sz);
|
H A D | util.c | 145 int sz; local 164 sz = lseek(fd, 0, SEEK_END); 165 if(sz < 0) goto oops; 169 data = (char*) malloc(sz + 2); 172 if(read(fd, data, sz) != sz) goto oops; 174 data[sz] = '\n'; 175 data[sz+1] = 0; 176 if(_sz) *_sz = sz;
|
H A D | init.c | 241 int fd, sz; local 245 get_property_workspace(&fd, &sz); 246 sprintf(tmp, "%d,%d", dup(fd), sz);
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 351 static int is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz) argument 353 if (sz < DHCP_MSG_FIXED_SIZE) { 354 if (verbose) ALOGD("netcfg: Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE);
|
/system/core/logwrapper/ |
H A D | logwrap.c | 314 int sz; local 362 sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b); 364 sz += b; 366 for (b = 0; b < sz; b++) {
|
/system/core/fastboot/ |
H A D | engine.c | 387 void fb_queue_flash(const char *ptn, void *data, unsigned sz) argument 393 a->size = sz; 394 a->msg = mkmsg("sending '%s' (%d KB)", ptn, sz / 1024); 400 void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, unsigned sz) argument 407 a->msg = mkmsg("sending sparse '%s' (%d KB)", ptn, sz / 1024);
|
H A D | fastboot.c | 95 unsigned int sz; member in struct:fastboot_buffer 175 int sz; local 180 sz = file_size(fd); 181 if (sz < 0) { 185 data = (char*) malloc(sz); 188 if(read(fd, data, sz) != sz) goto oops; 191 if(_sz) *_sz = sz; 331 unsigned *sz, const char *cmdline) 358 *sz 330 load_bootable_image(const char *kernel, const char *ramdisk, unsigned *sz, const char *cmdline) argument 386 unzip_file(zipfile_t zip, const char *name, unsigned *sz) argument 421 unsigned sz; local 513 setup_requirements(char *data, unsigned sz) argument 644 unsigned int sz; local 701 unsigned sz; local 713 unsigned sz; local 771 unsigned sz; local 790 unsigned sz; local 888 unsigned sz; local [all...] |
/system/core/adb/ |
H A D | commandline.c | 389 int adb_download_buffer(const char *service, const char *fn, const void* data, int sz, argument 397 sprintf(buf,"%s:%d", service, sz); 407 total = sz; 415 while(sz > 0) { 416 unsigned xfer = (sz > CHUNK_SIZE) ? CHUNK_SIZE : sz; 422 sz -= xfer; 425 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total)))); 453 unsigned sz; local 455 data = load_file(fn, &sz); [all...] |
/system/core/charger/ |
H A D | charger.c | 208 unsigned sz = 0; local 214 buf = load_file(LAST_KMSG_PATH, &sz); 215 if (!buf || !sz) { 220 len = min(sz, LAST_KMSG_MAX_SZ); 221 ptr = buf + (sz - len); 249 static int read_file(const char *path, char *buf, size_t sz) argument 258 cnt = read(fd, buf, sz - 1);
|
/system/core/libpixelflinger/codeflinger/ |
H A D | GGLAssembler.h | 216 integer_t(int r, int sz=32, int f=0) argument 217 : reg_t(r, f), s(sz) { 219 void setTo(int r, int sz=32, int f=0) { argument 220 reg_t::setTo(r, f); s=sz;
|