/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 | 660 char *buf; member in struct:__anon22 669 memcpy(args->buf, data, dataLen); 670 args->buf += dataLen; 681 char *buf, int bufLen) 686 args.buf = buf; 799 char *buf; member in struct:__anon24 812 bool firstTime = (helper->buf == NULL); 822 newBuf = (char *)realloc(helper->buf, needLen); 826 helper->buf 680 mzReadZipEntry(const ZipArchive* pArchive, const ZipEntry* pEntry, char *buf, int bufLen) argument [all...] |
H A D | Zip.h | 164 char* buf, int bufLen);
|
/bootable/recovery/mtdutils/ |
H A D | flash_image.c | 38 char buf[1024]; local 39 vsnprintf(buf, sizeof(buf), msg, args); 43 strlcat(buf, ": ", sizeof(buf)); 44 strlcat(buf, strerror(err), sizeof(buf)); 47 fprintf(stderr, "%s\n", buf); 48 ALOGE("%s\n", buf); 101 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[ 195 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 | fuse_adb_provider.c | 34 char buf[10]; local 35 snprintf(buf, sizeof(buf), "%08u", block); 36 if (writex(ad->sfd, buf, 8) < 0) {
|
H A D | services.c | 67 char buf[4096]; 73 r = read(fd, buf, 4096); 81 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 | usb_linux_client.c | 348 static int bulk_write(int bulk_in, const char *buf, size_t length) argument 354 ret = adb_write(bulk_in, buf + count, length - count); 382 static int bulk_read(int bulk_out, char *buf, size_t length) argument 388 ret = adb_read(bulk_out, buf + count, length - count);
|
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 | ui.cpp | 254 char buf; local 256 int connected = (read(fd, &buf, 1) == 1) && (buf == 'C');
|
H A D | screen_ui.cpp | 472 char buf[256]; local 475 vsnprintf(buf, 256, fmt, ap); 478 fputs(buf, stdout); 484 for (ptr = buf; *ptr != '\0'; ++ptr) {
|
H A D | bootloader.cpp | 149 struct stat buf; local 152 ret = stat(fn, &buf);
|
H A D | recovery.cpp | 225 char buf[MAX_ARG_LENGTH]; local 227 if (!fgets(buf, sizeof(buf), fp)) break; 228 token = strtok(buf, "\r\n"); 276 char buf[4096]; local 277 while (fgets(buf, sizeof(buf), tmplog)) fputs(buf, log);
|