Home
last modified time | relevance | path

Searched refs:kf (Results 1 – 25 of 36) sorted by relevance

12

/openbsd/usr.bin/fstat/
H A Dfstat.c323 for (kflast = &kf[cnt]; kf < kflast; ++kf) { in main()
420 kf->f_type, kf->fd_fd, (long)Pid); in fstat_dofile()
514 (kf->f_rxfer + kf->f_rwfer), in vtrans()
515 (kf->f_rbytes + kf->f_wbytes) / 1024); in vtrans()
550 (kf->f_rxfer + kf->f_rwfer), in pipetrans()
551 (kf->f_rbytes + kf->f_wbytes) / 1024); in pipetrans()
637 splice_insert('>', kf[i].f_data, &kf[i]); in find_splices()
639 splice_insert('<', kf[i].so_splice, &kf[i]); in find_splices()
843 if (kf->so_splice != 0 || kf->so_splicelen == -1) { in socktrans()
866 (kf->f_rxfer + kf->f_rwfer), in socktrans()
[all …]
H A Dfuser.c68 match(struct filearg *fa, struct kinfo_file *kf) in match() argument
70 if (fa->dev == kf->va_fsid) { in match()
73 if (fa->ino == kf->va_fileid) in match()
84 fuser_check(struct kinfo_file *kf) in fuser_check() argument
89 if (kf->f_type != DTYPE_VNODE) in fuser_check()
93 if (!match(fa, kf)) in fuser_check()
100 if (TAILQ_EMPTY(&fa->fusers) || kf->p_pid != in fuser_check()
105 fu->pid = kf->p_pid; in fuser_check()
106 fu->uid = kf->p_uid; in fuser_check()
110 switch (kf->fd_fd) { in fuser_check()
/openbsd/lib/libkvm/
H A Dkvm_file2.c206 struct kinfo_file kf; in kvm_deadfile_byfile() local
271 struct kinfo_file kf; in kvm_deadfile_byid() local
473 memset(kf, 0, sizeof(*kf)); in fill_file()
495 kf->f_usecount = 0; in fill_file()
505 kf->f_flag = FREAD; in fill_file()
512 switch (kf->f_type) { in fill_file()
542 filestat(kd, kf, vp); in fill_file()
719 kf->p_pid = pid; in fill_file()
722 kf->p_tid = -1; in fill_file()
723 strlcpy(kf->p_comm, pr->ps_comm, sizeof(kf->p_comm)); in fill_file()
[all …]
H A Dkvm_udf.c75 _kvm_stat_udf(kvm_t *kd, struct kinfo_file *kf, struct vnode *vp) in _kvm_stat_udf() argument
95 kf->va_fsid = up.u_dev; in _kvm_stat_udf()
96 kf->va_fileid = (long)up.u_ino; in _kvm_stat_udf()
97 kf->va_mode = udf_permtomode(&up); /* XXX */ in _kvm_stat_udf()
98 kf->va_rdev = 0; in _kvm_stat_udf()
99 kf->va_nlink = letoh16(fentry.link_cnt); in _kvm_stat_udf()
108 kf->va_size = in _kvm_stat_udf()
111 kf->va_size = um.um_bsize; in _kvm_stat_udf()
114 kf->va_size = letoh64(fentry.inf_len); in _kvm_stat_udf()
H A Dkvm_cd9660.c41 _kvm_stat_cd9660(kvm_t *kd, struct kinfo_file *kf, struct vnode *vp) in _kvm_stat_cd9660() argument
49 kf->va_fsid = inode.i_dev & 0xffff; in _kvm_stat_cd9660()
50 kf->va_fileid = (long)inode.i_number; in _kvm_stat_cd9660()
51 kf->va_mode = inode.inode.iso_mode; in _kvm_stat_cd9660()
52 kf->va_size = inode.i_size; in _kvm_stat_cd9660()
53 kf->va_rdev = inode.i_dev; in _kvm_stat_cd9660()
54 kf->va_nlink = inode.inode.iso_links; in _kvm_stat_cd9660()
H A Dkvm_ntfs.c52 _kvm_stat_ntfs(kvm_t *kd, struct kinfo_file *kf, struct vnode *vp) in _kvm_stat_ntfs() argument
77 kf->va_fsid = ntnode.i_dev & 0xffff; in _kvm_stat_ntfs()
78 kf->va_fileid = (long)ntnode.i_number; in _kvm_stat_ntfs()
79 kf->va_mode = (mode_t)ntm.ntm_mode | _kvm_getftype(vp->v_type); in _kvm_stat_ntfs()
80 kf->va_size = fn.f_size; in _kvm_stat_ntfs()
81 kf->va_rdev = 0; /* XXX */ in _kvm_stat_ntfs()
82 kf->va_nlink = 1; in _kvm_stat_ntfs()
/openbsd/usr.sbin/bgpd/
H A Dkroute.c926 kf->priority = kr_priority(kf); in kr_show_route()
928 pid, kf, sizeof(*kf)); in kr_show_route()
938 kf->priority = kr_priority(kf); in kr_show_route()
940 pid, kf, sizeof(*kf)); in kr_show_route()
961 kf->priority = kr_priority(kf); in kr_show_route()
963 pid, kf, sizeof(*kf)); in kr_show_route()
970 kf->priority = kr_priority(kf); in kr_show_route()
972 pid, kf, sizeof(*kf)); in kr_show_route()
1415 memset(&kf, 0, sizeof(kf)); in kr_tofull()
1436 memset(&kf, 0, sizeof(kf)); in kr6_tofull()
[all …]
H A Dbgpd.c858 struct kroute_full kf; in dispatch_imsg() local
879 else if (imsg_get_data(&imsg, &kf, sizeof(kf)) == -1) in dispatch_imsg()
881 else if (kr_change(imsg_get_id(&imsg), &kf)) in dispatch_imsg()
887 else if (imsg_get_data(&imsg, &kf, sizeof(kf)) == -1) in dispatch_imsg()
889 else if (kr_delete(imsg_get_id(&imsg), &kf)) in dispatch_imsg()
1188 bgpd_oknexthop(struct kroute_full *kf) in bgpd_oknexthop() argument
1190 if (kf->flags & F_BGPD) in bgpd_oknexthop()
1193 if (kf->prefixlen == 0) in bgpd_oknexthop()
H A Drde.c3312 struct kroute_full kf; in rde_send_kroute() local
3333 memset(&kf, 0, sizeof(kf)); in rde_send_kroute()
3338 kf.flags |= F_REJECT; in rde_send_kroute()
3343 sizeof(kf.label)); in rde_send_kroute()
3363 &kf, sizeof(kf)) == -1) in rde_send_kroute()
3375 &kf, sizeof(kf)) == -1) in rde_send_kroute()
4575 memset(&kf, 0, sizeof(kf)); in network_dump_upcall()
4576 kf.prefix = addr; in network_dump_upcall()
4581 kf.nexthop.aid = kf.prefix.aid; in network_dump_upcall()
4583 kf.flags = F_STATIC; in network_dump_upcall()
[all …]
/openbsd/usr.bin/systat/
H A Dnetstat.c169 enter(struct kinfo_file *kf) in enter() argument
175 if (kf->so_family != AF_INET && kf->so_family != AF_INET6) in enter()
178 switch (kf->so_protocol) { in enter()
196 switch (kf->so_family) { in enter()
224 switch (kf->so_family) { in enter()
245 p->nif_state = kf->t_state; in enter()
306 struct kinfo_file *kf; in read_ns() local
314 sizeof(*kf), &fcnt); in read_ns()
315 if (kf == NULL) { in read_ns()
321 qsort(kf, fcnt, sizeof(*kf), kf_comp); in read_ns()
[all …]
/openbsd/sys/dev/microcode/kue/
H A Dbuild.c33 struct kue_firmware kfproto, *kf; in main() local
37 len = sizeof(*kf) - sizeof(kfproto.data) + in main()
41 kf = (struct kue_firmware *)malloc(len); in main()
42 bzero(kf, len); in main()
44 kf->codeseglen = htonl(sizeof(kue_code_seg)); in main()
45 kf->fixseglen = htonl(sizeof(kue_fix_seg)); in main()
46 kf->trigseglen = htonl(sizeof(kue_trig_seg)); in main()
48 bcopy(kue_code_seg, &kf->data[0], in main()
50 bcopy(kue_fix_seg, &kf->data[0] + sizeof(kue_code_seg), in main()
63 rlen = write(fd, kf, len); in main()
[all …]
/openbsd/usr.bin/netstat/
H A Dunix.c57 unixdomainpr(struct kinfo_file *kf) in unixdomainpr() argument
62 if (kf->so_pcb == -1) in unixdomainpr()
63 kf->so_pcb = 0; in unixdomainpr()
75 FAKE_PTR(kf->so_pcb), socktype[kf->so_type], in unixdomainpr()
76 kf->so_rcv_cc, kf->so_snd_cc, in unixdomainpr()
77 FAKE_PTR(kf->v_un), in unixdomainpr()
78 FAKE_PTR(kf->unp_conn), in unixdomainpr()
79 FAKE_PTR(kf->unp_refs), in unixdomainpr()
80 FAKE_PTR(kf->unp_nextref)); in unixdomainpr()
81 if (kf->unp_path[0] != '\0') in unixdomainpr()
[all …]
H A Dinet.c158 qsort(kf, fcnt, sizeof(*kf), kf_comp); in protopr()
195 if (kf[i].so_family == AF_LOCAL && (kf[i].so_pcb != 0 || in protopr()
199 if (kf[i].so_family == AF_INET && kf[i].so_pcb != 0 && in protopr()
203 if (kf[i].so_family == AF_INET6 && kf[i].so_pcb != 0 && in protopr()
241 if (kf->so_type != SOCK_RAW || kf->so_family != AF_INET) in netdomainpr()
245 if (kf->so_type != SOCK_RAW || kf->so_family != AF_INET6) in netdomainpr()
307 (kf->inp_lport == 0 || kf->inp_fport != 0)) in netdomainpr()
310 if (af != kf->so_family || type != kf->so_type) { in netdomainpr()
336 kf->inp_ppcb : kf->so_pcb)); in netdomainpr()
339 isip6 ? name6: name, kf->so_rcv_cc, kf->so_snd_cc); in netdomainpr()
[all …]
/openbsd/gnu/gcc/gcc/config/mips/
H A D5k.md141 (and (eq_attr "cpu" "5kf")
147 (and (eq_attr "cpu" "5kf")
153 (and (eq_attr "cpu" "5kf")
159 (and (eq_attr "cpu" "5kf")
165 (and (eq_attr "cpu" "5kf")
171 (and (eq_attr "cpu" "5kf")
178 (and (eq_attr "cpu" "5kf")
184 (and (eq_attr "cpu" "5kf")
191 (and (eq_attr "cpu" "5kf")
198 (and (eq_attr "cpu" "5kf")
[all …]
/openbsd/usr.bin/kstat/
H A Dkstat.c228 struct kstat_filter *kf; in kstat_filter_parse() local
243 kf = malloc(sizeof(*kf)); in kstat_filter_parse()
244 if (kf == NULL) in kstat_filter_parse()
247 memset(kf, 0, sizeof(*kf)); in kstat_filter_parse()
254 kf->kf_name = argv[0]; in kstat_filter_parse()
260 kf->kf_instance = in kstat_filter_parse()
270 kf->kf_name = argv[2]; in kstat_filter_parse()
272 kf->kf_unit = in kstat_filter_parse()
286 return (kf); in kstat_filter_parse()
292 struct kstat_filter *kf; in kstat_filter_entry() local
[all …]
/openbsd/sys/kern/
H A Dkern_sysctl.c1423 memset(kf, 0, sizeof(*kf)); in fill_file()
1442 kf->f_usecount = 0; in fill_file()
1454 kf->f_offset = -1; in fill_file()
1458 kf->f_flag = FREAD; in fill_file()
1467 switch (kf->f_type) { in fill_file()
1512 kf->so_pcb = -1; in fill_file()
1519 kf->so_splice = in fill_file()
1629 kf->p_tid = -1; in fill_file()
1630 strlcpy(kf->p_comm, pr->ps_comm, sizeof(kf->p_comm)); in fill_file()
1673 kf = malloc(sizeof(*kf), M_TEMP, M_WAITOK); in sysctl_file()
[all …]
/openbsd/regress/usr.bin/ssh/
H A Dkrl.sh112 $SSHKEYGEN $OPTS -kf $OBJ/krl-empty - </dev/null \
114 $SSHKEYGEN $OPTS -kf $OBJ/krl-keys $RKEYS \
116 $SSHKEYGEN $OPTS -kf $OBJ/krl-cert $RCERTS \
118 $SSHKEYGEN $OPTS -kf $OBJ/krl-all $RKEYS $RCERTS \
120 $SSHKEYGEN $OPTS -kf $OBJ/krl-ca $OBJ/revoked-ca.pub \
122 $SSHKEYGEN $OPTS -kf $OBJ/krl-sha1 $OBJ/revoked-sha1 \
124 $SSHKEYGEN $OPTS -kf $OBJ/krl-sha256 $OBJ/revoked-sha256 \
126 $SSHKEYGEN $OPTS -kf $OBJ/krl-hash $OBJ/revoked-hash \
129 $SSHKEYGEN $OPTS -kf $OBJ/krl-serial $OBJ/revoked-serials \
131 $SSHKEYGEN $OPTS -kf $OBJ/krl-keyid $OBJ/revoked-keyid \
[all …]
H A Dcert-hostkey.sh80 ${SSHKEYGEN} -kf $OBJ/host_krl_empty || fatal "KRL init failed"
81 ${SSHKEYGEN} -kf $OBJ/host_krl_plain || fatal "KRL init failed"
82 ${SSHKEYGEN} -kf $OBJ/host_krl_cert || fatal "KRL init failed"
83 ${SSHKEYGEN} -kf $OBJ/host_krl_ca $OBJ/host_ca_key.pub $OBJ/host_ca_key2.pub \
/openbsd/lib/libcrypto/idea/
H A Didea.c349 IDEA_INT *kt, *kf, r0, r1, r2; in idea_set_encrypt_key() local
361 kf = kt; in idea_set_encrypt_key()
365 r2 = kf[1]; in idea_set_encrypt_key()
366 r1 = kf[2]; in idea_set_encrypt_key()
368 r0 = kf[3]; in idea_set_encrypt_key()
370 r1 = kf[4]; in idea_set_encrypt_key()
372 r0 = kf[5]; in idea_set_encrypt_key()
374 r1 = kf[6]; in idea_set_encrypt_key()
376 r0 = kf[7]; in idea_set_encrypt_key()
378 r1 = kf[0]; in idea_set_encrypt_key()
[all …]
/openbsd/usr.sbin/pstat/
H A Dpstat.c88 struct kinfo_file *kf; variable
1050 for (; nfile-- > 0; kf++) { in filemode()
1055 ? 0 : kf->f_type]); in filemode()
1057 if (kf->f_flag & FREAD) in filemode()
1059 if (kf->f_flag & FWRITE) in filemode()
1061 if (kf->f_flag & FAPPEND) in filemode()
1063 if (kf->f_flag & FASYNC) in filemode()
1066 if (kf->f_iflags & FIF_HASLOCK) in filemode()
1075 if (kf->f_offset == (uint64_t)-1) in filemode()
1109 kf = kvm_getfiles(kd, KERN_FILE_BYFILE, 0, sizeof *kf, &nfile); in filemodeprep()
[all …]
/openbsd/regress/usr.bin/ssh/unittests/sshkey/
H A Dtest_sshkey.c282 ASSERT_PTR_NE(kf, NULL); in sshkey_tests()
283 ASSERT_INT_EQ(kf->type, KEY_ED25519); in sshkey_tests()
284 ASSERT_PTR_NE(kf->ed25519_pk, NULL); in sshkey_tests()
285 ASSERT_PTR_NE(kf->ed25519_sk, NULL); in sshkey_tests()
340 ASSERT_INT_EQ(sshkey_from_private(kf, &k1), 0); in sshkey_tests()
342 ASSERT_PTR_NE(kf, k1); in sshkey_tests()
349 ASSERT_INT_EQ(sshkey_equal(kf, k1), 1); in sshkey_tests()
357 ASSERT_INT_EQ(sshkey_equal(ke, kf), 0); in sshkey_tests()
358 ASSERT_INT_EQ(sshkey_equal(kd, kf), 0); in sshkey_tests()
369 ASSERT_INT_EQ(sshkey_equal(kf, k1), 0); in sshkey_tests()
[all …]
/openbsd/usr.sbin/bgpctl/
H A Doutput_json.c367 json_fib(struct kroute_full *kf) in json_fib() argument
375 json_do_printf("prefix", "%s/%u", log_addr(&kf->prefix), kf->prefixlen); in json_fib()
376 json_do_uint("priority", kf->priority); in json_fib()
377 if (kf->flags & F_BGPD) in json_fib()
379 else if (kf->flags & F_CONNECTED) in json_fib()
381 else if (kf->flags & F_STATIC) in json_fib()
387 json_do_bool("blackhole", kf->flags & F_BLACKHOLE); in json_fib()
388 json_do_bool("reject", kf->flags & F_REJECT); in json_fib()
390 if (kf->flags & F_CONNECTED) in json_fib()
395 if (kf->flags & F_MPLS) { in json_fib()
[all …]
H A Doutput.c477 show_fib(struct kroute_full *kf) in show_fib() argument
481 if (asprintf(&p, "%s/%u", log_addr(&kf->prefix), kf->prefixlen) == -1) in show_fib()
483 printf("%-5s %4i %-32s ", fmt_fib_flags(kf->flags), kf->priority, p); in show_fib()
486 if (kf->flags & F_CONNECTED) in show_fib()
487 printf("link#%u", kf->ifindex); in show_fib()
489 printf("%s", log_addr(&kf->nexthop)); in show_fib()
490 if (kf->flags & F_MPLS) in show_fib()
491 printf(" mpls %d", ntohl(kf in show_fib()
[all...]
/openbsd/regress/lib/libcrypto/x509/bettertls/certificates/
H A D3229.crt21 ngc/kf+ThzWEp/oxMrLwNB/qQj/DN0L9F1NjRfN9eeCRn4enNrTPMHQRHPdB8SHj
H A D1080.key20 kf/QQ416bXa0NRekSUpH+kWaZR7JibB4IFWxOOVbXQdKtm8Y/Pv+7Mvg0CjK9zKN

12