Searched defs:buf (Results 1 - 25 of 107) sorted by relevance

12345

/system/core/toolbox/
H A Dstart.c10 char buf[1024]; local
H A Dstop.c8 char buf[1024]; local
H A Dhd.c14 unsigned char buf[4096]; local
67 read_len = sizeof(buf);
70 res = read(fd, &buf, read_len);
77 lsum += buf[i];
78 sum += buf[i];
79 printf("%02x ", buf[i]);
H A Dmd5.c37 char buf[4096]; local
39 rlen = read(fd, buf, sizeof(buf));
47 MD5_Update(&md5_ctx, buf, rlen);
/system/extras/tests/bionic/libc/common/
H A Dtest_strptime.c27 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 Dsparse_crc32.c101 u32 sparse_crc32(u32 crc_in, const void *buf, int size) argument
103 const u8 *p = buf;
H A Dsetup_fs.c14 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 Dsha.h44 } buf; member in struct:SHA_CTX
46 uint8_t buf[64]; member in struct:SHA_CTX
/system/core/libcutils/
H A Dpartition_utils.c25 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 Duio.c27 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 Dashmem-dev.c51 char buf[ASHMEM_NAME_LEN]; local
53 strlcpy(buf, name, sizeof(buf));
54 ret = ioctl(fd, ASHMEM_SET_NAME, buf);
H A Dklog.c49 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));
/system/core/sh/
H A Deval.h45 char *buf; /* buffer */ member in struct:backcmd
H A Doutput.h44 char *buf; member in struct:output
/system/extras/tests/bionic/libc/glibc/assert/
H A Dtest-assert.c15 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 Dlog_service.c31 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 Dtest_track_devices.c17 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 Dtest_track_jdwp.c17 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/debuggerd/
H A Dutility.c35 char buf[512]; local
42 vsnprintf(buf, sizeof(buf), fmt, ap);
43 len = strlen(buf);
44 write(log->tfd, buf, len);
/system/core/init/
H A Dparser.c54 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 DSharedBuffer.cpp54 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/libsuspend/
H A Dautosuspend_autosleep.c38 char buf[80]; local
45 strerror_r(errno, buf, sizeof(buf));
46 ALOGE("Error writing to %s: %s\n", SYS_POWER_AUTOSLEEP, buf);
60 char buf[80]; local
67 strerror_r(errno, buf, sizeof(buf));
68 ALOGE("Error writing to %s: %s\n", SYS_POWER_AUTOSLEEP, buf);
88 char buf[80]; local
92 strerror_r(errno, buf, sizeo
[all...]
H A Dautosuspend_earlysuspend.c41 char buf[80]; local
48 strerror_r(errno, buf, sizeof(buf));
49 ALOGE("Error writing to %s: %s\n", EARLYSUSPEND_SYS_POWER_STATE, buf);
63 char buf[80]; local
70 strerror_r(errno, buf, sizeof(buf));
71 ALOGE("Error writing to %s: %s\n", EARLYSUSPEND_SYS_POWER_STATE, buf);
90 char buf[80]; local
106 strerror_r(errno, buf, sizeo
[all...]
/system/core/libzipfile/
H A Dtest_zipfile.c13 void* buf; local
44 buf = malloc(size);
45 fread(buf, 1, size, f);
47 zip = init_zipfile(buf, size);
88 free(buf);
/system/bluetooth/brfpatch/
H A Dbrfpatch.c65 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...]

Completed in 6189 milliseconds

12345