/bootable/recovery/minzip/ |
H A D | Bits.h | 233 INLINE int readUtf8String(unsigned char const** ppSrc, char* buf, size_t bufLen) argument 238 memcpy(buf, *ppSrc, copyLen); 239 buf[copyLen] = '\0'; 254 char* buf; local 256 buf = (char*) malloc(length+1); 258 memcpy(buf, *ppSrc, length); 259 buf[length] = '\0'; 264 return buf; 271 INLINE void set1(unsigned char* buf, unsigned char val) argument 273 *buf 279 set2BE(unsigned char* buf, unsigned short val) argument 288 set4BE(unsigned char* buf, unsigned int val) argument 299 set8BE(unsigned char* buf, unsigned long long val) argument 314 set2LE(unsigned char* buf, unsigned short val) argument 323 set4LE(unsigned char* buf, unsigned int val) argument 334 set8LE(unsigned char* buf, unsigned long long val) argument 349 setUtf8String(unsigned char* buf, const unsigned char* str) argument [all...] |
H A D | Zip.c | 533 unsigned char buf[32 * 1024]; local 539 if (count > sizeof(buf)) { 540 count = sizeof(buf); 542 n = read(pArchive->fd, buf, count); 547 ret = processFunction(buf, n, cookie); 735 char *buf; member in struct:__anon20 744 memcpy(args->buf, data, dataLen); 745 args->buf += dataLen; 756 char *buf, int bufLen) 761 args.buf 755 mzReadZipEntry(const ZipArchive* pArchive, const ZipEntry* pEntry, char *buf, int bufLen) argument 855 char *buf; member in struct:__anon22 [all...] |
H A D | Zip.h | 168 char* buf, int bufLen);
|
/bootable/recovery/mtdutils/ |
H A D | flash_image.c | 35 char buf[1024]; local 36 vsnprintf(buf, sizeof(buf), msg, args); 40 strlcat(buf, ": ", sizeof(buf)); 41 strlcat(buf, strerror(err), sizeof(buf)); 44 fprintf(stderr, "%s\n", buf); 45 ALOGE("%s\n", buf); 98 char buf[HEADER_SIZ local [all...] |
H A D | mounts.c | 62 char buf[2048]; local 93 nbytes = read(fd, buf, sizeof(buf) - 1); 98 buf[nbytes] = '\0'; 114 bufp = buf;
|
H A D | mtdutils.c | 73 char buf[2048]; local 111 nbytes = read(fd, buf, sizeof(buf) - 1); 116 buf[nbytes] = '\0'; 129 bufp = buf;
|
/bootable/recovery/applypatch/ |
H A D | bspatch.c | 66 static off_t offtin(u_char *buf) argument 70 y=buf[7]&0x7F; 71 y=y*256;y+=buf[6]; 72 y=y*256;y+=buf[5]; 73 y=y*256;y+=buf[4]; 74 y=y*256;y+=buf[3]; 75 y=y*256;y+=buf[2]; 76 y=y*256;y+=buf[1]; 77 y=y*256;y+=buf[0]; 79 if(buf[ 197 unsigned char buf[24]; local [all...] |
H A D | bsdiff.c | 195 static void offtout(off_t x,u_char *buf) argument 201 buf[0]=y%256;y-=buf[0]; 202 y=y/256;buf[1]=y%256;y-=buf[1]; 203 y=y/256;buf[2]=y%256;y-=buf[2]; 204 y=y/256;buf[3]=y%256;y-=buf[3]; 205 y=y/256;buf[ 237 u_char buf[8]; local [all...] |
/bootable/recovery/minadbd/ |
H A D | services.c | 48 unsigned char buf[4096]; local 63 if(readx(s, buf, xfer)) break; 64 if(writex(fd, buf, xfer)) break; 87 char buf[4096]; 93 r = read(fd, buf, 4096); 101 p = buf;
|
H A D | sysdeps.h | 114 extern int adb_read(int fd, void* buf, int len); 115 extern int adb_write(int fd, const void* buf, int len); 127 static __inline__ int unix_read(int fd, void* buf, size_t len) argument 129 return read(fd, buf, len); 134 static __inline__ int unix_write(int fd, const void* buf, size_t len) argument 136 return write(fd, buf, len); 366 static __inline__ int adb_read(int fd, void* buf, size_t len) argument 368 return read(fd, buf, len); 374 static __inline__ int adb_write(int fd, const void* buf, size_t len) argument 376 return write(fd, buf, le [all...] |
H A D | sockets.c | 35 char buf[9]; local 39 snprintf(buf, sizeof buf, "FAIL%04x", len); 40 if(writex(fd, buf, 8)) return -1;
|
H A D | adb.h | 227 int list_transports(char *buf, size_t bufsize);
|
/bootable/recovery/ |
H A D | verifier_test.cpp | 116 char buf[256]; local 119 vsnprintf(buf, 256, fmt, ap); 122 fputs(buf, stderr);
|
H A D | ui.cpp | 199 char buf; local 201 int connected = (read(fd, &buf, 1) == 1) && (buf == 'C');
|
H A D | recovery.cpp | 205 char buf[MAX_ARG_LENGTH]; local 207 if (!fgets(buf, sizeof(buf), fp)) break; 208 (*argv)[*argc] = strdup(strtok(buf, "\r\n")); // Strip newline. 251 char buf[4096]; local 252 while (fgets(buf, sizeof(buf), tmplog)) fputs(buf, log);
|
H A D | screen_ui.cpp | 468 char buf[256]; local 471 vsnprintf(buf, 256, fmt, ap); 474 fputs(buf, stdout); 480 for (ptr = buf; *ptr != '\0'; ++ptr) {
|
H A D | bootloader.cpp | 148 struct stat buf; local 151 ret = stat(fn, &buf);
|