Lines Matching defs:job

57  * Print job entries start with:
58 * (user): (rank) [job (number) (...)]
59 * (user) is the job-owner's user name
61 * (number) is the job number
68 "[[:space:]]+[[][[:space:]]*job[[:space:]]*([[:digit:]]+)"\
73 * Print job entries for remote windows printer start with:
80 * Owner is the job-owner's user name
81 * Status is the job-status (printing, waiting, error)
82 * Jobname is the name of the job to be printed
83 * Job-Id is the id of the job queued to be printed
84 * Size is the size of the job in bytes
85 * Pages is the number of pages of the job
86 * Priority is the job-priority
95 * Windows job header is in the following format
151 parse_lpd_job(service_t *svc, job_t **job, int fd, char *line, int len)
174 /* Windows job */
175 /* first match is job-id */
180 "job-originating-user-name", s);
185 "job-name", s);
187 "job-file-names", s);
192 "job-id", atoi(s));
198 PAPI_ATTR_APPEND, "job-file-sizes", atoi(s));
201 * Since a job has been found so the printer state is either
207 /* Solaris job */
211 "job-originating-user-name", s);
221 "job-id", atoi(s));
226 "job-originating-host-name", s);
248 PAPI_ATTR_APPEND, "job-name", s);
250 PAPI_ATTR_APPEND, "job-file-names", s);
257 PAPI_ATTR_APPEND, "job-file-sizes", size);
263 "job-k-octets", octets/1024);
265 "job-octets", octets);
269 if ((*job = (job_t *)calloc(1, sizeof (**job))) != NULL)
270 (*job)->attributes = attributes;
295 * first print job entry.
297 * Print job entries start with:
298 * user: rank [job number ...]
304 * Print job entries start with:
317 * When windows job queue gets queried following header
376 /* process job related entries */
378 job_t *job = NULL;
380 parse_lpd_job(svc, &job, fd, line, sizeof (line));
381 if (job == NULL)
383 list_append(&cache->jobs, job);
472 lpd_find_job_info(service_t *svc, int job_id, job_t **job)
480 *job = NULL;
481 for (i = 0; ((*job == NULL) && (jobs[i] != NULL)); i++) {
485 "job-id", &id);
487 *job = jobs[i];
490 if (*job != NULL)