/titanic_41/usr/src/uts/sun4v/promif/ |
H A D | promif_io.c | 155 int rlen; in promif_do_read() local 169 for (rlen = 0; rlen < len; ) { in promif_do_read() 171 buf[rlen] = PROMIF_PIO_CALL1(getchar, arg); in promif_do_read() 172 rlen++; in promif_do_read() 182 return (rlen); in promif_do_read() 188 int rlen; in promif_do_write() local 199 for (rlen = 0; rlen < len; rlen++) in promif_do_write() 200 PROMIF_PIO_CALL2(putchar, arg, buf[rlen]); in promif_do_write() 204 return (rlen); in promif_do_write() 223 size_t rlen; in promif_write() local [all …]
|
/titanic_41/usr/src/uts/sun4u/starfire/io/ |
H A D | memctrl.c | 90 int rlen; in mc_get_asr_addr() local 94 rlen = prom_getproplen(nodeid, "reg"); in mc_get_asr_addr() 95 if (rlen != sizeof (struct sf_memunit_regspec)) in mc_get_asr_addr() 110 int rlen; in mc_get_idle_addr() local 114 rlen = prom_getproplen(nodeid, "reg"); in mc_get_idle_addr() 115 if (rlen != sizeof (struct sf_memunit_regspec)) in mc_get_idle_addr() 132 int i, rlen; in mc_get_dimm_size() local 135 rlen = prom_getproplen(nodeid, "reg"); in mc_get_dimm_size() 136 if (rlen != sizeof (struct sf_memunit_regspec)) in mc_get_dimm_size() 164 int i, rlen; in mc_get_alignment_mask() local [all …]
|
/titanic_41/usr/src/cmd/ldmad/ |
H A D | ldma_system.c | 82 size_t rlen; in ldma_sys_get_sysinfo() local 105 rlen = syslen + nodlen + rellen + verlen + maclen; in ldma_sys_get_sysinfo() 107 reply = ldma_alloc_result_msg(request, rlen); in ldma_sys_get_sysinfo() 114 reply->msg_info = rlen; in ldma_sys_get_sysinfo() 132 LDMA_DBG("GET_SYSINFO: return info=%u, {%s, %s, %s, %s, %s}", rlen, in ldma_sys_get_sysinfo() 137 *reply_dlenp = rlen; in ldma_sys_get_sysinfo() 258 size_t rlen; in ldma_sys_get_chassisno() local 276 rlen = strlen(str) + 1; in ldma_sys_get_chassisno() 278 reply = ldma_alloc_result_msg(request, rlen); in ldma_sys_get_chassisno() 285 reply->msg_info = rlen; in ldma_sys_get_chassisno() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | tables.c | 211 int rlen; in rtcmd() local 224 rlen = write(rtsock, rt_msg, RIPNG_RTM_MSGLEN); in rtcmd() 225 if (rlen >= 0 && rlen < RIPNG_RTM_MSGLEN) { in rtcmd() 228 rlen); in rtcmd() 230 return (rlen); in rtcmd() 241 int rlen; in rtadd() local 299 rlen = rtcmd(RTM_ADD, &rt->rt_dst, &rt->rt_router, in rtadd() 301 if (rlen < 0) { in rtadd() 311 } else if (rlen < RIPNG_RTM_MSGLEN) { in rtadd() 333 int rlen; in rtchange() local [all …]
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | ssh-dss.c | 52 u_int rlen, slen, len, dlen; in ssh_dss_sign() local 71 rlen = BN_num_bytes(sig->r); in ssh_dss_sign() 73 if (rlen > INTBLOB_LEN || slen > INTBLOB_LEN) { in ssh_dss_sign() 74 error("bad sig size %u %u", rlen, slen); in ssh_dss_sign() 79 BN_bn2bin(sig->r, sigblob+ SIGBLOB_LEN - INTBLOB_LEN - rlen); in ssh_dss_sign() 115 int rlen, ret; in ssh_dss_verify() local 141 rlen = buffer_len(&b); in ssh_dss_verify() 143 if (rlen != 0) { in ssh_dss_verify() 145 "remaining bytes in signature %d", rlen); in ssh_dss_verify()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | bld_princ.c | 36 krb5_build_principal_va(krb5_context context, krb5_principal princ, unsigned int rlen, const char *… in krb5_build_principal_va() argument 50 krb5_princ_set_realm_length(context, princ, rlen); in krb5_build_principal_va() 51 tmpdata = malloc(rlen); in krb5_build_principal_va() 57 memcpy(tmpdata, realm, rlen); in krb5_build_principal_va() 95 unsigned int rlen, in krb5_build_principal() argument 106 retval = krb5_build_principal_va(context, pr_ret, rlen, realm, ap); in krb5_build_principal()
|
H A D | bld_pr_ext.c | 37 unsigned int rlen, const char * realm, ...) in krb5_build_principal_ext() argument 68 tmpdata = malloc(rlen+1); in krb5_build_principal_ext() 74 krb5_princ_set_realm_length(context, princ_ret, rlen); in krb5_build_principal_ext() 76 memcpy(tmpdata, realm, rlen); in krb5_build_principal_ext() 77 tmpdata[rlen] = 0; in krb5_build_principal_ext()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | deflate.c | 234 int rlen, olen, ospace; local 261 rlen = state->strm.avail_in + PPP_HDRLEN + DEFLATE_OVHD; 289 state->stats.comp_bytes += rlen; 306 int rlen, proto, r; local 322 rlen = mi + mlen - rptr; 324 state->strm.avail_in = rlen; 340 ++rlen; 341 rlen += 2; 342 state->stats.inc_bytes += rlen; 344 state->stats.unc_bytes += rlen;
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | door.c | 94 size_t rlen; in bridge_door_server() local 100 rlen = sizeof (twoints); in bridge_door_server() 102 rlen = sizeof (int) + nextport * sizeof (datalink_id_t); in bridge_door_server() 103 rbuf = alloca(rlen); in bridge_door_server() 110 rlen = sizeof (int) + nports * sizeof (datalink_id_t); in bridge_door_server() 113 (void) door_return((char *)rbuf, rlen, NULL, 0); in bridge_door_server()
|
/titanic_41/usr/src/cmd/sendmail/src/ |
H A D | milter.c | 133 strlen(response) + 1 != (size_t) rlen || \ 134 rlen < 3 || \ 382 milter_read(m, cmd, rlen, to, e, where) in milter_read() argument 385 ssize_t *rlen; 409 *rlen = 0; 486 *rlen = expl; 1992 ssize_t rlen; local 2107 response = milter_read(m, &rcmd, &rlen, 2305 milter_getsymlist(m, buf, rlen, offset) in milter_getsymlist() argument 2308 int rlen; [all …]
|
/titanic_41/usr/src/uts/common/io/ |
H A D | ksyms.c | 166 ksyms_asmap(struct as *as, size_t rlen) in ksyms_asmap() argument 171 map_addr(&addr, rlen, 0, 1, 0); in ksyms_asmap() 172 if (addr == NULL || as_map(as, addr, rlen, segvn_create, zfod_argsp)) { in ksyms_asmap() 183 size_t sz, rlen = roundup(size, PAGESIZE); in ksyms_mapin() local 188 if ((addr = ksyms_asmap(as, rlen)) == NULL) in ksyms_mapin() 196 (void) as_unmap(as, addr, rlen); in ksyms_mapin() 340 size_t rlen = 0; in ksyms_segmap() local 351 rlen = roundup(len, PAGESIZE); in ksyms_segmap() 352 if ((addr = ksyms_asmap(as, rlen)) == NULL) in ksyms_segmap() 369 (void) as_unmap(as, addr, rlen); in ksyms_segmap()
|
H A D | busra.c | 938 int rlen, rcount, i; in pci_resource_setup() local 1024 "available", (caddr_t)®s, &rlen) == DDI_SUCCESS) { in pci_resource_setup() 1036 rcount = rlen / sizeof (pci_regspec_t); in pci_resource_setup() 1075 kmem_free(regs, rlen); in pci_resource_setup() 1325 int rlen, rcount; in pci_get_available_prop() local 1341 "available", (caddr_t)®s, &rlen); in pci_get_available_prop() 1352 newregs = kmem_alloc(rlen + sizeof (pci_regspec_t), KM_SLEEP); in pci_get_available_prop() 1354 rcount = rlen / sizeof (pci_regspec_t); in pci_get_available_prop() 1438 kmem_free(newregs, rlen + sizeof (pci_regspec_t)); in pci_get_available_prop() 1439 kmem_free(regs, rlen); in pci_get_available_prop() [all …]
|
/titanic_41/usr/src/lib/libproc/common/ |
H A D | proc_stdio.c | 110 int rlen, alen; in copy_fd() local 115 rlen = (len > sizeof (buffer)) ? sizeof (buffer) : len; in copy_fd() 116 alen = read(fileno(in), buffer, rlen); in copy_fd() 117 if (alen == rlen) { in copy_fd()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ldap.c | 855 static int rlen = 0; /* tlv's real length */ in decpdu() local 895 rlen = olen[ctxnum]; in decpdu() 898 for (rlen = 0, olen[ctxnum] &= 0x0F; in decpdu() 902 rlen = (rlen << 8) | INT(hex); in decpdu() 904 if (!rlen) { in decpdu() 1214 if (rlen > pdulen) { in decpdu() 1217 rlen = pdulen; in decpdu() 1225 stlv = decpdu((rlen?rlen:pdulen), \ in decpdu() 1235 for (j = 0; (rlen) && (pdulen > 0); \ in decpdu() 1236 --rlen, --pdulen, ++effnb) { in decpdu() [all …]
|
/titanic_41/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_io.c | 147 ssize_t rlen; in prom_write() local 162 rlen = promif_redirect(promif_redirect_arg, (uchar_t *)buf, in prom_write() 165 return (rlen); in prom_write() 227 rlen = p1275_cell2size(ci[6]); /* Res1: actual len */ in prom_write() 237 return (rlen); in prom_write()
|
/titanic_41/usr/src/uts/sparc/os/ |
H A D | bootdev.c | 218 size_t olen, rlen; in i_devname_to_promname() local 262 rlen = len; in i_devname_to_promname() 272 (void) snprintf(rptr, rlen, "%s", prom_path); in i_devname_to_promname() 353 (void) snprintf(rptr, rlen, "%s", prom_path); in i_devname_to_promname() 354 rlen -= strlen(rptr) + 1; in i_devname_to_promname() 356 if (rlen <= 0) /* drop paths we can't store */ in i_devname_to_promname() 372 if (rlen > 0) { in i_devname_to_promname() 374 bcopy(offline, rptr, rlen); in i_devname_to_promname()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | wpa.c | 803 int rlen; in wpa_supplicant_key_request() local 823 rlen = sizeof (*ethhdr) + sizeof (*hdr) + sizeof (*reply); in wpa_supplicant_key_request() 824 rbuf = malloc(rlen); in wpa_supplicant_key_request() 828 (void) memset(rbuf, 0, rlen); in wpa_supplicant_key_request() 859 rlen - sizeof (*ethhdr), reply->key_mic); in wpa_supplicant_key_request() 864 error, pairwise, wpa_s->ptk_set, rlen); in wpa_supplicant_key_request() 865 wpa_hexdump(MSG_MSGDUMP, "WPA: TX EAPOL-Key Request", rbuf, rlen); in wpa_supplicant_key_request() 866 (void) l2_packet_send(wpa_s->l2, rbuf, rlen); in wpa_supplicant_key_request() 874 int rlen; in wpa_supplicant_process_1_of_4() local 934 rlen = sizeof (*ethhdr) + sizeof (*hdr) + sizeof (*reply) + wpa_ie_len; in wpa_supplicant_process_1_of_4() [all …]
|
/titanic_41/usr/src/lib/libpkg/common/ |
H A D | pkgserv.c | 482 pkgcmd(PKGserver srv, void *cmd, size_t len, char **result, size_t *rlen, in pkgcmd() argument 492 da.rsize = rlen == NULL ? 0 : *rlen; in pkgcmd() 523 *rlen = da.data_size; in pkgcmd() 735 unsigned int rlen; in pkggetentry_named() local 742 rlen = server->buflen; in pkggetentry_named() 745 &result, &rlen, NULL) != 0) { in pkggetentry_named() 748 if (rlen == 0) in pkggetentry_named() 754 server->buflen = rlen; in pkggetentry_named() 758 (void) memcpy(server->curbuf, result, rlen); in pkggetentry_named() 759 (void) munmap(result, rlen); in pkggetentry_named() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | 6to4relay.c | 106 int rlen; in modifyroute() local 147 rlen = write(rtsock, &rt_msg, rt_msg.rt_hdr.rtm_msglen); in modifyroute() 148 if (rlen < rt_msg.rt_hdr.rtm_msglen) { in modifyroute() 149 if (rlen < 0) { in modifyroute() 155 "routing socket got only %d for rlen\n"), rlen); in modifyroute()
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | nss_dbdefs.c | 392 const char *dbname, int dbop, size_t *rlen, const char *typestr) in nss_pack_key2str() argument 405 dbname == NULL || rlen == NULL || typestr == NULL) in nss_pack_key2str() 417 *rlen = len; in nss_pack_key2str() 424 *rlen = len; in nss_pack_key2str() 431 *rlen = len; in nss_pack_key2str() 438 *rlen = len; in nss_pack_key2str() 456 *rlen = len2; in nss_pack_key2str() 473 *rlen = len2; in nss_pack_key2str() 480 *rlen = len; in nss_pack_key2str() 500 *rlen = len3; in nss_pack_key2str() [all …]
|
/titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_smb.c | 614 uint32_t len, rlen, maxlen; in smb_rwuio() local 666 rlen = len = (uint32_t)min(maxlen, uiop->uio_resid); in smb_rwuio() 667 error = (*iofun)(ssp, fid, &rlen, uiop, scred, timo); in smb_rwuio() 676 if (error || (rlen < len)) in smb_rwuio() 702 uint32_t offlo, offhi, rlen; in smb_smb_readx() local 754 rlen = (lenhi << 16) | lenlo; in smb_smb_readx() 767 if (rlen == 0) { in smb_smb_readx() 768 *lenp = rlen; in smb_smb_readx() 772 if (rlen > *lenp) { in smb_smb_readx() 774 rlen, *lenp); in smb_smb_readx() [all …]
|
/titanic_41/usr/src/cmd/fs.d/smbclnt/test/ |
H A D | srvinfo.c | 309 int err, len, rlen, wlen, x; in do_info() local 356 rlen = smb_fh_read(fid, 0, in do_info() 358 if (rlen == -1) { in do_info() 365 printf("info recv, len=%d\n", rlen); in do_info() 366 hexdump(recvbuf, rlen); in do_info()
|
/titanic_41/usr/src/lib/libsmbfs/smb/ |
H A D | rap.c | 57 smb_rap_parserqparam(const char *s, char **next, int *rlen) in smb_rap_parserqparam() argument 87 *rlen = len; in smb_rap_parserqparam() 93 smb_rap_parserpparam(const char *s, char **next, int *rlen) in smb_rap_parserpparam() argument 116 *rlen = len; in smb_rap_parserpparam() 122 smb_rap_parserpdata(const char *s, char **next, int *rlen) in smb_rap_parserpdata() argument 146 *rlen = len; in smb_rap_parserpdata()
|
H A D | crypt.c | 226 int fd, rlen; in smb_get_urandom() local 232 rlen = read(fd, data, dlen); in smb_get_urandom() 235 if (rlen < 0) in smb_get_urandom() 237 if (rlen < dlen) in smb_get_urandom()
|
/titanic_41/usr/src/uts/sun4v/io/ |
H A D | dr_mem.c | 755 int rlen; in dr_mem_list_query() local 770 rlen = sizeof (dr_mem_hdr_t); in dr_mem_list_query() 783 rlen += nml * sizeof (dr_mem_query_t); in dr_mem_list_query() 785 rlen += req->msg_arg * sizeof (dr_mem_query_t); in dr_mem_list_query() 787 rp = kmem_zalloc(rlen, KM_SLEEP); in dr_mem_list_query() 810 *resp_len = rlen; in dr_mem_list_query() 946 int rlen; in dr_mem_del_stat() local 956 rlen = sizeof (dr_mem_hdr_t); in dr_mem_del_stat() 957 rlen += status * sizeof (memdelstat_t); in dr_mem_del_stat() 958 rp = kmem_zalloc(rlen, KM_SLEEP); in dr_mem_del_stat() [all …]
|