Home
last modified time | relevance | path

Searched refs:kp (Results 1 – 25 of 82) sorted by relevance

1234

/openbsd/src/bin/ps/
Dprint.c99 print_comm_name(const struct kinfo_proc *kp, int left, int trail) in print_comm_name() argument
101 left -= mbswprint(kp->p_comm, left, trail); in print_comm_name()
102 if (left > 1 && kp->p_name[0] != '\0') { in print_comm_name()
105 left -= mbswprint(kp->p_name, left, trail); in print_comm_name()
113 const struct kinfo_proc *kp = pi->ki; in command() local
137 char **envp = kvm_getenvv(kd, kp, termwidth); in command()
160 argv = kvm_getargv(kd, kp, termwidth); in command()
176 kp->p_name[0] != '\0' || in command()
177 strcmp(cmdpart(argv[0]), kp->p_comm)) { in command()
185 left = print_comm_name(kp, left, 0); in command()
[all …]
/openbsd/src/regress/lib/libtls/keypair/
Dkeypairtest.c90 struct tls_keypair *kp; in do_keypair_tests() local
98 if ((kp = tls_keypair_new()) == NULL) { in do_keypair_tests()
103 if (tls_keypair_set_cert_file(kp, &err, cert_file) == -1) { in do_keypair_tests()
108 if (tls_keypair_set_key_file(kp, &err, key_file) == -1) { in do_keypair_tests()
112 if (tls_keypair_set_ocsp_staple_file(kp, &err, ocsp_staple_file) == -1) { in do_keypair_tests()
118 if (compare_mem("certificate", cert, cert_len, kp->cert_mem, in do_keypair_tests()
119 kp->cert_len) == -1) in do_keypair_tests()
121 if (compare_mem("key", key, key_len, kp->key_mem, kp->cert_len) == -1) in do_keypair_tests()
124 kp->ocsp_staple, kp->ocsp_staple_len) == -1) in do_keypair_tests()
126 if (strcmp(kp->pubkey_hash, PUBKEY_HASH) != 0) { in do_keypair_tests()
[all …]
/openbsd/src/sys/sys/
Dsysctl.h591 #define FILL_KPROC(kp, copy_str, p, pr, uc, pg, paddr, \ argument
594 memset((kp), 0, sizeof(*(kp))); \
597 (kp)->p_paddr = PTRTOINT64(paddr); \
598 (kp)->p_fd = PTRTOINT64((pr)->ps_fd); \
599 (kp)->p_limit = PTRTOINT64((pr)->ps_limit); \
600 (kp)->p_vmspace = PTRTOINT64((pr)->ps_vmspace); \
601 (kp)->p_sigacts = PTRTOINT64((pr)->ps_sigacts); \
602 (kp)->p_sess = PTRTOINT64((pg)->pg_session); \
603 (kp)->p_ru = PTRTOINT64((pr)->ps_ru); \
605 (kp)->p_stats = 0; \
[all …]
/openbsd/src/usr.bin/pkill/
Dpkill.c114 getargv(struct kinfo_proc *kp) in getargv() argument
120 if ((pargv = kvm_getargv(kd, kp, 0)) == NULL) { in getargv()
121 strlcpy(buf, kp->p_comm, sizeof(buf)); in getargv()
146 struct kinfo_proc *kp; in main() local
299 for (i = 0, kp = plist; i < nproc; i++, kp++) { in main()
300 if (kp->p_pid == mypid) in main()
304 mstr = getargv(kp); in main()
306 mstr = kp->p_comm; in main()
325 for (i = 0, kp = plist; i < nproc; i++, kp++) { in main()
326 if (kp->p_pid == mypid) in main()
[all …]
/openbsd/src/sys/dev/wscons/
Dwskbdutil.c281 fillmapentry(const keysym_t *kp, int len, struct wscons_keymap *mapentry) in fillmapentry() argument
292 mapentry->group1[0] = kp[0]; in fillmapentry()
293 mapentry->group1[1] = ksym_upcase(kp[0]); in fillmapentry()
299 mapentry->group1[0] = kp[0]; in fillmapentry()
300 mapentry->group1[1] = kp[1]; in fillmapentry()
306 mapentry->group1[0] = kp[0]; in fillmapentry()
307 mapentry->group1[1] = kp[1]; in fillmapentry()
308 mapentry->group2[0] = kp[2]; in fillmapentry()
309 mapentry->group2[1] = ksym_upcase(kp[2]); in fillmapentry()
313 mapentry->group1[0] = kp[0]; in fillmapentry()
[all …]
/openbsd/src/lib/libkvm/
Dkvm_proc2.c116 struct kinfo_proc kp; in kvm_proclist() local
296 FILL_KPROC(&kp, do_copy_str, &proc, &process, in kvm_proclist()
301 kp.p_ppid = parent_pid; in kvm_proclist()
302 kp.p_sid = leader_pid; in kvm_proclist()
304 kp.p_tdev = tty.t_dev; in kvm_proclist()
313 kp.p_tpgid = tty.t_pgrp ? pgrp.pg_id : -1; in kvm_proclist()
314 kp.p_tsess = PTRTOINT64(tty.t_session); in kvm_proclist()
316 kp.p_tpgid = -1; in kvm_proclist()
317 kp.p_tdev = NODEV; in kvm_proclist()
322 monostart.tv_sec = kp.p_ustart_sec; in kvm_proclist()
[all …]
/openbsd/src/usr.sbin/tcpdump/
Dprint-krb.c178 const struct krb *kp; in krb4_print() local
184 #define IS_LENDIAN(kp) (((kp)->type & 0x01) != 0) in krb4_print() argument
185 #define KTOHSP(kp, cp) (IS_LENDIAN(kp) ? vtohsp(cp) : ntohsp(cp)) in krb4_print() argument
187 kp = (struct krb *)cp; in krb4_print()
189 if ((&kp->type) >= snapend) { in krb4_print()
194 type = kp->type & (0xFF << 1); in krb4_print()
197 IS_LENDIAN(kp) ? "le" : "be", tok2str(type2str, NULL, type)); in krb4_print()
231 len = KTOHSP(kp, cp); in krb4_print()
241 printf(" %s ", tok2str(kerr2str, NULL, KTOHSP(kp, cp))); in krb4_print()
260 const struct krb *kp; in krb_print() local
[all …]
/openbsd/src/lib/libform/
Dfty_enum.c79 char **kp = (char **)0; in Generic_Enum_Type() local
92 kp = kwds; in Generic_Enum_Type()
93 while (kp && (*kp++)) in Generic_Enum_Type()
107 kp = kwds; in Generic_Enum_Type()
110 while (kp && (*kp)) in Generic_Enum_Type()
112 (*kptarget++) = strdup(*kp++); in Generic_Enum_Type()
169 char **kp = ap->kwds; in Copy_Enum_Type() local
174 while (kp && (*kp)) in Copy_Enum_Type()
176 (*kptarget++) = strdup(*kp++); in Copy_Enum_Type()
203 char **kp = ap->kwds; in Free_Enum_Type() local
[all …]
/openbsd/src/usr.sbin/eigrpd/
Dkroute.c55 struct kroute_prefix *kp; /* back pointer */ member
207 struct kroute_prefix *kp; in kr_change() local
212 kp = kroute_find_prefix(kr->af, &kr->prefix, kr->prefixlen); in kr_change()
213 if (kp == NULL) in kr_change()
216 kprio = kroute_find_prio(kp, kr->priority); in kr_change()
240 struct kroute_prefix *kp; in kr_delete() local
244 kp = kroute_find_prefix(kr->af, &kr->prefix, kr->prefixlen); in kr_delete()
245 if (kp == NULL) in kr_delete()
247 kprio = kroute_find_prio(kp, kr->priority); in kr_delete()
277 struct kroute_prefix *kp; in kr_fib_couple() local
[all …]
/openbsd/src/usr.bin/vi/ex/
Dex_usage.c119 VIKEYS const *kp; in ex_viusage() local
138 kp = &tmotion; in ex_viusage()
140 kp = &vikeys[key]; in ex_viusage()
142 if (kp->usage == NULL) in ex_viusage()
149 isblank(*kp->help) ? "" : " ", kp->help, kp->usage); in ex_viusage()
155 kp = &tmotion; in ex_viusage()
157 kp = &vikeys[key]; in ex_viusage()
158 if (kp->help != NULL) in ex_viusage()
159 (void)ex_printf(sp, "%s\n", kp->help); in ex_viusage()
/openbsd/src/lib/libedit/
Demacs.c89 wchar_t *cp, *p, *kp; in em_delete_next_word() local
97 for (p = el->el_line.cursor, kp = el->el_chared.c_kill.buf; p < cp; p++) in em_delete_next_word()
99 *kp++ = *p; in em_delete_next_word()
100 el->el_chared.c_kill.last = kp; in em_delete_next_word()
117 wchar_t *kp, *cp; in em_yank() local
134 for (kp = el->el_chared.c_kill.buf; kp < el->el_chared.c_kill.last; kp++) in em_yank()
135 *cp++ = *kp; in em_yank()
152 wchar_t *kp, *cp; in em_kill_line() local
155 kp = el->el_chared.c_kill.buf; in em_kill_line()
157 *kp++ = *cp++; /* copy it */ in em_kill_line()
[all …]
/openbsd/src/sys/net/
Dwg_noise.c447 struct noise_keypair kp, *next, *current, *previous; in noise_remote_begin_session() local
453 kp.kp_is_initiator = 1; in noise_remote_begin_session()
454 noise_kdf(kp.kp_send, kp.kp_recv, NULL, NULL, in noise_remote_begin_session()
458 kp.kp_is_initiator = 0; in noise_remote_begin_session()
459 noise_kdf(kp.kp_recv, kp.kp_send, NULL, NULL, in noise_remote_begin_session()
467 kp.kp_valid = 1; in noise_remote_begin_session()
468 kp.kp_local_index = hs->hs_local_index; in noise_remote_begin_session()
469 kp.kp_remote_index = hs->hs_remote_index; in noise_remote_begin_session()
470 getnanouptime(&kp.kp_birthdate); in noise_remote_begin_session()
471 bzero(&kp.kp_ctr, sizeof(kp.kp_ctr)); in noise_remote_begin_session()
[all …]
Dpfkeyv2.c149 #define keylock(kp) solock((kp)->kcb_socket) argument
150 #define keyunlock(kp) sounlock((kp)->kcb_socket) argument
237 struct pkpcb *kp = v; in keycb_ref() local
239 refcnt_take(&kp->kcb_refcnt); in keycb_ref()
245 struct pkpcb *kp = v; in keycb_unref() local
247 refcnt_rele_wake(&kp->kcb_refcnt); in keycb_unref()
272 struct pkpcb *kp; in pfkeyv2_attach() local
282 kp = pool_get(&pkpcb_pool, (wait == M_WAIT ? PR_WAITOK : PR_NOWAIT) | in pfkeyv2_attach()
284 if (kp == NULL) in pfkeyv2_attach()
286 so->so_pcb = kp; in pfkeyv2_attach()
[all …]
/openbsd/src/usr.bin/w/
Dw.c91 struct kinfo_proc *kp; /* `most interesting' proc */ member
107 struct kinfo_proc *kp; in main() local
226 kp = kvm_getprocs(kd, KERN_PROC_ALL, 0, sizeof(*kp), &nentries); in main()
227 if (kp == NULL) in main()
240 for (i = 0; i < nentries; i++, kp++) { in main()
241 if (kp->p_psflags & (PS_EMBRYO | PS_ZOMBIE)) in main()
253 if (kp->p_pid == fp) { in main()
254 ep->kp = kp; in main()
257 } else if (ep->tdev == kp->p_tdev && in main()
258 kp->p__pgid == kp->p_tpgid) { in main()
[all …]
/openbsd/src/usr.sbin/ldpd/
Dkroute.c58 struct kroute_prefix *kp; /* back pointer */ member
232 struct kroute_prefix *kp; in kr_change() local
237 kp = kroute_find_prefix(kr->af, &kr->prefix, kr->prefixlen); in kr_change()
238 if (kp == NULL) in kr_change()
241 kprio = kroute_find_prio(kp, kr->priority); in kr_change()
278 struct kroute_prefix *kp; in kr_delete() local
283 kp = kroute_find_prefix(kr->af, &kr->prefix, kr->prefixlen); in kr_delete()
284 if (kp == NULL) in kr_delete()
286 kprio = kroute_find_prio(kp, kr->priority); in kr_delete()
325 struct kroute_prefix *kp; in kr_fib_couple() local
[all …]
/openbsd/src/usr.sbin/amd/amd/
Dinfo_file.c93 char *kp; in search_or_reload_file() local
121 for (kp = key_val; in search_or_reload_file()
122 isascii((unsigned char)*kp) && isspace((unsigned char)*kp); in search_or_reload_file()
123 kp++) in search_or_reload_file()
129 if (!*kp) in search_or_reload_file()
135 for (cp = kp; *cp && in search_or_reload_file()
146 if (fn || (*key == *kp && strcmp(key, kp) == 0)) { in search_or_reload_file()
156 (*fn)(m, strdup(kp), dc); in search_or_reload_file()
/openbsd/src/gnu/gcc/gcc/config/mips/
D4k.md11 ;; 4kp - non-pipelined multiplier and block address translator (BAT)
39 (and (eq_attr "cpu" "4kc,4kp")
44 (and (eq_attr "cpu" "4kc,4kp")
49 (and (eq_attr "cpu" "4kc,4kp")
66 (and (eq_attr "cpu" "4kp")
93 (and (eq_attr "cpu" "4kp")
101 (and (eq_attr "cpu" "4kp")
110 (and (eq_attr "cpu" "4kp")
117 (and (eq_attr "cpu" "4kc,4kp")
123 (and (eq_attr "cpu" "4kc,4kp")
[all …]
/openbsd/src/usr.bin/vi/common/
Dkey.c106 KEYLIST *kp; in v_key_init() local
128 for (gp->max_special = 0, kp = keylist, cnt = nkeylist; cnt--; ++kp) { in v_key_init()
129 if (gp->max_special < kp->value) in v_key_init()
130 gp->max_special = kp->value; in v_key_init()
131 if (kp->ch <= MAX_FAST_KEY) in v_key_init()
132 gp->special_key[kp->ch] = kp->value; in v_key_init()
159 KEYLIST *kp; in v_keyval() local
170 for (kp = keylist; kp->value != K_NOTUSED; ++kp) in v_keyval()
171 if (kp->ch == ch) { in v_keyval()
172 kp->value = val; in v_keyval()
[all …]
/openbsd/src/regress/lib/libc/db/
Ddbtest.c353 get(dbp, kp) in get() argument
355 DBT *kp;
359 switch (dbp->get(dbp, kp, &data, flags)) {
374 MINIMUM((int)kp->size, 20), kp->data, NOSUCHKEY);
381 getdata(dbp, kp, dp) in getdata() argument
383 DBT *kp, *dp;
385 switch (dbp->get(dbp, kp, dp, flags)) {
398 put(dbp, kp, dp) in put() argument
400 DBT *kp, *dp;
402 switch (dbp->put(dbp, kp, dp, flags)) {
[all …]
/openbsd/src/usr.bin/vi/vi/
Dvi.c132 vp->kp = &vikeys[':']; in vi()
170 if (F_ISSET(vp->kp, V_SECURE) && O_ISSET(sp, O_SECURE)) { in vi()
184 F_SET(vp, vp->kp->flags); in vi()
232 ex_continue: if (vp->kp->func(sp, vp)) in vi()
463 VIKEYS const *kp; in v_cmd() local
547 kp = &vikeys[vp->key = key]; in v_cmd()
560 if (kp->func == NULL && (kp = v_alias(sp, vp, kp)) == NULL) in v_cmd()
565 kp = &tmotion; in v_cmd()
567 vp->kp = kp; in v_cmd()
576 if (kp->func == NULL) { in v_cmd()
[all …]
/openbsd/src/sys/uvm/
Duvm_km.c650 const struct kmem_pa_mode *kp, const struct kmem_dyn_mode *kd) in km_alloc() argument
666 if (kp->kp_nomem || kp->kp_pageable) in km_alloc()
671 if (kp->kp_zero) in km_alloc()
674 pla_align = kp->kp_align; in km_alloc()
679 pla_maxseg = kp->kp_maxseg; in km_alloc()
683 if (uvm_pglistalloc(sz, kp->kp_constraint->ucr_low, in km_alloc()
684 kp->kp_constraint->ucr_high, pla_align, kp->kp_boundary, in km_alloc()
694 if (kv->kv_singlepage || kp->kp_maxseg == 1) { in km_alloc()
706 if (kp->kp_pageable) { in km_alloc()
707 KASSERT(kp->kp_object); in km_alloc()
[all …]
/openbsd/src/sys/kern/
Dkern_ktrace.c287 struct ktr_psig kp; in ktrpsig() local
291 kp.signo = (char)sig; in ktrpsig()
292 kp.action = action; in ktrpsig()
293 kp.mask = mask; in ktrpsig()
294 kp.code = code; in ktrpsig()
295 kp.si = *si; in ktrpsig()
298 ktrwrite(p, &kth, &kp, sizeof(kp)); in ktrpsig()
399 struct ktr_pledge kp; in ktrpledge() local
403 kp.error = error; in ktrpledge()
404 kp.code = code; in ktrpledge()
[all …]
/openbsd/src/gnu/llvm/compiler-rt/lib/builtins/hexagon/
Dfastmath2_ldlib_asm.S265 #define kp R9 macro
304 kp = clb(mantd) define
309 expa-= add(kp, #-1)
310 kp = add(kp, #-1) define
314 mantd = asl(mantd, kp)
316 p0 = cmp.gt(kp, #58)
326 expa+= add(kp, #1)
/openbsd/src/lib/libtls/
Dtls_config.c160 struct tls_keypair *kp, *nkp; in tls_config_free() local
173 for (kp = config->keypair; kp != NULL; kp = nkp) { in tls_config_free()
174 nkp = kp->next; in tls_config_free()
175 tls_keypair_free(kp); in tls_config_free()
195 struct tls_keypair *kp; in tls_config_keypair_add() local
197 kp = config->keypair; in tls_config_keypair_add()
198 while (kp->next != NULL) in tls_config_keypair_add()
199 kp = kp->next; in tls_config_keypair_add()
201 kp->next = keypair; in tls_config_keypair_add()
219 struct tls_keypair *kp; in tls_config_clear_keys() local
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.mike/
Dpmf9.C8 Q() { kp = new K; } in Q()
11 K * kp;
15 return (kp->f)(42); in g()

1234