1 /***************************************************************************
2  * LPRng - An Extended Print Spooler System
3  *
4  * Copyright 1988-2003, Patrick Powell, San Diego, CA
5  *     papowell@lprng.com
6  * See LICENSE for conditions of use.
7  * $Id: errorcodes.h,v 1.74 2004/09/24 20:19:59 papowell Exp $
8  ***************************************************************************/
9 
10 
11 
12 #ifndef _ERRORCODES_H_
13 #define _ERRORCODES_H_ 1
14 /*
15  * filter return codes and job status codes
16  * - exit status of the filter process
17  * If a printer filter fails, then we assume JABORT status and
18  * will record information about failure
19  */
20 
21                        /* process exit codes */
22 #define JSUCC    0     /* 0 done */
23 /* from 1 - 31 are signal terminations */
24 #define JFAIL    32    /* 1 failed - retry later */
25 #define JABORT   33    /* 2 aborted - do not try again, but keep job */
26 #define JREMOVE  34    /* 3 failed - remove job */
27 #define JHOLD    37    /* 6 hold this job */
28 #define JNOSPOOL 38    /* 7 no spooling to this queue */
29 #define JNOPRINT 39    /* 8 no printing from this queue  */
30 #define JSIGNAL  40    /* 9 killed by unrecognized signal */
31 #define JFAILNORETRY 41 /* 10 no retry on failure */
32 #define JSUSP    42		/* 11 process suspended successfully */
33 #define JTIMEOUT 43		/* 12 timeout */
34 #define JWRERR   44		/* 13 write error */
35 #define JRDERR   45		/* 14 read error  */
36 #define JCHILD   46		/* 15 no children */
37 #define JNOWAIT  47		/* 16 no wait status */
38 
39 /* PROTOTYPES */
40 
41 #endif
42