/system/bluetooth/brfpatch/ |
H A D | brfpatch.c | 65 static int advance(char **buf) { argument 66 char *b = *buf; 71 *buf = b; 77 static void process_line(FILE *file_out, char *buf, char *buffer) { argument 78 FAILIF(strncmp(buf, "Send_", 5) != 0, "Not expecting: %s\n", buffer); 83 FAILIF(advance(&buf), "Could not find opcode in: %s\n", buffer); 84 FAILIF(sscanf(buf, "0x%04x\n", &opcode) != 1, 91 while (!advance(&buf)) { 92 switch (*buf) { 94 buf 178 char *buf; local [all...] |
/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/ |
H A D | osRgstry_parser.c | 85 char *mem_str(char *buf, char *str, char *end_buf) argument 89 for( ; buf <= end_buf; buf++ ) 91 if( *buf == '#' ) 93 buf = strchr(buf+1, '\n' ); 94 if( !buf ) 98 for( i=0; &buf[i] <= end_buf && buf[i] && str[i] && (tolower(buf[ 117 char *s, *buf = init_file, *end_buf = init_file + init_file_length; local [all...] |
H A D | ioctl_utils.c | 123 char buf[4096]; local 125 if( size * 4 > sizeof(buf) ) { 130 buf[0] = 0; 133 sprintf(&buf[strlen(buf)], "%s%p: ", (i) ? "\n" : "", addr+i ); 134 sprintf(&buf[strlen(buf)], "%02x ", (unsigned char)addr[i] ); 136 print_info("%s\n", buf);
|
/system/wlan/ti/wilink_6_1/platforms/os/linux/src/ |
H A D | osRgstry_parser.c | 89 char *mem_str(char *buf, char *str, char *end_buf) argument 93 for( ; buf <= end_buf; buf++ ) 95 if( *buf == '#' ) 97 buf = strchr(buf+1, '\n' ); 98 if( !buf ) 102 for( i=0; &buf[i] <= end_buf && buf[i] && str[i] && (tolower(buf[ 120 char *s, *buf = init_file, *end_buf = init_file + init_file_length; local [all...] |
/system/extras/tests/bionic/libc/glibc/assert/ |
H A D | test-assert.c | 15 char buf[160]; variable 75 fgets (buf, 160, stderr); 76 if (!strstr (buf, "1 == 2")) 79 fgets (buf, 160, stderr); 80 if (strstr (buf, "1 == 1")) 83 fgets (buf, 160, stderr); 84 if (strstr (buf, "2 == 3"))
|
/system/core/libcutils/ |
H A D | uio.c | 27 const char* buf = vecs->iov_base; local 31 int ret = read( fd, buf, len ); 41 buf += ret; 54 const char* buf = (const char*)vecs->iov_base; local 58 int ret = write( fd, buf, len ); 68 buf += ret;
|
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/IPC/Linux/ |
H A D | ipc_user.c | 113 tiVOID* buf, *setget_buf = NULL; local 131 buf = setget_buf = malloc(size); 144 buf = bufOut; 150 buf = bufIn; 161 buf, (buf) ? * (tiINT32 *)buf : 0, size, sizeRet, sizeRet ? *sizeRet : -1); 171 ti_req->user_data_pointer = (tiUINT32) buf; 178 memmove( ((tiCHAR *) &ti_req->user_data_pointer), buf, size ); 215 memmove( buf, (cha 315 char buf[4096]; local [all...] |
/system/core/libzipfile/ |
H A D | centraldir.c | 22 read_le_int(const unsigned char* buf)
argument 24 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24);
28 read_le_short(const unsigned char* buf)
argument 30 return buf[0] | (buf[1] << 8);
34 read_central_dir_values(Zipfile* file, const unsigned char* buf, int len)
argument 43 file->disknum = read_le_short(&buf[ 64 read_central_directory_entry(Zipfile* file, Zipentry* entry, const unsigned char** buf, ssize_t* len) argument 185 const unsigned char* buf = file->buf; local [all...] |
H A D | private.h | 23 const unsigned char *buf;
member in struct:Zipfile 41 unsigned int read_le_int(const unsigned char* buf);
42 unsigned int read_le_short(const unsigned char* buf);
|
/system/core/toolbox/ |
H A D | netstat.c | 60 void addr2str(iaddr addr, unsigned port, char *buf) argument 63 snprintf(buf, 64, "%d.%d.%d.%d:%d", 66 snprintf(buf, 64, "%d.%d.%d.%d:*", 73 char buf[512]; local 85 fgets(buf, 512, fp); 86 while(fgets(buf, 512, fp)){ 87 n = sscanf(buf, " %d: %x:%x %x:%x %x %x:%x", 103 fgets(buf, 512, fp); 104 while(fgets(buf, 512, fp)){ 105 n = sscanf(buf, " [all...] |
H A D | start.c | 10 char buf[1024]; local
|
H A D | stop.c | 8 char buf[1024]; local
|
H A D | notify.c | 26 char *buf; local 81 buf = malloc(width + 2); 115 read_len = read(ffd, buf, buflen); 117 if(read_len < buflen && buf[read_len-1] != '\n') { 118 buf[read_len] = '\n'; 122 buf[--read_len] = '\0'; 123 buf[--read_len] = '\n'; 124 buf[--read_len] = '.'; 125 buf[--read_len] = '.'; 126 buf[ [all...] |
H A D | hd.c | 13 unsigned char buf[4096]; local 66 read_len = sizeof(buf); 69 res = read(fd, &buf, read_len); 74 lsum += buf[i]; 75 sum += buf[i]; 76 printf("%02x ", buf[i]);
|
/system/core/include/mincrypt/ |
H A D | sha.h | 44 } buf; member in struct:SHA_CTX 46 uint8_t buf[64]; member in struct:SHA_CTX
|
/system/core/libpixelflinger/tinyutils/ |
H A D | SharedBuffer.cpp | 54 SharedBuffer* buf = const_cast<SharedBuffer*>(this); local 55 if (buf->mSize == newSize) return buf; 56 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize); 57 if (buf != NULL) { 58 buf->mSize = newSize; 59 return buf;
|
/system/core/adb/ |
H A D | log_service.c | 31 void write_log_entry(int fd, struct logger_entry *buf); 45 unsigned char buf[LOGGER_ENTRY_MAX_LEN + 1] __attribute__((aligned(4))); local 46 struct logger_entry *entry = (struct logger_entry *) buf; 87 void write_log_entry(int fd, struct logger_entry *buf) argument 89 size_t size = sizeof(struct logger_entry) + buf->len; 91 writex(fd, buf, size);
|
H A D | remount_service.c | 41 char buf[1024]; local 47 buf[sizeof(buf) - 1] = '\0'; 48 size = adb_read(fd, buf, sizeof(buf) - 1); 51 token = strtok(buf, delims);
|
H A D | adb_client.c | 129 unsigned char buf[5]; local 132 if(readx(fd, buf, 4)) { 137 if(!memcmp(buf, "OKAY", 4)) { 141 if(memcmp(buf, "FAIL", 4)) { 144 buf[0], buf[1], buf[2], buf[3]); 148 if(readx(fd, buf, 4)) { 152 buf[ 220 char buf[100]; local 286 char buf[5]; local [all...] |
H A D | services.c | 80 unsigned char buf[4096]; local 92 if(readx(s, buf, xfer)) break; 93 if(writex(fd, buf, xfer)) break; 111 char buf[100]; local 115 snprintf(buf, sizeof(buf), "adbd is already running as root\n"); 116 writex(fd, buf, strlen(buf)); 121 snprintf(buf, sizeof(buf), "adb 140 char buf[100]; local 164 char buf[100]; local 178 char buf[100]; local [all...] |
H A D | test_track_devices.c | 17 unix_write( int fd, const char* buf, int len ) argument 21 int len2 = write(fd, buf, len); 29 buf += len2; 35 unix_read( int fd, char* buf, int len ) argument 39 int len2 = read(fd, buf, len); 47 buf += len2;
|
H A D | test_track_jdwp.c | 17 unix_write( int fd, const char* buf, int len ) argument 21 int len2 = write(fd, buf, len); 29 buf += len2; 35 unix_read( int fd, char* buf, int len ) argument 39 int len2 = read(fd, buf, len); 47 buf += len2;
|
/system/core/libsysutils/src/ |
H A D | SocketClient.cpp | 18 char *buf; local 21 buf = (char *) alloca(strlen(msg) + strlen(strerror(errno)) + 8); 22 sprintf(buf, "%.3d %s (%s)", code, msg, strerror(errno)); 24 buf = (char *) alloca(strlen(msg) + strlen("XXX ")); 25 sprintf(buf, "%.3d %s", code, msg); 27 return sendMsg(buf);
|
/system/core/nexus/ |
H A D | SupplicantListener.cpp | 45 char buf[255]; local 46 size_t buflen = sizeof(buf); 50 if ((rc = wpa_ctrl_recv(mMonitor, buf, &nread))) { 55 buf[nread] = '\0'; 58 strncpy(buf, WPA_EVENT_TERMINATING " - signal 0 received", buflen-1); 59 buf[buflen-1] = '\0'; 63 SupplicantEvent *evt = mFactory->createEvent(buf, nread); 66 LOGW("Dropping unknown supplicant event '%s'", buf); 86 LOGW("Whoops - no handler available for event '%s'\n", buf);
|
/system/core/include/cutils/ |
H A D | abort_socket.h | 83 int asocket_read(struct asocket *s, void *buf, size_t count, int timeout); 85 int asocket_write(struct asocket *s, const void *buf, size_t count,
|