Home
last modified time | relevance | path

Searched refs:len (Results 226 – 250 of 4094) sorted by relevance

12345678910>>...164

/illumos-gate/usr/src/lib/nsswitch/compat/common/
H A Dgetpwent.c188 int len; local
206 len = snprintf(s, buflen, "%s:%s",
214 len = snprintf(s, buflen, "%s:%s",
218 if (len > buflen)
221 s += len;
222 buflen -= len;
230 if (len > buflen)
233 s += len;
234 len = s - buf;
243 if (len > argp->buf.buflen) {
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci_tpgs.c60 len = 8; in vhci_tpgs_set_target_groups()
79 bp->b_bcount = len; in vhci_tpgs_set_target_groups()
93 kmem_free((void *)bufp, len); in vhci_tpgs_set_target_groups()
113 print_buf(bufp, len); in vhci_tpgs_set_target_groups()
121 kmem_free((void *)bufp, len); in vhci_tpgs_set_target_groups()
184 kmem_free((void *)bufp, len); in vhci_tpgs_set_target_groups()
452 int i, len; in vhci_tpgs_report_target_groups() local
459 len = 512; in vhci_tpgs_report_target_groups()
471 bp->b_bcount = len; in vhci_tpgs_report_target_groups()
513 if (rtpg_len > len) { in vhci_tpgs_report_target_groups()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dglob.c302 int len; in execbrc() local
304 for (lm = restbuf; *p != '{'; *lm += len, p += len) { in execbrc()
306 len = 1; in execbrc()
312 len = 1; in execbrc()
331 len = 1; in execbrc()
339 len = 1; in execbrc()
382 len = 1; in execbrc()
625 int len; in rscan() local
665 int len; in any() local
671 len = 1; in any()
[all …]
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DDistribution.java76 for (int i = 0, len = frequencies.length; i < len; ++i) { in Distribution()
97 int len = frequencies.size(); in Distribution() local
115 int len = buckets.size(); in initialize() local
116 for (int i = 0; i < len; ++i) { in initialize()
158 getBucketRange(int i, int len); in getBucketRange() argument
163 int len = frequencies.length; in createBuckets() local
170 for (int i = 0; i < len; ++i) { in createBuckets()
543 int len = size(); in getDisplayRange() local
546 for (int i = 0; i < len; ++i) { in getDisplayRange()
569 if (max < (len - 1)) { in getDisplayRange()
[all …]
/illumos-gate/usr/src/psm/stand/lib/names/sparc/common/
H A Duname-i.c68 static int len; in get_impl_arch_name() local
81 len = prom_getproplen(n, namename); in get_impl_arch_name()
82 if (len <= 0 || len >= MAXNMLEN) in get_impl_arch_name()
85 iarch[len] = '\0'; /* fix broken clones */ in get_impl_arch_name()
93 len = prom_getproplen(n, namename); in get_impl_arch_name()
94 if (len <= 0 || len >= MAXNMLEN) { in get_impl_arch_name()
99 iarch[len] = '\0'; /* ensure null termination */ in get_impl_arch_name()
110 if ((ia - iarch) >= len) { in get_impl_arch_name()
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_utf8.c53 int len; in slp_utf_strchr() local
56 for (p = (char *)s; *p; p += len) { in slp_utf_strchr()
57 len = mblen(p, MB_CUR_MAX); in slp_utf_strchr()
58 if (len == 1 && *p == c) in slp_utf_strchr()
71 int len; in slp_fold_space() local
83 len = mblen(s, MB_CUR_MAX); in slp_fold_space()
84 if (len != 1) in slp_fold_space()
102 len = mblen(s, MB_CUR_MAX); in slp_fold_space()
103 if (len == 1 && isspace(*s)) in slp_fold_space()
106 for (i = 0; i < len; i++) in slp_fold_space()
/illumos-gate/usr/src/cmd/sgs/elfcap.chk/
H A Delfcap_chk.c90 size_t len = 0; in elfcap_calc_len() local
93 len += desc[i].c_full.s_len; in elfcap_calc_len()
95 len += space; in elfcap_calc_len()
100 len += space + ECS_UNKNOWN; in elfcap_calc_len()
107 len += 9; in elfcap_calc_len()
109 return (len); in elfcap_calc_len()
119 size_t len; in elfcap_max_len() local
125 len = elfcap_calc_len(desc, ec->ec_descs[i].eg_nents, slen); in elfcap_max_len()
126 if (len > max) in elfcap_max_len()
127 max = len; in elfcap_max_len()
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Ddr.c55 int len; in add_string_list_prop() local
89 strlist += len; in add_string_list_prop()
179 int len; in add_devinfo_props() local
182 if (len < 0) in add_devinfo_props()
186 if (len == 1) in add_devinfo_props()
204 int len; in add_devinfo_props() local
207 if (len < 0) in add_devinfo_props()
210 if (len == 1) { in add_devinfo_props()
225 int len; in add_devinfo_props() local
229 if (len < 0) in add_devinfo_props()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dchar_io.c437 len -= plen; in real_get_cmdline()
443 len--; in real_get_cmdline()
929 int len = 0; in grub_vsprintf() local
939 len++; in grub_vsprintf()
976 len++; in grub_vsprintf()
996 return (len); in grub_vsprintf()
1026 int len; in grub_printf() local
1319 int len = 0; in grub_strlen() local
1322 len++; in grub_strlen()
1324 return len; in grub_strlen()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_door_encdec.c46 size_t len; in smb_common_encode() local
53 len = xdr_sizeof(proc, data); in smb_common_encode()
55 if ((buf = malloc(len)) == NULL) { in smb_common_encode()
61 xdrmem_create(&xdrs, buf, len, XDR_ENCODE); in smb_common_encode()
62 *rsize = len; in smb_common_encode()
87 xdrmem_create(&xdrs, buf, len, XDR_DECODE); in smb_common_decode()
101 size_t len; in smb_string_encode() local
108 len = xdr_sizeof(smb_string_xdr, &obj); in smb_string_encode()
109 if ((buf = calloc(len, 1)) == NULL) { in smb_string_encode()
114 xdrmem_create(&xdrs, buf, len, XDR_ENCODE); in smb_string_encode()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstrl.c148 sm_strlcat2(dst, src1, src2, len) in sm_strlcat2() argument
152 ssize_t len;
160 if (len < o + 1)
163 len -= o + 1; /* space left in dst */
166 for (i = 0, j = o; i < len && (dst[j] = src1[i]) != 0; i++, j++)
177 len -= i; /* space left in dst */
180 for (i = 0; i < len && (dst[j] = src2[i]) != 0; i++, j++)
212 sm_strlcpyn(char *dst, ssize_t len, int n, ...) in sm_strlcpyn() argument
214 sm_strlcpyn(dst, len, n, va_alist) in sm_strlcpyn()
216 ssize_t len;
[all …]
/illumos-gate/usr/src/cmd/sh/
H A Dexpand.c67 int len; in expand() local
83 if ((len = mbtowc(&wc, (char *)cs, MB_LEN_MAX)) <= 0) { in expand()
84 len = 1; in expand()
88 cs += len; in expand()
212 int len; in addg() local
237 len = 1; in addg()
256 if ((s2 + len) >= brkend) in addg()
257 growstak(s2 + len); in addg()
258 memcpy(s2, s1, len); in addg()
259 s2 += len; in addg()
[all …]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dgb18030.c84 int ch, len, ocount; in _GB18030_mbrtowc() local
118 len = 1; in _GB18030_mbrtowc()
127 len = 2; in _GB18030_mbrtowc()
147 len = 4; in _GB18030_mbrtowc()
157 return (len - ocount); in _GB18030_mbrtowc()
171 size_t len; in _GB18030_wcrtomb() local
205 len = 4; in _GB18030_wcrtomb()
217 len = 2; in _GB18030_wcrtomb()
220 len = 1; in _GB18030_wcrtomb()
224 return (len); in _GB18030_wcrtomb()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Dnfs.c108 uint32_t len; member
187 int len; in nfs_getrootfh() local
189 uint32_t len; in nfs_getrootfh() member
216 args->len = htonl(len); in nfs_getrootfh()
218 len = sizeof (uint32_t) + roundup(len, sizeof (uint32_t)); in nfs_getrootfh()
251 int len, pos; in nfs_lookupfh() local
282 len = FNAME_SIZE; in nfs_lookupfh()
331 uint32_t len; in nfs_readlink() member
372 repl->len = ntohl(repl->len); in nfs_readlink()
403 uint32_t len; in nfs_readdata() member
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_get.c98 size_t len; local
161 nlsn.offset = lp->lsn.offset - lp->len;
187 len = hdr.len - sizeof(HDR);
246 if (hdr.len <= sizeof(HDR))
248 len = hdr.len - sizeof(HDR);
254 if ((ret = __db_retcopy(dbt, shortp, len,
280 if (len - nr > sizeof(lp->buf))
282 if (nr != (ssize_t)len) {
283 if (lp->b_off < len - nr)
291 if ((ret = __db_retcopy(dbt, tbuf, len,
[all …]
H A Dlog_put.c224 lp->len = sizeof(HDR);
229 lp->len += dbt->size;
359 u_int32_t len;
393 nw = remain > len ? len : remain;
396 len -= nw;
415 __log_write(dblp, addr, len) in __log_write() argument
418 u_int32_t len;
442 if (nw != (int32_t)len)
446 lp->w_off += len;
471 size_t len;
[all …]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_msg.c142 int len; in sip_clone_msg() local
184 len; in sip_clone_msg()
244 int len = 0; in sip_msg_to_msgbuf() local
280 e += len; in sip_msg_to_msgbuf()
302 e += len; in sip_msg_to_msgbuf()
315 e += len; in sip_msg_to_msgbuf()
414 tlen += len; in sip_copy_values()
415 p += len; in sip_copy_values()
432 p += len; in sip_copy_values()
450 p += len; in sip_copy_values()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkgserv/
H A Dpkgserv.c501 int len = -1; in pkg_door_srv() local
966 *len = look->len; in file_find()
1026 if (cur->len == new->len && in swapentry()
1039 cur->len = new->len; in swapentry()
1048 int len; in logentry() local
1056 if (len < 0) { in logentry()
1060 logcount += len; in logentry()
1067 int len; in logflush() local
1092 if (len < 0) in logflush()
1215 if (fwrite(p->line, 1, p->len, cnts) != p->len) in thr_pkgfilter()
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dmbuf.c74 len = M_ALIGN(len); in m_get()
76 len = M_MINSIZE; in m_get()
109 int len = 0; in m_totlen() local
112 len += m->m_len; in m_totlen()
115 return (len); in m_totlen()
137 dp += len; in m_lineup()
190 if (len <= ts) in m_getm()
192 len -= ts; in m_getm()
197 if (len > 0) { in m_getm()
397 int err, len; in mb_put_astring() local
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ng.c272 int len, strpos; in parse_netgrp() local
312 len = epos - spos; in parse_netgrp()
315 if (len > 0) { in parse_netgrp()
324 len + 1); in parse_netgrp()
356 int len, olen, cont; in read_for_group() local
370 len = pos - spos; in read_for_group()
386 len = strlen(pos); in read_for_group()
395 len--; in read_for_group()
397 len--; in read_for_group()
401 if (len > 0) { in read_for_group()
[all …]
/illumos-gate/usr/src/common/net/dhcp/
H A Dscan.c75 if ((current + options[*current]->len + 1) >= end) { in field_scan()
89 uint8_t *start, *end, len; in vendor_scan() local
93 len = pl->opts[CD_VENDOR_SPEC]->len; in vendor_scan()
97 if (((start - (uint8_t *)pl->pkt) + len) > pl->len) in vendor_scan()
100 end = start + len; in vendor_scan()
112 uint_t opt_size = pl->len - BASE_PKT_SIZE; in dhcp_options_scan()
118 if (pl->len < BASE_PKT_SIZE || in dhcp_options_scan()
141 if (pl->opts[CD_DHCP_TYPE]->len != 1) in dhcp_options_scan()
149 if (pl->opts[CD_OPTION_OVERLOAD]->len != 1) { in dhcp_options_scan()
232 if (plp == NULL || plp->pkt == NULL || plp->len < sizeof (*d6m)) in dhcpv6_pkt_option()
[all …]
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprusrio.c51 size_t len; in prusrio() local
71 len = MIN(uiop->uio_resid, in prusrio()
74 if ((error = uread(p, bp, len, addr)) != 0 || in prusrio()
75 (error = uiomove(bp, len, UIO_READ, uiop)) != 0) in prusrio()
95 len = MIN(uiop->uio_resid, in prusrio()
98 if ((error = uiomove(bp, len, UIO_WRITE, uiop)) != 0) in prusrio()
100 if ((error = uwrite(p, bp, len, addr)) != 0) { in prusrio()
101 uiop->uio_resid += len; in prusrio()
102 uiop->uio_loffset -= len; in prusrio()
/illumos-gate/usr/src/uts/common/io/ixgbe/
H A Dixgbe_tx.c252 len -= amt; in ixgbe_ring_tx()
264 ASSERT0(len); in ixgbe_ring_tx()
303 len); in ixgbe_ring_tx()
306 len); in ixgbe_ring_tx()
447 tcb->tx_buf.len + len > tcb->tx_buf.size) { in ixgbe_tx_copy()
474 if (len > 0) { in ixgbe_tx_copy()
475 bcopy(buf, tx_buf->address + tx_buf->len, len); in ixgbe_tx_copy()
477 tx_buf->len += len; in ixgbe_tx_copy()
583 uint32_t len; in ixgbe_get_context() local
623 size += len; in ixgbe_get_context()
[all …]
/illumos-gate/usr/src/lib/libc/port/print/
H A Dasprintf.c42 size_t len; in vasprintf() local
49 len = ret + 1; in vasprintf()
50 if ((newstr = malloc(len)) == NULL) in vasprintf()
58 (void) memcpy(newstr, string, len); in vasprintf()
72 len = ret + 1; in vasprintf()
73 if ((newstr = malloc(len)) == NULL) in vasprintf()
75 ret = vsnprintf(newstr, len, format, ap); in vasprintf()
80 if (ret < len) { in vasprintf()
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dpkgops.c188 int len; in pkgOpenInGzOnlyFile() local
304 int len; in pkgIsPkgInGzOnlyFP() local
307 len = strlen(line); in pkgIsPkgInGzOnlyFP()
308 while ((len > 0) && (line[len-1] == '\n')) { in pkgIsPkgInGzOnlyFP()
357 int len; in pkgRemovePackageFromGzonlyList() local
447 int len; in pkgRemovePackageFromGzonlyList() local
450 len = strlen(line); in pkgRemovePackageFromGzonlyList()
451 while ((len > 0) && (line[len-1] == '\n')) { in pkgRemovePackageFromGzonlyList()
546 int len; in pkgAddPackageToGzonlyList() local
640 int len; in pkgAddPackageToGzonlyList() local
[all …]

12345678910>>...164