Home | History | Annotate | Download | only in libcutils

Lines Matching refs:buf

28 static int only_one_char(char *buf, int len, char c)
34 if (buf[i] != c) {
44 char buf[4096];
51 ret = read(fd, buf, sizeof(buf));
54 if (ret != sizeof(buf)) {
59 if (only_one_char(buf, sizeof(buf), 0)) {
64 if (only_one_char(buf, sizeof(buf), 0xff)) {