/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_token.c | 93 m->len = adr_count(&adr); 131 m->len = adr_count(&adr); 157 m->len = adr_count(&adr); 234 m->len = adr_count(&adr); 331 m->len = adr_count(&adr); 356 token->len = (char)adr_count(&adr); 431 token->len = (char)adr_count(&adr); 451 size_t len; local 461 token->len = (char)adr_count(&adr); 465 len [all...] |
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
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...] |
/illumos-gate/usr/src/boot/sys/boot/sparc64/boot1/ |
H A D | boot1.c | 60 static void bcopy(const void *src, void *dst, size_t len); 61 static void bzero(void *b, size_t len); 157 ofw_getprop(ofwh_t ofwh, const char *name, void *buf, size_t len) argument 166 len, 171 printf("ofw_getprop: ofwh=0x%x buf=%p len=%u\n", 172 ofwh, buf, len); 214 ofw_read(ofwh_t devh, void *buf, size_t len) argument 222 len, 227 printf("ofw_read: devh=0x%x buf=%p len=%u\n", devh, buf, len); 234 ofw_write(ofwh_t devh, const void *buf, size_t len) argument 287 bcopy(const void *src, void *dst, size_t len) argument 297 memcpy(void *dst, const void *src, size_t len) argument 304 bzero(void *b, size_t len) argument 384 size_t len; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | ipcp.c | 454 ipcp_input(unit, p, len) 457 int len; 459 fsm_input(&ipcp_fsm[unit], p, len); 550 int len = *lenp; local 554 if (len >= CILEN_ADDRS) { \ 559 len -= CILEN_ADDRS; \ 567 if (len >= vjlen) { \ 575 len -= vjlen; \ 582 if (len >= CILEN_ADDR) { \ 586 len 1019 int len, cilen, type; local 1790 int code, id, len, olen; local [all...] |
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | clnt_vc.c | 401 opt->len = sizeof (int); 404 req.opt.len = sizeof (struct opthdr) + opt->len; 435 opt->len = sizeof (int); 438 req.opt.len = sizeof (struct opthdr) + opt->len; 469 ct->ct_addr.len = 0; 497 sndcallstr.opt.len = 0; 498 sndcallstr.udata.len = 0; 619 ct->ct_addr.len 1156 read_vc(void *ct_tmp, caddr_t buf, int len) argument 1321 write_vc(void *ct_tmp, caddr_t buf, int len) argument 1393 t_rcvall(int fd, char *buf, int len) argument 1491 int len = MIN(nBytes, REMAIN_BYTES(bufferWritePtr)); local 1763 int len = result - ct->ct_bufferPendingSize; local [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_subr.c | 58 size_t off, len, vlen, wlen; local 70 for (len = 0; p >= s && *p != ':'; len++) 78 if ((v = strchr(q, '$')) != NULL && v < q + len) { 81 * reset len to the length of the text prior to '$'. If 87 vlen = (size_t)(q + len - v); 88 len = (size_t)(v - q); 138 if (len + vlen >= dtrace_probespecs[spec].dtps_len) 142 bcopy(q, (char *)pdp + off, len); local 143 bcopy(v, (char *)pdp + off + len, vle local 172 dtrace_desc2str(const dtrace_probedesc_t *pdp, char *buf, size_t len) argument 184 dtrace_attr2str(dtrace_attribute_t attr, char *buf, size_t len) argument 345 dt_attr_str(dtrace_attribute_t a, char *buf, size_t len) argument 363 dt_version_num2str(dt_version_t v, char *buf, size_t len) argument 515 ssize_t len; local 559 int len; local 808 int len = strlen(s); local [all...] |
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | dwarf.c | 76 dwarf_extract_uint(uchar_t *data, size_t len, uint64_t *ndx, int size, argument 79 if (((*ndx + size) > len) || 190 * len - Length of FDE 206 dump_cfi(uchar_t *data, uint64_t off, uint64_t *ndx, uint_t len, argument 238 len += 4; 253 while (*ndx < len) { 277 if (uleb_extract(&data[off], ndx, len, &oper1) == 309 (*ndx < len) && (data[off + *ndx] == 0); 322 switch (dwarf_ehe_extract(&data[off], len, ndx, 352 switch (dwarf_extract_uint(data + off, len, [all...] |
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_alloc.c | 62 size_t size, size_t *len); 271 size_t len; local 330 &len, &tx_ring->tbd_acc_handle); 351 bzero(tx_ring->tbd_area, len); 391 &len, &tx_ring->tbd_acc_handle); 409 bzero(tx_ring->tbd_area, len); 417 len = size - templong; 434 len, DDI_DMA_RDWR | DDI_DMA_CONSISTENT, 457 "Count - %d Len - %d", cookie_count, len); 476 size_t len; local 857 size_t len; local 955 size_t len; local 1041 e1000g_dma_mem_alloc_82546(dma_buffer_t *buf, size_t size, size_t *len) argument 1089 e1000g_cross_64k_bound(void *addr, uintptr_t len) argument [all...] |
/illumos-gate/usr/src/uts/common/io/igb/ |
H A D | igb_tx.c | 121 uint32_t hdr_len, len; local 187 len = MBLKL(mp); 189 while (len < hdr_len) { 192 len += MBLKL(hdr_current_mp); 199 if (len == hdr_len) 202 hdr_frag_len = hdr_len - (len - MBLKL(hdr_current_mp)); 327 ASSERT((tcb->tx_buf.len + current_len) <= 338 } else if ((tcb->tx_buf.len + current_len + next_len) > 483 uint32_t len, boolean_t copy_done) 501 if (len > 482 igb_tx_copy(igb_tx_ring_t *tx_ring, tx_control_block_t *tcb, mblk_t *mp, uint32_t len, boolean_t copy_done) argument 543 igb_tx_bind(igb_tx_ring_t *tx_ring, tx_control_block_t *tcb, mblk_t *mp, uint32_t len) argument 602 uint32_t len; local [all...] |
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | boot.c | 43 int len, i, exec_type = 0, align_4k = 1; local 67 if (!(len = grub_read (buffer, MULTIBOOT_SEARCH)) || len < 32) 77 for (i = 0; i < len; i++) 79 if (MULTIBOOT_FOUND ((int) (buffer + i), len - i)) 103 && len > sizeof (Elf32_Ehdr) 118 >= len)) 172 else if (len > sizeof (struct exec) && !N_BADMAG ((*(pu.aout)))) 774 int len; local 782 len 811 int len; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dns.c | 60 static void print_ip(int af, char *line, const uchar_t *data, uint16_t len); 63 static size_t print_char_string(char *line, const uchar_t *data, uint16_t len); 70 interpret_dns(int flags, int proto, const uchar_t *data, int len, int port) argument 99 if (sizeof (dns_header) > len) { 102 data_end = data + len; 536 line += sprintf(line, " %s UDP %u rc %d ver %u len %u", 746 print_ip(int af, char *line, const uchar_t *data, uint16_t len) argument 754 if (len != sizeof (in_addr_t)) 759 if (len != sizeof (in6_addr_t)) 774 int len; local 795 print_char_string(char *line, const uchar_t *data, uint16_t len) argument 816 uint8_t len; local [all...] |
H A D | snoop_rpc.c | 60 static void rpc_detail_reply(int, int, struct cache_struct *, char *, int len); 242 char *data, int len) 256 protoprint(flags, CALL, xid, prog, vers, proc, data, len); 274 tohex(char *p, int len) argument 281 if (len * 2 > sizeof (hbuff)) { 283 len = sizeof (hbuff) / 2; 287 for (i = 0; i < len; i++) { 293 hbuff[len * 2 - strlen("<Too Long>")] = '\0'; 305 int uid, gid, len; local 314 "Credentials: Flavor = %d (%s), len 241 rpc_detail_call(int flags, int xid, int rpcvers, int prog, int vers, int proc, char *data, int len) argument 611 rpc_detail_reply(int flags, int xid, struct cache_struct *x, char *data, int len) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_promif.c | 82 kmdb_prom_polled_write(caddr_t buf, size_t len) argument 89 for (i = 0; i < len; i++) { 95 return (len); 99 kmdb_prom_reader(caddr_t buf, size_t len, int wait) argument 104 while (nread < len) { 117 kmdb_prom_writer(caddr_t buf, size_t len) argument 120 return (kmdb_prom_polled_write(buf, len)); 122 return (kmdb_prom_obp_writer(buf, len)); 151 kmdb_prom_drain_readbuf(void *buf, size_t len) argument 160 n = MIN(kmdb_prom_readbuf_head - kmdb_prom_readbuf_tail, len); 199 check_int(char *buf, size_t len) argument 299 kmdb_prom_read(void *buf, size_t len, struct termios *tio) argument 345 kmdb_prom_write(const void *bufp, size_t len, struct termios *tio) argument [all...] |
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | mdeg.c | 780 mdeg_spec_str(mdeg_node_spec_t *spec, char *buf, int len) argument 785 char *end = buf + len; 787 offset = snprintf(buf, len, "%s:{", spec->namep); 790 len -= offset; 791 if (len <= 0) 800 offset = snprintf(buf, len, "%s%s=0x%lx", 803 len -= offset; 804 if (len <= 0) 809 offset = snprintf(buf, len, "%s%s=%s", 812 len 848 mdeg_match_str(mdeg_node_match_t *match, char *buf, int len) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | physmem.c | 96 static int physmem_getpage(struct vnode *vp, offset_t off, size_t len, 101 caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, 105 caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, 223 physmem_get_hash(uint64_t req_paddr, size_t len, proc_t *procp) argument 238 (req_paddr + len <= 351 size_t len; local 358 len = pspp->len; 364 if (!IS_P2ALIGNED(len, PAGESIZE)) 395 if (as_gap(as, len, 618 size_t len; local 643 physmem_getpage(struct vnode *vp, offset_t off, size_t len, uint_t *protp, page_t *pl[], size_t plsz, struct seg *seg, caddr_t addr, enum seg_rw rw, struct cred *cr, caller_context_t *ct) argument 674 physmem_addmap(struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cred, caller_context_t *ct) argument 687 physmem_delmap(struct vnode *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cred, caller_context_t *ct) argument [all...] |
/illumos-gate/usr/src/lib/libhotplug/common/ |
H A D | libhotplug.c | 715 size_t len; local 744 if ((rv = i_hp_pack_branch(node, &buf, &len)) == 0) { 746 (uchar_t *)buf, len); 755 len = 0; 757 if ((rv = nvlist_pack(nvl, &buf, &len, NV_ENCODE_NATIVE, 0)) == 0) { 758 *lenp = len; 813 size_t len = 0; local 817 (uchar_t **)&buf, (uint_t *)&len)) == 0) { 818 rv = i_hp_unpack_branch(buf, len, NULL, &root); 882 size_t len; local 940 size_t len = 0; local 1001 size_t len; local 1071 i_hp_unpack_node(char *buf, size_t len, hp_node_t parent, hp_node_t *retp) argument 1174 size_t len = 0; local 1339 size_t len = 0; local [all...] |
/illumos-gate/usr/src/common/lzma/ |
H A D | LzFind.c | 332 UInt32 len = 0; local 333 while (++len != lenLimit) 334 if (pb[len] != cur[len]) 336 if (maxLen < len) 338 *distances++ = maxLen = len; 340 if (len == lenLimit) 366 UInt32 len = (len0 < len1 ? len0 : len1); local 367 if (pb[len] == cur[len]) 420 UInt32 len = (len0 < len1 ? len0 : len1); local [all...] |
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | sysfiles.c | 484 getsysline(char *buf, int len) argument 498 while (fgets(buf, len, fsystems) != NULL) 532 getdevline(char *buf, int len) argument 542 if (fgets(buf, len, fdevices) != NULL) 574 getdialline(char *buf, int len) argument 584 if (fgets(buf, len, fdialers) != NULL) 615 getpop(char *buf, size_t len, int *optional) argument 627 len = (slen < len ? slen : len); 642 getpush(char *buf, size_t len) argument [all...] |
/illumos-gate/usr/src/common/net/wanboot/ |
H A D | p12misc.c | 355 int len = 0; local 385 len = str->length; 386 if ((*keyid_str = malloc(len)) == NULL) { 391 (void) memcpy(*keyid_str, str->data, len); 392 *keyid_len = len; 394 return (len); 419 int len = 0; local 457 len = strlen(*fname); 459 return (len); 494 sunw_find_localkeyid(char *keyid_str, int len, STACK_O argument 707 sunw_issuer_attrs(X509 *cert, char *buf, int len) argument 738 sunw_subject_attrs(X509 *cert, char *buf, int len) argument [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | debug.c | 370 int i, len; local 410 len = SNMP_DMAX_LINE - SNMP_DASN_INDENT - strlen(SNMP_DTEXT_PREFIX) - 1; 414 (void) snprintf(p, len, " %02x", pkt[i]); 417 len -= 3; 419 (void) snprintf(p, len, "\n"); 432 int i, len; local 477 len = SNMP_DMAX_LINE - SNMP_DPKT_INDENT + strlen(SNMP_DTEXT_PREFIX); 480 (void) snprintf(bufp, len, "%02x ", p[i]); 482 (void) snprintf(bufp, len, " "); 485 len 578 int len; local [all...] |
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | gnu_handle.c | 330 size_t len; local 354 if ((dupmsg->str_len == str->len) && 355 (memcmp(dupmsg->str, str->str, str->len) == 0)) { 402 if (str->len == str->no) { 415 if ((id->no == 1) && (id->len == 1)) { 435 len = p - charset; 438 len = strlen(charset); 440 tmp = Xmalloc(len + 1); 441 (void) memcpy(tmp, charset, len); 442 *(tmp + len) 515 size_t dirlen, filelen, len; local [all...] |
/illumos-gate/usr/src/cmd/sgs/tools/common/ |
H A D | string_table.c | 198 size_t len; local 212 if ((len = strlen(str)) == 0) 215 stp->st_fullstrsize += len + 1; 226 ln.ln_strlen = len; 230 lnp->ln_strlen = len; 264 size_t len; local 273 len = strlen(str); 274 stp->st_fullstrsize -= len + 1; 282 ln.ln_strlen = len; 446 st_hash_insert(Str_tbl *stp, const char *str, size_t len) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_sa.c | 95 zfs_sa_symlink(znode_t *zp, char *link, int len, dmu_tx_t *tx) argument 99 if (ZFS_OLD_ZNODE_PHYS_SIZE + len <= dmu_bonus_max()) { 101 len + ZFS_OLD_ZNODE_PHYS_SIZE, tx) == 0); 102 if (len) { 104 ZFS_OLD_ZNODE_PHYS_SIZE, len); local 109 zfs_grow_blocksize(zp, len, tx); 115 ASSERT3U(len, <=, dbp->db_size); 116 bcopy(link, dbp->db_data, len); 137 int len; local 143 len 170 int len; local [all...] |
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394_fcp.c | 127 int len = arq->arq_len; local 139 if ((len == 0) || (len > AV1394_FCP_ARQ_LEN_MAX) || 140 (len % IEEE1394_QUADLET != 0)) { 142 AV1394_TNF_FCP_ERROR, "", tnf_int, len, len); 148 if (len > IEEE1394_QUADLET) { 149 if ((mp = allocb(len, BPRI_HI)) == NULL) { 178 if (len == IEEE1394_QUADLET) { 184 cmd->cmd_u.b.blk_length = len; 519 int len = arq->arq_len; local [all...] |
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | ibd.c | 136 int count, time, feedback, len, delay = 2; local 177 len = prom_read(mac_state.mac_dev, mac_state.mac_buf, 179 if (len < sizeof (struct arp_packet)) 296 int16_t len = 0, data_len; local 337 * will only copy "len" bytes into our buffer. Adjust in 341 len = prom_read(mac_state.mac_dev, mac_state.mac_buf, 350 if (len > mac_state.mac_mtu) { 352 mac_state.mac_mtu, len); 354 mac_state.mac_mtu = len; 360 len [all...] |