4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
28 #ifndef _BSD_SYSV_COMMON_H
29 #define _BSD_SYSV_COMMON_H
31 /* $Id: common.h 162 2006-05-08 14:17:44Z njacobs $ */
35 #include <config-site.h>
41 extern char **strsplit(char *string
, const char *seperators
);
42 extern char *verbose_papi_message(papi_service_t svc
, papi_status_t status
);
44 extern int berkeley_cancel_request(papi_service_t svc
, FILE *fp
, char *dest
,
47 extern int get_printer_id(char *name
, char **printer
, int *id
);
49 extern int berkeley_queue_report(papi_service_t svc
, FILE *fp
, char *dest
,
50 int fmt
, int ac
, char *av
[]);
52 extern papi_status_t
jobSubmitSTDIN(papi_service_t svc
, char *printer
,
53 char *prefetch
, int len
,
54 papi_attribute_t
**list
, papi_job_t
*job
);
56 extern char **interest_list(papi_service_t svc
);
57 extern char *localhostname();
58 extern char *lp_type_to_mime_type(char *lp_type
);
59 extern int is_postscript(const char *file
);
60 extern int is_postscript_stream(int fd
, char *buf
, int *len
);
62 extern int cli_auth_callback(papi_service_t svc
, void *app_data
);
64 extern int32_t job_to_be_queried(papi_service_t svc
, char *printer
, int32_t id
);
70 #endif /* _BSD_SYSV_COMMON_H */