-/* $OpenBSD: tty.c,v 1.19 1996/11/11 04:28:16 tholo Exp $ */
+/* $OpenBSD: tty.c,v 1.20 1996/12/08 14:25:48 niklas Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
#define TB TAB
#define VT VTAB
-char const char_type[] = {
+u_char const char_type[] = {
E|CC, O|CC, O|CC, E|CC, O|CC, E|CC, E|CC, O|CC, /* nul - bel */
O|BS, E|TB, E|NL, O|CC, E|VT, O|CR, O|CC, E|CC, /* bs - si */
O|CC, E|CC, E|CC, O|CC, E|CC, O|CC, O|CC, E|CC, /* dle - etb */
if (!ISSET(tp->t_oflag, OPOST))
ce = cc;
else {
- ce = cc - scanc((u_int)cc, cp,
- (u_char *)char_type, CCLASSMASK);
+ ce = cc - scanc((u_int)cc, cp, char_type,
+ CCLASSMASK);
/*
* If ce is zero, then we're processing
* a special character through ttyoutput.
-/* $OpenBSD: systm.h,v 1.16 1996/11/29 04:53:38 kstailey Exp $ */
+/* $OpenBSD: systm.h,v 1.17 1996/12/08 14:25:52 niklas Exp $ */
/* $NetBSD: systm.h,v 1.50 1996/06/09 04:55:09 briggs Exp $ */
/*-
void vfs_opv_init_default __P((struct vnodeopv_desc *));
void vfs_op_init __P((void));
-int seltrue __P((dev_t dev, int which, struct proc *p));
-void *hashinit __P((int count, int type, u_long *hashmask));
+int seltrue __P((dev_t dev, int which, struct proc *));
+void *hashinit __P((int, int, u_long *));
int sys_nosys __P((struct proc *, void *, register_t *));
void panic __P((const char *, ...))
void tablefull __P((const char *));
-void bcopy __P((const void *from, void *to, size_t len));
-void ovbcopy __P((const void *from, void *to, size_t len));
-void bzero __P((void *buf, size_t len));
-int bcmp __P((const void *b1, const void *b2, size_t len));
+void bcopy __P((const void *, void *, size_t));
+void ovbcopy __P((const void *, void *, size_t));
+void bzero __P((void *, size_t));
+int bcmp __P((const void *, const void *, size_t));
-int copystr __P((void *kfaddr, void *kdaddr, size_t len, size_t *done));
-int copyinstr __P((void *udaddr, void *kaddr, size_t len, size_t *done));
-int copyoutstr __P((void *kaddr, void *udaddr, size_t len, size_t *done));
-int copyin __P((void *udaddr, void *kaddr, size_t len));
-int copyout __P((void *kaddr, void *udaddr, size_t len));
+int copystr __P((const void *, void *, size_t, size_t *));
+int copyinstr __P((const void *, void *, size_t, size_t *));
+int copyoutstr __P((const void *, void *, size_t, size_t *));
+int copyin __P((const void *, void *, size_t));
+int copyout __P((const void *, void *, size_t));
-int fubyte __P((void *base));
+int fubyte __P((void *));
#ifdef notdef
-int fuibyte __P((void *base));
+int fuibyte __P((void *));
#endif
-int subyte __P((void *base, int byte));
-int suibyte __P((void *base, int byte));
-long fuword __P((void *base));
-long fuiword __P((void *base));
-int suword __P((void *base, long word));
-int suiword __P((void *base, long word));
+int subyte __P((void *, int));
+int suibyte __P((void *, int));
+long fuword __P((void *));
+long fuiword __P((void *));
+int suword __P((void *, long));
+int suiword __P((void *, long));
int fuswintr __P((caddr_t));
int suswintr __P((caddr_t, u_int));
struct timeval;
-int hzto __P((struct timeval *tv));
-void timeout __P((void (*func)(void *), void *arg, int ticks));
-void untimeout __P((void (*func)(void *), void *arg));
+int hzto __P((struct timeval *));
+void timeout __P((void (*)(void *), void *, int));
+void untimeout __P((void (*)(void *), void *));
void realitexpire __P((void *));
struct clockframe;
-void hardclock __P((struct clockframe *frame));
+void hardclock __P((struct clockframe *));
void softclock __P((void));
-void statclock __P((struct clockframe *frame));
+void statclock __P((struct clockframe *));
#ifdef NTP
void hardupdate __P((long offset));
#endif
void startprofclock __P((struct proc *));
void stopprofclock __P((struct proc *));
-void setstatclockrate __P((int hzrate));
+void setstatclockrate __P((int));
/*
* Shutdown hooks. Functions to be run with all interrupts disabled