/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/hash_provider/ |
H A D | hash_crc32.c | 37 unsigned long c, cn; local 45 mit_crc32(input[i].data, input[i].length, &cn); 46 c ^= cn;
|
/illumos-gate/usr/src/stand/lib/sa/sparc/ |
H A D | prom_misc.c | 47 static pnode_t cn = OBP_NONODE; local 49 if (cn == OBP_NONODE) { 50 cn = prom_finddevice("/chosen"); 51 if (cn == OBP_BADNODE) 62 prom_interpret(command, (uint_t)cn, prop_datalen,
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/ |
H A D | old_decrypt.c | 49 unsigned char *cn; local 84 cn = MALLOC(blocksize); 85 if (cn == NULL) { 89 (void) memcpy(cn, input->data + input->length - blocksize, blocksize); 91 cn = NULL; 131 if (cn != NULL) 132 (void) memcpy(ivec->data, cn, blocksize); 142 if (cn != NULL) 143 FREE(cn, blocksize);
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/ |
H A D | dk_decrypt.c | 86 unsigned char *plaindata = NULL, *cksum = NULL, *cn; local 140 cn = (unsigned char *) d1.data + d1.length - blocksize; 142 cn = NULL; 187 if (cn != NULL && 190 (void) memcpy(ivec->data, cn, blocksize);
|
H A D | dk_encrypt.c | 68 unsigned char *plaintext = NULL, *cn; local 126 cn = (unsigned char *) d2.data + d2.length - blocksize; 128 cn = NULL; 151 if (cn != NULL) 152 (void) memcpy(ivec->data, cn, blocksize); 232 unsigned char *plaintext, *cn; local 289 cn = (uchar_t *) d2.data + blocksize * (nblocks - 2); 291 cn = NULL; 308 if (cn != NULL) { 309 (void) memcpy(ivec->data, cn, blocksiz [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus_hba.c | 62 di_node_t cn, int instance, di_path_t pi) 94 pci_di_prop_set(child, cn, SCSI_ADDR_PROP_TARGET_PORT, 96 pci_di_prop_set(child, cn, SCSI_ADDR_PROP_ATTACHED_PORT, 98 pci_di_prop_set(child, cn, SCSI_ADDR_PROP_TARGET_PORT_PM, 100 pci_di_prop_set(child, cn, SCSI_ADDR_PROP_ATTACHED_PORT_PM, 102 if (di_prop_lookup_int64(DDI_DEV_T_ANY, cn, 108 pci_di_prop_set(child, cn, DEVID_PROP_NAME, TOPO_STORAGE_DEVID); 109 pci_di_prop_set(child, cn, INQUIRY_VENDOR_ID, 111 pci_di_prop_set(child, cn, INQUIRY_PRODUCT_ID, TOPO_STORAGE_MODEL); 112 pci_di_prop_set(child, cn, INQUIRY_REVISION_I 61 pci_scsi_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, di_node_t cn, int instance, di_path_t pi) argument 121 pci_smp_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, di_node_t cn, int instance) argument 155 pci_iport_device_create(topo_mod_t *mod, nvlist_t *auth, tnode_t *parent, di_node_t cn, int instance) argument 184 di_node_t cn, smp, sd; local [all...] |
H A D | pcibus.c | 527 di_node_t cn; local 534 for (cn = di_child_node(din); cn != DI_NODE_NIL; 535 cn = di_sibling_node(cn)) { 536 if (strcmp(di_node_name(cn), IPORT) == 0)
|
/illumos-gate/usr/src/lib/libkmf/mappers/kmf_mapper_cn/common/ |
H A D | mapper_cn.c | 93 uchar_t *cn = NULL; local 117 if ((cn = malloc(data->Length + 1)) == NULL) { 121 (void) memcpy(cn, data->Data, data->Length); 123 cn[data->Length] = '\0'; 125 name->Data = cn; 133 if (cn != NULL)
|
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_alloc.c | 44 static pc_cluster32_t pc_getcluster(struct pcfs *fsp, pc_cluster32_t cn); 61 pc_cluster32_t cn, ncn; /* current, next cluster number */ local 112 cn = ncn; 113 if (!pc_validcl(fsp, cn)) { 114 if (IS_FAT32(fsp) && cn >= PCF_LASTCLUSTER32 && 119 cn >= PCF_LASTCLUSTER && 125 "pc_bmap: badfs cn=%d\n", cn); 130 ncn = pc_getcluster(fsp, cn); 139 pcp->pc_lcluster = cn; 169 pc_cluster32_t cn; /* current cluster number */ local 257 pc_cluster32_t cn; local 332 pc_cluster32_t cn; local 365 pc_getcluster(struct pcfs *fsp, pc_cluster32_t cn) argument 406 pc_setcluster(struct pcfs *fsp, pc_cluster32_t cn, pc_cluster32_t ncn) argument 457 pc_cluster32_t cn; local [all...] |
H A D | pc_dir.c | 307 pc_cluster32_t cn; local 313 cn = pc_alloccluster(fsp, 0); 314 switch (cn) { 323 bp->b_blkno = pc_cldaddr(fsp, cn); 325 pc_setstartcluster(fsp, ep, cn); 326 pc_setstartcluster(fsp, &dirtemplate.t_dot, cn); 327 cn = pc_getstartcluster(fsp, &dp->pc_entry); 328 pc_setstartcluster(fsp, &dirtemplate.t_dotdot, cn); 850 pc_cluster32_t cn; local 876 cn 1673 pc_cluster32_t cn; local [all...] |
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | hash.c | 635 int cn; /* The latest character from node_key[] */ local 638 cn = *node_key++; 640 } while(cn && cn==tolower(cl)); 641 return cn - tolower(cl);
|
/illumos-gate/usr/src/lib/libvolmgt/common/ |
H A D | volmgt_on_private.c | 79 char *cn = NULL; /* char spcl pathname */ local 85 if ((cn = (char *)volmgt_getfullrawname(path)) == NULL) { 94 if ((fd = open(cn, O_RDONLY|O_NDELAY)) < 0) { 111 if (cn != NULL) { 112 free(cn); 271 char *cn; /* char pathname */ local 294 if ((cn = volmgt_getfullrawname(mp->mnt_special)) == NULL) { 297 if (cn[0] == NULLC) { 298 free(cn); 303 if ((fd = open(cn, O_RDONL 414 char *cn = NULL; /* char spcl pathname */ local [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_conn.c | 386 iscsi_cn_task_t *cn; local 451 cn = kmem_alloc(sizeof (*cn), KM_SLEEP); 453 cn->ct_ic = ic; 454 cn->ct_icn = icn; 455 cn->ct_data = data; 460 iscsi_client_notify_task, cn, DDI_SLEEP) != DDI_SUCCESS) {
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_config.c | 82 config_node_t *cn; local 85 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, 87 nvlist_free(cn->cn_config); 88 free(cn->cn_name); 89 free(cn); 109 config_node_t *cn; local 175 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, &cookie)) != NULL) { 176 nvlist_free(cn->cn_config); 177 free(cn->cn_name); 178 free(cn); 403 config_node_t *cn; local 448 config_node_t *cn; local [all...] |
H A D | libzfs_changelist.c | 98 prop_changenode_t *cn; local 105 for (cn = uu_list_first(clp->cl_list); cn != NULL; 106 cn = uu_list_next(clp->cl_list, cn)) { 110 cn->cn_needpost = B_FALSE; 118 if (getzoneid() == GLOBAL_ZONEID && cn->cn_zoned) 121 if (!ZFS_IS_VOLUME(cn->cn_handle)) { 127 if (zfs_unmount(cn->cn_handle, NULL, 130 cn 161 prop_changenode_t *cn; local 292 prop_changenode_t *cn; local 323 prop_changenode_t *cn; local 356 prop_changenode_t *cn; local 376 prop_changenode_t *cn; local 400 prop_changenode_t *cn; local 537 prop_changenode_t *cn; local [all...] |
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | ldap_realm.c | 192 char *cn[] = {"cn", NULL}; local 196 cn); 214 if ((values = ldap_get_values (ld, ent, "cn")) != NULL) { 805 /* If the user has not given, use the default cn=Kerberos,cn=Security */ 829 if ((st=krb5_add_str_mem_ldap_mod(&mods, "cn", LDAP_MOD_ADD, strval)) != 0) 924 /* If the user has not given, use the default cn=Kerberos,cn=Security */ 1005 dn = malloc(strlen("cn [all...] |
/illumos-gate/usr/src/uts/common/io/idm/ |
H A D | idm_conn_sm.c | 1581 idm_notify_client(idm_conn_t *ic, idm_client_notify_t cn, uintptr_t data) argument 1589 cn = (cn > CN_MAX) ? CN_MAX : cn; 1591 (void *)ic, idm_cn_strings[cn], cn); 1592 return ((*ic->ic_conn_ops.icb_client_notify)(ic, cn, data));
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | b.c | 182 int i, cn; local 199 cn = wcsetno(pc); 200 if (cn != wcsetno(c) || pc > c) 202 i = insert_table(chars, i, cn, pc, cn, c); 209 cn = wcsetno(c); 210 i = insert_table(chars, i, cn, c, cn, c);
|
/illumos-gate/usr/src/stand/lib/sock/ |
H A D | socket.c | 1248 pnode_t cn; local 1259 cn = prom_finddevice("/chosen"); 1260 if ((proplen = prom_getproplen(cn, "net-config-strategy")) < 1262 (void) prom_getprop(cn, "net-config-strategy", net_options);
|
/illumos-gate/usr/src/uts/sun/io/ttymux/ |
H A D | ttymux_ioctl.c | 182 enable_device(sm_mux_state_t *ms, sm_console_t *cn) argument 186 if (!cn->sm_obp_con) 190 getmajor(cn->sm_dev), getminor(cn->sm_dev))); 192 if (cn->sm_i_ihdl != 0) 194 (caddr32_t)cn->sm_i_ihdl, 0, 0, 0); 196 if (cn->sm_o_ihdl != 0 && cn->sm_o_ihdl != cn->sm_i_ihdl) 198 (caddr32_t)cn 205 disable_device(sm_mux_state_t *ms, sm_console_t *cn) argument 224 device_init_impl(sm_mux_state_t *ms, sm_console_t *cn, sm_lqi_t *plqi) argument 268 device_fini_impl(sm_mux_state_t *ms, sm_console_t *cn, sm_lqi_t *plqi) argument 495 sm_console_t *cn; local 610 sm_console_t *cn; local 643 sm_console_t *cn; local 678 sm_console_t *cn; local [all...] |
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/ |
H A D | ttymux_dacf.c | 220 sm_console_t *cn = &sp->sm_cons_links[j]; local 221 if (cn->sm_mode & FORINPUT) 223 if (cn->sm_mode & FOROUTPUT) 225 if (cn->sm_mode == FORIO) 401 sm_console_t *cn; local 404 for (cn = ms->sm_cons_links, j = 0; 405 j < ms->sm_cons_cnt; cn++, j++) { 406 if (cn->sm_path && strcmp(cn->sm_path, path) == 0) 411 cn 428 sm_console_t *cn; local 472 sm_console_t *cn; local 600 link_aconsole(vnode_t *mux_avp, sm_console_t *cn) argument 678 enable_aconsole(sm_mux_state_t *ms, sm_console_t *cn, vnode_t *muxvp) argument 702 sm_console_t *cn; local 898 sm_console_t *cn = &ms->sm_cons_links[i]; local [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | ap_sbd.c | 228 char *cn, *dn; local 275 cn = a->cname; 295 if ((dn == NULL && cn == NULL) || 296 (dn != NULL && cn != NULL && strcmp(dn, cn) == 0)) {
|
/illumos-gate/usr/src/cmd/cmd-crypto/elfsign/ |
H A D | elfsign.c | 896 char cn[CN_MAX_LENGTH + 1]; local 926 if ((fgets(cn, sizeof (cn), stdin) == NULL) || (cn[0] == '\n')) { 931 if (cn[strlen(cn) - 1] == '\n') { 932 cn[strlen(cn) - 1] = '\0'; /* chop trailing \n */ 940 dn_len = strlen(cn) + strlen(dnfmt); 942 (void) snprintf(dn, dn_len, dnfmt, cn); [all...] |
/illumos-gate/usr/src/lib/libast/common/regex/ |
H A D | regcomp.c | 361 unsigned long cn; local 386 cn = env->stats.n; 406 if ((env->stats.n += cn) < n) 442 cn = env->stats.n; 462 if ((env->stats.n += cn) < nn) 599 cn = env->stats.n; 600 if ((env->stats.n += e->re.string.size) < cn) 615 cn = env->stats.n; 616 if ((env->stats.n += e->re.trie.max) < cn)
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_connmgmt.c | 1386 ns_conn_mt_t *cn; local 1426 for (cn = cmg->cm_head; cn; cn = cn->next) { 1427 (void) mutex_lock(&cn->lock); 1428 rc = match_conn_mt(cu, &cn, st, server, cred); 1429 if (rc == B_FALSE && cn != NULL) /* not found */ 1431 if (cn == NULL) { /* not found and cn free [all...] |