/system/core/toolbox/ |
H A D | start.c | 10 char buf[1024]; local
|
H A D | stop.c | 8 char buf[1024]; local
|
H A D | hd.c | 14 unsigned char buf[4096]; local 67 read_len = sizeof(buf); 70 res = read(fd, &buf, read_len); 75 lsum += buf[i]; 76 sum += buf[i]; 77 printf("%02x ", buf[i]);
|
H A D | date.c | 82 char buf[2000]; local
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_strptime.c | 27 char buf[255]; local 33 strftime(buf, sizeof(buf), "%H:%M", &tm); 34 puts(buf); 35 puts(!strcmp(buf, "11:14") ? "OK" : "FAILED"); 39 strftime(buf, sizeof(buf), "%H:%M:%S", &tm); 40 puts(buf); 41 puts(!strcmp(buf, "09:41:53") ? "OK" : "FAILED");
|
/system/extras/ext4_utils/ |
H A D | sparse_crc32.c | 101 u32 sparse_crc32(u32 crc_in, const void *buf, int size) argument 103 const u8 *p = buf;
|
H A D | setup_fs.c | 14 char buf[256], path[128]; local 32 snprintf(buf, sizeof(buf), "/sys/fs/ext4/%s", blockdev); 33 if (access(buf, F_OK) == 0) { 37 snprintf(buf, sizeof(buf), "/dev/block/%s", blockdev); 39 if (!partition_wiped(buf)) { 52 execl(mkfs, mkfs, buf, NULL);
|
/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/libcutils/ |
H A D | partition_utils.c | 25 static int only_one_char(char *buf, int len, char c) argument 31 if (buf[i] != c) { 41 char buf[4096]; local 48 ret = read(fd, buf, sizeof(buf)); 51 if (ret != sizeof(buf)) { 56 if (only_one_char(buf, sizeof(buf), 0)) { 61 if (only_one_char(buf, sizeof(buf), [all...] |
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;
|
H A D | ashmem-dev.c | 51 char buf[ASHMEM_NAME_LEN]; local 53 strlcpy(buf, name, sizeof(buf)); 54 ret = ioctl(fd, ASHMEM_SET_NAME, buf);
|
H A D | klog.c | 49 char buf[LOG_BUF_MAX]; local 56 vsnprintf(buf, LOG_BUF_MAX, fmt, ap); 57 buf[LOG_BUF_MAX - 1] = 0; 59 write(klog_fd, buf, strlen(buf));
|
H A D | abort_socket.c | 166 int asocket_read(struct asocket *s, void *buf, size_t count, int timeout) { argument 199 ret = read(s->fd, buf, count); 211 int asocket_write(struct asocket *s, const void *buf, size_t count, argument 245 ret = write(s->fd, buf, count); 259 char buf = 0; local 266 ret = write(s->abort_fd[1], &buf, 1);
|
H A D | ashmem-host.c | 98 struct stat buf; local 101 result = fstat(fd, &buf); 108 if (!(buf.st_nlink == 0 && S_ISREG(buf.st_mode))) { 113 return (int)buf.st_size; // TODO: care about overflow (> 2GB file)?
|
/system/core/sh/ |
H A D | eval.h | 45 char *buf; /* buffer */ member in struct:backcmd
|
H A D | output.h | 44 char *buf; member in struct:output
|
/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/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 | 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/init/ |
H A D | parser.c | 54 char buf[128]; local 57 snprintf(buf, 128, "%s: %d: ", state->filename, state->line); 58 buf[127] = 0; 59 off = strlen(buf); 62 vsnprintf(buf + off, 128 - off, fmt, ap); 64 buf[127] = 0; 65 ERROR("%s", buf);
|
/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/libzipfile/ |
H A D | test_zipfile.c | 13 void* buf;
local 44 buf = malloc(size);
45 fread(buf, 1, size, f);
47 zip = init_zipfile(buf, size);
88 free(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/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...] |