Home
last modified time | relevance | path

Searched refs:rlen (Results 1 – 25 of 128) sorted by relevance

123456

/illumos-gate/usr/src/uts/sun4v/promif/
H A Dpromif_io.c153 int rlen; in promif_do_read() local
167 for (rlen = 0; rlen < len; ) { in promif_do_read()
170 rlen++; in promif_do_read()
180 return (rlen); in promif_do_read()
186 int rlen; in promif_do_write() local
197 for (rlen = 0; rlen < len; rlen++) in promif_do_write()
202 return (rlen); in promif_do_write()
221 size_t rlen; in promif_write() local
247 size_t rlen; in promif_read() local
316 int rlen; in promif_instance_to_path() local
[all …]
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_utf8.c338 int rlen; in smb_oemtombs() local
388 rlen = oemlen; in smb_oemtombs()
390 rlen = max_mblen; in smb_oemtombs()
393 if (rlen < max_mblen) in smb_oemtombs()
394 mbs[rlen] = '\0'; in smb_oemtombs()
396 return (rlen); in smb_oemtombs()
416 int rlen; in smb_mbstooem() local
466 rlen = mbslen; in smb_mbstooem()
468 rlen = max_oemlen; in smb_mbstooem()
472 oems[rlen] = '\0'; in smb_mbstooem()
[all …]
H A Dsmb_msgbuf.c386 int rlen; in msgbuf_get_oem_string() local
431 if (rlen < 0) in msgbuf_get_oem_string()
434 rlen = mbsmax; in msgbuf_get_oem_string()
435 mbs[rlen] = '\0'; in msgbuf_get_oem_string()
456 size_t rlen; in msgbuf_get_unicode_string() local
510 rlen = mbsmax; in msgbuf_get_unicode_string()
718 int rlen; in msgbuf_put_oem_string() local
745 if (rlen < 0) in msgbuf_put_oem_string()
748 rlen = oemlen; in msgbuf_put_oem_string()
782 size_t rlen; in msgbuf_put_unicode_string() local
[all …]
/illumos-gate/usr/src/cmd/ldmad/
H A Dldma_system.c82 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()
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()
291 LDMA_DBG("GET_CHASSISNO: return info=%u, {%s}", rlen, str); in ldma_sys_get_chassisno()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtables.c209 int rlen; in rtcmd() local
223 if (rlen >= 0 && rlen < RIPNG_RTM_MSGLEN) { in rtcmd()
226 rlen); in rtcmd()
228 return (rlen); in rtcmd()
239 int rlen; in rtadd() local
299 if (rlen < 0) { in rtadd()
331 int rlen; in rtchange() local
382 if (rlen < 0) { in rtchange()
397 if (rlen < 0) { in rtchange()
423 int rlen; in rtdown() local
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dbld_princ.c38 krb5_build_principal_va(krb5_context context, krb5_principal princ, unsigned int rlen, const char *… in krb5_build_principal_va() argument
52 krb5_princ_set_realm_length(context, princ, rlen); in krb5_build_principal_va()
53 tmpdata = malloc(rlen + 1); in krb5_build_principal_va()
59 memcpy(tmpdata, realm, rlen); in krb5_build_principal_va()
60 tmpdata[rlen] = '\0'; in krb5_build_principal_va()
98 unsigned int rlen, in krb5_build_principal() argument
109 retval = krb5_build_principal_va(context, pr_ret, rlen, realm, ap); in krb5_build_principal()
H A Dbld_pr_ext.c37 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()
/illumos-gate/usr/src/cmd/smbsrv/nvlprint/
H A Dnvlprint.c33 int rlen; in dumpit() local
46 rlen = fread(buf, 1, flen, fp); in dumpit()
47 if (rlen <= 0) { in dumpit()
51 if (rlen != flen) { in dumpit()
52 (void) printf("Short read %d %d \n", rlen, flen); in dumpit()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Ddeflate.c234 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;
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_authenticate.c124 uint32_t rlen = 0; in smb_auth_do_oldreq() local
162 rlen = msg_hdr.lmh_msglen; in smb_auth_do_oldreq()
190 kmem_free(rbuf, rlen); in smb_auth_do_oldreq()
232 uint32_t rlen = 0; in smb_authenticate_ext() local
328 rlen = msg_hdr.lmh_msglen; in smb_authenticate_ext()
337 sinfo->ssi_oseclen = (uint16_t)rlen; in smb_authenticate_ext()
381 kmem_free(rbuf, rlen); in smb_authenticate_ext()
430 uint32_t rlen = 0; in smb_auth_get_token() local
442 rlen = msg_hdr.lmh_msglen; in smb_auth_get_token()
473 kmem_free(rbuf, rlen); in smb_auth_get_token()
[all …]
H A Dsmb_mbuf_marshaling.c1099 int rlen; in mbc_marshal_put_oem_string() local
1123 if (rlen < 0) { in mbc_marshal_put_oem_string()
1128 rlen = oemlen; in mbc_marshal_put_oem_string()
1168 size_t rlen; in mbc_marshal_put_unicode_string() local
1206 rlen = wcslen; in mbc_marshal_put_unicode_string()
1207 wcsbuf[rlen] = 0; in mbc_marshal_put_unicode_string()
1539 int rlen; in mbc_marshal_get_oem_string() local
1579 if (rlen < 0) { in mbc_marshal_get_oem_string()
1584 rlen = mbsmax; in mbc_marshal_get_oem_string()
1612 size_t rlen; in mbc_marshal_get_unicode_string() local
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Ddoor.c94 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()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmilter.c385 ssize_t *rlen;
409 *rlen = 0;
486 *rlen = expl;
1992 ssize_t rlen; local
2308 int rlen;
2408 ssize_t rlen; local
2965 ssize_t rlen;
2983 if (rlen < 2 || strlen(response) + 1 >= (size_t) rlen)
3095 if (rlen < 2 || strlen(response) + 1 >= (size_t) rlen)
3176 if (rlen < 2 || strlen(response) + 1 >= (size_t) rlen)
[all …]
/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiospnp.c190 u_int tag, i, rlen, dlen; in biospnp_scanresdata() local
197 for (i = 0; i < dlen; i+= rlen) { in biospnp_scanresdata()
201 rlen = PNP_SRES_LEN(tag); in biospnp_scanresdata()
215 rlen = *(u_int16_t *)(p + i); in biospnp_scanresdata()
221 str = malloc(rlen + 1); in biospnp_scanresdata()
222 bcopy(p + i, str, rlen); in biospnp_scanresdata()
223 str[rlen] = 0; in biospnp_scanresdata()
/illumos-gate/usr/src/uts/common/io/
H A Dksyms.c166 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 Dbusra.c939 int rlen, rcount, i; in pci_resource_setup() local
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
1354 rcount = rlen / sizeof (pci_regspec_t); in pci_get_available_prop()
1439 kmem_free(regs, rlen); in pci_get_available_prop()
1462 kmem_free(regs, rlen); in pci_get_available_prop()
1476 int rlen, rcount; in pci_put_available_prop() local
1516 rcount = rlen / sizeof (pci_regspec_t); in pci_put_available_prop()
1654 kmem_free(regs, rlen); in pci_put_available_prop()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_stdio.c108 int rlen, alen; in copy_fd() local
113 rlen = (len > sizeof (buffer)) ? sizeof (buffer) : len; in copy_fd()
114 alen = read(fileno(in), buffer, rlen); in copy_fd()
115 if (alen == rlen) { in copy_fd()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ldap.c893 rlen = olen[ctxnum]; in decpdu()
900 rlen = (rlen << 8) | INT(hex); in decpdu()
902 if (!rlen) { in decpdu()
1212 if (rlen > pdulen) { in decpdu()
1215 rlen = pdulen; in decpdu()
1223 stlv = decpdu((rlen?rlen:pdulen), \ in decpdu()
1234 --rlen, --pdulen, ++effnb) { in decpdu()
1258 int klen = rlen; in decpdu()
1264 if (rlen < 200) { in decpdu()
1266 (rlen) && (pdulen > 0); in decpdu()
[all …]
/illumos-gate/usr/src/uts/sparc/os/
H A Dbootdev.c222 size_t olen, rlen; in i_devname_to_promname() local
265 rlen = len; in i_devname_to_promname()
275 (void) snprintf(rptr, rlen, "%s", prom_path); in i_devname_to_promname()
356 (void) snprintf(rptr, rlen, "%s", prom_path); in i_devname_to_promname()
357 rlen -= strlen(rptr) + 1; in i_devname_to_promname()
359 if (rlen <= 0) /* drop paths we can't store */ in i_devname_to_promname()
375 if (rlen > 0) { in i_devname_to_promname()
377 bcopy(offline, rptr, rlen); in i_devname_to_promname()
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_io.c147 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()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dwpa.c803 int rlen; in wpa_supplicant_key_request() local
824 rbuf = malloc(rlen); in wpa_supplicant_key_request()
828 (void) memset(rbuf, 0, rlen); in wpa_supplicant_key_request()
874 int rlen; in wpa_supplicant_process_1_of_4() local
935 rbuf = malloc(rlen); in wpa_supplicant_process_1_of_4()
939 (void) memset(rbuf, 0, rlen); in wpa_supplicant_process_1_of_4()
1107 int rlen; in wpa_supplicant_process_3_of_4() local
1205 rbuf = malloc(rlen); in wpa_supplicant_process_3_of_4()
1209 (void) memset(rbuf, 0, rlen); in wpa_supplicant_process_3_of_4()
1300 int rlen; in wpa_supplicant_process_1_of_2() local
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgserv.c486 pkgcmd(PKGserver srv, void *cmd, size_t len, char **result, size_t *rlen, in pkgcmd() argument
496 da.rsize = rlen == NULL ? 0 : *rlen; in pkgcmd()
528 *rlen = da.data_size; in pkgcmd()
740 unsigned int rlen; in pkggetentry_named() local
747 rlen = server->buflen; in pkggetentry_named()
750 &result, &rlen, NULL) != 0) { in pkggetentry_named()
753 if (rlen == 0) in pkggetentry_named()
759 server->buflen = rlen; in pkggetentry_named()
763 (void) memcpy(server->curbuf, result, rlen); in pkggetentry_named()
764 (void) munmap(result, rlen); in pkggetentry_named()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnss_dbdefs.c416 *rlen = len; in nss_pack_key2str()
423 *rlen = len; in nss_pack_key2str()
430 *rlen = len; in nss_pack_key2str()
437 *rlen = len; in nss_pack_key2str()
455 *rlen = len2; in nss_pack_key2str()
479 *rlen = len; in nss_pack_key2str()
514 *rlen = len; in nss_pack_key2str()
525 *rlen = len; in nss_pack_key2str()
549 *rlen = len; in nss_pack_key2str()
602 *rlen = len; in nss_pack_key2str()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A D6to4relay.c106 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()
/illumos-gate/usr/src/cmd/fs.d/smbclnt/fksmbcl/
H A Dshares.c182 int err, len, rlen, wlen; in do_enum() local
230 rlen = smb_fh_read(fid, 0, in do_enum()
232 if (rlen == -1) { in do_enum()
243 pstrings(recvbuf + 0x90, rlen - 0x90); in do_enum()

123456