| /freebsd-12-stable/usr.bin/rpcgen/ |
| D | rpc_clntout.c | 82 proc_list *proc; in write_program() local 85 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_program() 88 ptype(proc->res_prefix, proc->res_type, 1); in write_program() 90 pvname(proc->proc_name, vp->vers_num); in write_program() 91 printarglist(proc, RESULT, "clnt", "CLIENT *"); in write_program() 94 pvname(proc->proc_name, vp->vers_num); in write_program() 95 printarglist(proc, RESULT, "clnt", "CLIENT *"); in write_program() 99 printbody(proc); in write_program() 115 printarglist(proc_list *proc, const char *result, const char *addargname, in printarglist() argument 124 ptype(proc->args.decls->decl.prefix, in printarglist() [all …]
|
| D | rpc_sample.c | 83 proc_list *proc; in write_sample_client() local 93 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_sample_client() 97 ptype(proc->res_prefix, proc->res_type, 1); in write_sample_client() 100 ptype(proc->res_prefix, proc->res_type, 1); in write_sample_client() 104 if(proc->arg_num < 2 && !newstyle) { in write_sample_client() 106 if(!streq(proc->args.decls->decl.type, "void")) in write_sample_client() 107 ptype(proc->args.decls->decl.prefix, in write_sample_client() 108 proc->args.decls->decl.type, 1); in write_sample_client() 112 pvname(proc->proc_name, vp->vers_num); in write_sample_client() 114 } else if (!streq(proc->args.decls->decl.type, "void")) { in write_sample_client() [all …]
|
| D | rpc_svcout.c | 336 proc_list *proc; in write_real_program() local 341 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_real_program() 344 internal_proctype(proc); in write_real_program() 348 pvname(proc->proc_name, vp->vers_num); in write_real_program() 351 if (proc->arg_num > 1) in write_real_program() 352 fputs(proc->args.argname, fout); in write_real_program() 354 ptype(proc->args.decls->decl.prefix, in write_real_program() 355 proc->args.decls->decl.type, 0); in write_real_program() 368 pvname_svc(proc->proc_name, vp->vers_num); in write_real_program() 370 if (proc->arg_num < 2) { /* single argument */ in write_real_program() [all …]
|
| D | rpc_tblout.c | 89 proc_list *proc; in write_table() local 108 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_table() 109 current = atoi(proc->proc_num); in write_table() 124 pvname_svc(proc->proc_name, vp->vers_num); in write_table() 128 pvname(proc->proc_name, vp->vers_num); in write_table() 133 if( proc->arg_num > 1 ) in write_table() 134 printit((char*) NULL, proc->args.argname ); in write_table() 137 printit( proc->args.decls->decl.prefix, in write_table() 138 proc->args.decls->decl.type ); in write_table() 140 printit(proc->res_prefix, proc->res_type); in write_table()
|
| D | rpc_hout.c | 250 proc_list *proc; in define_printed() local 253 for (proc = vers->procs; proc != NULL; proc = proc->next) { in define_printed() 254 if (proc == stop) { in define_printed() 256 } else if (streq(proc->proc_name, stop->proc_name)) { in define_printed() 286 proc_list *proc; in pprogramdef() local 309 for (proc = vers->procs; proc != NULL; proc = proc->next) { in pprogramdef() 310 if (!define_printed(proc, def->def.pr.versions)) { in pprogramdef() 311 puldefine(proc->proc_name, proc->proc_num); in pprogramdef() 314 pprocdef(proc, vers, "CLIENT *", 0); in pprogramdef() 316 pprocdef(proc, vers, "struct svc_req *", 1); in pprogramdef() [all …]
|
| /freebsd-12-stable/cddl/usr.sbin/dwatch/libexec/ |
| D | proc | 7 # $FreeBSD: stable/12/cddl/usr.sbin/dwatch/libexec/proc 333517 2018-05-12 06:01:41Z dteske $ 16 proc) 18 proc:::create, \ 19 proc:::exec, \ 20 proc:::exec-failure, \ 21 proc:::exec-success, \ 22 proc:::exit, \ 23 proc:::signal-clear, \ 24 proc:::signal-discard, \ 25 proc:::signal-send )} [all …]
|
| D | Makefile | 11 proc \ 31 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-create 32 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-exec 33 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-exec-failure 34 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-exec-success 35 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-exit 36 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-signal 37 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-signal-clear 38 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-signal-discard 39 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-signal-send [all …]
|
| /freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| D | tsan_rtl_proc.cpp | 23 Processor *proc = new(mem) Processor; in ProcCreate() local 24 proc->thr = nullptr; in ProcCreate() 26 AllocatorProcStart(proc); in ProcCreate() 29 proc->dd_pt = ctx->dd->CreatePhysicalThread(); in ProcCreate() 30 return proc; in ProcCreate() 33 void ProcDestroy(Processor *proc) { in ProcDestroy() argument 34 CHECK_EQ(proc->thr, nullptr); in ProcDestroy() 36 AllocatorProcFinish(proc); in ProcDestroy() 38 ctx->clock_alloc.FlushCache(&proc->clock_cache); in ProcDestroy() 39 ctx->metamap.OnProcIdle(proc); in ProcDestroy() [all …]
|
| D | tsan_sync.cpp | 35 void SyncVar::Reset(Processor *proc) { in Reset() argument 43 if (proc == 0) { in Reset() 47 clock.Reset(&proc->clock_cache); in Reset() 48 read_clock.Reset(&proc->clock_cache); in Reset() 59 u32 idx = block_alloc_.Alloc(&thr->proc()->block_cache); in AllocBlock() 70 uptr MetaMap::FreeBlock(Processor *proc, uptr p) { in FreeBlock() argument 75 FreeRange(proc, p, sz); in FreeBlock() 79 bool MetaMap::FreeRange(Processor *proc, uptr p, uptr sz) { in FreeRange() argument 95 block_alloc_.Free(&proc->block_cache, idx & ~kFlagMask); in FreeRange() 101 s->Reset(proc); in FreeRange() [all …]
|
| D | tsan_mman.cpp | 71 Processor *proc; member 73 GlobalProc() : mtx(MutexTypeGlobalProc), proc(ProcCreate()) {} in GlobalProc() 84 if (thr->proc()) in ScopedGlobalProcessor() 101 ProcWire(gp->proc, thr); in ScopedGlobalProcessor() 107 if (thr->proc() != gp->proc) in ~ScopedGlobalProcessor() 109 ProcUnwire(gp->proc, thr); in ~ScopedGlobalProcessor() 129 void AllocatorProcStart(Processor *proc) { in AllocatorProcStart() argument 130 allocator()->InitCache(&proc->alloc_cache); in AllocatorProcStart() 131 internal_allocator()->InitCache(&proc->internal_alloc_cache); in AllocatorProcStart() 134 void AllocatorProcFinish(Processor *proc) { in AllocatorProcFinish() argument [all …]
|
| /freebsd-12-stable/contrib/gdb/gdb/ |
| D | gnu-nat.c | 100 struct proc *inf_tid_to_proc (struct inf *inf, int tid); 102 struct proc *run_thread, 107 void inf_set_step_thread (struct inf *inf, struct proc *proc); 117 void proc_abort (struct proc *proc, int force); 118 struct proc *make_proc (struct inf *inf, mach_port_t port, int tid); 119 struct proc *_proc_free (struct proc *proc); 120 int proc_update_sc (struct proc *proc); 121 error_t proc_get_exception_port (struct proc *proc, mach_port_t * port); 122 error_t proc_set_exception_port (struct proc *proc, mach_port_t port); 123 static mach_port_t _proc_get_exc_port (struct proc *proc); [all …]
|
| D | gnu-nat.h | 32 struct proc *inf_tid_to_thread (struct inf *inf, int tid); 39 struct proc struct 70 struct proc *next; argument 76 #define proc_is_task(proc) ((proc)->tid == PROC_TID_TASK) argument 77 #define proc_is_thread(proc) ((proc)->tid != PROC_TID_TASK) argument 79 extern int __proc_pid (struct proc *proc); 85 extern thread_state_t proc_get_state (struct proc *proc, int will_modify); 88 extern char *proc_string (struct proc *proc); 91 do { struct proc *__proc = (_proc); \
|
| D | alpha-mdebug-tdep.c | 80 #define PROC_LOW_ADDR(proc) ((proc)->pdr.adr) argument 81 #define PROC_FRAME_OFFSET(proc) ((proc)->pdr.frameoffset) argument 82 #define PROC_FRAME_REG(proc) ((proc)->pdr.framereg) argument 83 #define PROC_REG_MASK(proc) ((proc)->pdr.regmask) argument 84 #define PROC_FREG_MASK(proc) ((proc)->pdr.fregmask) argument 85 #define PROC_REG_OFFSET(proc) ((proc)->pdr.regoffset) argument 86 #define PROC_FREG_OFFSET(proc) ((proc)->pdr.fregoffset) argument 87 #define PROC_PC_REG(proc) ((proc)->pdr.pcreg) argument 88 #define PROC_LOCALOFF(proc) ((proc)->pdr.localoff) argument
|
| /freebsd-12-stable/sys/fs/pseudofs/ |
| D | pseudofs_vnops.c | 91 pfs_visible_proc(struct thread *td, struct pfs_node *pn, struct proc *proc) in pfs_visible_proc() argument 95 if (proc == NULL) in pfs_visible_proc() 98 PROC_LOCK_ASSERT(proc, MA_OWNED); in pfs_visible_proc() 100 visible = ((proc->p_flag & P_WEXIT) == 0); in pfs_visible_proc() 102 visible = (p_cansee(td, proc) == 0); in pfs_visible_proc() 104 visible = pn_vis(td, proc, pn); in pfs_visible_proc() 112 bool allproc_locked, struct proc **p) in pfs_visible() 114 struct proc *proc; in pfs_visible() local 123 proc = allproc_locked ? pfind_locked(pid) : pfind(pid); in pfs_visible() 124 if (proc == NULL) in pfs_visible() [all …]
|
| /freebsd-12-stable/sys/sys/ |
| D | racct.h | 48 struct proc; 176 int racct_add(struct proc *p, int resource, uint64_t amount); 178 void racct_add_force(struct proc *p, int resource, uint64_t amount); 179 void racct_add_buf(struct proc *p, const struct buf *bufp, int is_write); 180 int racct_set(struct proc *p, int resource, uint64_t amount); 181 void racct_set_force(struct proc *p, int resource, uint64_t amount); 182 void racct_sub(struct proc *p, int resource, uint64_t amount); 184 uint64_t racct_get_limit(struct proc *p, int resource); 185 uint64_t racct_get_available(struct proc *p, int resource); 190 int racct_proc_fork(struct proc *parent, struct proc *child); [all …]
|
| D | proc.h | 87 struct proc *s_leader; /* (m + e) Session leader. */ 107 LIST_HEAD(, proc) pg_members; /* (m + e) Pointer to pgrp members. */ 186 struct proc; 228 struct proc *td_proc; /* (*) Associated process. */ 362 struct proc *td_rfppwait_p; /* (k) The vforked child */ 572 struct proc { struct 573 LIST_ENTRY(proc) p_list; /* (d) List of all processes. */ 592 LIST_ENTRY(proc) p_hash; /* (d) Hash chain. */ argument 593 LIST_ENTRY(proc) p_pglist; /* (g + e) List of processes in pgrp. */ 594 struct proc *p_pptr; /* (c + e) Pointer to parent process. */ argument [all …]
|
| D | resourcevar.h | 112 struct proc; 118 void calccru(struct proc *p, struct timeval *up, struct timeval *sp); 119 void calcru(struct proc *p, struct timeval *up, struct timeval *sp); 126 int kern_proc_setrlimit(struct thread *td, struct proc *p, u_int which, 132 rlim_t lim_cur_proc(struct proc *p, int which); 133 void lim_fork(struct proc *p1, struct proc *p2); 138 rlim_t lim_max_proc(struct proc *p, int which); 140 void lim_rlimit_proc(struct proc *p, int which, struct rlimit *rlp); 144 void rufetch(struct proc *p, struct rusage *ru); 145 void rufetchcalc(struct proc *p, struct rusage *ru, struct timeval *up, [all …]
|
| D | kthread.h | 44 struct proc **global_procpp; /* ptr to proc ptr save area */ 54 int kproc_create(void (*)(void *), void *, struct proc **, 57 int kproc_resume(struct proc *); 60 int kproc_suspend(struct proc *, int); 61 void kproc_suspend_check(struct proc *); 65 struct proc **, 71 struct proc *, struct thread **,
|
| /freebsd-12-stable/contrib/apr/misc/unix/ |
| D | otherchild.c | 55 APR_DECLARE(void) apr_proc_other_child_register(apr_proc_t *proc, in apr_proc_other_child_register() argument 63 ocr->proc = proc; in apr_proc_other_child_register() 103 APR_DECLARE(apr_status_t) apr_proc_other_child_alert(apr_proc_t *proc, in apr_proc_other_child_alert() argument 111 if (ocr->proc->pid != proc->pid) in apr_proc_other_child_alert() 114 ocr->proc = NULL; in apr_proc_other_child_alert() 130 if (ocr->proc == NULL) in apr_proc_other_child_refresh() 133 if (!ocr->proc->hproc) { in apr_proc_other_child_refresh() 137 ocr->proc = NULL; in apr_proc_other_child_refresh() 140 else if (!GetExitCodeProcess(ocr->proc->hproc, &status)) { in apr_proc_other_child_refresh() 141 CloseHandle(ocr->proc->hproc); in apr_proc_other_child_refresh() [all …]
|
| /freebsd-12-stable/lib/libkvm/ |
| D | kvm_proc.c | 113 kvm_proclist(kvm_t *kd, int what, int arg, struct proc *p, in kvm_proclist() 130 struct proc proc; in kvm_proclist() local 131 struct proc pproc; in kvm_proclist() 144 for (; cnt < maxcnt && p != NULL; p = LIST_NEXT(&proc, p_list)) { in kvm_proclist() 146 if (KREAD(kd, (u_long)p, &proc)) { in kvm_proclist() 150 if (proc.p_state == PRS_NEW) in kvm_proclist() 152 if (KREAD(kd, (u_long)proc.p_ucred, &ucred) == 0) { in kvm_proclist() 185 if (proc.p_pid != (pid_t)arg) in kvm_proclist() 219 kp->ki_args = proc.p_args; in kvm_proclist() 220 kp->ki_numthreads = proc.p_numthreads; in kvm_proclist() [all …]
|
| /freebsd-12-stable/contrib/apr-util/dbd/unsupported/ |
| D | apr_dbd_freetds.c | 68 DBPROCESS *proc; member 80 DBPROCESS *proc; member 103 static RETCODE freetds_exec(DBPROCESS *proc, const char *query, in freetds_exec() argument 107 RETCODE rv = dbcmd(proc, query); in freetds_exec() 111 rv = dbsqlexec(proc); in freetds_exec() 116 while (dbresults(proc) != NO_MORE_RESULTS) { in freetds_exec() 148 sql->err = freetds_exec(sql->proc, query, 1, NULL); in dbd_freetds_select() 156 sql->err = dbresults(sql->proc); in dbd_freetds_select() 168 res->proc = sql->proc; in dbd_freetds_select() 171 res->ntuples = dblastrow(sql->proc); in dbd_freetds_select() [all …]
|
| /freebsd-12-stable/usr.sbin/rtprio/ |
| D | rtprio.c | 59 pid_t proc = 0; in main() local 72 proc = parseint(argv[1], "pid"); in main() 73 proc = abs(proc); in main() 76 if (rtprio(RTP_LOOKUP, proc, &rtp) != 0) in main() 112 proc = parseint(argv[2], "pid"); in main() 113 proc = abs(proc); in main() 116 if (rtprio(RTP_SET, proc, &rtp) != 0) in main() 119 if (proc == 0) { in main()
|
| /freebsd-12-stable/tools/debugscripts/ |
| D | gdbinit.i386 | 236 set $proc = allproc.lh_first 238 set $pptr = $proc.p_pptr 239 if ($proc->p_pid == $arg0) 240 set $pcba = $proc->p_threads.tqh_first->td_pcb 245 set $aproc = $proc.p_list.le_next 249 set $proc = $aproc 280 set $proc = allproc.lh_first 282 if ($proc->p_pid == $arg0) 283 btr $proc->p_threads.tqh_first->td_pcb->pcb_ebp 286 set $aproc = $proc.p_list.le_next [all …]
|
| D | gdbinit.kernel | 201 set $proc = allproc.lh_first 202 printf " pid proc uid ppid pgrp flag stat comm wchan\n" 204 set $pptr = $proc.p_pptr 206 set $pptr = $proc 208 if ($proc.p_state) 209 set $thread = $proc->p_threads.tqh_first 212 $proc.p_pid, $aproc, \ 213 $proc.p_ucred->cr_ruid, $pptr->p_pid, \ 214 $proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_state, \ 215 &$proc.p_comm[0] [all …]
|
| /freebsd-12-stable/sys/cddl/compat/opensolaris/sys/ |
| D | proc.h | 34 #include_next <sys/proc.h> 62 typedef struct proc proc_t; 64 extern struct proc *system_proc; 67 do_thread_create(caddr_t stk, size_t stksize, void (*proc)(void *), void *arg, in do_thread_create() 86 error = kproc_kthread_add(proc, arg, ppp, &td, RFSTOPPED, in do_thread_create() 87 stksize / PAGE_SIZE, "zfskern", "solthread %p", proc); in do_thread_create() 97 #define thread_create(stk, stksize, proc, arg, len, pp, state, pri) \ argument 98 do_thread_create(stk, stksize, proc, arg, len, pp, state, pri)
|