6 famd(Float a, int b, int c, int d)
36 return (x[0] << 24) + (x[1] << 16) + (x[2] << 8) + x[3];
47 s += sprint(s, "%s %s %d: ", progname, procname, getpid());
49 s = vseprint(s, buf + sizeof(buf) / sizeof(*buf), fmt, arg);
52 write(2, buf, s - buf);
60 cprint(char *fmt, ...)
66 out = vseprint(buf, buf+SIZE, fmt, arg);
68 write(cmdfd, buf, (long)(out-buf));
72 * print goes to fd 2 [sic] because fd 1 might be
73 * otherwise preoccupied when the -s flag is given to kfs.
82 n = vfprint(2, fmt, arg);