Searched refs:length (Results 1 - 25 of 1478) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_boot.c35 int length; local
46 length = prom_getproplen(node, name);
47 if ((length == -1) || (length == 0))
49 if (length > OBP_MAXPATHLEN)
50 length = OBP_MAXPATHLEN - 1; /* Null terminator */
51 (void) prom_bounded_getprop(node, name, bootargs, length);
67 int length; local
77 length = prom_getproplen(node, name);
78 if ((length
[all...]
/illumos-gate/usr/src/boot/lib/libc/string/
H A Dbcmp.c42 bcmp(const void *b1, const void *b2, size_t length) argument
46 if (length == 0)
53 while (--length);
54 return (length);
H A Dbcopy.c64 (void *dst0, const void *src0, size_t length)
69 bcopy(const void *src0, void *dst0, size_t length)
76 if (length == 0 || dst == src) /* nothing to do */
95 if ((t ^ (uintptr_t)dst) & wmask || length < wsize)
96 t = length;
99 length -= t;
105 t = length / wsize;
107 t = length & wmask;
115 src += length;
116 dst += length;
60 memcpy(void *dst0, const void *src0, size_t length) argument
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dcopy_data.c49 tempdata->length = indata->length;
50 if (tempdata->length) {
51 if (!(tempdata->data = malloc(tempdata->length))) {
55 memcpy((char *)tempdata->data, (char *)indata->data, tempdata->length);
70 outdata->length = indata->length;
71 if (outdata->length) {
72 if (!(outdata->data = malloc(outdata->length))) {
75 memcpy((char *)outdata->data, (char *)indata->data, outdata->length);
[all...]
H A Dset_realm.c36 size_t length; local
42 length = strlen(realm);
43 newrealm = malloc(length+1); /* Include room for the null */
50 krb5_princ_realm(context, principal)->length = length;
H A Dinit_allocated_keyblock.c35 unsigned int length,
44 kb->length = length;
46 if (length) {
47 kb->contents = malloc(length);
51 (void) memset(kb->contents, 0, length);
32 krb5_init_allocated_keyblock( krb5_context context, krb5_enctype enctype, unsigned int length, krb5_keyblock *kb) argument
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A Dsetenv.cc37 int length= 0, vl; local
40 for (q= environ; *q != NULL; q++, length++);
41 q= (char **)malloc((unsigned)(sizeof(char *)*(length+2)));
42 memcpy(((char *)q)+sizeof(char *), (char *)environ, sizeof(char *)*(length+1));
45 length= strlen(name);
48 length= strlen(name);
50 if (!strncmp(*q, name, length))
53 if (!p || (length+vl+1 > strlen(p)))
54 *q= p= (char *) malloc((unsigned)(length+vl+2));
57 (void)strcpy(p, name); p+= length;
[all...]
H A Dtruncate.cc29 extern int truncate(const char *path, off_t length);
36 vroot_result= truncate(path, vroot_args.truncate.length);
40 int truncate_vroot(char *path, int length, pathpt vroot_path, pathpt vroot_vroot) argument
42 vroot_args.truncate.length= length;
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dutil_token.c55 (constructed, definite-length)
56 <length> possible multiple bytes, need to parse/generate
70 the sequence tag and length octets, the mech OID DER encoding, and the
76 static unsigned int der_length_size(length)
77 int length;
79 if (length < (1<<7))
81 else if (length < (1<<8))
87 else if (length < (1<<16))
89 else if (length < (1<<24))
96 static void der_write_length(buf, length)
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dexport_name.c39 size_t length; local
52 exported_name->length = 0;
83 length = strlen(str);
84 exported_name->length = 10 + length + gss_mech_krb5->length;
85 exported_name->value = malloc(exported_name->length);
96 *cp++ = (gss_mech_krb5->length+2) >> 8;
97 *cp++ = (gss_mech_krb5->length+2) & 0xFF;
99 *cp++ = (gss_mech_krb5->length)
[all...]
H A Dutil_buffer.c40 buffer->length = strlen(str);
42 if ((buffer->value = (void *) xmalloc(buffer->length + 1)) == NULL) {
43 buffer->length = 0;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1_misc.c32 target->realm.length = source->realm.length;
33 target->realm.data = (char*)malloc(target->realm.length); /* copy realm */
36 target->realm.length);
H A Dldap_key_seq.c67 unsigned int length, sum = 0; local
76 &length); checkerr;
77 key_len += length;
78 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 1, length, &length); checkerr;
79 key_len += length;
81 ret = asn1_encode_integer (buf, key_data.key_data_type[0], &length);
83 key_len += length;
84 ret = asn1_make_etag(buf, CONTEXT_SPECIFIC, 0, length, &length); checker
142 unsigned int length, sum = 0; local
314 unsigned int length; local
404 unsigned int length; local
[all...]
/illumos-gate/usr/src/cmd/pwd/
H A Dpwd.c49 int length; local
51 length = strlen(name);
52 name[length] = '\n';
53 (void) write(1, name, length + 1);
/illumos-gate/usr/src/cmd/audio/include/
H A DAudioStream_inline.h52 // Set the length parameter
55 Double len) // new length, in secs
57 length = len;
60 // Set the length parameter, if possible
63 Double len) // new length, in secs
65 // This may be used to set the expected length of a write-only stream
67 length = len;
73 return (length);
79 return (hdr.Time_to_Bytes(length));
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dchecksum_length.c33 size_t *length)
46 *length = krb5_cksumtypes_list[i].keyhash->hashsize;
48 *length = krb5_cksumtypes_list[i].trunc_size;
50 *length = krb5_cksumtypes_list[i].hash->hashsize;
32 krb5_c_checksum_length(krb5_context context, krb5_cksumtype cksumtype, size_t *length) argument
H A Ddefault_state.c45 new_state->length = 8;
49 (void) memset (new_state->data, 0, new_state->length);
53 (void) memcpy (new_state->data, key->contents, new_state->length);
66 FREE (state->data, state->length);
68 state->length = 0;
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dfastlz.h52 int fastlz_compress(const void *input, int length, void *output);
53 int fastlz_compress_level(int level, const void *input, int length,
55 int fastlz_decompress(const void *input, int length, void *output, int maxout);
71 unsigned long block_compress(const unsigned char *, unsigned long length,
/illumos-gate/usr/src/uts/common/gssapi/
H A Dgss_release_buffer.c47 if ((buffer->length) && (buffer->value)) {
48 FREE(buffer->value, buffer->length);
49 buffer->length = 0;
/illumos-gate/usr/src/lib/libgss/
H A Dg_exp_sec_context.c51 interprocess_token->length = 0;
80 OM_uint32 length; local
110 length = token.length + 4 + ctx->mech_type->length;
111 interprocess_token->length = length;
112 interprocess_token->value = malloc(length);
118 length = ctx->mech_type->length;
[all...]
H A Dg_imp_sec_context.c79 OM_uint32 length = 0; local
104 if (interprocess_token->length >= sizeof (OM_uint32)) {
106 length = (OM_uint32)*p++;
107 length = (OM_uint32)(length << 8) + *p++;
108 length = (OM_uint32)(length << 8) + *p++;
109 length = (OM_uint32)(length << 8) + *p++;
112 if (length
[all...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/
H A Dold_decrypt.c58 if (input->length < blocksize + hashsize || input->length % blocksize != 0)
60 plainsize = input->length - blocksize - hashsize;
61 if (arg_output->length < plainsize)
64 if (arg_output->length < input->length) {
65 output.length = input->length;
67 if ((output.data = (char *) MALLOC(output.length)) == NULL) {
73 output.length
[all...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/des/
H A Df_cksum.c29 unsigned long length, krb5_keyblock *key,
38 input.length = length;
40 output.length = MIT_DES_BLOCK_LENGTH;
42 ivecdata.length = MIT_DES_BLOCK_LENGTH;
27 mit_des_cbc_cksum(krb5_context context, const krb5_octet *in, krb5_octet *out, unsigned long length, krb5_keyblock *key, const krb5_octet *ivec) argument
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_phy.c219 u32 port_mode, port, max_ports, core_cfg, length = 0; local
229 length += OSAL_SPRINTF(&p_phy_result_buf[length],
232 length += OSAL_SPRINTF(&p_phy_result_buf[length],
241 length += OSAL_SPRINTF(&p_phy_result_buf[length], "1x100G\n");
245 length += OSAL_SPRINTF(&p_phy_result_buf[length], "1x40G\n");
249 length
588 u32 length, reg_id, addr; local
633 u32 length, reg_id, addr, data_hi __unused, data_lo; local
805 int length = 0; local
822 ecore_decode_sfp_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, u32 port, u32 length, char *p_phy_result_buf) argument
1047 ecore_decode_qsfp_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, u32 port, u32 length, char *p_phy_result_buf) argument
1272 u32 length = 0; local
1356 u32 length = 0; local
1408 u32 length = 0; local
1510 u32 length = 0; local
1563 u32 length = 0; local
1690 u32 direction, ctrl, length = 0; local
[all...]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbtowc.c40 int length, c; local
57 if ((length = eucw2) == 0)
62 if ((length = eucw3) == 0)
73 length = eucw1 - 1;
77 if (length + 1 > n || length < 0)
79 while (length--) {

Completed in 74 milliseconds

1234567891011>>