#include <string.h>#include <sys/param.h>#include <sys/time.h>#include <sys/uio.h>#include <sys/file.h>#include <sys/socket.h>#include <atalk/logger.h>#include <sys/types.h>#include <sys/wait.h>#include <errno.h>#include <signal.h>#include <stdio.h>#include <stdlib.h>#include <netdb.h>#include <fcntl.h>#include <unistd.h>#include <netatalk/at.h>#include <atalk/compat.h>#include <atalk/atp.h>#include <atalk/pap.h>#include <atalk/util.h>#include <atalk/nbp.h>#include <atalk/unicode.h>#include "printer.h"#include "printcap.h"#include "session.h"#include "uam_auth.h"#include "print_cups.h"Data Structures | |
| struct | rbuf_t |
Macros | |
| #define | WEXITSTATUS(stat_val) |
| #define | WIFEXITED(stat_val) |
| #define | MACCHARSET "MAC_ROMAN" |
| #define | PF_CONFBUFFER 1024 |
Functions | |
| int | getstatus (struct printer *pr, rbuf_t *buf) |
| int | rprintcap (struct printer *pr) |
| static void | getprinters (char *cf) |
| static void | papd_exit (const int i) |
| static void | die (int n) |
| static void | reap (int sig) |
| int | main (int ac, char **av) |
| char * | pgetstr (char *id, char **area) |
| char * | getpname (char **area, int bufsize) |
Variables | |
| static rbuf_t | r_buf |
| struct printer | defprinter |
| struct printer * | printers = NULL |
| int | debug = 0 |
| static char * | conffile = _PATH_PAPDCONF |
| char * | printcap = _PATH_PAPDPRINTCAP |
| unsigned char | connid |
| unsigned char | quantum |
| unsigned char | sock |
| unsigned char | oquantum = PAP_MAXQUANTUM |
| char * | cannedstatus = "status: print spooler processing job" |
| struct printer * | printer = NULL |
| char * | version = VERSION |
| static char * | pidfile = PATH_PAPD_LOCK |
| char * | uamlist |
| char * | uampath = _PATH_PAPDUAMPATH |
| #define MACCHARSET "MAC_ROMAN" |
| #define PF_CONFBUFFER 1024 |
| #define WEXITSTATUS | ( | stat_val | ) |
| #define WIFEXITED | ( | stat_val | ) |
|
static |
| char * getpname | ( | char ** | area, |
| int | bufsize ) |
|
static |
| int main | ( | int | ac, |
| char ** | av ) |
|
static |
| char * pgetstr | ( | char * | id, |
| char ** | area ) |
|
static |
| int rprintcap | ( | struct printer * | pr | ) |
| char* cannedstatus = "status: print spooler processing job" |
|
static |
| unsigned char connid |
| int debug = 0 |
| struct printer defprinter |
| unsigned char oquantum = PAP_MAXQUANTUM |
|
static |
| char* printcap = _PATH_PAPDPRINTCAP |
| struct printer* printer = NULL |
| struct printer* printers = NULL |
| unsigned char quantum |
|
static |
| unsigned char sock |
| char* uamlist |
| char* uampath = _PATH_PAPDUAMPATH |
| char* version = VERSION |