| /src/external/gpl2/lvm2/dist/lib/netbsd/ |
| dev.c | 37 struct kinfo_drivers *kd; local 49 if ((kd = malloc (val_len)) == NULL){ 50 printf("malloc kd info error\n"); 55 if (sysctlbyname("kern.drivers", kd, &val_len, NULL, 0) < 0) { 56 printf("sysctlbyname failed kd"); 60 for (i = 0, val_len /= sizeof(*kd); i < val_len; i++) 62 if (kd[i].d_cmajor != -1 && kd[i].d_bmajor != -1) { 64 if (kd[i].d_cmajor == major)
|
| /src/lib/libc/gen/ |
| getdevmajor.c | 69 struct kinfo_drivers kd[200], *kdp = &kd[0]; local 70 size_t i, sz = sizeof(kd); 84 if (kdp != &kd[0]) 106 if (kdp != &kd[0])
|
| /src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| salt-aes-sha1.c | 51 struct _krb5_key_data kd; local 66 kd.schedule = NULL; 67 ALLOC(kd.key, 1); 68 if (kd.key == NULL) 70 kd.key->keytype = enctype; 71 ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size); 81 et->keytype->size, kd.key->keyvalue.data); 83 _krb5_free_key_data(context, &kd, et); 89 ret = _krb5_derive_key(context, et, &kd, "kerberos", strlen("kerberos")); 91 ret = krb5_copy_keyblock_contents(context, kd.key, key) [all...] |
| salt-aes-sha2.c | 51 struct _krb5_key_data kd; local 57 kd.key = NULL; 58 kd.schedule = NULL; 77 kd.schedule = NULL; 78 ALLOC(kd.key, 1); 79 if (kd.key == NULL) { 83 kd.key->keytype = enctype; 84 ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size); 108 et->keytype->size, kd.key->keyvalue.data); 116 ret = _krb5_derive_key(context, et, &kd, "kerberos", strlen("kerberos")) [all...] |
| salt.c | 253 struct _krb5_key_data kd; local 265 ALLOC(kd.key, 1); 266 if (kd.key == NULL) 268 ret = krb5_data_alloc(&kd.key->keyvalue, et->keytype->size); 270 free(kd.key); 273 kd.key->keytype = etype; 276 krb5_free_keyblock(context, kd.key); 285 kd.schedule = NULL; 286 _krb5_DES3_random_to_key(context, kd.key, tmp, keylen); 291 &kd, [all...] |
| /src/crypto/external/bsd/heimdal/dist/kadmin/ |
| ext.c | 99 krb5_key_data *kd = &princ.key_data[i]; local 102 if (kadm5_all_keys_are_bogus(1, kd)) 106 keys[i].vno = kd->key_data_kvno; 107 keys[i].keyblock.keytype = kd->key_data_type[0]; 108 keys[i].keyblock.keyvalue.length = kd->key_data_length[0]; 109 keys[i].keyblock.keyvalue.data = kd->key_data_contents[0];
|
| /src/external/cddl/osnet/sys/sys/ |
| sid.h | 43 ksiddomain_t *kd; local 47 kd = kmem_alloc(sizeof(*kd), KM_SLEEP); 48 kd->kd_len = (uint_t)len; 49 kd->kd_name = kmem_alloc(len, KM_SLEEP); 50 strcpy(kd->kd_name, domain); 51 return (kd); 55 ksiddomain_rele(ksiddomain_t *kd) 58 kmem_free(kd->kd_name, kd->kd_len) [all...] |
| /src/usr.sbin/schedctl/ |
| schedctl.c | 72 kvm_t *kd; local 160 kd = kvm_open(NULL, NULL, NULL, KVM_NO_FILES, "kvm_open"); 161 if (kd == NULL) 163 lwp_list = kvm_getlwps(kd, pid, 0, sizeof(struct kinfo_lwp), &count); 173 kvm_close(kd);
|
| /src/crypto/external/bsd/heimdal/dist/lib/kadm5/ |
| get_s.c | 76 krb5_key_data *kd; local 82 kd = &out->key_data[out->n_key_data]; 83 kd->key_data_ver = 2; 84 kd->key_data_kvno = kvno; 85 kd->key_data_type[0] = key->key.keytype; 87 kd->key_data_type[1] = key->salt->type; 89 kd->key_data_type[1] = KRB5_PADATA_PW_SALT; 91 kd->key_data_length[0] = key->key.keyvalue.length; 92 kd->key_data_contents[0] = malloc(kd->key_data_length[0]) [all...] |
| /src/external/gpl2/lvm2/dist/lib/filters/ |
| filter_netbsd.c | 149 struct kinfo_drivers *kd; local 162 if ((kd = malloc(val_len)) == NULL){ 163 printf("malloc kd info error\n"); 168 if (sysctlbyname("kern.drivers", kd, &val_len, NULL, 0) < 0) { 169 printf("sysctlbyname failed kd"); 173 for (i = 0, val_len /= sizeof(*kd); i < val_len; i++) { 175 if (!strncmp("device-mapper", kd[i].d_name, 13) || 176 !strncmp("dm", kd[i].d_name, 2)) 177 _device_mapper_major = kd[i].d_bmajor; 180 if (kd[i].d_cmajor != -1 && kd[i].d_bmajor != -1) [all...] |
| /src/sbin/mknod/ |
| mknod.c | 354 struct kinfo_drivers *kd; local 360 kd = kern_drivers; 361 for (i = 0; i < num_drivers; kd++, i++) { 362 if (*names && strcmp(*names, kd->d_name)) 364 printf("%s", kd->d_name); 365 if (kd->d_cmajor != -1) 366 printf(" character major %d", kd->d_cmajor); 367 if (kd->d_bmajor != -1) 368 printf(" block major %d", kd->d_bmajor); 378 struct kinfo_drivers *kd; local [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/kafs/ |
| afskrb5.c | 257 struct kafs_data kd; local 261 kd.name = "krb5"; 262 kd.afslog_uid = afslog_uid_int; 263 kd.get_cred = get_cred; 264 kd.get_realm = get_realm; 265 kd.get_error = get_error; 266 kd.free_error = free_error; 267 kd.data = &d; 281 ret = afslog_uid_int(&kd, cell, 0, uid, homedir); 326 struct kafs_data kd; local [all...] |
| /src/external/bsd/unbound/dist/validator/ |
| val_kentry.c | 55 struct key_entry_data* kd = (struct key_entry_data*)data; local 57 s += sizeof(*kd) + lock_get_mem(&kk->entry.lock); 58 if(kd->rrset_data) 59 s += packed_rrset_sizeof(kd->rrset_data); 60 if(kd->reason) 61 s += strlen(kd->reason)+1; 62 if(kd->algo) 63 s += strlen((char*)kd->algo)+1; 94 struct key_entry_data* kd = (struct key_entry_data*)data; local 95 free(kd->reason) [all...] |
| /src/external/gpl2/lvm2/dist/libdm/ioctl/ |
| libdm_netbsd.c | 64 struct kinfo_drivers *kd; local 71 if ((kd = malloc (val_len)) == NULL){ 72 printf("malloc kd info error\n"); 76 if (sysctlbyname("kern.drivers", kd, &val_len, NULL, 0) < 0) { 77 printf("sysctlbyname failed kd"); 81 for (i = 0, val_len /= sizeof(*kd); i < val_len; i++) { 82 if (strncmp(kd[i].d_name,DM_NAME,strlen(kd[i].d_name)) == 0) { 86 *major = kd[i].d_cmajor; 89 *major = kd[i].d_bmajor 399 struct kinfo_drivers *kd; local [all...] |
| /src/external/mit/libuv/dist/src/unix/ |
| netbsd.c | 140 kvm_t *kd = NULL; local 150 kd = kvm_open(NULL, NULL, NULL, KVM_NO_FILES, "kvm_open"); 152 if (kd == NULL) goto error; 154 kinfo = kvm_getproc2(kd, KERN_PROC_PID, pid, max_size, &nprocs); 159 kvm_close(kd); 164 if (kd) kvm_close(kd);
|
| /src/external/gpl3/gdb.old/dist/libiberty/testsuite/ |
| test-demangle.c | 293 enum gnu_v3_dtor_kinds kd; local 295 kd = is_gnu_v3_mangled_dtor (inp); 296 sprintf (buf, "%d", (int) kd);
|
| /src/external/gpl3/gdb/dist/libiberty/testsuite/ |
| test-demangle.c | 293 enum gnu_v3_dtor_kinds kd; local 295 kd = is_gnu_v3_mangled_dtor (inp); 296 sprintf (buf, "%d", (int) kd);
|
| /src/lib/libkvm/ |
| kvm.c | 87 kvm_geterr(kvm_t *kd) 89 return (kd->errbuf); 93 kvm_getkernelname(kvm_t *kd) 95 return kd->kernelname; 99 * Report an error using printf style arguments. "program" is kd->program 105 _kvm_err(kvm_t *kd, const char *program, const char *fmt, ...) 115 (void)vsnprintf(kd->errbuf, 116 sizeof(kd->errbuf), fmt, ap); 122 _kvm_syserr(kvm_t *kd, const char *program, const char *fmt, ...) 133 char *cp = kd->errbuf 728 kvm_t *kd; local 742 kvm_t *kd; local [all...] |
| /src/sbin/dmesg/ |
| dmesg.c | 76 kvm_read(kd, addr, &var, sizeof(var)) != sizeof(var) 220 kvm_t *kd; local 227 kd = kvm_open(nlistf, memf, NULL, O_RDONLY, "dmesg"); 228 if (kd == NULL) 230 if (kvm_nlist(kd, nl) == -1) 231 errx(1, "kvm_nlist: %s", kvm_geterr(kd)); 236 errx(1, "kvm_read: %s (0x%lx)", kvm_geterr(kd), 238 if (kvm_read(kd, (long)bufp, &cur, 241 errx(1, "kvm_read: %s (0x%lx)", kvm_geterr(kd), 248 if (kvm_read(kd, (long)&bufp->msg_bufc, bufdata [all...] |
| /src/sys/arch/sparc/dev/ |
| kd.c | 1 /* $NetBSD: kd.c,v 1.54 2014/07/25 08:10:34 dholland Exp $ */ 42 __KERNEL_RCSID(0, "$NetBSD: kd.c,v 1.54 2014/07/25 08:10:34 dholland Exp $"); 131 kd_init(struct kd_softc *kd) 142 kd->kd_tty = tp; 149 kd->rows = fbrcons_rows(); 150 kd->cols = fbrcons_cols(); 161 if (kd->rows == 0) 162 kd->rows = (u_short)ep->eeTtyRows; 163 if (kd->cols == 0) 164 kd->cols = (u_short)ep->eeTtyCols 188 struct kd_softc *kd; local 197 struct kd_softc *kd; local 252 struct kd_softc *kd; local 275 struct kd_softc *kd; local 287 struct kd_softc *kd; local 299 struct kd_softc *kd; local 311 struct kd_softc *kd; local 422 struct kd_softc *kd = &kd_softc; local 438 struct kd_softc *kd = &kd_softc; local 447 struct kd_softc *kd = &kd_softc; local [all...] |
| /src/sys/arch/sparc64/dev/ |
| kd.c | 1 /* $NetBSD: kd.c,v 1.53 2014/07/25 08:10:35 dholland Exp $ */ 42 __KERNEL_RCSID(0, "$NetBSD: kd.c,v 1.53 2014/07/25 08:10:35 dholland Exp $"); 124 kd_init(struct kd_softc *kd) 129 kd = &kd_softc; /* XXX */ 138 kd->kd_tty = tp; 147 if (kd->rows == 0 && 149 kd->rows = strtoul(prop, NULL, 10); 151 if (kd->cols == 0 && 153 kd->cols = strtoul(prop, NULL, 10); 159 struct kd_softc *kd; local 168 struct kd_softc *kd; local 224 struct kd_softc *kd; local 247 struct kd_softc *kd; local 259 struct kd_softc *kd; local 271 struct kd_softc *kd; local 283 struct kd_softc *kd; local 425 struct kd_softc *kd = &kd_softc; local 465 struct kd_softc *kd = &kd_softc; local 502 struct kd_softc *kd = &kd_softc; local [all...] |
| /src/sys/arch/sun2/dev/ |
| kd.c | 1 /* $NetBSD: kd.c,v 1.25 2014/07/25 08:10:35 dholland Exp $ */ 42 __KERNEL_RCSID(0, "$NetBSD: kd.c,v 1.25 2014/07/25 08:10:35 dholland Exp $"); 127 kd_init(struct kd_softc *kd) 138 kd = &kd_softc; /* XXX */ 147 kd->kd_tty = tp; 155 kd->rows = fbrcons_rows(); 156 kd->cols = fbrcons_cols(); 167 if (kd->rows == 0) 168 kd->rows = (u_short)ep->eeTtyRows; 169 if (kd->cols == 0 202 struct kd_softc *kd; local 211 struct kd_softc *kd; local 267 struct kd_softc *kd; local 290 struct kd_softc *kd; local 302 struct kd_softc *kd; local 314 struct kd_softc *kd; local 326 struct kd_softc *kd; local 470 struct kd_softc *kd = &kd_softc; local 511 struct kd_softc *kd = &kd_softc; local 548 struct kd_softc *kd = &kd_softc; local [all...] |
| /src/sys/arch/sun3/dev/ |
| kd.c | 1 /* $NetBSD: kd.c,v 1.61 2024/12/21 17:40:11 tsutsui Exp $ */ 42 __KERNEL_RCSID(0, "$NetBSD: kd.c,v 1.61 2024/12/21 17:40:11 tsutsui Exp $"); 116 kd_init(struct kd_softc *kd) 128 kd->kd_tty = tp; 136 struct kd_softc *kd; local 138 kd = &kd_softc; /* XXX */ 139 return (kd->kd_tty); 145 struct kd_softc *kd; local 153 kd = &kd_softc; /* XXX */ 155 kd_init(kd); 197 struct kd_softc *kd; local 218 struct kd_softc *kd; local 230 struct kd_softc *kd; local 242 struct kd_softc *kd; local 254 struct kd_softc *kd; local 373 struct kd_softc *kd = &kd_softc; local 408 struct kd_softc *kd = &kd_softc; local [all...] |
| /src/usr.bin/nfsstat/ |
| nfsstat.c | 107 static kvm_t *kd; variable 160 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf)) 164 if (kvm_nlist(kd, nl) != 0) 168 kd = NULL; 184 if (kd) { 185 if (kvm_read(kd, (u_long)nfsstataddr, ns, sizeof(*ns))
|
| /src/usr.bin/systat/ |
| main.c | 64 kvm_t *kd; variable 182 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); 183 if (kd == NULL)
|