Searched refs:sz (Results 1 - 22 of 22) sorted by relevance

/system/core/libcutils/
H A Dload_file.c25 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/core/include/cutils/
H A Dmisc.h26 * sz is non-zero, return the size of the file via sz.
29 extern void *load_file(const char *fn, unsigned *sz);
/system/core/init/
H A Dproperty_service.h24 void get_property_workspace(int *fd, int *sz);
H A Dutil.c164 int sz; local
171 sz = lseek(fd, 0, SEEK_END);
172 if(sz < 0) goto oops;
176 data = (char*) malloc(sz + 2);
179 if(read(fd, data, sz) != sz) goto oops;
181 data[sz] = '\n';
182 data[sz+1] = 0;
183 if(_sz) *_sz = sz;
H A Dproperty_service.c404 void get_property_workspace(int *fd, int *sz) argument
407 *sz = pa_workspace.size;
440 unsigned sz; local
442 data = read_file(fn, &sz);
H A Ddevices.c55 int sz = 64*1024; // XXX larger? udev uses 16MB! local
68 setsockopt(s, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz));
H A Dinit.c209 int fd, sz; local
211 get_property_workspace(&fd, &sz);
212 sprintf(tmp, "%d,%d", dup(fd), sz);
/system/core/fastboot/
H A Dfastboot.c119 int sz; local
126 sz = lseek(fd, 0, SEEK_END);
127 if(sz < 0) goto oops;
131 data = (char*) malloc(sz);
134 if(read(fd, data, sz) != sz) goto oops;
137 if(_sz) *_sz = sz;
240 unsigned *sz, const char *cmdline)
267 *sz = ksize;
287 *sz
239 load_bootable_image(unsigned page_size, const char *kernel, const char *ramdisk, unsigned *sz, const char *cmdline) argument
292 unzip_file(zipfile_t zip, const char *name, unsigned *sz) argument
385 setup_requirements(char *data, unsigned sz) argument
415 unsigned sz; local
427 unsigned sz; local
475 unsigned sz; local
494 unsigned sz; local
551 unsigned sz; local
[all...]
H A Dfastboot.h44 void fb_queue_flash(const char *ptn, void *data, unsigned sz);;
H A Dengine.c129 void fb_queue_flash(const char *ptn, void *data, unsigned sz) argument
135 a->size = sz;
136 a->msg = mkmsg("sending '%s' (%d KB)", ptn, sz / 1024);
/system/extras/sound/
H A Dplaywav.c37 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/bluetooth/bluedroid/
H A Dbluetooth.c53 int sz; local
62 sz = read(fd, &buf, sizeof(buf));
64 if (sz >= 9 && memcmp(buf, "bluetooth", 9) == 0) {
75 int sz; local
90 sz = read(fd, &buffer, 1);
91 if (sz != 1) {
112 int sz; local
127 sz = write(fd, &buffer, 1);
128 if (sz < 0) {
/system/netd/
H A DNetlinkManager.cpp52 int sz = 64 * 1024; local
66 if (setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
H A Dlogwrapper.c35 int sz; local
36 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) {
38 sz += b;
40 for (b = 0; b < sz; b++) {
/system/vold/
H A DNetlinkManager.cpp52 int sz = 64 * 1024; local
66 if (setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) {
H A Dlogwrapper.c35 int sz; local
36 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) {
38 sz += b;
40 for (b = 0; b < sz; b++) {
/system/core/logwrapper/
H A Dlogwrapper.c53 int sz; local
54 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) {
56 sz += b;
58 for (b = 0; b < sz; b++) {
/system/core/mkbootimg/
H A Dmkbootimg.c31 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/tests/framebuffer/
H A Dmdp_test.c73 static int get_pmem(int *fd, void **data, int sz) argument
81 sz = (sz + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1);
82 *data = mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, *fd, 0);
218 printf("Got src img sz: w=%d h=%d\n", src_imgw, src_imgh);
226 printf("Got dst img sz: w=%d h=%d\n", dst_imgw, dst_imgh);
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c511 int sz; local
527 sz = read(fd, bdaddr, sizeof(bdaddr));
528 if (sz < 0) {
533 } else if (sz != sizeof(bdaddr)) {
534 fprintf(stderr, "read(%s) unexpected size %d", path, sz);
/system/core/libnetutils/
H A Ddhcpclient.c370 static int is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz) argument
372 if (sz < DHCP_MSG_FIXED_SIZE) {
373 if (verbose) LOGD("netcfg: Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE);
/system/core/libpixelflinger/codeflinger/
H A DGGLAssembler.h212 integer_t(int r, int sz=32, int f=0) argument
213 : reg_t(r, f), s(sz) {
215 void setTo(int r, int sz=32, int f=0) { argument
216 reg_t::setTo(r, f); s=sz;

Completed in 451 milliseconds