keymap.c revision 3e2147858f21943d5f4a781c60f33ac22c6096ed
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <ctype.h>
#include <unistd.h>
#include <errno.h>
#include <limits.h>
#include <fcntl.h>
#include <getopt.h>
#include "keys-from-name.h"
#include "keys-to-name.h"
int fd;
return fd;
int version;
int len;
return result;
goto fail;
goto fail;
int keycode;
fail:
unsigned scancode;
char *endptr;
const struct key *k;
int line = 0;
while (!feof(f)) {
if (!fgets(s, sizeof(s), f))
line++;
const struct key *k;
goto fail;
goto fail;
fail:
fclose(f);
int ret;
if (ret < 0) {
const char *keyname;
scancode);
if (has_scan != 0)
if (has_scan) {
stderr);
has_key = 0;
if (has_key) {
stderr);
has_scan = 0;
if (error) {
exit(0);
int opt_interactive = 0;
int option;
switch (option) {
help(0);
if (opt_interactive)