#ifndef _LOCKTTY_D #define _LOCKTTY_D /* this should probably be a C++ class... */ typedef struct tty_lock { char *tty; char *lock; } TTY_LOCK; #define ttyname(x) (x->tty) #define ttylock(x) (x->lock) #define NR_TTY_LOCKS 10 extern TTY_LOCK *findtty(char *call_unit, char *callspeed); extern int freetty(TTY_LOCK *tty); #endif/*_LOCKTTY_D*/