#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "printcap.h"
Macros | |
#define | BUFSIZ 1024 |
#define | MAXHOP 32 /* max number of tc= indirections */ |
#define | PRINTCAP |
#define | tgetent pgetent |
#define | tskip pskip |
#define | tgetstr pgetstr |
#define | tdecode pdecode |
#define | tgetnum pgetnum |
#define | tgetflag pgetflag |
#define | tdecode pdecode |
#define | tnchktc pnchktc |
#define | tnamatch pnamatch |
#define | V6 |
Functions | |
int | getprent (char *cap, char *bp, int bufsize) |
void | endprent (void) |
int | tgetent (char *cap, char *bp, const char *name) |
int | tnchktc (char *cap) |
int | tnamatch (const char *np) |
static char * | tskip (char *bp) |
int | tgetnum (char *id) |
int | tgetflag (char *id) |
static char * | tdecode (char *str, char **area) |
char * | tgetstr (char *id, char **area) |
static char * | decodename (char *str, char **area, int bufsize) |
char * | getpname (char **area, int bufsize) |
Variables | |
static FILE * | pfp = NULL |
static char * | tbuf |
static int | hopcount |
#define BUFSIZ 1024 |
#define MAXHOP 32 /* max number of tc= indirections */ |
#define PRINTCAP |
#define tdecode pdecode |
#define tdecode pdecode |
#define tgetent pgetent |
#define tgetflag pgetflag |
#define tgetnum pgetnum |
#define tgetstr pgetstr |
#define tnamatch pnamatch |
#define tnchktc pnchktc |
#define tskip pskip |
#define V6 |
|
static |
void endprent | ( | void | ) |
char * getpname | ( | char ** | area, |
int | bufsize ) |
int getprent | ( | char * | cap, |
char * | bp, | ||
int | bufsize ) |
|
static |
int tgetent | ( | char * | cap, |
char * | bp, | ||
const char * | name ) |
int tgetflag | ( | char * | id | ) |
int tgetnum | ( | char * | id | ) |
char * tgetstr | ( | char * | id, |
char ** | area ) |
int tnamatch | ( | const char * | np | ) |
int tnchktc | ( | char * | cap | ) |
|
static |
|
static |
|
static |
|
static |