Lines Matching defs:buf
966 SANE_Byte buf[6];
1006 buf[0] = red1;
1007 buf[1] = green1;
1008 buf[2] = blue1;
1009 buf[3] = red1;
1010 buf[4] = green2;
1011 buf[5] = blue2;
1012 if (fwrite (buf, 1, 6, ofp) != 6)
1050 buf[0] = red1;
1051 buf[1] = green3;
1052 buf[2] = blue3;
1053 buf[3] = red1;
1054 buf[4] = green4;
1055 buf[5] = blue4;
1056 if (fwrite (buf, 1, 6, ofp) != 6)
2095 sane_read (SANE_Handle handle, SANE_Byte * buf, SANE_Int max_len,
2121 DBG (8, "read(buf=%p,num_bytes=%ld,max_len=%d,len=%ld)\n",
2122 (void *) buf, (long) s->num_bytes, max_len, (long) len);
2124 nread = read (s->read_fd, buf, len);
2180 char buf[1024];
2192 read (s->from_child, buf, 1);
2200 while ((nread = read (s->from_child, buf, sizeof (buf))) > 0);
2202 nread = read (s->from_child, buf, sizeof (buf));