/freebsd/contrib/bmake/ |
H A D | job.c | 1 /* $NetBSD: job.c,v 1.480 2024/07/07 07:50:57 rillig Exp $ */ 90 * a decent clip, since job table entries aren't 109 * job table is empty. 152 #include "job.h" 156 /* "@(#)job.c 8.2 (Berkeley) 3/19/94" */ 157 MAKE_RCSID("$NetBSD: job.c,v 1.480 2024/07/07 07:50:57 rillig Exp $"); 290 JOB_RUNNING, /* Job is running */ 291 JOB_ERROR, /* Error in starting the job */ 292 JOB_FINISHED /* The job is already finished */ 437 static Job *job_table; /* The structures that describe them */ [all …]
|
H A D | job.h | 1 /* $NetBSD: job.h,v 1.80 2024/07/07 07:50:57 rillig Exp $ */ 34 * from: @(#)job.h 8.1 (Berkeley) 6/6/93 73 * from: @(#)job.h 8.1 (Berkeley) 6/6/93 118 JOB_ST_FREE = 0, /* Job is available */ 119 JOB_ST_SET_UP = 1, /* Job is allocated but otherwise invalid */ 121 JOB_ST_RUNNING = 3, /* Job is running, pid valid */ 122 JOB_ST_FINISHED = 4 /* Job is done (ie after SIGCHILD) */ 126 * A Job manages the shell commands that are run to create a single target. 127 * Each job is run in a separate subprocess by a shell. Several jobs can run 134 * When a job is finished, Make_Update updates all parents of the node [all …]
|
H A D | meta.h | 41 struct Job; 46 void meta_job_start(struct Job *, GNode *); 47 void meta_job_child(struct Job *); 48 void meta_job_parent(struct Job *, pid_t); 49 int meta_job_fd(struct Job *) MAKE_ATTR_USE; 50 int meta_job_event(struct Job *) MAKE_ATTR_USE; 51 void meta_job_error(struct Job *, GNode *, bool, int); 52 void meta_job_output(struct Job *, char *, const char *); 54 int meta_job_finish(struct Job *);
|
/freebsd/crypto/openssl/crypto/async/ |
H A D | async.c | 82 ASYNC_JOB *job = NULL; in async_job_new() local 84 job = OPENSSL_zalloc(sizeof(*job)); in async_job_new() 85 if (job == NULL) { in async_job_new() 90 job->status = ASYNC_JOB_RUNNING; in async_job_new() 92 return job; in async_job_new() 95 static void async_job_free(ASYNC_JOB *job) in async_job_free() argument 97 if (job != NULL) { in async_job_free() 98 OPENSSL_free(job->funcargs); in async_job_free() 99 async_fibre_free(&job->fibrectx); in async_job_free() 100 OPENSSL_free(job); in async_job_free() [all …]
|
/freebsd/sys/kern/ |
H A D | vfs_aio.c | 269 TAILQ_HEAD(,kaiocb) kaio_jobqueue; /* (a) job queue for process */ 300 static TAILQ_HEAD(,kaiocb) aio_jobs; /* (c) Async job list */ 306 static int aio_free_entry(struct kaiocb *job); 307 static void aio_process_rw(struct kaiocb *job); 308 static void aio_process_sync(struct kaiocb *job); 309 static void aio_process_mlock(struct kaiocb *job); 314 static int aio_queue_file(struct file *fp, struct kaiocb *job); 319 static int aio_qbio(struct proc *p, struct kaiocb *job); 321 static void aio_bio_done_notify(struct proc *userp, struct kaiocb *job); 322 static bool aio_clear_cancel_function_locked(struct kaiocb *job); [all …]
|
H A D | sys_socket.c | 97 static void soo_aio_cancel(struct kaiocb *job); 438 * completed by the AIO job so far. 599 soaio_process_job(struct socket *so, sb_which which, struct kaiocb *job) in soaio_process_job() argument 605 struct file *fp = job->fd_file; in soaio_process_job() 612 aio_switch_vmspace(job); in soaio_process_job() 616 td->td_ucred = job->cred; in soaio_process_job() 618 job_total_nbytes = job->uiop->uio_resid + job->aio_done; in soaio_process_job() 619 done = job->aio_done; in soaio_process_job() 620 cnt = job->uiop->uio_resid; in soaio_process_job() 621 job->uiop->uio_offset = 0; in soaio_process_job() [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | ASYNC_start_job.pod | 8 - asynchronous job management functions 17 int ASYNC_start_job(ASYNC_JOB **job, ASYNC_WAIT_CTX *ctx, int *ret, 22 ASYNC_WAIT_CTX *ASYNC_get_wait_ctx(ASYNC_JOB *job); 33 subsequent event indicates that the job can be resumed. 38 the pool, used, and then returned to the pool when the job completes. If the 57 An asynchronous job is started by calling the ASYNC_start_job() function. 58 Initially I<*job> should be NULL. I<ctx> should point to an B<ASYNC_WAIT_CTX> 61 be stored on completion of the job. I<func> represents the function that should 63 will be copied and then passed as an argument to I<func> when the job starts. 70 An error occurred trying to start the job. Check the OpenSSL error queue (e.g. [all …]
|
/freebsd/secure/lib/libcrypto/man/man3/ |
H A D | ASYNC_start_job.3 | 143 \&\- asynchronous job management functions 152 \& int ASYNC_start_job(ASYNC_JOB **job, ASYNC_WAIT_CTX *ctx, int *ret, 157 \& ASYNC_WAIT_CTX *ASYNC_get_wait_ctx(ASYNC_JOB *job); 168 subsequent event indicates that the job can be resumed. 173 the pool, used, and then returned to the pool when the job completes. If the 192 An asynchronous job is started by calling the \fBASYNC_start_job()\fR function. 193 Initially \fI*job\fR should be \s-1NULL.\s0 \fIctx\fR should point to an \fB\s-1ASYNC_WAIT_CTX\s0\fR 196 be stored on completion of the job. \fIfunc\fR represents the function that should 198 will be copied and then passed as an argument to \fIfunc\fR when the job starts. 202 An error occurred trying to start the job. Check the OpenSSL error queue (e.g. [all …]
|
/freebsd/bin/sh/ |
H A D | jobs.c | 72 * A job structure contains information about a job. A job is either a 90 struct job { struct 94 pid_t pgrp; /* process group of this job */ argument 95 char state; /* true if job is finished */ argument 102 char jobctl; /* job running under job control */ argument 103 struct job *next; /* job used after this one */ argument 108 static struct job *jobtab; /* array of jobs */ 111 static struct job *bgjob = NULL; /* last background process */ 113 static struct job *jobmru; /* most recently used job list */ 124 static void restartjob(struct job *); [all …]
|
/freebsd/usr.sbin/yppush/ |
H A D | yppush_main.c | 71 /* Structure for holding information about a running job. */ 107 * Report state of a job. 112 struct jobs *job; in yppush_show_status() local 114 job = yppush_joblist; in yppush_show_status() 116 while (job != NULL) { in yppush_show_status() 117 if (job->tid == tid) in yppush_show_status() 119 job = job->next; in yppush_show_status() 122 if (job == NULL) { in yppush_show_status() 128 if (job->polled) { in yppush_show_status() 136 job->tid); in yppush_show_status() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerFork.cpp | 137 auto Job = new FuzzJob; in CreateNewJob() local 164 Job->DftTimeInSeconds = static_cast<int>(DftTimeInSeconds); in CreateNewJob() 167 Job->SeedListPath = in CreateNewJob() 169 WriteToFile(Seeds, Job->SeedListPath); in CreateNewJob() 170 Cmd.addFlag("seed_inputs", "@" + Job->SeedListPath); in CreateNewJob() 172 Job->LogPath = DirPlusFile(TempDir, std::to_string(JobId) + ".log"); in CreateNewJob() 173 Job->CorpusDir = DirPlusFile(TempDir, "C" + std::to_string(JobId)); in CreateNewJob() 174 Job->FeaturesDir = DirPlusFile(TempDir, "F" + std::to_string(JobId)); in CreateNewJob() 175 Job->CFPath = DirPlusFile(TempDir, std::to_string(JobId) + ".merge"); in CreateNewJob() 176 Job->JobId = JobId; in CreateNewJob() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/powerpc/fsl/ |
H A D | raideng.txt | 30 There must be a sub-node for each job queue present in RAID Engine 33 - compatible: Should contain "fsl,raideng-v1.0-job-queue" as the value 34 This identifies the job queue interface 35 - reg: offset and length of the register set for job queue 42 compatible = "fsl,raideng-v1.0-job-queue"; 48 There must be a sub-node for each job ring present in RAID Engine 49 This node must be a sub-node of job queue node 51 - compatible: Must contain "fsl,raideng-v1.0-job-ring" as the value 52 This identifies job ring. Should contain either 55 - reg: offset and length of the register set for job rin [all...] |
/freebsd/share/doc/usd/04.csh/ |
H A D | csh.2 | 582 .I job 585 Usually, every line typed to the shell creates a job. 594 at the end of the commands, then the job is started as a 597 immediately prompts and is ready for another command. The job runs 619 telling you that the job has completed. 633 How do you know when a background job is finished? 640 If the job did not terminate normally the `Done' message might say 656 of all commands in the job as well as the working directory where the job was 658 Each job in the table is either running 664 Only one job can be running in the foreground at one time, but several [all …]
|
/freebsd/usr.bin/at/ |
H A D | at.man | 26 .Fl c Ar job Op Ar job ... 28 .Fl l Op Ar job ... 33 .Fl r Ar job Op Ar job ... 40 .Ar job 41 .Op Ar job ... 81 to run a job at a specific time of day. 94 The day on which the job is to be run may also be specified 122 may be told to run the job today by suffixing the time with 124 and to run the job tomorrow by suffixing the time with 239 If a job is submitted to a queue designated with an uppercase letter, it [all …]
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstdmt_compress.c | 572 /* A future job may error and skip our job */ in ZSTDMT_serialState_update() 617 DEBUGLOG(5, "Skipping past job %u because of error", jobID); in ZSTDMT_serialState_ensureFinished() 660 ZSTD_PTHREAD_MUTEX_LOCK(&job->job_mutex); \ 661 job->cSize = e; \ 662 ZSTD_pthread_mutex_unlock(&job->job_mutex); \ 669 ZSTDMT_jobDescription* const job = (ZSTDMT_jobDescription*)jobDescription; in ZSTDMT_compressionJob() local 670 …ZSTD_CCtx_params jobParams = job->params; /* do not modify job->params ! copy it, modify the cop… in ZSTDMT_compressionJob() 671 ZSTD_CCtx* const cctx = ZSTDMT_getCCtx(job->cctxPool); in ZSTDMT_compressionJob() 672 rawSeqStore_t rawSeqStore = ZSTDMT_getSeq(job->seqPool); in ZSTDMT_compressionJob() 673 buffer_t dstBuff = job->dstBuff; in ZSTDMT_compressionJob() [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | asynctest.c | 82 ASYNC_JOB *job; in waitfd() local 84 job = ASYNC_get_current_job(); in waitfd() 85 if (job == NULL) in waitfd() 87 waitctx = ASYNC_get_wait_ctx(job); in waitfd() 198 ASYNC_JOB *job = NULL; in test_ASYNC_start_job() local 206 || ASYNC_start_job(&job, waitctx, &funcret, add_two, NULL, 0) in test_ASYNC_start_job() 209 || ASYNC_start_job(&job, waitctx, &funcret, add_two, NULL, 0) in test_ASYNC_start_job() 226 ASYNC_JOB *job = NULL; in test_ASYNC_get_current_job() local 234 || ASYNC_start_job(&job, waitctx, &funcret, save_current, NULL, 0) in test_ASYNC_get_current_job() 236 || currjob != job in test_ASYNC_get_current_job() [all …]
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | job-output-long-lines.mk | 1 # $NetBSD: job-output-long-lines.mk,v 1.4 2020/11/01 17:29:13 rillig Exp $ 10 # As of 2020-09-27, the default job buffer size is 1024. When a job produces 12 # not terminated by a newline. Because of this missing newline, the job 13 # markers "--- job-a ---" and "--- job-b ---" are not always written at the 22 all: job-a job-b 24 job-a: 29 job-b:
|
/freebsd/usr.sbin/lpr/lprm/ |
H A D | lprm.1 | 38 .Op job # ...\& 43 utility will remove a job, or jobs, from a printer's spool queue. 46 is normally the only method by which a user may remove a job. 47 The owner of a job is determined by the user's login name 75 .It Ar job\ \&# 76 A user may dequeue an individual job by specifying its job number. 83 1st:ken [job #013ucbarpa] 91 will delete the currently active job if it is 128 daemon and the job number of the currently active job. 144 the currently active job may be incorrectly identified.
|
/freebsd/sys/dev/cxgbe/tom/ |
H A D | t4_ddp.c | 76 * received by the AIO job so far. 82 static void t4_aio_cancel_active(struct kaiocb *job); 83 static void t4_aio_cancel_queued(struct kaiocb *job); 164 ddp_complete_one(struct kaiocb *job, int error) in ddp_complete_one() argument 169 * If this job had copied data out of the socket buffer before in ddp_complete_one() 173 copied = job->aio_received; in ddp_complete_one() 175 aio_complete(job, copied, 0); in ddp_complete_one() 177 aio_complete(job, -1, error); in ddp_complete_one() 275 if (db->job) { in free_ddp_buffer() 282 if (!aio_clear_cancel_function(db->job)) in free_ddp_buffer() 467 struct kaiocb *job; insert_ddp_data() local 679 struct kaiocb *job; handle_ddp_data_aio() local 1054 struct kaiocb *job; do_ddp_tcb_rpl() local 1126 struct kaiocb *job; handle_ddp_close() local 2197 hold_aio(struct toepcb * toep,struct kaiocb * job,struct pageset ** pps) hold_aio() argument 2302 struct kaiocb *job; ddp_complete_all() local 2316 aio_ddp_cancel_one(struct kaiocb * job) aio_ddp_cancel_one() argument 2338 aio_ddp_requeue_one(struct toepcb * toep,struct kaiocb * job) aio_ddp_requeue_one() argument 2357 struct kaiocb *job; aio_ddp_requeue() local 2764 t4_aio_cancel_active(struct kaiocb * job) t4_aio_cancel_active() argument 2805 t4_aio_cancel_queued(struct kaiocb * job) t4_aio_cancel_queued() argument 2825 t4_aio_queue_ddp(struct socket * so,struct kaiocb * job) t4_aio_queue_ddp() argument [all...] |
/freebsd/sys/contrib/device-tree/Bindings/crypto/ |
H A D | fsl-sec6.txt | 5 -Job Ring Node 72 Job Ring (JR) Node 84 Definition: Must include "fsl,sec-v6.0-job-ring". 103 compatible = "fsl,sec-v6.0-job-ring"; 123 compatible = "fsl,sec-v6.0-job-ring", 124 "fsl,sec-v5.2-job-ring", 125 "fsl,sec-v5.0-job-ring", 126 "fsl,sec-v4.4-job-ring", 127 "fsl,sec-v4.0-job-ring"; 132 compatible = "fsl,sec-v6.0-job-ring", [all …]
|
/freebsd/sys/contrib/device-tree/src/powerpc/fsl/ |
H A D | qoriq-sec6.0-0.dtsi | 42 compatible = "fsl,sec-v6.0-job-ring", 43 "fsl,sec-v5.2-job-ring", 44 "fsl,sec-v5.0-job-ring", 45 "fsl,sec-v4.4-job-ring", 46 "fsl,sec-v4.0-job-ring"; 51 compatible = "fsl,sec-v6.0-job-ring", 52 "fsl,sec-v5.2-job-ring", 53 "fsl,sec-v5.0-job-ring", 54 "fsl,sec-v4.4-job-ring", 55 "fsl,sec-v4.0-job-ring";
|
H A D | qoriq-sec5.2-0.dtsi | 45 compatible = "fsl,sec-v5.2-job-ring", 46 "fsl,sec-v5.0-job-ring", 47 "fsl,sec-v4.0-job-ring"; 53 compatible = "fsl,sec-v5.2-job-ring", 54 "fsl,sec-v5.0-job-ring", 55 "fsl,sec-v4.0-job-ring"; 61 compatible = "fsl,sec-v5.2-job-ring", 62 "fsl,sec-v5.0-job-ring", 63 "fsl,sec-v4.0-job-ring"; 69 compatible = "fsl,sec-v5.2-job-ring", [all …]
|
H A D | qoriq-sec5.3-0.dtsi | 45 compatible = "fsl,sec-v5.3-job-ring", 46 "fsl,sec-v5.0-job-ring", 47 "fsl,sec-v4.0-job-ring"; 53 compatible = "fsl,sec-v5.3-job-ring", 54 "fsl,sec-v5.0-job-ring", 55 "fsl,sec-v4.0-job-ring"; 61 compatible = "fsl,sec-v5.3-job-ring", 62 "fsl,sec-v5.0-job-ring", 63 "fsl,sec-v4.0-job-ring"; 69 compatible = "fsl,sec-v5.3-job-ring", [all …]
|
/freebsd/contrib/tcsh/ |
H A D | sh.proc.h | 48 struct process *p_friends; /* next in job list (or self) */ 49 struct directory *p_cwd; /* cwd of the job (only in head) */ 50 unsigned long p_flags; /* various job status flags */ 52 int p_index; /* shorthand job index */ 55 pid_t p_jobid; /* pid of job leader */ 56 /* if a job is stopped/background p_jobid gives its pgrp */ 93 #define PTIME (1<<6) /* job times should be printed */ 100 #define PINTERRUPTED (1<<13) /* job stopped via interrupt signal */ 114 #define JOBDIR 0x040 /* print job's dir if not the same */ 122 EXTERN struct process *pcurrjob IZERO; /* current job */ [all …]
|
/freebsd/sys/contrib/openzfs/lib/libtpool/ |
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() 62 tpool->tp_head = job->tpj_next; in delete_pool() 63 free(job); in delete_pool() 100 * Called by a worker thread on return from a tpool_dispatch()d job. 128 tpool_job_t *job; in tpool_worker() local 178 if ((job = tpool->tp_head) != NULL && in tpool_worker() 181 func = job->tpj_func; in tpool_worker() 182 arg = job->tpj_arg; in tpool_worker() 183 tpool->tp_head = job->tpj_next; in tpool_worker() [all …]
|