/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | makestr.c | 64 register int len; local 75 for (len = strlen(s); (component = va_arg(ap, char *)); ) 76 len += strlen(component); 80 if (!len) { 85 if (!(ret = Malloc(len + 1))) {
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | gets.c | 89 int err, len; local 92 len = 0; 98 if (len == 0) 107 len++; 110 return(len);
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | proc_stdio.c | 107 copy_fd(int out, FILE *in, size_t len) argument 114 while (len > 0 && !errors) { 115 rlen = (len > sizeof (buffer)) ? sizeof (buffer) : len; 121 len -= alen; 133 size_t len; local 146 if ((len = ftell(stdout)) > 0) 147 errors += copy_fd(cached_stdout_fd, stdout, len); 150 if ((len = ftell(stderr)) > 0) 151 errors += copy_fd(cached_stderr_fd, stderr, len); [all...] |
/illumos-gate/usr/src/cmd/listen/ |
H A D | nstoa.c | 111 addr->len = 0; 123 addr->len = dobase(++str, sbuf, HEX); 128 addr->len = dobase(++str, sbuf, OCT); 132 addr->len = dostring(str, sbuf, 0); 136 addr->len = dostring(--str, sbuf, quote); 145 addr->len = dostring(str, sbuf, quote); 148 if (addr->len == 0) { /* Error in conversion */ 153 if ((addr->buf = xfer(addr->buf, sbuf, addr->len, addr->maxlen)) == NULL) 173 int oc, ch, len = 0; local 178 if (len > 509 int len; local [all...] |
/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_random.c | 124 static void rndc_getbytes(uint8_t *ptr, size_t len); 224 rngprov_seed(uint8_t *buf, int len, uint_t entropy_est, uint32_t flags) argument 230 (void) KCF_PROV_SEED_RANDOM(pd, pd->pd_sid, buf, len, 323 * if no provider is found. ptr and len are unchanged. 326 rngprov_getbytes_nblk(uint8_t *ptr, size_t len) argument 375 pd->pd_sid, ptr, len, 0, 0); 388 blen = min(MINEXTRACTBYTES, len); 390 if (len < MINEXTRACTBYTES) 391 rndc_addbytes(rndbuf + len, 392 MINEXTRACTBYTES - len); 449 int len = (int)(uintptr_t)arg; local 466 rnd_get_bytes(uint8_t *ptr, size_t len, extract_type_t how) argument 557 kcf_rnd_get_bytes(uint8_t *ptr, size_t len, boolean_t noblock) argument 622 rnd_generate_pseudo_bytes(rndmag_pad_t *rmp, uint8_t *ptr, size_t len) argument 758 kcf_rnd_get_pseudo_bytes(uint8_t *ptr, size_t len) argument 933 int len = 0; local 997 rndc_addbytes(uint8_t *ptr, size_t len) argument 1024 rndc_getbytes(uint8_t *ptr, size_t len) argument 1046 random_add_pseudo_entropy(uint8_t *ptr, size_t len, uint_t entropy_est) argument 1061 random_add_entropy(uint8_t *ptr, size_t len, uint_t entropy_est) argument 1076 random_get_pseudo_bytes(uint8_t *ptr, size_t len) argument 1090 random_get_bytes(uint8_t *ptr, size_t len) argument 1100 random_get_blocking_bytes(uint8_t *ptr, size_t len) argument [all...] |
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_fru.c | 125 uint8_t len, typelen; local 144 len = BITX(typelen, 5, 0); 145 ipmi_decode_string((typelen >> 6), len, tmp+1, buf->ifpi_manuf_name); 146 tmp += len + 1; 149 len = BITX(typelen, 5, 0); 150 ipmi_decode_string((typelen >> 6), len, tmp+1, 152 tmp += len + 1; 155 len = BITX(typelen, 5, 0); 156 ipmi_decode_string((typelen >> 6), len, tmp+1, buf->ifpi_part_number); 157 tmp += len 189 uint8_t len, typelen; local [all...] |
/illumos-gate/usr/src/uts/intel/io/drm/ |
H A D | i915_gem_debug.c | 101 unsigned int len = 1, i; local 105 len = (data[0] & 0x000000ff) + 2; 106 if (len < opcodes_mi[opcode].min_len || 107 len > opcodes_mi[opcode].max_len) 114 for (i = 1; i < len; i++) { 116 BUFFER_FAIL(count, len, opcodes_mi[opcode].name); 120 return len; 132 unsigned int opcode, len; local 176 len = (data[0] & 0x000000ff) + 2; 177 if (len ! 316 unsigned int len, i, c, opcode, word, map, sampler, instr; local 557 unsigned int len, i; local 770 unsigned int len = 1, i; local 825 unsigned int opcode, len; local 1047 unsigned int len = 1, i; local [all...] |
/illumos-gate/usr/src/lib/libnsl/des/ |
H A D | des_crypt.c | 78 #define DESCOPY(src, dst, len) { \ 82 for (i = (int)len; i > 0; i -= 8) { \ 92 cbc_crypt(char *key, char *buf, size_t len, unsigned int mode, char *ivec) argument 99 err = common_crypt(key, buf, len, mode, &dp); 109 ecb_crypt(char *key, char *buf, size_t len, unsigned int mode) argument 114 return (common_crypt(key, buf, len, mode, &dp)); 123 common_crypt(char *key, char *buf, unsigned len, unsigned mode, argument 129 if ((len % 8) != 0 || len > DES_MAXDATA) 147 desp->des_len = len; 169 desN_crypt(des_block keys[], int keynum, char *buf, unsigned int len, unsigned int mode, char *ivec) argument 207 __cbc_triple_crypt(des_block keys[], char *buf, uint_t len, uint_t mode, char *ivec) argument [all...] |
/illumos-gate/usr/src/lib/libmp/common/ |
H A D | mout.c | 37 ten.len = 1; 40 x.len = 0; 41 y.len = 1; 51 a->len *= sign; 68 a->len *= sign; 88 xlen = a->len; 97 x.len = xlen; 104 while (x.len > 0) { 105 for (i = 0; i < 10 && x.len > 0; i++) { 109 if (x.len > [all...] |
/illumos-gate/usr/src/test/zfs-tests/cmd/mkholes/ |
H A D | mkholes.c | 57 get_random_buffer(size_t len) argument 62 buf = umem_alloc(len, UMEM_NOFAIL); 73 if (read(rand_fd, buf, len) < 0) { 88 off_t off, len; local 98 len = strtoull(len_str, NULL, 0); 100 if (file_size >= off + len) 102 file_size = off + len; 107 seg->seg_len = len; 149 off_t len = seg->seg_len; local 158 fl.l_len = len; [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | sctp_crc32.c | 95 sctp_crc_byte(uint32_t *crcptr, const uint8_t *buf, int len) argument 101 for (i = 0; i < len; i++) { 112 sctp_crc_word(uint32_t *crcptr, const uint32_t *buf, int len) argument 118 for (i = 0; i < len; i++) { 127 sctp_crc32(uint32_t crc32, const uint8_t *buf, int len) argument 133 if (len < rem) { 134 rem = len; 138 len = len - rem; 141 if (len > [all...] |
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | misc.c | 30 void mb_copydata(min, off, len, buf) 32 size_t off, len; 39 for (m = min; (m != NULL) && (len > 0); m = m->b_cont) { 53 clen = min(mlen, len); 55 len -= clen; 61 void mb_copyback(min, off, len, buf) 63 size_t off, len; 70 for (m = min, mp = NULL; (m != NULL) && (len > 0); m = m->b_cont) { 86 clen = min(mlen, len); 88 len [all...] |
/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_io.c | 39 size_t len; local 43 len = prom_strlen(opath) + 1; /* include terminating NUL */ 44 path = promplat_alloc(len); 66 promplat_free(path, len); 95 prom_read(ihandle_t fd, caddr_t buf, size_t len, uint_t startblk, char devtype) argument 104 buf = promplat_alloc(len); 118 ci[5] = p1275_uint2cell(len); /* Arg3: buffer length */ 128 promplat_bcopy(buf, obuf, len); 129 promplat_free(buf, len); 143 prom_write(ihandle_t fd, caddr_t buf, size_t len, uint_ argument [all...] |
H A D | prom_fb.c | 114 prom_atol(const char *str, int len) argument 118 while (len-- && (*str != '\0')) { 139 int len; local 145 if ((len = prom_getproplen(node, (caddr_t)name)) > 0) { 147 *height = prom_atol(buf, len); 151 if ((len = prom_getproplen(node, (caddr_t)name)) > 0) { 153 *width = prom_atol(buf, len);
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | misc.c | 69 size_t len; local 71 for (len = 0; ; len++) { 76 return(len); 98 kern_bzero(vm_offset_t dest, size_t len) argument 104 resid = len; 119 kern_pread(int fd, vm_offset_t dest, size_t len, off_t off) argument 128 if ((size_t)archsw.arch_readin(fd, dest, len) != len) { 142 alloc_pread(int fd, off_t off, size_t len) argument 174 hexdump(caddr_t region, size_t len) argument [all...] |
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/ |
H A D | zfs_set_common.kshlib | 136 typeset -i len=${2:-5} 141 ((len == 0)) && len=3 145 while ((i < len)); do 165 typeset -i len 166 ((len = RANDOM % sumlen)) 170 part1="$(random_string VALID_NAME_CHAR $len)" 176 ((len = sumlen - (len + 1))) 179 part2="$(random_string VALID_NAME_CHAR $len)" [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/arcfour/ |
H A D | arcfour_str2key.c | 12 static void asctouni(unsigned char *unicode, unsigned char *ascii, size_t len) argument 15 for (counter=0;counter<len;counter++) { 27 size_t len,slen; local 47 len=(slen)*2; 49 copystr = malloc(len); 58 krb5_MD4Update(&md4_context, (unsigned char *)copystr, len); 74 memset (copystr, 0, len);
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SAAdvert.c | 43 size_t off, len; local 52 len = slp_get_length(reply); 58 if ((err = slp_get_string(reply, len, &off, surl)) != SLP_OK) { 66 if ((err = slp_get_string(reply, len, &off, scopes)) != SLP_OK) { 74 if ((err = slp_get_string(reply, len, &off, attrs)) != SLP_OK) { 80 if ((err = slp_get_byte(reply, len, &off, &auth_cnt)) != SLP_OK) { 86 len - off,
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SSrvTypeMsg.java | 109 int len = 0; 111 len = hdr.getInt(dis); 116 if (len == 0) { 119 } else if (len == 0xFFFF) { 124 byte bStr[] = new byte[len]; 126 dis.readFully(bStr, 0, len); 127 hdr.nbytes += len;
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | bindresvport.c | 47 #define bzero(s, len) (void) memset((s), 0, (len)) 60 int optval, len; local 73 len = sizeof (optval); 74 if (getsockopt(sd, SOL_SOCKET, SO_TYPE, &optval, &len) < 0) { 123 len = sizeof (struct sockaddr_in); 124 (void) getsockname(sd, (struct sockaddr *)bindaddr, &len);
|
/illumos-gate/usr/src/lib/libndmp/common/ |
H A D | libndmp_door_data.c | 125 int len = ndmp_door_get_int32(ctx); local 128 if (len == -1) 131 if (ctx->ptr + len <= ctx->end_ptr) { 132 buf = malloc(len +1); 134 if (len == 0) { 137 (void) memcpy(buf, ctx->ptr, len); 138 ctx->ptr += len; 139 *(buf + len) = '\0'; 173 int len; local 176 len 282 ndmp_door_put_buf(ndmp_door_ctx_t *ctx, unsigned char *start, int len) argument 298 int len = -1; local [all...] |
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioPipe.cc | 103 size_t& len, // buffer length (updated) 112 remain = len; 127 remain = len - cnt; 130 len = cnt; 131 if (len > 0) 142 size_t& len, // buffer length (updated) 148 err = AudioUnixfile::WriteData(buf, len, pos); 101 ReadData( void* buf, size_t& len, Double& pos) argument 140 WriteData( void* buf, size_t& len, Double& pos) argument
|
/illumos-gate/usr/src/uts/common/zmod/ |
H A D | crc32.c | 224 unsigned long ZEXPORT crc32(crc, buf, len) 227 unsigned len; 242 return crc32_little(crc, buf, len); 244 return crc32_big(crc, buf, len); 248 while (len >= 8) { 250 len -= 8; 252 if (len) do { 254 } while (--len); 267 local unsigned long crc32_little(crc, buf, len) 270 unsigned len; [all...] |
H A D | inftrees.c | 42 unsigned len; /* a code's length in bits */ local 109 for (len = 0; len <= MAXBITS; len++) 110 count[len] = 0; 134 for (len = 1; len <= MAXBITS; len++) { 136 left -= count[len]; 144 for (len [all...] |
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | wcsnrtombs.c | 41 size_t nwc, size_t len, mbstate_t *_RESTRICT_KYWD ps, locale_t loc) 47 return (loc->ctype->lc_wcsnrtombs(dst, src, nwc, len, ps)); 52 size_t nwc, size_t len, mbstate_t *_RESTRICT_KYWD ps) 54 return (wcsnrtombs_l(dst, src, nwc, len, ps, uselocale(NULL))); 59 size_t nwc, size_t len, mbstate_t *_RESTRICT_KYWD ps, 84 while (len > 0 && nwc-- > 0) { 85 if (len > (size_t)MB_CUR_MAX) { 104 if (nb > (int)len) { 117 len -= nb; 40 wcsnrtombs_l(char *_RESTRICT_KYWD dst, const wchar_t **_RESTRICT_KYWD src, size_t nwc, size_t len, mbstate_t *_RESTRICT_KYWD ps, locale_t loc) argument 51 wcsnrtombs(char *_RESTRICT_KYWD dst, const wchar_t **_RESTRICT_KYWD src, size_t nwc, size_t len, mbstate_t *_RESTRICT_KYWD ps) argument 58 __wcsnrtombs_std(char *_RESTRICT_KYWD dst, const wchar_t **_RESTRICT_KYWD src, size_t nwc, size_t len, mbstate_t *_RESTRICT_KYWD ps, wcrtomb_pfn_t pwcrtomb) argument
|