Searched refs:maxlen (Results 1 - 25 of 277) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrnlen.c35 * but not more than maxlen. Does not look past str + maxlen.
38 strnlen(const char *str, size_t maxlen) argument
42 ptr = memchr(str, 0, maxlen);
44 return (maxlen);
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwcsnlen.c28 * but not more than maxlen. Does not look past str + maxlen.
36 wcsnlen(const wchar_t *str, size_t maxlen) argument
40 if (maxlen != 0) {
46 } while (--maxlen != 0);
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/
H A Dutil.c38 getaline(line, maxlen, fp)
40 int maxlen;
50 if (fgets(start, maxlen, fp) == NULL) {
57 maxlen++;
63 maxlen--;
90 maxlen = strlen(line) + 1;
95 if (maxlen >= 2)
96 line[maxlen - 2] = '\n';
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/speculation/
H A Derr.D_ACT_SPEC.SpeculateWithCopyOutStr.d42 size_t maxlen;
47 maxlen = 10;
56 copyoutstr(str, addr, maxlen);
/illumos-gate/usr/src/cmd/listen/
H A Dnsaddr.h45 unsigned maxlen; member in struct:netbuf
H A Dnlsaddr.c136 if (call->addr.maxlen = size)
142 if (call->opt.maxlen = size)
148 if (call->udata.maxlen = size)
212 nlsc2addr(addr, maxlen, charaddr)
214 int maxlen;
224 for (len = 0; ((maxlen--) && (*charaddr)); ++len) {
/illumos-gate/usr/src/cmd/ypcmd/
H A Dyp_getalias.c113 yp_getalias(key, key_alias, maxlen)
116 int maxlen;
145 if ((int)strlen(alias) > (maxlen)) {
146 strncpy(key_alias, alias, (maxlen));
147 key_alias[maxlen] = '\0';
163 yp_getkey(key_alias, key, maxlen)
166 int maxlen;
195 (strncmp(alias, key_alias, maxlen) == 0)) {
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kfree.c89 kmem_free(p.bind->addr.buf, p.bind->addr.maxlen);
97 kmem_free(p.call->addr.buf, p.call->addr.maxlen);
99 kmem_free(p.call->opt.buf, p.call->opt.maxlen);
101 kmem_free(p.call->udata.buf, p.call->udata.maxlen);
109 kmem_free(p.opt->opt.buf, p.opt->opt.maxlen);
117 kmem_free(p.dis->udata.buf, p.dis->udata.maxlen);
133 kmem_free(p.udata->opt.buf, p.udata->opt.maxlen);
137 KTLILOG(2, "len %d\n", p.udata->addr.maxlen);
138 kmem_free(p.udata->addr.buf, p.udata->addr.maxlen);
148 kmem_free(p.uderr->addr.buf, p.uderr->addr.maxlen);
[all...]
H A Dt_kalloc.c89 * 'buf' and 'maxlen' fields of each.
132 p.udata->addr.maxlen = p.udata->addr.len = 0;
137 p.udata->opt.maxlen = p.udata->opt.len = 0;
142 p.udata->udata.maxlen = tiptr->tp_info.tsdu;
145 p.udata->udata.maxlen = p.udata->udata.len = 0;
176 buf->maxlen = 1024;
183 buf->maxlen = 0;
189 buf->maxlen = n;
/illumos-gate/usr/src/lib/libnls/common/
H A Dnlsenv.c95 buf->maxlen = length;
96 return(nlsc2addr(buf->buf, buf->maxlen, charaddr));
204 nlsc2addr(char *addr, int maxlen, char *charaddr) argument
214 for (len = 0; ((maxlen--) && (*charaddr)); ++len) {
/illumos-gate/usr/src/test/zfs-tests/tests/functional/zvol/zvol_swap/
H A Dzvol_swap_005_pos.ksh63 ((maxlen = max_swaplow - swaplow))
64 swaplen=$(shuf -n 1 -i ${pageblocks}-${maxlen})
/illumos-gate/usr/src/uts/common/gssapi/
H A Dgssd_handle.c75 kmem_free(netaddrp->buf, netaddrp->maxlen);
130 kmem_free(netaddrp->buf, netaddrp->maxlen);
133 netaddrp->len = netaddrp->maxlen = 10;
141 kmem_free(netaddrp->buf, netaddrp->maxlen);
143 netaddrp->len = netaddrp->maxlen = 0;
155 tmpaddr.buf = kmem_zalloc(netaddrp->maxlen, KM_SLEEP);
156 bcopy(netaddrp->buf, tmpaddr.buf, netaddrp->maxlen);
157 tmpaddr.maxlen = netaddrp->maxlen;
165 kmem_free(tmpaddr.buf, tmpaddr.maxlen);
[all...]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dcharsets.c209 CFIndex maxlen; local
228 maxlen = CFStringGetMaximumSizeForEncoding(CFStringGetLength(s),
230 result = malloc(maxlen);
237 if (!CFStringGetCString(s, result, maxlen, kCFStringEncodingUTF8)) {
259 CFIndex maxlen; local
270 maxlen = CFStringGetMaximumSizeForEncoding(CFStringGetLength(s),
272 result = malloc(maxlen);
279 if (!CFStringGetCString(s, result, maxlen,
/illumos-gate/usr/src/cmd/dtrace/demo/sched/
H A Dwhoqueue.d31 int maxlen;
41 /this->len > maxlen && spec[this->cpu]/
51 /this->len > maxlen/
57 maxlen = this->len;
/illumos-gate/usr/src/uts/common/rpc/
H A Drpcb_prot.c121 * throw away maxlen, since it doesn't apply to the caller's
126 u_int maxlen; local
128 if (!xdr_u_int(xdrs, &maxlen))
131 if (!xdr_u_int(xdrs, (u_int *)&objp->maxlen))
135 (u_int *)&(objp->len), objp->maxlen));
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A D_nlist.c37 int maxlen, nreq; local
44 maxlen = 0;
52 if (n > maxlen)
53 maxlen = n;
72 if ((soff + maxlen + 1) >= stroff) {
75 * Assumes (maxlen < sizeof (strs)).
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_rcvuderr.c75 /* Note: cltbuf.maxlen not used in this case */
81 databuf.maxlen = 0;
112 databuf.maxlen = 0;
150 if (_T_IS_TLI(api_semantics) || uderr->addr.maxlen > 0) {
152 uderr->addr.maxlen)) {
162 if (_T_IS_TLI(api_semantics) || uderr->addr.maxlen > 0) {
164 uderr->opt.maxlen)) {
H A Dt_alloc.c106 * 'buf' and 'maxlen' fields of each.
270 buf->maxlen = 0;
297 buf->maxlen = infalloc;
306 buf->maxlen = 1024;
312 buf->maxlen = 0;
318 buf->maxlen = 0;
332 buf->maxlen = 0;
341 buf->maxlen = n;
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dmount.c57 unsigned int maxlen; member in struct:netbuf
138 na->addr->maxlen = sizeof (struct sockaddr_in);
139 na->addr->len = na->addr->maxlen;
141 na->syncaddr->maxlen = na->addr->maxlen;
142 na->syncaddr->len = na->syncaddr->maxlen;
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drtime_tli.c110 tu_data.udata.maxlen = tu_data.udata.len;
112 tu_data.opt.maxlen = 0;
135 sndcall.opt.len = sndcall.opt.maxlen = 0;
136 sndcall.udata.len = sndcall.udata.maxlen = 0;
H A Drpc_td.c63 t_optreq.opt.maxlen = MAXOPTSIZE;
80 t_optret.opt.maxlen = MAXOPTSIZE;
/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dnsap_addr.c44 inet_nsap_addr(const char *ascii, u_char *binary, int maxlen) { argument
52 while ((c = *ascii++) != '\0' && len < (u_int)maxlen) {
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmread.c88 dat.maxlen = size;
91 ctl.maxlen = sizeof (buff);
/illumos-gate/usr/src/cmd/lp/lib/oam/
H A Dfmtmsg.c114 int maxlen, tmpcol;
129 maxlen = LINE_LEN - indent_len - 1;
132 if (maxlen < 1) {
154 if (col > maxlen) {
163 if (tmpcol > maxlen)
171 * The character that just overruns the maxlen.
201 * So, prints as much characters as maxlen allows
112 int maxlen, tmpcol; local
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpathutil.c334 int maxlen; /* The return value excluding space for the '\0' */ local
339 maxlen = PATH_MAX;
345 maxlen = pathconf(FS_ROOT_DIR, _PC_PATH_MAX);
346 if(maxlen <= 0 || errno)
347 maxlen = MAX_PATHLEN_FALLBACK;
353 maxlen = MAX_PATHLEN_FALLBACK;
359 return maxlen + 1;

Completed in 100 milliseconds

1234567891011>>