Eneboo - Documentación para desarrolladores
|
#include <sys/param.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/stat.h>
#include <sys/file.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <ctype.h>
#include <dirent.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <pwd.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include "lp.h"
#include "lp.local.h"
#include "pathnames.h"
#include "extern.h"
'defines' | |
#define | _PATH_FHSLOCK "/var/spool/lpd/lpd.lock" |
#define | DUMMY ":nobody::" |
Funciones | |
int | __ivaliduser_sa (FILE *, struct sockaddr *, socklen_t, const char *, const char *) |
int | main (int argc, char **argv) |
Variables | |
int | lflag |
int | rflag |
int | sflag |
int | from_remote |
char ** | blist |
int | blist_size |
int | blist_addrs |
volatile sig_atomic_t | child_count |
volatile sig_atomic_t | gotintr |
char * | user [MAXUSERS] |
int | users |
int | requ [MAXREQUESTS] |
int | requests |
char * | person |
char | fromb [NI_MAXHOST] |
char | cbuf [BUFSIZ] |
char * | cmdnames [] |
#define _PATH_FHSLOCK "/var/spool/lpd/lpd.lock" |
#define DUMMY ":nobody::" |
int __ivaliduser_sa | ( | FILE * | hostf, |
struct sockaddr * | raddr, | ||
socklen_t | salen, | ||
const char * | luser, | ||
const char * | ruser | ||
) |
char** blist |
char cbuf[BUFSIZ] |
volatile sig_atomic_t child_count |
char* cmdnames[] |
{ "null", "printjob", "recvjob", "displayq short", "displayq long", "rmjob" }
char fromb[NI_MAXHOST] |
volatile sig_atomic_t gotintr |
char* person |
char* user[MAXUSERS] |