Files
Arquivotheca.Solaris-2.5/cmd/lp/include/systems.h
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

51 lines
1.2 KiB
C
Executable File

/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "@(#)systems.h 1.6 94/03/29 SMI" /* SVr4.0 1.6 */
# define SYS_PASSWD 0
# define SYS_PROTO 1
# define SYS_TMO 2
# define SYS_RETRY 3
# define SYS_COMMENT 4
# define SYS_MAX 5
/**
** The internal copy of a system as seen by the rest of the world:
**/
typedef struct SYSTEM
{
char *name; /* name of system (redundant) */
char *passwd; /* the encrypted passwd of the system */
char *reserved1;
int protocol; /* lp networking protocol s5|bsd */
int threshold; /* job threshold before poll */
int timeout; /* maximum permitted idle time */
int retry; /* minutes before trying failed conn */
char *extensions;
char *reserved4;
char *comment;
} SYSTEM;
# define NAME_S5PROTO "s5"
# define NAME_BSDPROTO "bsd"
# define S5_PROTO 1
# define BSD_PROTO 2
/**
** Various routines.
**/
SYSTEM *getsystem ( const char * );
int putsystem ( const char *, const SYSTEM * ),
delystem ( const char * );
void freesystem(SYSTEM *);