job.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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
* 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
*/
/*
* Copyright (c) 1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _JOB_H
#define _JOB_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Sequence number space
*/
#define JOB_ID_START 0
#define JOB_ID_END 999
/*
* Job related files
*/
/*
* RFC-1179 Control File Primatives
*/
/*
* Solaris 2.X LP - BSD protocol extensions
*/
struct _jobfile {
char *jf_spl_path; /* df file */
char *jf_src_path; /* source file */
char *jf_data; /* ptr to mmapped file */
long jf_size; /* size of data */
char jf_mmapped; /* is this mmapped or malloced */
} ;
struct _job {
int job_id;
char *job_printer;
char *job_server;
char *job_user;
char *job_host;
char *job_spool_dir;
char job_df_next;
} ;
int delete);
#ifdef __cplusplus
}
#endif
#endif /* !_JOB_H */