-#ifndef __APPLE__
-extern struct tty *constty; /* Temporary virtual console. */
-
-int b_to_q __P((char *cp, int cc, struct clist *q));
-void catq __P((struct clist *from, struct clist *to));
-void clist_alloc_cblocks __P((struct clist *q, int ccmax, int ccres));
-void clist_free_cblocks __P((struct clist *q));
-/* void clist_init __P((void)); */ /* defined in systm.h for main() */
-int getc __P((struct clist *q));
-void ndflush __P((struct clist *q, int cc));
-int ndqb __P((struct clist *q, int flag));
-char *nextc __P((struct clist *q, char *cp, int *c));
-int putc __P((int c, struct clist *q));
-int q_to_b __P((struct clist *q, char *cp, int cc));
-int unputc __P((struct clist *q));
-
-int ttcompat __P((struct tty *tp, int com, caddr_t data, int flag));
-int ttsetcompat __P((struct tty *tp, int *com, caddr_t data, struct termios *term));
-#else /* __APPLE__ */
-int b_to_q __P((u_char *cp, int cc, struct clist *q));
-void catq __P((struct clist *from, struct clist *to));
-void clist_init __P((void));
-int getc __P((struct clist *q));
-void ndflush __P((struct clist *q, int cc));
-int ndqb __P((struct clist *q, int flag));
-u_char *firstc __P((struct clist *clp, int *c));
-u_char *nextc __P((struct clist *q, u_char *cp, int *c));
-int putc __P((int c, struct clist *q));
-int q_to_b __P((struct clist *q, u_char *cp, int cc));
-int unputc __P((struct clist *q));
-int clalloc __P((struct clist *clp, int size, int quot));
-void clfree __P((struct clist *clp));
+int b_to_q(const u_char *cp, int cc, struct clist *q);
+void catq(struct clist *from, struct clist *to);
+void clist_init(void);
+int getc(struct clist *q);
+void ndflush(struct clist *q, int cc);
+int ndqb(struct clist *q, int flag);
+u_char *firstc (struct clist *clp, int *c);
+u_char *nextc(struct clist *q, u_char *cp, int *c);
+int putc(int c, struct clist *q);
+int q_to_b(struct clist *q, u_char *cp, int cc);
+int unputc(struct clist *q);
+int clalloc(struct clist *clp, int size, int quot);
+void clfree(struct clist *clp);
+void cinit(void);
+void clrbits(u_char *cp, int off, int len);