Home
last modified time | relevance | path

Searched refs:plen (Results 1 – 25 of 199) sorted by relevance

12345678

/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Ddsparse.c101 long plen; in next_line() local
105 plen = *blenp; in next_line()
108 for ( linestart = p; plen > 0; ++p, --plen ) { in next_line()
110 if ( plen > 1 && *(p+1) == '\n' ) { in next_line()
112 --plen; in next_line()
118 if ( plen > 1 && *(p+1) == '\r' ) { in next_line()
120 --plen; in next_line()
126 --plen; in next_line()
127 } while ( plen > 0 && ( *linestart == '#' || linestart + 1 == p )); in next_line()
131 *blenp = plen; in next_line()
[all …]
H A Dgetdn.c69 size_t plen; in ldap_dn2ufn() local
86 for ( p = ufn, r = ufn; *p; p += plen ) { in ldap_dn2ufn()
87 plen = 1; in ldap_dn2ufn()
91 plen=0; in ldap_dn2ufn()
94 r += (plen = LDAP_UTF8COPY(r,p)); in ldap_dn2ufn()
137 r += (plen = LDAP_UTF8COPY(r,p)); in ldap_dn2ufn()
193 size_t plen = 0; in ldap_explode() local
217 p += plen; in ldap_explode()
218 plen = 1; in ldap_explode()
224 plen = LDAP_UTF8LEN(p); in ldap_explode()
[all …]
/illumos-gate/usr/src/common/crypto/padding/
H A Dpkcs7.c100 pkcs7_decode(uint8_t *padbuf, size_t *plen) in pkcs7_decode() argument
106 while (*plen > 0 && (padlen = padbuf[*plen - 1]) == 0) in pkcs7_decode()
107 (*plen)--; in pkcs7_decode()
115 for (i = 0; i < padlen && (*plen - 1 - i) >= 0; i++) { in pkcs7_decode()
116 if (padbuf[*plen - 1 - i] != (padlen & 0xff)) in pkcs7_decode()
119 *plen -= i; in pkcs7_decode()
H A Dpkcs1.c118 pkcs1_decode(int method, uint8_t *padbuf, size_t *plen) in pkcs1_decode() argument
131 for (i = 2; (*plen - i) > 0; i++) { in pkcs1_decode()
137 *plen -= i; in pkcs1_decode()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_overflow.c91 size_t nb, plen; local
114 plen = t->bt_psize - BTDATAOFF;
119 nb = MIN(sz, plen);
149 size_t nb, plen; local
156 plen = t->bt_psize - BTDATAOFF;
158 p = (char *)p + plen, last = h) {
167 nb = MIN(sz, plen);
201 size_t plen; local
221 for (plen = t->bt_psize - BTDATAOFF;; sz -= plen) {
224 if (sz <= plen)
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dcommon.c174 int plen; in poe_tagcheck() local
181 plen = poe_length(poep); in poe_tagcheck()
182 if (plen + sizeof (*poep) > length) in poe_tagcheck()
186 tend = tstart + plen; in poe_tagcheck()
203 int plen; in poe_tag_insert() local
206 plen = poe_length(poep); in poe_tag_insert()
211 dp = (uint8_t *)(poep + 1) + plen; in poe_tag_insert()
264 int plen; in poe_tag_copy() local
267 plen = poe_length(poep); in poe_tag_copy()
268 if (sizeof (*poep) + plen + tlen > PPPOE_MSGMAX) in poe_tag_copy()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpci_bios.c182 int i, nnames, plen; in pci_slot_names_prop() local
209 plen = 4; in pci_slot_names_prop()
213 (void) sprintf(buf + plen, "Slot%d", slot[i]); in pci_slot_names_prop()
214 plen += strlen(buf+plen) + 1; in pci_slot_names_prop()
215 *(buf + plen) = 0; in pci_slot_names_prop()
217 for (; plen % 4; plen++) in pci_slot_names_prop()
218 *(buf + plen) = 0; in pci_slot_names_prop()
219 return (plen); in pci_slot_names_prop()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dnb_name.c160 char *plen; in nb_name_encode() local
209 (void) mb_fit(mbp, 1, &plen); in nb_name_encode()
210 *plen = 0; /* will update below */ in nb_name_encode()
214 *plen = lblen; in nb_name_encode()
220 *plen = lblen; in nb_name_encode()
221 (void) mb_fit(mbp, 1, &plen); in nb_name_encode()
222 *plen = 0; in nb_name_encode()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dipaddrsel.c152 int plen, precedence; in parseconf() local
206 plen = strtol(cp, &end, 10); in parseconf()
213 if (ip_plen_to_mask_v6(plen, &mask) == NULL) { in parseconf()
216 " %d\n"), filename, lineno, plen); in parseconf()
296 if (IN6_IS_ADDR_UNSPECIFIED(&prefix) && plen == 0) in parseconf()
458 ip_plen_to_mask_v6(int plen, in6_addr_t *bitmask) in ip_plen_to_mask_v6() argument
462 if (plen > IPV6_ABITS || plen < 0) in ip_plen_to_mask_v6()
466 if (plen == 0) in ip_plen_to_mask_v6()
470 while (plen > 32) { in ip_plen_to_mask_v6()
472 plen -= 32; in ip_plen_to_mask_v6()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dpickfilter.c141 unload_str (&(prs->plen)); in pickfilter()
159 if (pfs->plen) { in pickfilter()
161 *pp++ = prs->plen = pfs->plen; in pickfilter()
187 *pp++ = prs->plen = o_length; in pickfilter()
217 if (!got_plen && pps->plen) { in pickfilter()
219 *(p_plen = pp++) = prs->plen = pps->plen; in pickfilter()
431 if (chk & PCK_LENGTH) DROP (p_plen, prs->plen); in pickfilter()
487 if (prs->plen) prs->plen = Strdup(prs->plen); in pickfilter()
H A Dnodes.h104 char *plen; member
132 char *plen; member
180 char *plen; member
196 SCALED plen; member
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dipft_sn.c101 int n, plen, ilen; local
107 plen = (int)ntohl(rec->sp_plen);
108 if (ilen > plen || plen < sizeof(*rec))
111 plen -= sizeof(*rec);
112 n = MIN(plen, ilen);
116 return plen;
H A Dprintpacket6.c11 u_short plen, *addrs; local
20 plen = ntohs(*((u_short *)buf +2));
23 printf("ip6/%d %d %#x %d", buf[0] & 0xf, plen, flow, p);
28 if (plen >= 4)
37 if (plen >= 4)
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/ccm/
H A Daes_ccm.c58 args.plen = ccm_param_len(); in main()
60 VERIFY3U(args.plen, <=, sizeof (param)); in main()
78 args.plen = ccm_param_len(); in main()
80 VERIFY3U(args.plen, <=, sizeof (param)); in main()
100 args.plen = ccm_param_len(); in main()
102 VERIFY3U(args.plen, <=, sizeof (param)); in main()
120 args.plen = ccm_param_len(); in main()
122 VERIFY3U(args.plen, <=, sizeof (param)); in main()
/illumos-gate/usr/src/cmd/ldmad/
H A Dldma_device.c79 uint32_t plen; in ldma_dev_validate_path() local
82 plen = request->msg_info; in ldma_dev_validate_path()
83 if (plen == 0 || plen > MAXPATHLEN || plen > request_dlen) { in ldma_dev_validate_path()
88 path = malloc(plen + 1); in ldma_dev_validate_path()
94 (void) strncpy(path, LDMA_HDR2DATA(request), plen); in ldma_dev_validate_path()
95 path[plen] = '\0'; in ldma_dev_validate_path()
/illumos-gate/usr/src/common/devid/
H A Ddevid_smp.c107 int vlen, plen, slen; in ddi_devid_smp_encode() local
158 plen = scsi_ascii_inquiry_len( in ddi_devid_smp_encode()
162 if ((vlen <= 0) || (plen <= 0) || ((slen + 1) != sizeof (sbuf))) in ddi_devid_smp_encode()
167 raw_id_len = vlen + 1 + plen + 1 + slen; in ddi_devid_smp_encode()
182 &i_devid->did_id[vlen + 1], plen); in ddi_devid_smp_encode()
183 i_devid->did_id[vlen + 1 + plen] = '.'; in ddi_devid_smp_encode()
186 bcopy(sbuf, &i_devid->did_id[vlen + 1 + plen + 1], slen); in ddi_devid_smp_encode()
/illumos-gate/usr/src/lib/libvmm/
H A Dlibvmm.c824 size_t plen; in vmm_vread() local
837 plen = len; in vmm_vread()
839 if (vmm_pread(vmm, buf, plen, paddr) != plen) in vmm_vread()
841 len -= plen; in vmm_vread()
843 buf += plen; in vmm_vread()
844 res += plen; in vmm_vread()
856 size_t plen; in vmm_vwrite() local
869 plen = len; in vmm_vwrite()
871 if (vmm_pwrite(vmm, buf, plen, paddr) != plen) in vmm_vwrite()
873 len -= plen; in vmm_vwrite()
[all …]
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/
H A Dds_scsi.c620 int i, plen = 0; in logpage_ie_verify() local
666 int i, plen = 0; in logpage_temp_verify() local
702 plen = lphp->lph_length + in logpage_temp_verify()
726 int i, plen = 0; in logpage_selftest_verify() local
753 plen = lphp->lph_length + in logpage_selftest_verify()
777 int i, plen = 0; in logpage_ssm_verify() local
801 plen = lphp->lph_length + in logpage_ssm_verify()
1046 int i, plen = 0; in logpage_ie_analyze() local
1086 int i, plen = 0; in logpage_temp_analyze() local
1142 int i, plen = 0; in logpage_selftest_analyze() local
[all …]
/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.c127 if (plen == 0) in da_check_logindevperm()
130 slen = snprintf(fbuf + plen, nlen - plen, ":%s", ptr); in da_check_logindevperm()
136 plen += slen; in da_check_logindevperm()
1389 plen = nlen; in _record_on_off()
1393 len = snprintf(nbuf + plen, nlen - plen, "%s", line); in _record_on_off()
1398 plen += len; in _record_on_off()
1404 len = snprintf(nbuf + plen, nlen - plen, "%s", line); in _record_on_off()
1409 plen += len; in _record_on_off()
1858 plen = 0; in da_add_list()
2004 plen, nlen - plen, " %s", lname); in da_remove_list()
[all …]
/illumos-gate/usr/src/cmd/prtconf/
H A Dprtconf.c292 size_t len, plen; in main() local
298 plen = strlen("/devices"); in main()
299 if (len < plen) { in main()
302 } else if ((len == plen) && in main()
307 } else if (strncmp(new_path, "/devices/", plen + 1)) { in main()
312 opts.o_devices_path = new_path + plen; in main()
/illumos-gate/usr/src/boot/sys/boot/common/linenoise/
H A Dlinenoise.c128 size_t plen; /* Prompt length. */ member
339 size_t plen = strlen(l->prompt); in refreshSingleLine() local
345 while((plen+pos) >= l->cols) { in refreshSingleLine()
350 while (plen+len > l->cols) { in refreshSingleLine()
365 snprintf(seq,64,"\r\x1b[%dC", (int)(pos+plen)); in refreshSingleLine()
378 int plen = strlen(l->prompt); in refreshMultiLine() local
380 int rpos = (plen+l->oldpos+l->cols)/l->cols; /* cursor relative row. */ in refreshMultiLine()
416 (l->pos+plen) % l->cols == 0) in refreshMultiLine()
435 col = (plen+(int)l->pos) % (int)l->cols; in refreshMultiLine()
468 if ((!mlmode && l->plen+l->len < l->cols) /* || mlmode */) { in linenoiseEditInsert()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dchpw.c90 int plen, vno; in krb5int_rd_chpw_rep() local
110 plen = (*ptr++ & 0xff); in krb5int_rd_chpw_rep()
111 plen = (plen<<8) | (*ptr++ & 0xff); in krb5int_rd_chpw_rep()
113 if (plen != packet->length) in krb5int_rd_chpw_rep()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dcbcp.c215 cbcp_printpkt(p, plen, printer, arg) in cbcp_printpkt() argument
217 int plen;
224 if (plen < HEADERLEN) {
225 printer(arg, "too short (%d<%d)", plen, HEADERLEN);
244 if (len > plen) {
245 printer(arg, " truncated (%d>%d)", len, plen);
246 len = plen;
/illumos-gate/usr/src/uts/sun4/os/
H A Dmemlist.c550 size_t plen, vlen, move = 0; in copy_boot_memlists() local
553 plen = prom_phys_avail_len(); in copy_boot_memlists()
554 if (plen == 0) in copy_boot_memlists()
559 if (plen + vlen > max_bootlist_sz) in copy_boot_memlists()
568 if (plen > pl->maxsize) { in copy_boot_memlists()
570 move = plen - pl->maxsize; in copy_boot_memlists()
571 pl->maxsize = plen; in copy_boot_memlists()
582 pl->nelems = plen / sizeof (struct prom_memlist); in copy_boot_memlists()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dndp.c645 int plen; in incoming_prefix_onlink() local
650 plen = po->nd_opt_pi_prefix_len; in incoming_prefix_onlink()
652 if (pr->pr_prefix_len == plen && in incoming_prefix_onlink()
797 int plen; in incoming_prefix_addrconf() local
808 plen = po->nd_opt_pi_prefix_len; in incoming_prefix_addrconf()
819 pbuf, plen, abuf, pi->pi_name, in incoming_prefix_addrconf()
825 if (pr->pr_prefix_len == plen && in incoming_prefix_addrconf()
896 int plen; in incoming_prefix_addrconf_process() local
901 plen = po->nd_opt_pi_prefix_len; in incoming_prefix_addrconf_process()
1353 int plen; in verify_prefix_opt() local
[all …]

12345678