Deleted Added
full compact
kbdcontrol.c (46761) kbdcontrol.c (48105)
1/*-
2 * Copyright (c) 1994-1995 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#ifndef lint
30static const char rcsid[] =
1/*-
2 * Copyright (c) 1994-1995 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#ifndef lint
30static const char rcsid[] =
31 "$Id: kbdcontrol.c,v 1.24 1999/03/17 11:42:18 gpalmer Exp $";
31 "$Id: kbdcontrol.c,v 1.25 1999/05/09 04:57:51 yokota Exp $";
32#endif /* not lint */
33
34#include <ctype.h>
35#include <err.h>
36#include <stdio.h>
37#include <stdlib.h>
38#include <string.h>
39#include <unistd.h>

--- 118 unchanged lines hidden (view full) ---

158 case TBTAB:
159 return BTAB | 0x100;
160 case TLALT:
161 return LALT | 0x100;
162 case TLCTR:
163 return LCTR | 0x100;
164 case TNEXT:
165 return NEXT | 0x100;
32#endif /* not lint */
33
34#include <ctype.h>
35#include <err.h>
36#include <stdio.h>
37#include <stdlib.h>
38#include <string.h>
39#include <unistd.h>

--- 118 unchanged lines hidden (view full) ---

158 case TBTAB:
159 return BTAB | 0x100;
160 case TLALT:
161 return LALT | 0x100;
162 case TLCTR:
163 return LCTR | 0x100;
164 case TNEXT:
165 return NEXT | 0x100;
166 case TPREV:
167 return PREV | 0x100;
166 case TRCTR:
167 return RCTR | 0x100;
168 case TRALT:
169 return RALT | 0x100;
170 case TALK:
171 return ALK | 0x100;
172 case TASH:
173 return ASH | 0x100;

--- 182 unchanged lines hidden (view full) ---

356 fprintf(fp, " lalt ");
357 break;
358 case LCTR | 0x100:
359 fprintf(fp, " lctrl ");
360 break;
361 case NEXT | 0x100:
362 fprintf(fp, " nscr ");
363 break;
168 case TRCTR:
169 return RCTR | 0x100;
170 case TRALT:
171 return RALT | 0x100;
172 case TALK:
173 return ALK | 0x100;
174 case TASH:
175 return ASH | 0x100;

--- 182 unchanged lines hidden (view full) ---

358 fprintf(fp, " lalt ");
359 break;
360 case LCTR | 0x100:
361 fprintf(fp, " lctrl ");
362 break;
363 case NEXT | 0x100:
364 fprintf(fp, " nscr ");
365 break;
366 case PREV | 0x100:
367 fprintf(fp, " pscr ");
368 break;
364 case RCTR | 0x100:
365 fprintf(fp, " rctrl ");
366 break;
367 case RALT | 0x100:
368 fprintf(fp, " ralt ");
369 break;
370 case ALK | 0x100:
371 fprintf(fp, " alock ");

--- 153 unchanged lines hidden (view full) ---

525 printf(" LALT, ");
526 break;
527 case LCTR:
528 printf(" LCTR, ");
529 break;
530 case NEXT:
531 printf(" NEXT, ");
532 break;
369 case RCTR | 0x100:
370 fprintf(fp, " rctrl ");
371 break;
372 case RALT | 0x100:
373 fprintf(fp, " ralt ");
374 break;
375 case ALK | 0x100:
376 fprintf(fp, " alock ");

--- 153 unchanged lines hidden (view full) ---

530 printf(" LALT, ");
531 break;
532 case LCTR:
533 printf(" LCTR, ");
534 break;
535 case NEXT:
536 printf(" NEXT, ");
537 break;
538 case PREV:
539 printf(" PREV, ");
540 break;
533 case RCTR:
534 printf(" RCTR, ");
535 break;
536 case RALT:
537 printf(" RALT, ");
538 break;
539 case ALK:
540 printf(" ALK, ");

--- 496 unchanged lines hidden ---
541 case RCTR:
542 printf(" RCTR, ");
543 break;
544 case RALT:
545 printf(" RALT, ");
546 break;
547 case ALK:
548 printf(" ALK, ");

--- 496 unchanged lines hidden ---