diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/kbdcontrol/kbdcontrol.c | 10 | ||||
-rw-r--r-- | usr.sbin/kbdcontrol/lex.h | 3 | ||||
-rw-r--r-- | usr.sbin/kbdcontrol/lex.l | 3 |
3 files changed, 13 insertions, 3 deletions
diff --git a/usr.sbin/kbdcontrol/kbdcontrol.c b/usr.sbin/kbdcontrol/kbdcontrol.c index 6f8c56a..dffc8df 100644 --- a/usr.sbin/kbdcontrol/kbdcontrol.c +++ b/usr.sbin/kbdcontrol/kbdcontrol.c @@ -28,7 +28,7 @@ #ifndef lint static const char rcsid[] = - "$Id: kbdcontrol.c,v 1.14 1998/05/05 19:02:01 des Exp $"; + "$Id: kbdcontrol.c,v 1.15 1998/08/03 09:12:39 yokota Exp $"; #endif /* not lint */ #include <ctype.h> @@ -178,6 +178,8 @@ get_entry() return DBG | 0x100; case TSUSP: return SUSP | 0x100; + case TSPSC: + return SPSC | 0x100; case TACC: if (ACC(number) > L_ACC) return -1; @@ -382,6 +384,9 @@ print_entry(FILE *fp, int value) case SUSP | 0x100: fprintf(fp, " susp "); break; + case SPSC | 0x100: + fprintf(fp, " saver "); + break; default: if (value & 0x100) { if (val >= F_FN && val <= L_FN) @@ -548,6 +553,9 @@ dump_entry(int value) case SUSP: printf(" SUSP, "); break; + case SPSC: + printf(" SPSC, "); + break; default: if (value >= F_FN && value <= L_FN) printf(" F(%2d),", value - F_FN + 1); diff --git a/usr.sbin/kbdcontrol/lex.h b/usr.sbin/kbdcontrol/lex.h index 3663952..f188d51 100644 --- a/usr.sbin/kbdcontrol/lex.h +++ b/usr.sbin/kbdcontrol/lex.h @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: lex.h,v 1.4 1997/02/22 16:05:57 peter Exp $ + * $Id: lex.h,v 1.5 1998/01/07 08:43:27 yokota Exp $ */ #define TNOP 256 @@ -52,6 +52,7 @@ #define TBTAB 277 #define TSUSP 278 #define TACC 279 +#define TSPSC 280 extern int number; extern char letter; diff --git a/usr.sbin/kbdcontrol/lex.l b/usr.sbin/kbdcontrol/lex.l index 3680d0f..e84d069 100644 --- a/usr.sbin/kbdcontrol/lex.l +++ b/usr.sbin/kbdcontrol/lex.l @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: lex.l,v 1.5 1997/02/22 16:05:58 peter Exp $ + * $Id: lex.l,v 1.6 1998/01/07 08:43:28 yokota Exp $ */ %{ @@ -59,6 +59,7 @@ meta { return TMETA; } boot { return TRBT; } debug { return TDBG; } susp { return TSUSP; } +saver { return TSPSC; } NUL|nul { number = 0; return TNUM; } SOH|soh { number = 1; return TNUM; } |