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

123456

/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/core/libsparse/
H A Dsparse_crc32.c101 uint32_t sparse_crc32(uint32_t crc_in, const void *buf, int size) argument
103 const uint8_t *p = buf;
/system/extras/ext4_utils/
H A Dcrc16.c49 u16 ext4_crc16(u16 crc_in, const void *buf, int size) argument
51 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/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 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.c54 char buf[LOG_BUF_MAX]; local
62 vsnprintf(buf, LOG_BUF_MAX, fmt, ap);
63 buf[LOG_BUF_MAX - 1] = 0;
65 write(klog_fd, buf, strlen(buf));
/system/core/liblog/
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;
/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/include/utils/
H A DCompat.h35 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { argument
36 return pread(fd, buf, nbytes, offset);
/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/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...]
/system/core/libutils/
H A DSharedBuffer.cpp61 SharedBuffer* buf = const_cast<SharedBuffer*>(this); local
62 if (buf->mSize == newSize) return buf;
63 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize);
64 if (buf != NULL) {
65 buf->mSize = newSize;
66 return buf;
/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);
90 free(buf);
/system/netd/
H A DInterfaceController.h24 char *buf; member in struct:android_wifi_priv_cmd
/system/core/include/mincrypt/
H A Dhash-internal.h26 uint8_t buf[64]; member in struct:HASH_CTX

Completed in 370 milliseconds

123456