netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
printcap.c File Reference
#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

Macro Definition Documentation

◆ BUFSIZ

#define BUFSIZ   1024

◆ MAXHOP

#define MAXHOP   32 /* max number of tc= indirections */

◆ PRINTCAP

#define PRINTCAP

◆ tdecode [1/2]

#define tdecode   pdecode

◆ tdecode [2/2]

#define tdecode   pdecode

◆ tgetent

#define tgetent   pgetent

◆ tgetflag

#define tgetflag   pgetflag

◆ tgetnum

#define tgetnum   pgetnum

◆ tgetstr

#define tgetstr   pgetstr

◆ tnamatch

#define tnamatch   pnamatch

◆ tnchktc

#define tnchktc   pnchktc

◆ tskip

#define tskip   pskip

◆ V6

#define V6

Function Documentation

◆ decodename()

char * decodename ( char * str,
char ** area,
int bufsize )
static

◆ endprent()

void endprent ( void )

◆ getpname()

char * getpname ( char ** area,
int bufsize )

◆ getprent()

int getprent ( char * cap,
char * bp,
int bufsize )

◆ tdecode()

char * tdecode ( char * str,
char ** area )
static

◆ tgetent()

int tgetent ( char * cap,
char * bp,
const char * name )

◆ tgetflag()

int tgetflag ( char * id)

◆ tgetnum()

int tgetnum ( char * id)

◆ tgetstr()

char * tgetstr ( char * id,
char ** area )

◆ tnamatch()

int tnamatch ( const char * np)

◆ tnchktc()

int tnchktc ( char * cap)

◆ tskip()

char * tskip ( char * bp)
static

Variable Documentation

◆ hopcount

int hopcount
static

◆ pfp

FILE* pfp = NULL
static

◆ tbuf

char* tbuf
static