Lines Matching refs:chu
225 if (ioctl(s, I_PUSH, "chu") < 0)
226 error("ioctl(I_PUSH, \"chu\")", "", "");
348 struct chucode chu;
355 while ((n = read(s, (char *)&chu, sizeof chu)) > 0) {
356 if (n != sizeof chu) {
358 sizeof chu, n);
363 TVTOTS(&chu.codetimes[NCHUCHARS-1], &ts);
365 chufilter(&chu, &ts);
371 diff.tv_sec = chu.codetimes[i].tv_sec
372 - chu.codetimes[i-1].tv_sec;
373 diff.tv_usec = chu.codetimes[i].tv_usec
374 - chu.codetimes[i-1].tv_usec;
381 chu.codechars[i] & 0xf, (chu.codechars[i]>>4)&0xf,
382 chu.codetimes[i].tv_sec, chu.codetimes[i].tv_usec,
417 #define CHUDEV "/dev/chu%d" /* device we open. %d is unit number */
512 * init_chu - initialize internal chu driver data