/illumos-gate/usr/src/lib/efcode/fcdriver/ |
H A D | get_req.c | 154 "%s: Fcode from device: len: 0x%x\n", func_name, 165 int len; local 173 if ((buf = pop_a_string(env, &len)) == NULL) { 182 log_message(MSG_INFO, "Fcode %p,%x to file '%s'\n", buf, len, fname); 183 fwrite(buf, len, sizeof (char), fd); 263 debug_msg(DEBUG_FIND_FCODE, "%s: FS dev-id: len: 0x%x\n", 273 debug_msg(DEBUG_FIND_FCODE, "%s: FS cls-id len: 0x%x\n", 281 debug_msg(DEBUG_FIND_FCODE, "%s: DEV fcode len: 0x%x\n", 291 debug_msg(DEBUG_FIND_FCODE, "%s: dropin dev-id len: 0x%x\n", 301 debug_msg(DEBUG_FIND_FCODE, "%s: dropin cls-id len [all...] |
/illumos-gate/usr/src/lib/efcode/gp2/ |
H A D | gp2.c | 39 mem_map_in(fcode_env_t *env, fstack_t hi, fstack_t lo, fstack_t len) argument 49 * The calculation of the offset, lo and len are left here 55 len = (len + offset + PAGEOFFSET) & PAGEMASK; 57 error = fc_run_priv(pdp->common, service, 3, 1, fc_size2cell(len), 63 mcookie = mapping_to_mcookie(virt, len, NULL, NULL); 78 mem_map_out(fcode_env_t *env, fstack_t mcookie, fstack_t len) argument 87 * The calculation of the offset, lo and len are left here 93 len = (len 131 fstack_t phi, pmid, plo, len, addr; local 144 fstack_t addr, len; local [all...] |
/illumos-gate/usr/src/lib/efcode/jupiter/ |
H A D | jupiter.c | 51 mem_map_in(fcode_env_t *env, fstack_t hi, fstack_t lo, fstack_t len) argument 61 * The calculation of the offset, lo and len are left here 67 len = (len + offset + PAGEOFFSET) & PAGEMASK; 69 error = fc_run_priv(pdp->common, service, 3, 1, fc_size2cell(len), 75 mcookie = mapping_to_mcookie(virt, len, NULL, NULL); 90 mem_map_out(fcode_env_t *env, fstack_t mcookie, fstack_t len) argument 99 * The calculation of the offset, lo and len are left here 105 len = (len 127 fstack_t phi, plo, len, addr; local 140 fstack_t addr, len; local [all...] |
/illumos-gate/usr/src/lib/efcode/pci/ |
H A D | pci.c | 208 fstack_t phi, pmid, plo, len, addr; local 211 len = POP(DS); 215 addr = mem_map_in(env, phi, pmid, plo, len); 222 fstack_t addr, len; local 225 len = POP(DS); 227 mem_map_out(env, addr, len);
|
/illumos-gate/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | scheme.c | 188 ssize_t len; local 205 if ((len = sp->sch_ops.sop_nvl2str(nvl, &c, sizeof (c))) == -1 || 206 (s = malloc(len + 1)) == NULL || 207 sp->sch_ops.sop_nvl2str(nvl, s, len + 1) == -1) {
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | cpu.c | 337 ssize_t len; local 346 if ((len = fmri_nvl2str(in, fver, NULL, 0)) == 0 || 347 (name = topo_mod_alloc(mod, len + 1)) == NULL || 348 fmri_nvl2str(in, fver, name, len + 1) == 0) 352 topo_mod_free(mod, name, len + 1); 357 topo_mod_free(mod, name, len + 1); 360 topo_mod_free(mod, name, len + 1);
|
H A D | dev.c | 203 ssize_t len; local 210 if ((len = fmri_nvl2str(nvl, NULL, 0)) == 0 || 211 (name = topo_mod_alloc(mod, len + 1)) == NULL || 212 fmri_nvl2str(nvl, name, len + 1) == 0) { 214 topo_mod_free(mod, name, len + 1); 221 topo_mod_free(mod, name, len + 1); 225 topo_mod_free(mod, name, len + 1); 240 size_t len; local 249 len = strlen(str); 255 * The shortest legal string would be "dev:////" (len 385 int len; local 465 int len; local [all...] |
H A D | mem.c | 140 mem_fmri_uriescape(const char *s, const char *xmark, char *buf, size_t len) argument 166 for (p = s, q = buf; (c = *p) != '\0' && q < buf + len; p++) { 176 if (q == buf + len) 177 q--; /* len is too small: truncate output string */ 192 size_t len; local 249 len = snprintf(NULL, 0, format, prefix, escunum, val) + 1; 250 buf = topo_mod_zalloc(mod, len); 257 (void) snprintf(buf, len, format, prefix, escunum, val); 261 topo_mod_free(mod, buf, len);
|
H A D | mod.c | 333 ssize_t len; local 340 if ((len = fmri_nvl2str(nvl, NULL, 0)) == 0 || 341 (name = topo_mod_alloc(mod, len + 1)) == NULL || 342 fmri_nvl2str(nvl, name, len + 1) == 0) { 344 topo_mod_free(mod, name, len + 1); 351 topo_mod_free(mod, name, len + 1); 355 topo_mod_free(mod, name, len + 1);
|
H A D | pkg.c | 305 ssize_t len; local 312 if ((len = fmri_nvl2str(nvl, NULL, 0)) == 0 || 313 (name = topo_mod_alloc(mod, len + 1)) == NULL || 314 fmri_nvl2str(nvl, name, len + 1) == 0) { 316 topo_mod_free(mod, name, len + 1); 323 topo_mod_free(mod, name, len + 1); 327 topo_mod_free(mod, name, len + 1);
|
H A D | topo_subr.c | 173 size_t len; local 179 len = vsnprintf(&c, 1, format, ap); 180 msg = alloca(len + 2); 181 (void) vsnprintf(msg, len + 1, format, ap); 183 if (msg[len - 1] != '\n') 184 (void) strcpy(&msg[len], "\n"); 336 topo_sensor_type_name(uint32_t type, char *buf, size_t len) argument 342 (void) strlcpy(buf, ntp->int_name, len); 347 (void) snprintf(buf, len, "0x%02x", type); 351 topo_sensor_units_name(uint8_t type, char *buf, size_t len) argument 366 topo_led_type_name(uint8_t type, char *buf, size_t len) argument 381 topo_led_state_name(uint8_t type, char *buf, size_t len) argument 396 topo_sensor_state_name(uint32_t sensor_type, uint8_t state, char *buf, size_t len) argument [all...] |
/illumos-gate/usr/src/lib/fm/topo/modules/common/ipmi/ |
H A D | ipmi_enum.c | 219 size_t len; local 288 len = strlen(label); 289 (void) snprintf(label + len, sizeof (label) - len, "%s %d",
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus_labels.c | 226 size_t len; local 351 len = strlen(ancestor_l) + strlen(l) + 2; 352 new_l = alloca(len); 353 (void) snprintf(new_l, len, "%s/%s", ancestor_l, l);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/ |
H A D | cpu.c | 300 int len; local 305 len = (frup->part ? strlen(frup->part) : 0) + 307 str = cpu_alloc(len); 308 (void) snprintf(str, len, "%s%s", 312 cpu_free(str, len);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/ |
H A D | name.c | 342 OM_uint32 len = input->length; local 344 OM_uint32 oidlen; /* includes object tag len & DER len bytes */ 351 /* The len must be at least this big */ 352 if (len < tokid_len + OIDlen_len + namelen_len) 365 if (len < tokid_len + OIDlen_len + oidlen + namelen_len) 371 currlen = len - (tokid_len + OIDlen_len + oidlen + namelen_len); 387 if (len < tokid_len + OIDlen_len + oidlen + namelen_len + namelen) 649 OM_uint32 len; local 669 len [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | asn1_encode.c | 160 encode_bytestring_with_tag(asn1buf *buf, unsigned int len, argument 167 if (len > 0 && val == 0) return ASN1_MISSING_FIELD; 168 retval = asn1buf_insert_octetstring(buf, len, val); 171 len, &length); 174 *retlen = len + length; 178 asn1_error_code asn1_encode_oid(asn1buf *buf, unsigned int len, argument 182 return encode_bytestring_with_tag(buf, len, val, ASN1_OBJECTIDENTIFIER, 186 asn1_error_code asn1_encode_octetstring(asn1buf *buf, unsigned int len, argument 190 return encode_bytestring_with_tag(buf, len, val, ASN1_OCTETSTRING, 208 asn1_error_code asn1_encode_printablestring(asn1buf *buf, unsigned int len, 236 int len; local 276 asn1_encode_generalstring(asn1buf *buf, unsigned int len, const void *val, unsigned int *retlen) argument 284 asn1_encode_bitstring(asn1buf *buf, unsigned int len, const void *val, unsigned int *retlen) argument 302 asn1_encode_opaque(asn1buf *buf, unsigned int len, const void *val, unsigned int *retlen) argument [all...] |
H A D | asn1buf.c | 172 asn1_error_code asn1buf_insert_octetstring(asn1buf *buf, const unsigned int len, const krb5_octet *s) argument 177 retval = asn1buf_ensure_space(buf,len); 179 for(length=1; length<=len; length++,(buf->next)++) 180 *(buf->next) = (char)(s[len-length]); 184 asn1_error_code asn1buf_insert_charstring(asn1buf *buf, const unsigned int len, const char *s) argument 189 retval = asn1buf_ensure_space(buf,len); 191 for(length=1; length<=len; length++,(buf->next)++) 192 *(buf->next) = (char)(s[len-length]); 204 asn1_error_code asn1buf_remove_octetstring(asn1buf *buf, const unsigned int len, asn1_octet **s) argument 209 if (len > bu 223 asn1buf_remove_charstring(asn1buf *buf, const unsigned int len, char **s) argument [all...] |
H A D | ldap_key_seq.c | 283 unsigned int *len, asn1_octet **val) 300 ret = asn1_decode_octetstring (&subbuf, len, val); checkerr; 282 decode_tagged_octetstring(asn1buf *buf, asn1_tagnum expectedtag, unsigned int *len, asn1_octet **val) argument
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/ |
H A D | kt_srvtab.c | 258 krb5_ktsrvtab_get_name(krb5_context context, krb5_keytab id, char *name, unsigned int len) argument 265 memset(name, 0, len); 267 if (len < strlen(id->ops->prefix)+2) 273 len -= strlen(id->ops->prefix)+1; 276 if (len < strlen(KTFILENAME(id))+1) 409 read_field(FILE *fp, char *s, int len) argument 414 if (c == EOF || len <= 1) 418 len--;
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | conv_princ.c | 57 unsigned int len : 8; member in struct:krb_convert 173 if (p->len == compo->length
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | hst_realm.c | 97 int ret, rdlen, len; local 139 len = *p++; 140 *realm = malloc((size_t)len + 1); 145 strncpy(*realm, (const char *)p, (size_t)len); 146 (*realm)[len] = '\0'; 148 if ( (*realm)[len-1] == '.' ) 149 (*realm)[len-1] = '\0';
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
H A D | rc_file.c | 265 unsigned int len; local 270 retval = krb5_rc_io_read(context, &t->d, (krb5_pointer) &len, 271 sizeof(len)); 275 if ((len <= 0) || (len >= maxlen)) 278 rep->client = malloc (len); 282 retval = krb5_rc_io_read(context, &t->d, (krb5_pointer) rep->client, len); 286 retval = krb5_rc_io_read(context, &t->d, (krb5_pointer) &len, 287 sizeof(len)); 291 if ((len < 442 int clientlen, serverlen, len; local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | accept_sec_context.c | 1250 int len = strlen(ms_e_data); local 1252 krb_error_data.e_data.data = malloc(len); 1254 (void) memcpy(krb_error_data.e_data.data, ms_e_data, len); 1255 krb_error_data.e_data.length = len;
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_file.c | 170 size_t len, flen, slen; local 175 len = slen + flen + 1; 176 if (len < sizeof(struct _prf_data_t)) 177 len = sizeof(struct _prf_data_t); 178 d = malloc(len); 181 memset(d, 0, len); 200 unsigned int len; local 216 len = strlen(filespec)+1; 232 len += strlen(home_env); 234 expanded_filename = malloc(len); [all...] |
H A D | prof_parse.c | 461 static void add_data_to_buffer(struct prof_buf *b, const void *d, size_t len) argument 465 if (b->max - b->cur < len) { 469 newsize = b->max + (b->max >> 1) + len + 1024; 478 memcpy(b->base + b->cur, d, len); 479 b->cur += len; /* ignore overflow */
|