| 22 |
|
|
| 23 |
#define HASHTBLSIZE 2048 |
#define HASHTBLSIZE 2048 |
| 24 |
|
|
| 25 |
|
#define CAR(X) ((X)->content.c->car) |
| 26 |
|
#define CDR(X) ((X)->content.c->cdr) |
| 27 |
|
|
| 28 |
|
/* printf, sscanf, fgets, fprintf, fopen, perror */ |
| 29 |
|
#include <stdio.h> |
| 30 |
|
/* exit, EXIT_SUCCESS, malloc, free */ |
| 31 |
|
#include <stdlib.h> |
| 32 |
|
/* NULL */ |
| 33 |
|
#include <stddef.h> |
| 34 |
|
/* dlopen, dlsym, dlerror */ |
| 35 |
|
#include <dlfcn.h> |
| 36 |
|
/* strcmp, strcpy, strlen, strcat, strdup */ |
| 37 |
|
#include <string.h> |
| 38 |
|
/* getopt, STDIN_FILENO, STDOUT_FILENO, usleep */ |
| 39 |
|
#include <unistd.h> |
| 40 |
|
/* EX_NOINPUT, EX_USAGE */ |
| 41 |
|
#include <sysexits.h> |
| 42 |
|
/* assert */ |
| 43 |
|
#include <assert.h> |
| 44 |
|
|
| 45 |
|
#ifdef __linux__ |
| 46 |
|
/* mtrace, muntrace */ |
| 47 |
|
#include <mcheck.h> |
| 48 |
|
/* ioctl */ |
| 49 |
|
#include <sys/ioctl.h> |
| 50 |
|
/* KDMKTONE */ |
| 51 |
|
#include <linux/kd.h> |
| 52 |
|
#endif /* __linux__ */ |
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
/* First, define some types. */ |
/* First, define some types. */ |
| 57 |
|
|
| 58 |
struct cons_struct; |
struct cons_struct; |