diff options
Diffstat (limited to 'usr/src/cmd/lp/lib')
| -rw-r--r-- | usr/src/cmd/lp/lib/access/llib-llpacc | 58 | ||||
| -rw-r--r-- | usr/src/cmd/lp/lib/class/llib-llpcls | 44 | ||||
| -rw-r--r-- | usr/src/cmd/lp/lib/filters/llib-llpflt | 120 | ||||
| -rw-r--r-- | usr/src/cmd/lp/lib/forms/llib-llpfrm | 62 | ||||
| -rw-r--r-- | usr/src/cmd/lp/lib/lp/llib-llp | 173 | ||||
| -rw-r--r-- | usr/src/cmd/lp/lib/msgs/llib-llpmsg | 116 | ||||
| -rw-r--r-- | usr/src/cmd/lp/lib/oam/llib-llpoam | 39 | ||||
| -rw-r--r-- | usr/src/cmd/lp/lib/printers/llib-llpprt | 99 | ||||
| -rw-r--r-- | usr/src/cmd/lp/lib/requests/llib-llpreq | 59 | ||||
| -rw-r--r-- | usr/src/cmd/lp/lib/secure/llib-llpsec | 52 | ||||
| -rw-r--r-- | usr/src/cmd/lp/lib/users/llib-llpusr | 59 |
11 files changed, 0 insertions, 881 deletions
diff --git a/usr/src/cmd/lp/lib/access/llib-llpacc b/usr/src/cmd/lp/lib/access/llib-llpacc deleted file mode 100644 index 8e15c15c3f..0000000000 --- a/usr/src/cmd/lp/lib/access/llib-llpacc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -/* - * Copyright (c) 1998 by Sun Microsystems, Inc. - * All rights reserved. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -int allow_form_printer ( char **, char * ); -int allow_user_form ( char ** , char * ); -int allow_user_printer ( char **, char * ); -int allowed ( char *, char **, char ** ); -int deny_form_printer ( char **, char * ); -int deny_user_form ( char ** , char * ); -int deny_user_printer ( char **, char * ); -int dumpaccess ( char *, char *, char *, char ***, char *** ); -int is_form_allowed_printer ( char *, char * ); -int is_user_admin ( void ); -int is_user_allowed ( char *, char ** , char ** ); -int is_user_allowed_form ( char *, char * ); -int is_user_allowed_printer ( char *, char * ); -int load_formprinter_access ( char *, char ***, char *** ); -int load_paperprinter_access(char *, char ***, char ***); -int load_userform_access ( char *, char ***, char *** ); -int load_userprinter_access ( char *, char ***, char *** ); -int loadaccess ( char *, char *, char *, char ***, char *** ); -int bangequ ( char * , char * ); -int bang_searchlist ( char * , char ** ); -int bang_dellist ( char *** , char * ); - -char * getaccessfile ( char *, char *, char *, char * ); - diff --git a/usr/src/cmd/lp/lib/class/llib-llpcls b/usr/src/cmd/lp/lib/class/llib-llpcls deleted file mode 100644 index fea59cd737..0000000000 --- a/usr/src/cmd/lp/lib/class/llib-llpcls +++ /dev/null @@ -1,44 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -/* - * Copyright (c) 1998 by Sun Microsystems, Inc. - * All rights reserved. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -typedef struct CLASS { - char *name; /* name of class (redundant) */ - char **members; /* members of class */ -} CLASS; - -int putclass ( char *, CLASS * ); -int delclass ( char * ); - -void freeclass ( CLASS * ); - diff --git a/usr/src/cmd/lp/lib/filters/llib-llpflt b/usr/src/cmd/lp/lib/filters/llib-llpflt deleted file mode 100644 index 61db757567..0000000000 --- a/usr/src/cmd/lp/lib/filters/llib-llpflt +++ /dev/null @@ -1,120 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -/* - * Copyright (c) 1998 by Sun Microsystems, Inc. - * All rights reserved. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include <stdio.h> - -typedef enum FILTERTYPE { - fl_none, - fl_fast, - fl_slow, - fl_both -} FILTERTYPE; - -typedef struct FILTER { - char * name; /* name of filter (redundant) */ - char * command; /* shell command (full path) */ - FILTERTYPE type; /* type of filter (fast/slow) */ - char ** printer_types; /* list of valid printer types */ - char ** printers; /* list of valid printers */ - char ** input_types; /* list of valid input types */ - char ** output_types; /* list of valid output types */ - char ** templates; /* list of option templates */ -} FILTER; - - - -typedef struct TYPE { - char * name; - unsigned short info; /* 1 iff "name" is in Terminfo */ -} TYPE; - - -typedef struct TEMPLATE { - char * keyword; - char * pattern; - char * re; - char * result; - int nbra; -} TEMPLATE; - -typedef struct _FILTER { - struct _FILTER * next; /* for linking several */ - char * name; - char * command; - char ** printers; - TYPE * printer_types; - TYPE * input_types; /* all possible choices */ - TYPE * output_types; /* all possible choices */ - TYPE * inputp; /* the one to be used */ - TYPE * outputp; /* the one to be used */ - TEMPLATE * templates; - FILTERTYPE type; - unsigned char mark, - level; -} _FILTER; - - -FILTER * getfilter ( char * ); - -_FILTER * search_filter ( char * ); - -FILTERTYPE insfilter ( char ** , char * , char * , char * , char * , char ** , unsigned short * ); -FILTERTYPE s_to_filtertype ( char * ); - -TEMPLATE s_to_template ( char * ); - -TEMPLATE * sl_to_templatel ( char ** ); - -TYPE s_to_type ( char * ); - -TYPE * sl_to_typel ( char ** ); - -char * template_to_s ( TEMPLATE ); -char * type_to_s ( TYPE ); - -char ** templatel_to_sl ( TEMPLATE * ); -char ** typel_to_sl ( TYPE * ); - -int open_filtertable ( char * , char * ); - -int get_and_load ( void ); -int putfilter ( char * , FILTER * ); -int delfilter ( char * ); -int loadfilters ( char * ); - -void freetempl ( TEMPLATE * ); -void freefilter ( FILTER * ); -void free_filter ( _FILTER * ); -void trash_filters ( void ); -void close_filtertable ( FILE * ); diff --git a/usr/src/cmd/lp/lib/forms/llib-llpfrm b/usr/src/cmd/lp/lib/forms/llib-llpfrm deleted file mode 100644 index 625d3e7be5..0000000000 --- a/usr/src/cmd/lp/lib/forms/llib-llpfrm +++ /dev/null @@ -1,62 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -/* - * Copyright (c) 1998 by Sun Microsystems, Inc. - * All rights reserved. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include "../../include/lp.h" - -typedef struct FORM { - SCALED plen; - SCALED pwid; - SCALED lpi; - SCALED cpi; - int np; - char * chset; - short mandatory; - char * rcolor; - char * comment; - char * conttype; - char * name; - char * paper; - short isDefault; -} FORM; - -#define err_hndlr int (*)( int , int , int ) - -int delform ( char * ); -int getform ( char * , FORM * , FALERT * , FILE ** ); -int putform ( char * , FORM * , FALERT * , FILE ** ); -int rdform ( char * , FORM * , int , err_hndlr , int * ); -int wrform ( char * , FORM * , int , err_hndlr , int * ); - -void freeform ( FORM * ); - diff --git a/usr/src/cmd/lp/lib/lp/llib-llp b/usr/src/cmd/lp/lib/lp/llib-llp deleted file mode 100644 index b1faa81b20..0000000000 --- a/usr/src/cmd/lp/lib/lp/llib-llp +++ /dev/null @@ -1,173 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -/* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include "errno.h" -#include "fcntl.h" -#include "sys/types.h" -#include "sys/stat.h" -#include "stdio.h" -#include "dirent.h" - -typedef struct SCALED { - float val; /* value of number, scaled according to "sc" */ - char sc; /* 'i' inches, 'c' centimeters, ' ' lines/cols */ -} SCALED; - -typedef struct FALERT { - char * shcmd; /* shell command used to perform the alert */ - int Q; /* # requests queued to activate alert */ - int W; /* alert is sent every "W" minutes */ -} FALERT; - -extern int open_locked(char *, char *, mode_t); -extern char *fdgets(char *, int, int); -extern int fdprintf(int, char *, ...); -extern int fdputs(char *, int); -extern int fdputc(char, int); - - -FILE *open_lpfile ( char * , char * , mode_t ); -int close_lpfile ( FILE * ); -int chown_lppath ( char * path ); -int mkdir_lpdir ( char * path , int mode ); -int rmfile ( char * path ); -int dumpstring ( char * path , char * str ); - -char * loadstring ( char * path ); -char * loadline ( char * path ); -char * sop_up_rest (int, char * endsop ); - -int addlist ( char *** , char * ); -int addstring ( char ** , char * ); -int appendlist ( char *** , char * ); -int dellist ( char *** , char * ); -int joinlist ( char *** , char ** ); -int lenlist ( char ** ); -int printlist ( FILE * , char ** ); -int fdprintlist(int , char ** ); -int searchlist ( char *, char ** ); -int searchlist_with_terminfo ( char * , char ** ); - -char ** duplist ( char ** ); -char ** getlist ( char * , char * , char * ); -char ** dashos ( char * ); -char ** wherelist ( char * , char ** ); - -char * sprintlist ( char ** ); -char * search_cslist ( char * , char ** ); - -void freelist ( char ** ); -void printlist_setup ( char * , char * , char * , char * ); -void printlist_unsetup ( void ); - - -void printsdn ( FILE * , SCALED ); -void fdprintsdn ( int , SCALED ); -void printsdn_setup ( char * , char * , char * ); -void printsdn_unsetup ( void ); - -SCALED _getsdn ( char * , char ** , int ); - -char * makepath ( char * , ... ); -char * getspooldir ( void ); -char * getrequestfile ( char * ); -char * getprinterfile ( char * , char * ); -char * getsystemfile ( char * , char * ); -char * getclassfile ( char * ); -char * getfilterfile ( char * ); -char * getformfile ( char * , char * ); - -int cs_strcmp ( char * , char * ); -int cs_strncmp ( char * , char * , int ); - -int syn_name ( char * ); -int syn_text ( char * ); -int syn_comment ( char * ); -int syn_machine_name ( char * ); -int syn_option ( char * ); - -int putalert ( char * , char * , FALERT * ); -int delalert ( char * , char * ); - -FALERT * getalert ( char * , char * ); - -void printalert ( FILE * , FALERT * , int ); - -int tidbit ( char * , char * , ... ); -void untidbit ( char * ); - -int _Access ( char * , int ); -int _Chdir ( char * ); -int _Chmod ( char * , int ); -int _Chown ( char * , int , int ); -int _Close ( int ); -int _Creat ( char * , int ); -int _Fcntl ( int , int , ... ); -int _Fstat ( int , struct stat * ); -int _Link ( char * , char * ); -int _Lstat ( char * , struct stat * ); -int _Mknod ( char * , int , int ); -int _Mkpipe ( char * , int , int ); -int _Open ( char * , int , ... /* mode_t */ ); -int _Read ( int , char * , unsigned int ); -int _Readlink ( char * , char * , unsigned int ); -int _Rename ( char * , char * ); -int _Symlink ( char * , char * ); -int _Stat ( char * , struct stat * ); -int _Unlink ( char * ); -int _Wait ( int * ); -int _Write ( int , char * , unsigned int ); - -void * _Malloc ( size_t , const char * , int ); -void * _Realloc ( void * , size_t , const char * , int ); -void * _Calloc ( size_t , size_t , const char * , int ); -char * _Strdup ( const char * , const char * , int ); -void _Free ( void * , const char * , int ); - - -int isterminfo ( char * ); -int isprinter ( char * ); -int isrequest ( char * ); -int isnumber ( char * ); - -char * getname ( void ); -char * makestr ( char * , ... ); -char * strip ( char * ); - -void sendmail ( char * , char * ); - -void (*lp_alloc_fail_handler)( void ); - -char * next_x ( char * , long * , unsigned int ); - diff --git a/usr/src/cmd/lp/lib/msgs/llib-llpmsg b/usr/src/cmd/lp/lib/msgs/llib-llpmsg deleted file mode 100644 index 84d1fa3b1c..0000000000 --- a/usr/src/cmd/lp/lib/msgs/llib-llpmsg +++ /dev/null @@ -1,116 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -/* - * Copyright (c) 1998 by Sun Microsystems, Inc. - * All rights reserved. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" - - -# include <sys/types.h> -# include <poll.h> -# include <stdarg.h> -# include <stropts.h> - - -typedef struct strbuf strbuf_t; /* STREAMS buffer */ - -typedef struct mque -{ - struct mque *next; - struct strbuf *dat; -} MQUE; - -typedef struct -{ - short type; /* type of connection */ - int readfd; /* STREAM fd to read from */ - int writefd; /* STREAM fd to write to */ - int wait; /* number of systems waiting for */ - char *file; /* pipe name if type==MD_FIFO */ - short state; /* Current state of client */ - short admin; /* Non zero if admin */ - short event; /* Event returned from poll */ - MQUE * mque; /* backlogged message ptr */ - uid_t uid; /* Clients UID */ - gid_t gid; /* Clients GID */ - void (**on_discon)(); /* Clean up functions */ -} MESG; - -#define MSGMAX 2048 -typedef struct -{ - int full; - char save [MSGMAX], - *psave, - *psave_end; -} fifobuffer_t; - -MESG * mcreate ( char * ); -int mlisteninit ( MESG * ); -MESG * mlisten ( void ); -int mlistenadd ( MESG *, short ); -int mon_discon ( MESG *, void (*)()); -MESG * mlistenreset ( void ); -int mdestroy ( MESG * ); - -MESG * mconnect ( char *, int, int ); -int mgetm ( MESG *, int, ... ); -int mwrite ( MESG *, char * ); -int mputm ( MESG *, int, ... ); -int mread ( MESG *, char *, int ); -short msize ( char * ); -short mpeek ( MESG * ); -int mdisconnect ( MESG * ); - -void __mbfree ( void ); - -int mclose ( void ); -int mneeds ( void ); -int mopen ( void ); -int mrecv ( char *, int ); -int msend ( char * ); - -int Putmsg (MESG *, strbuf_t *, strbuf_t *, int); -int Getmsg (MESG *, strbuf_t *, strbuf_t *, int *); -int read3_2 (MESG * md, char *msgbuf, int size); -int write3_2 (MESG *, char *, int); -int read_fifo (int, char *, unsigned int); -int write_fifo (int, char *, unsigned int); -int ResetFifoBuffer (int); -fifobuffer_t *GetFifoBuffer (int); - -char * htos ( char *, unsigned short ); -char * ltos ( char *, unsigned long ); -unsigned long stol ( char * ); -unsigned short stoh ( char * ); -int _getmessage ( char *, short, va_list ); -int _putmessage ( char *, short, va_list ); -int getmessage ( char *, short, ... ); -int putmessage ( char *, short, ... ); diff --git a/usr/src/cmd/lp/lib/oam/llib-llpoam b/usr/src/cmd/lp/lib/oam/llib-llpoam deleted file mode 100644 index b2a06901ee..0000000000 --- a/usr/src/cmd/lp/lib/oam/llib-llpoam +++ /dev/null @@ -1,39 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -/* - * Copyright (c) 1998 by Sun Microsystems, Inc. - * All rights reserved. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -char *agettxt(long msg_id, char *buf, int buflen); - -void fmtmsg(char * label, int severity, char * text, char * action); - - diff --git a/usr/src/cmd/lp/lib/printers/llib-llpprt b/usr/src/cmd/lp/lib/printers/llib-llpprt deleted file mode 100644 index f71ee5ff18..0000000000 --- a/usr/src/cmd/lp/lib/printers/llib-llpprt +++ /dev/null @@ -1,99 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -/* - * Copyright (c) 1998 by Sun Microsystems, Inc. - * All rights reserved. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include "../../include/lp.h" - -typedef struct PRINTER { - char *name; /* name of printer (redundant) */ - unsigned short banner; /* banner page conditions */ - SCALED cpi; /* default character pitch */ - char **char_sets; /* list of okay char-sets/print-wheels */ - char **input_types; /* list of types acceptable to printer */ - char *device; /* printer port full path name */ - char *dial_info; /* system name or phone # for dial-up */ - char *fault_rec; /* printer fault recovery procedure */ - char *interface; /* interface program full path name */ - SCALED lpi; /* default line pitch */ - SCALED plen; /* default page length */ - unsigned short login; /* is/isn't a login terminal */ - char *printer_type; /* Terminfo look-up value (obsolete) */ - char *remote; /* remote machine!printer-name */ - char *speed; /* baud rate for connection */ - char *stty; /* space separated list of stty options */ - SCALED pwid; /* default page width */ - char *description; /* comment about printer */ - FALERT fault_alert; /* how to alert on printer fault */ - short daisy; /* 1/0 - printwheels/character-sets */ -#if defined(CAN_DO_MODULES) - char **modules; /* streams modules to push */ -#endif - char **printer_types; /* Terminfo look-up values */ - char **options; /* space separated list of undefined -o options */ - - /* - * Adding new members to this structure? Check out - * cmd/lpadmin/do_printer.c, where we initialize - * each new printer structure. - */ -} PRINTER; - -typedef struct PWHEEL { - char *name; /* name of print wheel */ - FALERT alert; /* how to alert when mount needed */ -} PWHEEL; - -extern unsigned long badprinter, - ignprinter; -PRINTER * getprinter ( char * ); - -PWHEEL * getpwheel ( char * ); - -char * getdefault ( void ); - -int putprinter ( char *, PRINTER *); -int delprinter ( char * ); -int putdefault ( char * ); -int deldefault ( void ); -int putpwheel ( char * , PWHEEL * ); -int delpwheel ( char * ); -int okprinter ( char * , PRINTER * , int ); - -unsigned long chkprinter (char *, char *, char *, char *, char *, char *); - -void freeprinter ( PRINTER * ); -void freepwheel ( PWHEEL * ); - -char * getpentry(char *, int); - - diff --git a/usr/src/cmd/lp/lib/requests/llib-llpreq b/usr/src/cmd/lp/lib/requests/llib-llpreq deleted file mode 100644 index ec8a5f0250..0000000000 --- a/usr/src/cmd/lp/lib/requests/llib-llpreq +++ /dev/null @@ -1,59 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -/* - * Copyright (c) 1998 by Sun Microsystems, Inc. - * All rights reserved. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include <sys/types.h> - -typedef struct REQUEST { - short copies; /* number of copies of request to print */ - char *destination; /* printer or class name */ - char **file_list; /* list of files to print: req. content */ - char *form; /* preprinted form to print on */ - ushort actions; /* mail/write, immediate/hold/resume, raw */ - char *alert; /* program to run to alert user when done */ - char *options; /* print options; space separated list */ - short priority; /* priority level, 0-39, of the request */ - char *pages; /* list of pages to print (uniq. please!) */ - char *charset; /* character set to select or mount */ - char *modes; /* mode(s) of operation; space sep. list */ - char *title; /* optional title for banner page */ - char *input_type; /* type of content */ - char *user; /* user name of person submitting */ - ushort outcome; /* success/fauilure */ - ushort version; /* version of system sending job*/ -} REQUEST; - -REQUEST * getrequest ( char * ); -int putrequest ( char *, REQUEST * ); -void freerequest ( REQUEST * ); - diff --git a/usr/src/cmd/lp/lib/secure/llib-llpsec b/usr/src/cmd/lp/lib/secure/llib-llpsec deleted file mode 100644 index 796719ea7a..0000000000 --- a/usr/src/cmd/lp/lib/secure/llib-llpsec +++ /dev/null @@ -1,52 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -/* - * Copyright (c) 1998 by Sun Microsystems, Inc. - * All rights reserved. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include "sys/types.h" - -typedef struct SECURE { - uid_t uid; - gid_t gid; - off_t size; - time_t date; - char *system; - char *user; - char *req_id; -} SECURE; - - -SECURE * getsecure ( char * ); -int putsecure ( char *, SECURE * ); -int rmsecure (char *); -void freesecure ( SECURE * ); - diff --git a/usr/src/cmd/lp/lib/users/llib-llpusr b/usr/src/cmd/lp/lib/users/llib-llpusr deleted file mode 100644 index 86a18b8b1c..0000000000 --- a/usr/src/cmd/lp/lib/users/llib-llpusr +++ /dev/null @@ -1,59 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* LINTLIBRARY */ -/* PROTOLIB1 */ - -/* - * Copyright (c) 1998 by Sun Microsystems, Inc. - * All rights reserved. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include "stdio.h" - -typedef struct -{ - short priority_limit; -} -USER; - -int putuser ( char * , USER * ); -int deluser ( char * ); -int getdfltpri ( void ); -void trashusers ( void ); - -USER * getuser ( char *); - -#define PRI_MAX 39 -#define PRI_MIN 0 - -struct user_priority -{ - short deflt; /* priority to use when not specified */ - short deflt_limit; /* priority limit for users not - otherwise specified */ - char **users[PRI_MAX - PRI_MIN + 1]; -}; |
