/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | bsd_misc.c | 115 if ((job->np_cfAfilename = create_cfname(job)) == NULL) { in create_bsd_job() 140 (void) job_primitive(job, 'C', job->np_host); in create_bsd_job() 141 (void) job_primitive(job, 'J', job->np_title); in create_bsd_job() 142 (void) job_primitive(job, 'L', job->np_username); in create_bsd_job() 183 return (job); in create_bsd_job() 209 job->np_request_id, job->np_host); in create_dfname() 231 job->np_request_id, job->np_host); in create_cfname() 247 (void) job_primitive(job, 'H', job->np_host); in create_cfA_file() 248 (void) job_primitive(job, 'P', job->np_username); in create_cfA_file() 264 job->np_cfAfile = calloc(1, job->np_cfAfilesize + 1); in job_primitive() [all …]
|
H A D | misc.c | 89 np_job_t * job; in init_job() local 91 if ((job = calloc(1, sizeof (*job))) != NULL) { in init_job() 92 job->protocol = BSD; in init_job() 93 job->banner = BANNER; in init_job() 96 return (job); in init_job()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | jobs.c | 371 job.savesig = 0; in job_reap() 622 if(job.linedisc!=NTTYDISC && job.linedisc!=OTTYDISC) in job_init() 663 while((job.mytgid=tcgetpgrp(JOBTTY)) != job.mypgid) in job_init() 788 tcsetpgrp(job.fd,job.mypgid); in job_close() 798 if (ioctl(job.fd, FIOPUSHLD, &job.linedisc) < 0) in job_close() 801 ioctl(job.fd, FIOPUSHLD, &job.linedisc); in job_close() 806 if(ioctl(job.fd,TIOCSETD,&job.linedisc) !=0) in job_close() 849 if(tcsetpgrp(job.fd,job.mypid) !=0) in job_reset() 1331 job.numpost=0; in job_clear() 1397 job.numpost++; in job_post() [all …]
|
H A D | xec.c | 162 while(job.waitsafe && job.savesig==SIGCHLD) in iounpipe() 166 job.in_critical++; in iounpipe() 168 job.in_critical--; in iounpipe() 796 job.colist = csp; in sh_coinit() 1007 job.curpgid = 0; in sh_exec() 3130 if(job.toclear) in _sh_fork() 3204 while(setpgid(0,job.curpgid)<0 && job.curpgid!=parent) in _sh_fork() 3208 tcsetpgrp(job.fd,job.curpgid); in _sh_fork() 3221 job.toclear = 1; in _sh_fork() 3912 while(tcsetpgrp(job.fd,job.curpgid)<0 && job.curpgid!=spawnpid) in sh_ntfork() [all …]
|
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/ |
H A D | job.c | 45 f(tmp->job); in papiJobFree() 66 job_t *j = job; in papiJobGetAttributeList() 68 if (job != NULL) { in papiJobGetAttributeList() 84 job_t *j = job; in papiJobGetPrinterName() 86 if (job != NULL) { in papiJobGetPrinterName() 101 job_t *j = job; in papiJobGetId() 103 if (job != NULL) { in papiJobGetId() 118 job_t *j = job; in papiJobGetJobTicket() 120 if (job != NULL) { in papiJobGetJobTicket() 145 (job == NULL)) in _papi_job_submit_reference_or_validate() [all …]
|
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | job.c | 55 (job == NULL)) in papiJobSubmit() 129 if ((s->job = calloc(1, sizeof (*(s->job)))) == NULL) in papiJobStreamOpen() 155 if (s->job->attributes) in papiJobStreamOpen() 157 s->job->attributes = NULL; in papiJobStreamOpen() 217 *job = s->job; in papiJobStreamClose() 256 job_t *j = (job_t *)job; in papiJobGetAttributeList() 268 job_t *j = (job_t *)job; in papiJobGetPrinterName() 278 papiJobGetId(papi_job_t job) in papiJobGetId() argument 281 job_t *j = (job_t *)job; in papiJobGetId() 291 papiJobFree(papi_job_t job) in papiJobFree() argument [all …]
|
H A D | lpd-query.c | 269 if ((*job = (job_t *)calloc(1, sizeof (**job))) != NULL) in parse_lpd_job() 270 (*job)->attributes = attributes; in parse_lpd_job() 378 job_t *job = NULL; in parse_lpd_query() local 380 parse_lpd_job(svc, &job, fd, line, sizeof (line)); in parse_lpd_query() 381 if (job == NULL) in parse_lpd_query() 383 list_append(&cache->jobs, job); in parse_lpd_query() 472 lpd_find_job_info(service_t *svc, int job_id, job_t **job) in lpd_find_job_info() argument 480 *job = NULL; in lpd_find_job_info() 481 for (i = 0; ((*job == NULL) && (jobs[i] != NULL)); i++) { in lpd_find_job_info() 487 *job = jobs[i]; in lpd_find_job_info() [all …]
|
H A D | lpd-cancel.c | 95 job_t *job; in lpd_purge_jobs() local 109 if ((job = (job_t *)calloc(1, (sizeof (*job)))) in lpd_purge_jobs() 111 job->attributes = attributes; in lpd_purge_jobs() 112 list_append(jobs, job); in lpd_purge_jobs()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/ |
H A D | fcsm.c | 1161 fcsm_job_t *job; in fcsm_cleanup_port() local 2344 fcsm_job_t *job; in fcsm_alloc_job() local 2361 return (job); in fcsm_alloc_job() 2512 (void *)job, job->job_retry_count)); in fcsm_retry_job() 2527 job->job_retry_count, (void *)job)); in fcsm_retry_job() 2571 job->job_comp(job->job_comp_arg, job, job->job_result); in fcsm_jobdone() 2600 fcsm_job_t *job; in fcsm_deque_job() local 2606 job = NULL; in fcsm_deque_job() 2618 return (job); in fcsm_deque_job() 2626 fcsm_job_t *job; in fcsm_job_thread() local [all …]
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/impl/ |
H A D | fp.h | 321 static void fp_jobwait(job_request_t *job); 342 void (*comp) (), job_request_t *job); 346 job_request_t *job); 389 job_request_t *job); 404 job_request_t *job, int sleep); 406 job_request_t *job, int sleep); 410 job_request_t *job, int sleep); 421 job_request_t *job); 438 job_request_t *job); 461 job_request_t *job); [all …]
|
/illumos-gate/usr/src/lib/libc/port/tpool/ |
H A D | thread_pool.c | 40 tpool_job_t *job; in delete_pool() local 61 for (job = tpool->tp_head; job != NULL; job = tpool->tp_head) { in delete_pool() 63 lfree(job, sizeof (*job)); in delete_pool() 127 tpool_job_t *job; in tpool_worker() local 188 lfree(job, sizeof (*job)); in tpool_worker() 328 tpool_job_t *job; in tpool_dispatch() local 332 if ((job = lmalloc(sizeof (*job))) == NULL) in tpool_dispatch() 336 job->tpj_arg = arg; in tpool_dispatch() 512 tpool_job_t *job; in postfork1_child_tpool() local 531 for (job = tpool->tp_head; job; job = tpool->tp_head) { in postfork1_child_tpool() [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | jobs.c | 47 struct job struct 104 struct job *jp; in pgid2job() 118 if (*job != '%') in str2job() 120 else if (*++job == 0 || *job == '+' || *job == '%' || *job == '-') { in str2job() 124 } else if (*job >= '0' && *job <= '9') { in str2job() 125 i = stoi(job); in str2job() 194 struct job *jp; in collect_fg_job() 312 struct job *jp; in collectjobs() 333 struct job *jp; in freejobs() 415 struct job *t; in restartjob() [all …]
|
/illumos-gate/usr/src/lib/print/libipp-listener/ |
H A D | Makefile.com | 30 cancel-job.o common.o create-job.o cups-accept-jobs.o \ 32 cups-move-job.o cups-reject-jobs.o disable-printer.o enable-printer.o \ 33 get-job-attributes.o get-jobs.o get-printer-attributes.o hold-job.o \ 34 ipp-listener.o pause-printer.o print-job.o purge-jobs.o release-job.o \ 35 restart-job.o resume-printer.o send-document.o set-job-attributes.o \ 36 set-printer-attributes.o validate-job.o
|
/illumos-gate/usr/src/lib/print/libpapi-ipp/common/ |
H A D | job.c | 47 papiJobFree(papi_job_t job) in papiJobFree() argument 49 job_t *tmp = (job_t *)job; in papiJobFree() 74 job_t *j = job; in papiJobGetAttributeList() 86 job_t *j = job; in papiJobGetPrinterName() 96 papiJobGetId(papi_job_t job) in papiJobGetId() argument 99 job_t *j = job; in papiJobGetId() 135 &operational, &job); in populate_job_request() 143 if (job != NULL) { in populate_job_request() 163 papiAttributeListFree(job); in populate_job_request() 202 char **files, papi_job_t *job, in internal_job_submit() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/impl/ |
H A D | fp.c | 2495 fp_fcio_login(port, job->job_private, job); in fp_job_handler() 2505 fp_fcio_logout(port, job->job_private, job); in fp_job_handler() 2534 job, (fc_portmap_t **)job->job_private, in fp_job_handler() 2802 (fc_unsol_buf_t *)job->job_private, job); in fp_job_handler() 3031 port, job); in fp_port_startup() 3834 port, job); in fp_loop_online() 3915 port, job); in fp_loop_online() 4006 port, job); in fp_fabric_login() 4034 port, job); in fp_fabric_login() 4890 port, job); in fp_plogi_group() [all …]
|
H A D | fctl.c | 626 job_request_t *job; in fc_ulp_add() local 940 job_request_t *job; in fc_ulp_getportmap() local 1004 fctl_jobwait(job); in fc_ulp_getportmap() 1146 fctl_jobwait(job); in fc_ulp_login() 1186 if (job == NULL) { in fc_ulp_get_remote_port() 1207 fctl_jobwait(job); in fc_ulp_get_remote_port() 1342 fctl_jobwait(job); in fc_ulp_port_ns() 4316 return (job); in fctl_alloc_job() 4357 job = NULL; in fctl_deque_job() 4367 return (job); in fctl_deque_job() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/papi/ |
H A D | lpsched-jobs.c | 477 lpsched_user_to_job_attributes(&job->attributes, user); in job_status_to_attributes() 478 papiAttributeListAddInteger(&job->attributes, PAPI_ATTR_REPLACE, in job_status_to_attributes() 480 papiAttributeListAddInteger(&job->attributes, PAPI_ATTR_REPLACE, in job_status_to_attributes() 488 papiAttributeListAddString(&job->attributes, PAPI_ATTR_REPLACE, in job_status_to_attributes() 492 papiAttributeListAddString(&job->attributes, PAPI_ATTR_REPLACE, in job_status_to_attributes() 494 papiAttributeListAddInteger(&job->attributes, PAPI_ATTR_REPLACE, in job_status_to_attributes() 496 papiAttributeListAddString(&job->attributes, PAPI_ATTR_REPLACE, in job_status_to_attributes() 498 papiAttributeListAddString(&job->attributes, PAPI_ATTR_REPLACE, in job_status_to_attributes() 503 lpsched_request_outcome_to_attributes(&job->attributes, state); in job_status_to_attributes() 517 papiAttributeListAddLPString(&job->attributes, PAPI_ATTR_EXCL, in job_status_to_attributes() [all …]
|
H A D | job.c | 115 papiJobFree(papi_job_t job) in papiJobFree() argument 117 job_t *tmp = (job_t *)job; in papiJobFree() 141 job_t *tmp = (job_t *)job; in papiJobGetAttributeList() 152 job_t *tmp = (job_t *)job; in papiJobGetPrinterName() 163 papiJobGetId(papi_job_t job) in papiJobGetId() argument 165 job_t *tmp = (job_t *)job; in papiJobGetId() 553 (job == NULL)) in papiJobSubmit() 672 (job == NULL)) in papiJobSubmitByReference() 798 job_ticket, files, job); in papiJobValidate() 800 int id = papiJobGetId(*job); in papiJobValidate() [all …]
|
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | lpr.c | 69 papi_job_t job = NULL; in main() local 241 NULL, &av[optind], &job); in main() 244 list, &job); in main() 247 NULL, &av[optind], &job); in main() 250 NULL, &av[optind], &job); in main() 257 papiJobFree(job); in main() 263 list = papiJobGetAttributeList(job); in main() 269 papiJobFree(job); in main()
|
H A D | lp.c | 71 papi_job_t job = NULL; in main() local 279 status = papiJobModify(svc, printer, modify, list, &job); in main() 282 list, &job); in main() 285 NULL, &av[optind], &job); in main() 288 NULL, &av[optind], &job); in main() 291 NULL, &av[optind], &job); in main() 298 papiJobFree(job); in main() 304 ((list = papiJobGetAttributeList(job)) != NULL)) { in main() 330 papiJobFree(job); in main()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | jobs.h | 134 extern struct jobs job; 152 #define job_lock() (job.in_critical++) 156 if (!--job.in_critical && (sig = job.savesig)) \ 158 if (!job.in_critical++ && !vmbusy()) \ 160 job.in_critical--; \
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | Grades | 28 # use the grade, so that only select users can use the job grade. 39 # of bytes that a job can have to 53 # jobs to this job grade. The list is to 57 # a job grade if User is the permit_type. 59 # Since the user job grade may be bound to more than one system job grade, 61 # sequentially for occurences of a user job grade. Since the names of 62 # user job grades may not be the same from system to system, we have 63 # reserved the names of three job grades so that the user may see some
|
H A D | gename.c | 34 int job; member 65 pre, SYSNSIZE, sys, grade, syslst[n].job); 68 pre, sys, syslst[n].job & 0xffff, 139 syslst[nsys].job = n; 176 return(syslst[i].job);
|
/illumos-gate/usr/src/lib/print/libipp-listener/common/ |
H A D | common.c | 69 char *job = NULL; in get_printer_id() local 81 result = papiAttributeListGetString(attributes, NULL, "job-uri", &job); in get_printer_id() 89 *printer = job; in get_printer_id() 90 if ((job = strrchr(*printer, '/')) != NULL) { in get_printer_id() 91 *job = '\0'; in get_printer_id() 92 *id = atoi(++job); in get_printer_id()
|
H A D | cups-move-job.c | 40 papi_attribute_t **operational = NULL, **job = NULL; in cups_move_job() local 56 "job-attributes-group", &job); in cups_move_job() 84 (void) papiAttributeListGetString(job, NULL, in cups_move_job()
|