/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/des/ |
H A D | ef_crypto.c | 15 long length, krb5_keyblock *key, in k5_ef_crypto() argument 33 d1.cd_length = length; in k5_ef_crypto() 35 d1.cd_raw.iov_len = length; in k5_ef_crypto() 39 d2.cd_length = length; in k5_ef_crypto() 41 d2.cd_raw.iov_len = length; in k5_ef_crypto() 52 mech.cm_param_len = ivec->length; in k5_ef_crypto()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | inq_context.c | 219 keyvalue.length = key->length; in gss_krb5int_inq_session_key() 226 oid.length = sizeof(oid_buf); in gss_krb5int_inq_session_key() 237 keyinfo.length = oid.length; in gss_krb5int_inq_session_key() 248 memset((*data_set)->elements[0].value, 0, (*data_set)->elements[0].length); in gss_krb5int_inq_session_key() 287 ad_data.length = ctx->authdata[i]->length; in gss_krb5int_extract_authz_data_from_sec_context() 309 ad_data.length = ad_if_relevant[j]->length; in gss_krb5int_extract_authz_data_from_sec_context() 348 rep.length = sizeof(ctx->krb_times.authtime); in gss_krb5int_extract_authtime_from_sec_context()
|
H A D | init_sec_context.c | 205 data->checksum_data.length = 28+credmsg.length; in make_gss_checksum() 208 data->checksum_data.length = 24; in make_gss_checksum() 348 token->length = tlen; 490 token.length = 0; in new_connection() 761 &(ap_rep.length), in mutual_auth() 763 input_token->length, 1)) { in mutual_auth() 765 &(ap_rep.length), in mutual_auth() 904 output_token->length = 0; 1117 if (p->length == 1) { 1124 if (p1->length != p2->length || [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_vm.c | 174 gfxp_fix_mem_cache_attrs(caddr_t kva_start, size_t length, int cache_attr) in gfxp_fix_mem_cache_attrs() argument 179 gfxp_ddi_dma_mem_alloc(ddi_dma_handle_t handle, size_t length, in gfxp_ddi_dma_mem_alloc() argument 203 e = ddi_dma_mem_alloc(handle, length, accattrp, l_flags, waitfp, in gfxp_ddi_dma_mem_alloc() 209 gfxp_mlock_user_memory(caddr_t address, size_t length) in gfxp_mlock_user_memory() argument 214 if (((uintptr_t)address & PAGEOFFSET) != 0 || length == 0) in gfxp_mlock_user_memory() 217 if (valid_usr_range(address, length, 0, as, as->a_userlimit) != in gfxp_mlock_user_memory() 221 error = as_ctl(as, address, length, MC_LOCK, 0, 0, NULL, 0); in gfxp_mlock_user_memory() 229 gfxp_munlock_user_memory(caddr_t address, size_t length) in gfxp_munlock_user_memory() argument 234 if (((uintptr_t)address & PAGEOFFSET) != 0 || length == 0) in gfxp_munlock_user_memory() 237 if (valid_usr_range(address, length, 0, as, as->a_userlimit) != in gfxp_munlock_user_memory() [all …]
|
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/ |
H A D | changepw.c | 208 local_kaddr.length = sizeof (((struct sockaddr_in *) 222 local_kaddr.length = addrs[0]->length; 223 local_kaddr.contents = malloc(addrs[0]->length); 225 addrs[0]->length); 242 remote_kaddr.length = sizeof (((struct sockaddr_in *) 277 if ((cc = sendto(s1, chpw_req.data, chpw_req.length, 0, 279 sizeof (addr_p[i]))) != chpw_req.length) 289 chpw_rep.length = 1500; 290 chpw_rep.data = (char *)malloc(chpw_rep.length); 310 if ((cc = recvfrom(s1, chpw_rep.data, chpw_rep.length, [all …]
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | devalloc.c | 340 int length; in _dmap2str() local 345 length += snprintf(buf + length, size - length, "%s%s", in _dmap2str() 349 length += snprintf(buf + length, size - length, "%s\n", in _dmap2str() 398 int length; in _da2str() local 416 length += snprintf(buf + length, size - length, "%s%s", in _da2str() 424 length += snprintf(buf + length, size - length, "%s%s", in _da2str() 427 if (_kva2str(dap->da_devopts, buf + length, size - length, in _da2str() 436 length += snprintf(buf + length, size - length, "%s%s", in _da2str() 440 length += snprintf(buf + length, size - length, "%s%s", in _da2str() 444 length += snprintf(buf + length, size - length, "%s\n", in _da2str() [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_crc.c | 123 iscsi_crc32c(void *address, unsigned long length) in iscsi_crc32c() argument 139 return (HW_CRC32(buffer, length, crc)); in iscsi_crc32c() 143 while (length--) { in iscsi_crc32c() 166 iscsi_crc32c_continued(void *address, unsigned long length, uint32_t crc) in iscsi_crc32c_continued() argument 182 return (HW_CRC32_CONT(buffer, length, crc)); in iscsi_crc32c_continued() 195 while (length--) { in iscsi_crc32c_continued()
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | wgetwstr.c | 53 char rownum[LENGTH], colnum[LENGTH], length[LENGTH]; in wgetnwstr() local 101 total -= (i = length[cpos]); in wgetnwstr() 128 length[cpos] = wcscrw(ch); in wgetnwstr() 130 length[cpos] = 1; in wgetnwstr() 132 length[cpos] = TABSIZE - in wgetnwstr() 135 length[cpos] = 2; in wgetnwstr() 136 total += length[cpos]; in wgetnwstr()
|
/illumos-gate/usr/src/cmd/valtools/ |
H A D | ckstr.c | 46 static int signo, length; variable 176 length = atoi(optarg); in main() 177 if ((length <= 0) || (length > 128)) { in main() 223 if (ckstr_val(regexp, length, argv[optind])) in main() 232 ckstr_err(regexp, length, error, argv[optind]); in main() 241 ckstr_hlp(regexp, length, help); in main() 260 n = ckstr(strval, regexp, length, deflt, error, help, prompt); in main()
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | ptrmove.c | 52 __m_ptr_move(array, length, start, finish, to) in __m_ptr_move() argument 54 unsigned length, start, finish, to; 59 array, length, start, finish, to 62 if (finish < start || length <= finish) 69 } else if (finish < to && to <= length) {
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | skein_mod.c | 266 size_t length = data->cd_length; in skein_digest_update_uio() local 298 length -= cur_len; in skein_digest_update_uio() 362 length); in skein_digest_final_uio() 366 length -= cur_len; in skein_digest_final_uio() 394 size_t length = data->cd_length; in skein_digest_update_mblk() local 411 while (mp != NULL && length > 0) { in skein_digest_update_mblk() 414 length -= cur_len; in skein_digest_update_mblk() 419 if (mp == NULL && length > 0) { in skein_digest_update_mblk() 465 while (mp != NULL && length > 0) { in skein_digest_final_mblk() 469 length -= cur_len; in skein_digest_final_mblk() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_util.c | 360 if (s[v->length - 1] != '\0') in lastChar() 361 return (s[v->length - 1]); in lastChar() 363 return (s[v->length - 2]); in lastChar() 372 if (v == 0 || v->length < 0) in appendString2SingleVal() 383 s = am(myself, (nl = l + v->length) + 1); in appendString2SingleVal() 390 memcpy(s, v->value, v->length); in appendString2SingleVal() 392 memcpy(&(((char *)s)[v->length]), str, l); in appendString2SingleVal() 413 return (strncmp(s, v->value, v->length)); in scmp() 753 val->val[i].length += count; in escapeSpecialChars() 770 end = s + val->val[i].length; in removeEscapeChars() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_fsinfo.c | 163 int rc, length, buflen; in smb_com_trans2_query_fs_information() local 212 length = smb_wcequiv_strlen(tree->t_volume); in smb_com_trans2_query_fs_information() 213 buflen = length + sizeof (smb_wchar_t); in smb_com_trans2_query_fs_information() 221 length, length, tmpbuf); in smb_com_trans2_query_fs_information() 225 length = strlen(tree->t_volume); in smb_com_trans2_query_fs_information() 227 fsid.val[0], length, tree->t_volume); in smb_com_trans2_query_fs_information() 241 length = strlen(tree->t_volume); in smb_com_trans2_query_fs_information() 251 length, /* label length */ in smb_com_trans2_query_fs_information() 282 length = smb_wcequiv_strlen(fsname); in smb_com_trans2_query_fs_information() 286 length = strlen(fsname); in smb_com_trans2_query_fs_information() [all …]
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_syscalls.c | 120 audit(caddr_t record, int length) in audit() argument 145 if (length > AUDIT_REC_SIZE) in audit() 158 if (length < AU_MIN_HEADER_LEN) in audit() 162 count = length; in audit() 246 if (length < hdrlen) { in audit() 271 length += zlen; in audit() 282 length += 5; in audit() 296 length += 7; in audit() 299 (void) au_append_rec(ad, au_to_trailer(length), AU_PACK); in audit() 303 adr_int32(&hadr, (int32_t *)&length, 1); in audit() [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_diag.c | 145 uint32_t length; in emlxs_diag_echo_run() local 173 length = 124; in emlxs_diag_echo_run() 176 if (!(pkt = emlxs_pkt_alloc(port, sizeof (uint32_t) + length, in emlxs_diag_echo_run() 177 sizeof (uint32_t) + length, 0, KM_NOSLEEP))) { in emlxs_diag_echo_run() 180 sizeof (uint32_t) + length); in emlxs_diag_echo_run() 213 for (i = 0; i < length; i += 4) { in emlxs_diag_echo_run() 218 bzero(pattern_buffer, length); in emlxs_diag_echo_run() 219 (void) snprintf(pattern_buffer, length, in emlxs_diag_echo_run() 263 for (i = 0; i < length; i++, pkt_resp++, pat++) { in emlxs_diag_echo_run() 267 "value %02x should be %02x.", did, length, i, in emlxs_diag_echo_run() [all …]
|
/illumos-gate/usr/src/boot/i386/isoboot/ |
H A D | cd9660read.c | 80 end = (char *)dp + isonum_711(dp->length); in susp_lookup_record() 96 end = p + isonum_733(shc->length); in susp_lookup_record() 99 p += isonum_711(sh->length); in susp_lookup_record() 102 if (isonum_711(sh->length) == 0) in susp_lookup_record() 128 *len = isonum_711(p->h.length) - 5; in rrip_lookup_name() 148 if (p > (char *)dp + isonum_711(dp->length)) { in rrip_check() 155 if (isonum_711(sp->h.length) != sizeof (ISO_SUSP_PRESENT)) { in rrip_check() 271 if (isonum_711(dp->length) == 0) { in cd9660_lookup() 289 ((char *)dp + isonum_711(dp->length)); in cd9660_lookup() 291 if (isonum_711(dp->length) == 0) { in cd9660_lookup() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/ |
H A D | token.c | 146 oid_size = mech->length; in __make_ap_token() 147 oid_size += der_length_size(mech->length); in __make_ap_token() 164 result->length = size; in __make_ap_token() 176 put_der_length(mech->length, &buf, oid_size); in __make_ap_token() 178 memcpy(buf, mech->elements, mech->length); in __make_ap_token() 237 result->length = token_size; in __make_token() 312 if ((len = get_der_length(&p, input->length - 1, &bytes)) < 0) in __get_ap_token() 319 if (input->length - 1 - bytes != len) in __get_ap_token() 351 if (input->length - hsize != token_len) in __get_ap_token() 355 if (mech->length != oid_len) in __get_ap_token() [all …]
|
/illumos-gate/usr/src/lib/rpcsec_gss/ |
H A D | rpcsec_gss_misc.c | 56 bound_len = cast_len = (u_int) buf->length; 64 buf->length = cast_len; 135 out_buf.length = 0; 163 in_buf.length = xdr_getpos(&temp_xdrs); 171 in_buf.length = 0; /* in_buf not needed */ 187 if (in_buf.length != 0) { 199 if (out_buf.length != 0) 245 in_buf.length = out_buf.length; 272 xdrmem_create(&temp_xdrs, in_buf.value, in_buf.length, XDR_DECODE);
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | crossref.c | 72 int length; /* symbol length */ member 81 int length; /* symbol length */ in crossref() local 108 length = last - first; in crossref() 109 if (truncatesyms && length > 8 && in crossref() 111 length = 8; in crossref() 115 if (length == 0) { in crossref() 121 if (length == symbol[i].length && in crossref() 123 symbol[i].first, length) == 0 && in crossref() 174 symbol[symbols].length = last - first; in savesymbol()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | sendauth.c | 68 outbuf.length = strlen(sendauth_version) + 1; in krb5_sendauth() 72 outbuf.length = strlen(appl_version) + 1; in krb5_sendauth() 103 if (!in_creds || !in_creds->ticket.length) { in krb5_sendauth() 131 if (!in_creds->ticket.length) { in krb5_sendauth() 149 d.length = sizeof (rnd_data); in krb5_sendauth() 154 d.length = len2; in krb5_sendauth() 161 d.length = len2; in krb5_sendauth() 192 if (inbuf.length) { in krb5_sendauth()
|
H A D | addr_comp.c | 67 addr1->length); in krb5_address_compare() 82 addr2->length); in krb5_address_compare() 92 if (addr1->length != addr2->length){ in krb5_address_compare() 98 addr1->length)){ in krb5_address_compare()
|
/illumos-gate/usr/src/uts/common/gssapi/ |
H A D | gssapi_ext.h | 48 (((o1)->length == (o2)->length) && \ 49 (memcmp((o1)->elements, (o2)->elements, (int)(o1)->length) == 0)) 57 bcopy((o2)->elements, (o1)->elements, (o2)->length);\ 58 (o1)->length = (o2)->length; 63 (buf)->value == NULL || (buf)->length == 0)
|
/illumos-gate/usr/src/boot/libsa/string/ |
H A D | bcmp.c | 42 bcmp(const void *b1, const void *b2, size_t length) in bcmp() argument 46 if (length == 0) in bcmp() 53 while (--length); in bcmp() 54 return (length); in bcmp()
|
/illumos-gate/usr/src/cmd/dc/ |
H A D | dc.c | 319 n = length(p); in commnds() 344 n = length(p); in commnds() 352 n = length(q); in commnds() 449 n = length(p); in commnds() 545 n = length(q); in commnds() 805 offset = length(divd) - length(divr); in dcdiv() 1027 n = length(p); in sqrt() 1096 n = length(rem); in exp() 1365 mr = salloc(length(mp) + length(mq)); in mult() 1838 size = length(a1) > length(a2) ? length(a1) : length(a2); in add() [all …]
|
/illumos-gate/usr/src/cmd/pwd/ |
H A D | pwd.c | 47 int length; in main() local 49 length = strlen(name); in main() 50 name[length] = '\n'; in main() 51 (void) write(1, name, length + 1); in main()
|