/freebsd-11-stable/lib/libkvm/ |
H A D | kvm_proc.c | 119 struct kinfo_proc kinfo_proc, *kp; local 137 kp = &kinfo_proc; 138 kp->ki_structsize = sizeof(kinfo_proc); 144 memset(kp, 0, sizeof *kp); 161 kp->ki_ruid = ucred.cr_ruid; 162 kp->ki_svuid = ucred.cr_svuid; 163 kp->ki_rgid = ucred.cr_rgid; 164 kp->ki_svgid = ucred.cr_svgid; 165 kp 658 kvm_argv(kvm_t *kd, const struct kinfo_proc *kp, int env, int nchr) argument 735 kvm_getargv(kvm_t *kd, const struct kinfo_proc *kp, int nchr) argument 741 kvm_getenvv(kvm_t *kd, const struct kinfo_proc *kp, int nchr) argument [all...] |
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-krb.c | 151 register const struct krb *kp; local 157 #define IS_LENDIAN(kp) (((kp)->type & 0x01) != 0) 158 #define KTOHSP(kp, cp) (IS_LENDIAN(kp) ? EXTRACT_LE_16BITS(cp) : EXTRACT_16BITS(cp)) 160 kp = (const struct krb *)cp; 162 if ((&kp->type) >= ndo->ndo_snapend) { 167 type = kp->type & (0xFF << 1); 170 IS_LENDIAN(kp) ? "le" : "be", tok2str(type2str, NULL, type))); 201 len = KTOHSP(kp, c 229 register const struct krb *kp; local [all...] |
/freebsd-11-stable/sys/geom/bde/ |
H A D | g_bde_crypt.c | 235 g_bde_max_sector(struct g_bde_key *kp) argument 239 maxsect = kp->media_width; 240 maxsect /= kp->zone_width; 241 maxsect *= kp->zone_cont; 275 struct g_bde_key *kp; local 278 kp = &sc->key; 281 zone = wp->offset / kp->zone_cont; 282 zoff = wp->offset % kp->zone_cont; 285 wp->ko = (zoff / kp->sectorsize) * G_BDE_SKEYLEN; 288 len = kp [all...] |
H A D | g_bde.c | 118 struct g_bde_key *kp; local 167 kp = &sc->key; 170 kp->keys_per_sector = kp->sectorsize / G_BDE_SKEYLEN; 171 kp->zone_cont = kp->keys_per_sector * kp->sectorsize; 172 kp->zone_width = kp->zone_cont + kp [all...] |
/freebsd-11-stable/lib/libutil/ |
H A D | kinfo_getvmobject.c | 43 struct kinfo_vmobject *kvo, *list, *kp; local 83 kp = list; 86 memcpy(kp, kvo, kvo->kvo_structsize); 88 kp->kvo_structsize = sizeof(*kp); 89 kp++;
|
H A D | kinfo_getfile.c | 20 struct kinfo_file *kif, *kp, *kf; local 60 kp = kif; 67 memcpy(kp, kf, kf->kf_structsize); 71 kp->kf_structsize = sizeof(*kp); 72 kp++;
|
H A D | kinfo_getvmmap.c | 20 struct kinfo_vmentry *kiv, *kp, *kv; local 60 kp = kiv; 67 memcpy(kp, kv, kv->kve_structsize); 71 kp->kve_structsize = sizeof(*kp); 72 kp++;
|
/freebsd-11-stable/bin/pkill/ |
H A D | pkill.c | 76 #define PSKIP(kp) ((kp)->ki_pid == mypid || \ 77 (!kthreads && ((kp)->ki_flag & P_KPROC) != 0)) 142 struct kinfo_proc *kp; local 355 for (i = 0, kp = plist; i < nproc; i++, kp++) { 356 if (PSKIP(kp)) { 359 kp->ki_pid, kp->ki_uid, kp 602 show_process(const struct kinfo_proc *kp) argument 625 killact(const struct kinfo_proc *kp) argument 662 grepact(const struct kinfo_proc *kp) argument [all...] |
/freebsd-11-stable/contrib/amd/amd/ |
H A D | info_file.c | 106 char *kp; local 132 for (kp = key_val; *kp && isascii((unsigned char)*kp) && isspace((unsigned char)*kp); kp++) ; 137 if (!*kp) 143 for (cp = kp; *cp && (!isascii((unsigned char)*cp) || !isspace((unsigned char)*cp)); cp++) ; 151 if (fn || (*key == *kp && STREQ(key, kp))) { [all...] |
/freebsd-11-stable/contrib/nvi/ex/ |
H A D | ex_usage.c | 142 VIKEYS const *kp; local 162 kp = &tmotion; 164 kp = &vikeys[key]; 166 if (kp->usage == NULL) 173 isblank(*kp->help) ? "" : " ", kp->help, kp->usage); 179 kp = &tmotion; 181 kp = &vikeys[key]; 182 if (kp [all...] |
/freebsd-11-stable/contrib/ncurses/form/ |
H A D | fty_enum.c | 77 char **kp = (char **)0; local 91 kp = kwds; 92 while (kp && (*kp++)) 104 kp = kwds; 107 while (kp && (*kp)) 109 (*kptarget++) = strdup(*kp++); 166 char **kp = ap->kwds; local 171 while (kp 200 char **kp = ap->kwds; local [all...] |
/freebsd-11-stable/usr.sbin/asf/ |
H A D | asf_kvm.c | 67 void *kp; local 105 for (kp = linker_files.tqh_first; kp; kp = lf.link.tqe_next) { 107 n = kvm_read(kd, (u_long)kp, &lf, sizeof(lf));
|
/freebsd-11-stable/lib/libedit/ |
H A D | emacs.c | 98 Char *cp, *p, *kp; local 106 for (p = el->el_line.cursor, kp = el->el_chared.c_kill.buf; p < cp; p++) 108 *kp++ = *p; 109 el->el_chared.c_kill.last = kp; 127 Char *kp, *cp; local 144 for (kp = el->el_chared.c_kill.buf; kp < el->el_chared.c_kill.last; kp++) 145 *cp++ = *kp; 163 Char *kp, *c local 185 Char *kp, *cp; local 218 Char *kp, *cp; local [all...] |
/freebsd-11-stable/sys/netipsec/ |
H A D | keysock.c | 178 struct keycb *kp; local 222 kp = (struct keycb *)rp; 223 if (kp->kp_promisc) { 236 target == KEY_SENDUP_REGISTERED && kp->kp_registered == 0)) 280 struct keycb *kp; local 292 kp = malloc(sizeof *kp, M_PCB, M_WAITOK | M_ZERO); 293 if (kp == NULL) 296 so->so_pcb = (caddr_t)kp; 298 kp 354 struct keycb *kp = (struct keycb *)sotorawcb(so); local [all...] |
/freebsd-11-stable/contrib/amd/mk-amd-map/ |
H A D | mk-amd-map.c | 116 char *kp; local 143 for (kp = key_val; *kp && isascii((unsigned char)*kp) && isspace((unsigned char)*kp); kp++) ; 148 if (!*kp) 154 for (cp = kp; *cp && (!isascii((unsigned char)*cp) || !isspace((unsigned char)*cp)); cp++) ; 164 if (*kp == '+') { 165 fprintf(stderr, "Can't interpolate %s\n", kp); [all...] |
/freebsd-11-stable/usr.bin/w/ |
H A D | w.c | 114 struct kinfo_proc *kp; /* `most interesting' proc */ member in struct:entry 134 struct kinfo_proc *kp; local 280 if ((kp = kvm_getprocs(kd, KERN_PROC_ALL, 0, &nentries)) == NULL) 282 for (i = 0; i < nentries; i++, kp++) { 283 if (kp->ki_stat == SIDL || kp->ki_stat == SZOMB || 284 kp->ki_tdev == NODEV) 287 if (ep->tdev == kp->ki_tdev) { 291 if (ep->kp == NULL && kp [all...] |
/freebsd-11-stable/sys/compat/linprocfs/ |
H A D | linprocfs.c | 585 struct kinfo_proc kp; local 594 fill_kinfo_proc(p, &kp); 606 if (kp.ki_stat > sizeof(linux_state)) { 611 kp.ki_stat, sizeof(linux_state)); 615 state = linux_state[kp.ki_stat - 1]; 621 if (kp.ki_tdev == NODEV) 624 PS_ADD("tty", "%ju", (uintmax_t)kp.ki_tdev); 625 PS_ADD("tpgid", "%d", kp.ki_tpgid); 627 PS_ADD("minflt", "%lu", kp.ki_rusage.ru_minflt); 628 PS_ADD("cminflt", "%lu", kp 671 struct kinfo_proc kp; local 704 struct kinfo_proc kp; local [all...] |
/freebsd-11-stable/contrib/telnet/libtelnet/ |
H A D | encrypt.c | 181 static void encrypt_keyid(struct key_info *kp, unsigned char *keyid, int len); 714 encrypt_keyid(struct key_info *kp, unsigned char *keyid, int len) argument 717 int dir = kp->dir; 723 if (!(ep = (*kp->getcrypt)(*kp->modep))) { 726 kp->keylen = 0; 731 if (kp->keylen == 0) 733 kp->keylen = 0; 735 (void)(*ep->keyid)(dir, kp->keyid, &kp 765 struct key_info *kp = &ki[(dir == DIR_ENCRYPT) ? 0 : 1]; local [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | kern_proc.c | 112 static void fill_kinfo_aggregate(struct proc *p, struct kinfo_proc *kp); 113 static void fill_kinfo_proc_only(struct proc *p, struct kinfo_proc *kp); 114 static void fill_kinfo_thread(struct thread *td, struct kinfo_proc *kp, 867 fill_kinfo_aggregate(struct proc *p, struct kinfo_proc *kp) argument 873 kp->ki_estcpu = 0; 874 kp->ki_pctcpu = 0; 877 kp->ki_pctcpu += sched_pctcpu(td); 878 kp->ki_estcpu += sched_estcpu(td); 889 fill_kinfo_proc_only(struct proc *p, struct kinfo_proc *kp) argument 901 bzero(kp, sizeo 1043 fill_kinfo_thread(struct thread *td, struct kinfo_proc *kp, int preferthread) argument 1153 fill_kinfo_proc(struct proc *p, struct kinfo_proc *kp) argument 1159 fill_kinfo_thread(FIRST_THREAD_IN_PROC(p), kp, 0); local [all...] |
H A D | kern_ktr.c | 434 struct ktr_entry *kp; local 440 kp = &ktr_buf[tstate.cur]; 443 if (kp->ktr_desc == NULL) { 447 db_printf("%d (%p", tstate.cur, kp->ktr_thread); 449 db_printf(":cpu%d", kp->ktr_cpu); 453 db_printf(" %10.10lld", (long long)kp->ktr_timestamp); 456 db_printf(" %s.%d", kp->ktr_file, kp->ktr_line); 459 db_printf(kp->ktr_desc, kp [all...] |
/freebsd-11-stable/lib/libprocstat/ |
H A D | libprocstat.c | 116 static char **getargv(struct procstat *procstat, struct kinfo_proc *kp, 125 struct procstat *procstat, struct kinfo_proc *kp, int mmapped); 127 struct procstat *procstat, struct kinfo_proc *kp, int mmapped); 155 static gid_t * procstat_getgroups_kvm(kvm_t *kd, struct kinfo_proc *kp, 162 static int procstat_getosrel_kvm(kvm_t *kd, struct kinfo_proc *kp, 171 static int procstat_getrlimit_kvm(kvm_t *kd, struct kinfo_proc *kp, 177 static int procstat_getumask_kvm(kvm_t *kd, struct kinfo_proc *kp, 346 procstat_getfiles(struct procstat *procstat, struct kinfo_proc *kp, int mmapped) argument 351 return (procstat_getfiles_kvm(procstat, kp, mmapped)); 354 return (procstat_getfiles_sysctl(procstat, kp, mmappe 409 getctty(kvm_t *kd, struct kinfo_proc *kp) argument 444 procstat_getfiles_kvm(struct procstat *procstat, struct kinfo_proc *kp, int mmapped) argument 763 struct kinfo_file *kif, *kp, *kf; local 815 procstat_getfiles_sysctl(struct procstat *procstat, struct kinfo_proc *kp, int mmapped) argument 1727 getargv(struct procstat *procstat, struct kinfo_proc *kp, size_t nchr, int env) argument 1862 struct kinfo_vmentry *kiv, *kp, *kv; local 1915 procstat_getvmmap(struct procstat *procstat, struct kinfo_proc *kp, unsigned int *cntp) argument 1942 procstat_getgroups_kvm(kvm_t *kd, struct kinfo_proc *kp, unsigned int *cntp) argument 2021 procstat_getgroups(struct procstat *procstat, struct kinfo_proc *kp, unsigned int *cntp) argument 2045 procstat_getumask_kvm(kvm_t *kd, struct kinfo_proc *kp, unsigned short *maskp) argument 2099 procstat_getumask(struct procstat *procstat, struct kinfo_proc *kp, unsigned short *maskp) argument 2116 procstat_getrlimit_kvm(kvm_t *kd, struct kinfo_proc *kp, int which, struct rlimit* rlimit) argument 2188 procstat_getrlimit(struct procstat *procstat, struct kinfo_proc *kp, int which, struct rlimit* rlimit) argument 2247 procstat_getpathname(struct procstat *procstat, struct kinfo_proc *kp, char *pathname, size_t maxlen) argument 2269 procstat_getosrel_kvm(kvm_t *kd, struct kinfo_proc *kp, int *osrelp) argument 2321 procstat_getosrel(struct procstat *procstat, struct kinfo_proc *kp, int *osrelp) argument 2460 procstat_getauxv(struct procstat *procstat, struct kinfo_proc *kp, unsigned int *cntp) argument 2567 procstat_getkstack(struct procstat *procstat, struct kinfo_proc *kp, unsigned int *cntp) argument [all...] |
H A D | libprocstat.h | 184 struct kinfo_proc *kp, int mmapped); 203 struct kinfo_proc *kp, unsigned int *cntp); 209 gid_t *procstat_getgroups(struct procstat *procstat, struct kinfo_proc *kp, 212 struct kinfo_proc *kp, unsigned int *count); 213 int procstat_getosrel(struct procstat *procstat, struct kinfo_proc *kp, 215 int procstat_getpathname(struct procstat *procstat, struct kinfo_proc *kp, 217 int procstat_getrlimit(struct procstat *procstat, struct kinfo_proc *kp, 219 int procstat_getumask(struct procstat *procstat, struct kinfo_proc *kp, 222 struct kinfo_proc *kp, unsigned int *count);
|
/freebsd-11-stable/crypto/heimdal/appl/telnet/libtelnet/ |
H A D | encrypt.c | 733 encrypt_keyid(struct key_info *kp, unsigned char *keyid, int len) argument 736 int dir = kp->dir; 742 if (!(ep = (*kp->getcrypt)(*kp->modep))) { 745 kp->keylen = 0; 750 if (kp->keylen == 0) 752 kp->keylen = 0; 754 (void)(*ep->keyid)(dir, kp->keyid, &kp->keylen); 756 } else if ((len != kp 793 struct key_info *kp = &ki[(dir == DIR_ENCRYPT) ? 0 : 1]; local [all...] |
/freebsd-11-stable/lib/libc/db/test/ |
H A D | dbtest.c | 358 get(dbp, kp) 360 DBT *kp; 364 switch (dbp->get(dbp, kp, &data, flags)) { 379 lineno, MIN(kp->size, 20), kp->data, NOSUCHKEY); 386 getdata(dbp, kp, dp) 388 DBT *kp, *dp; 390 switch (dbp->get(dbp, kp, dp, flags)) { 403 put(dbp, kp, dp) 405 DBT *kp, *d [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/builtins/hexagon/ |
H A D | fastmath2_ldlib_asm.S | 265 #define kp R9 define 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)
|