/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | gb18030.c | 90 int ch, len, ocount; local 124 len = 1; 133 len = 2; 153 len = 4; 162 return (wch == L'\0' ? 0 : len - ocount); 173 size_t len; local 207 len = 4; 219 len = 2; 222 len = 1; 226 return (len); 233 _GB18030_mbsnrtowcs(wchar_t *_RESTRICT_KYWD dst, const char **_RESTRICT_KYWD src, size_t nms, size_t len, mbstate_t *_RESTRICT_KYWD ps) argument 241 _GB18030_wcsnrtombs(char *_RESTRICT_KYWD dst, const wchar_t **_RESTRICT_KYWD src, size_t nwc, size_t len, mbstate_t *_RESTRICT_KYWD ps) argument [all...] |
/illumos-gate/usr/src/common/net/wanboot/ |
H A D | bootinfo.c | 235 size_t len, buflen = *vallenp; local 240 len = sizeof (ipaddr); 243 len = *vallenp; 247 bip->bi_dhcp->opt_size, val, &len)) { 254 *vallenp = len; 257 len = strlen(strcpy(valbuf, inet_ntoa(ipaddr))) + 1; 261 if (len >= buflen) 264 ((uchar_t *)valbuf)[len++] = '\0'; 267 *vallenp = len; 276 uint_t len; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | whois.c | 268 ssize_t c, len; local 297 while ((len = getline(&buf, &buflen, sfi)) != -1) { 298 while (len > 0 && isspace((unsigned char)buf[len - 1])) 299 buf[--len] = '\0'; 300 (void) printf("%.*s\n", (int)len, buf); 303 host = strnstr(buf, WHOIS_SERVER_ID, len); 306 for (p = host; p < buf + len; p++) { 313 (int)(buf + len - host), host); 315 strnstr(buf, WHOIS_ORG_SERVER_ID, len)) ! [all...] |
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_get.c | 130 size_t len; local 146 len = t->bt_reclen; 148 if ((ch = getc(t->bt_rfp)) == EOF || !--len) { 151 if (len != 0) 152 memset(p, t->bt_bval, len); 186 indx_t len; local 206 len = p - (u_char *)t->bt_rdata.data; 213 p = (u_char *)t->bt_rdata.data + len; 244 size_t len; local 264 len [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | zone.c | 89 int len; local 139 len = mdb_readstr(name, ZONE_NAMELEN, (uintptr_t)zn.zone_name); 140 if (len > 0) { 141 if (len == ZONE_NAMELEN) 142 (void) strcpy(&name[len - 4], "..."); 154 len = mdb_readstr(path, ZONE_PATHLEN, 156 if (len > 0) { 157 if (len == ZONE_PATHLEN) 158 (void) strcpy(&path[len - 4], "..."); 358 int len; local [all...] |
/illumos-gate/usr/src/uts/sun4u/vm/ |
H A D | mach_vm_dep.c | 176 * not mapped for len bytes with a page of red zone on either side. 182 map_addr_proc(caddr_t *addrp, size_t len, offset_t off, int vacalign, argument 208 /* Make len be a multiple of PAGESIZE */ 209 len = (len + PAGEOFFSET) & PAGEMASK; 229 (len >= MMU_PAGESIZE256M)) { /* 256MB mappings */ 233 (len >= MMU_PAGESIZE32M)) { /* 32MB mappings */ 235 } else if (len >= MMU_PAGESIZE4M) { /* 4MB mappings */ 237 } else if (len >= MMU_PAGESIZE512K) { /* 512KB mappings */ 239 } else if (len > 342 pagescrub(page_t *pp, uint_t off, uint_t len) argument 353 sync_data_memory(caddr_t va, size_t len) argument [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | busra.c | 132 uint64_t len, char *busra_type); 134 uint64_t len, char *busra_type); 359 ndi_ra_free(dev_info_t *dip, uint64_t base, uint64_t len, char *type, argument 369 if (len == 0) { 385 newend = base + len; 405 mapp->ra_len += len; 413 mapp->ra_len += len; 428 newmap->ra_len = len; 438 newmap->ra_len = len; 448 (void) pci_put_available_prop(dipmap->ra_dip, base, len, typ 490 adjust_link(struct ra_resource **backp, struct ra_resource *mapp, uint64_t base, uint64_t len) argument 530 uint64_t len, remlen, largestbase, largestlen; local 758 uint32_t len; member in struct:iorange 762 uint32_t len; member in struct:memrange 766 int i, len; local 940 int len; local 1155 int len; local 1320 pci_get_available_prop(dev_info_t *dip, uint64_t base, uint64_t len, char *busra_type) argument 1471 pci_put_available_prop(dev_info_t *dip, uint64_t base, uint64_t len, char *busra_type) argument [all...] |
/illumos-gate/usr/src/cmd/lms/ |
H A D | LMEConnection.cpp | 187 int len = pCurrent - buf; local 188 int res = _sendMessage(buf, len); 192 return (res == len); 418 UINT32 len, unsigned char *buffer) 427 if (len > _heci.GetBufferSize() - sizeof(APF_CHANNEL_DATA_MESSAGE)) { 434 message->DataLength = htonl(len); 435 memcpy(message->Data, buffer, len); 437 PRINT("Sending %d bytes to recipient channel %d.\n", len, recipientChannel); 438 return _sendMessage((unsigned char *)message, sizeof(APF_CHANNEL_DATA_MESSAGE) + len); 441 bool LMEConnection::ChannelWindowAdjust(UINT32 recipientChannel, UINT32 len) argument 417 ChannelData(UINT32 recipientChannel, UINT32 len, unsigned char *buffer) argument 460 _receiveMessage(unsigned char *buffer, int len) argument 478 _sendMessage(unsigned char *buffer, int len) argument 806 UINT32 len = ntohl(*((UINT32 *)pCurrent)); local 837 UINT32 len = ntohl(*((UINT32 *)pCurrent)); local 868 UINT32 len = ntohl(*((UINT32 *)pCurrent)); local 898 UINT32 len = ntohl(*((UINT32 *)pCurrent)); local 964 UINT32 len = ntohl(*((UINT32 *)pCurrent)); local [all...] |
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_rq.c | 946 int totpcount, leftpcount, totdcount, leftdcount, len, txmax, i; local 986 len = mb_fixhdr(mbp); 990 * ALIGN4(len + 5 * 2 + setupcount * 2 + 2 + nmsize), 1003 len = ALIGN4(len + 5 * 2 + t2p->t2_setupcount * 2 + 2 + nmsize); 1004 if (len + leftpcount > txmax) { 1005 txpcount = min(leftpcount, txmax - len); 1006 poff = len; 1011 poff = txpcount ? len : 0; 1017 len 1178 int totpcount, leftpcount, totdcount, leftdcount, len, txmax; local [all...] |
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | ncgrpw.c | 80 cache_alloc(char *fname, int len, size_t struct_size) argument 92 } else if ((itemp->key = (char *)malloc(len)) == NULL) { 93 (void) fprintf(stderr, pkg_gt(ERR_MALLOC), fname, len, 103 itemp->keyl = len; 118 int len; local 132 len = strlen(nam) + 1; 135 if ((itemp = lookup_cache(grnam_cache, nam, len)) == Null_Item) { 152 if ((itemp = cache_alloc("cgrnam()", len, 159 (void) memmove(itemp->key, nam, len); 186 int len; local 278 int len; local 342 int len; local [all...] |
/illumos-gate/usr/src/cmd/valtools/ |
H A D | ckgid.c | 115 size_t len; local 212 len = strlen(deflt) + 1; 213 if (len < MAX_INPUT) 214 len = MAX_INPUT; 216 len = MAX_INPUT; 218 gid = (char *)malloc(len);
|
H A D | ckkeywd.c | 86 size_t len; local 164 len = strlen(deflt) + 1; 165 if (len < MAX_INPUT) 166 len = MAX_INPUT; 168 len = MAX_INPUT; 170 strval = (char *)malloc(len);
|
H A D | ckuid.c | 118 size_t len; local 215 len = strlen(deflt) + 1; 216 if (len < MAX_INPUT) 217 len = MAX_INPUT; 219 len = MAX_INPUT; 221 strval = (char *)malloc(len);
|
H A D | ckyorn.c | 110 size_t len; local 203 len = strlen(deflt) + 1; 204 if (len < MAX_INPUT) 205 len = MAX_INPUT; 207 len = MAX_INPUT; 209 ynval = (char *)malloc(len);
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | getnet.c | 70 netaddr_getlogstr(char *name, char *whoami, size_t len, nss_XbyY_args_t *argp) { argument 79 (void) snprintf(whoami, len, "%s [key=%d.%d.%d.%d]", 83 (void) snprintf(whoami, len, "%s [key=%d.%d.%d]", 87 (void) snprintf(whoami, len, "%s [key=%d.%d]", 91 (void) snprintf(whoami, len, "%s [key=%d]", 95 (void) snprintf(whoami, len, "%s [key=%d, %d]",
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_nbp.c | 57 interpret_nbp(int flags, struct nbp_hdr *nbp, int len) argument 66 if (len < sizeof (struct nbp_hdr)) { 77 show_header("NBP: ", "NBP Header", len); 80 if (len < sizeof (struct nbp_hdr)) { 86 "Length = %d", len); 95 show_nbp_tuples(data, nbp_cnt, ((uint8_t *)nbp) + len);
|
H A D | snoop_pmap.c | 57 interpret_pmap(flags, type, xid, vers, proc, data, len) 60 int len; 63 case 2: interpret_pmap_2(flags, type, xid, vers, proc, data, len); 68 case 4: interpret_pmap_4(flags, type, xid, vers, proc, data, len); 98 interpret_pmap_2(flags, type, xid, vers, proc, data, len) 101 int len; 153 data += 16; /* prog+ver+proc+len */ 154 len -= 16; 157 data, len); 179 (void) sprintf(line, "port=%d len [all...] |
/illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/ |
H A D | show.c | 88 Message.len = 0; 137 Message.len = strlen(Variable) + 1; /* + 1 for string termination */ 138 if (Message.len > DP_MAX_MSGLEN-4) { 187 Message.len = 0; 189 Message.len = strlen(oldVar) + 1; /* + 1 for string */ 192 if (Message.len > DP_MAX_MSGLEN-4) {
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | debug.c | 163 size_t len; local 178 len = strlen(name) + 186 len += MSG_DBG_CLS64_FMT_SIZE; 189 len += MSG_DBG_CLS32_FMT_SIZE; 197 if ((prestr = libld_malloc(len)) == NULL) 200 (void) snprintf(prestr, len,
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | lexer.c | 141 int len; local 144 len = strlen(str); 145 if (len > YYBUFSIZ) 146 len = YYBUFSIZ; 148 for (s = str; *s != '\0' && len > 0; s++, len--)
|
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | fmtre.c | 37 short len; member in struct:Stack_s 117 p->len = s - p->beg; 150 p->len = 0; 157 p->len = c != '@'; 186 p->len = 0; 196 for (c = 0; c < p->len; c++)
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_sign_kcf.c | 65 smb_md5_update(smb_sign_ctx_t ctx, void *buf, size_t len) argument 72 data.cd_length = len; 74 data.cd_raw.iov_len = len; 142 smb2_hmac_update(smb_sign_ctx_t ctx, uint8_t *in, size_t len) argument 149 data.cd_length = len; 151 data.cd_raw.iov_len = len;
|
/illumos-gate/usr/src/boot/sys/boot/ofw/libofw/ |
H A D | devicename.c | 86 int len; local 92 len = s - devspec; 93 bcopy(devspec, name, len); 94 name[len] = '\0'; 96 bcopy(name, type, len); 97 type[len] = '\0';
|
/illumos-gate/usr/src/boot/sys/boot/uboot/fdt/ |
H A D | uboot_fdt.c | 95 int eth_no, i, len, n; local 117 len = strlen(STRINGIFY(TMP_MAX_ETH)) + 121 * Reserve mem for string "ethernet" and len 124 ethstr = (char *)malloc(len * sizeof(char)); 125 bzero(ethstr, len * sizeof(char)); 153 fdt_fixup_ethernet(str, ethstr, len); 156 bzero(ethstr + 8, len - 8);
|
/illumos-gate/usr/src/uts/common/fs/autofs/ |
H A D | auto_vfsops.c | 317 size_t len = *curlen - 1; local 332 if (len + olen + 1 > maxlen) 336 buf[len++] = ','; 337 (void) strcpy(&buf[len], restropts[i]); 338 len += olen; 341 *curlen = len + 1; 350 size_t len = 0; local 417 args.addr.len = args32.addr.len; 453 &len); [all...] |