Home
last modified time | relevance | path

Searched refs:maxlen (Results 1 – 25 of 266) sorted by relevance

1234567891011

/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/
H A Dutil.c38 getaline(line, maxlen, fp) in getaline() argument
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/uts/common/ktli/
H A Dt_kfree.c89 kmem_free(p.bind->addr.buf, p.bind->addr.maxlen); in t_kfree()
97 kmem_free(p.call->addr.buf, p.call->addr.maxlen); in t_kfree()
99 kmem_free(p.call->opt.buf, p.call->opt.maxlen); in t_kfree()
101 kmem_free(p.call->udata.buf, p.call->udata.maxlen); in t_kfree()
109 kmem_free(p.opt->opt.buf, p.opt->opt.maxlen); in t_kfree()
117 kmem_free(p.dis->udata.buf, p.dis->udata.maxlen); in t_kfree()
133 kmem_free(p.udata->opt.buf, p.udata->opt.maxlen); in t_kfree()
137 KTLILOG(2, "len %d\n", p.udata->addr.maxlen); in t_kfree()
138 kmem_free(p.udata->addr.buf, p.udata->addr.maxlen); in t_kfree()
148 kmem_free(p.uderr->addr.buf, p.uderr->addr.maxlen); in t_kfree()
[all …]
H A Dt_kalloc.c132 p.udata->addr.maxlen = p.udata->addr.len = 0; in t_kalloc()
137 p.udata->opt.maxlen = p.udata->opt.len = 0; in t_kalloc()
142 p.udata->udata.maxlen = tiptr->tp_info.tsdu; in t_kalloc()
145 p.udata->udata.maxlen = p.udata->udata.len = 0; in t_kalloc()
176 buf->maxlen = 1024; in _alloc_buf()
183 buf->maxlen = 0; in _alloc_buf()
189 buf->maxlen = n; in _alloc_buf()
/illumos-gate/usr/src/uts/common/gssapi/
H A Dgssd_handle.c75 kmem_free(netaddrp->buf, netaddrp->maxlen); in gss_zone_fini()
130 kmem_free(netaddrp->buf, netaddrp->maxlen); in getgssd_handle()
133 netaddrp->len = netaddrp->maxlen = 10; in getgssd_handle()
141 kmem_free(netaddrp->buf, netaddrp->maxlen); in getgssd_handle()
143 netaddrp->len = netaddrp->maxlen = 0; in getgssd_handle()
155 tmpaddr.buf = kmem_zalloc(netaddrp->maxlen, KM_SLEEP); in getgssd_handle()
156 bcopy(netaddrp->buf, tmpaddr.buf, netaddrp->maxlen); in getgssd_handle()
157 tmpaddr.maxlen = netaddrp->maxlen; in getgssd_handle()
165 kmem_free(tmpaddr.buf, tmpaddr.maxlen); in getgssd_handle()
/illumos-gate/usr/src/cmd/ypcmd/
H A Dyp_getalias.c113 yp_getalias(key, key_alias, maxlen) in yp_getalias() argument
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) in yp_getkey() argument
166 int maxlen;
195 (strncmp(alias, key_alias, maxlen) == 0)) {
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dcharsets.c209 CFIndex maxlen; in convert_wincs_to_utf8() local
228 maxlen = CFStringGetMaximumSizeForEncoding(CFStringGetLength(s), in convert_wincs_to_utf8()
230 result = malloc(maxlen); in convert_wincs_to_utf8()
237 if (!CFStringGetCString(s, result, maxlen, kCFStringEncodingUTF8)) { in convert_wincs_to_utf8()
259 CFIndex maxlen; in convert_utf8_to_wincs() local
270 maxlen = CFStringGetMaximumSizeForEncoding(CFStringGetLength(s), in convert_utf8_to_wincs()
272 result = malloc(maxlen); in convert_utf8_to_wincs()
279 if (!CFStringGetCString(s, result, maxlen, in convert_utf8_to_wincs()
/illumos-gate/usr/src/uts/common/rpc/
H A Drpcb_prot.c118 uint_t maxlen_save = objp->maxlen; in xdr_netbuf()
121 if (!xdr_u_int(xdrs, &objp->maxlen)) in xdr_netbuf()
128 return (xdr_bytes(xdrs, &objp->buf, &objp->maxlen, in xdr_netbuf()
129 objp->maxlen)); in xdr_netbuf()
138 objp->maxlen = maxlen_save; in xdr_netbuf()
140 res = xdr_bytes(xdrs, &objp->buf, &objp->len, objp->maxlen); in xdr_netbuf()
148 objp->maxlen = objp->len; in xdr_netbuf()
H A Dsvc_cots.c243 xprt->xp_rtaddr.maxlen = ack_p->REMADDR_length; in svc_cots_kcreate()
248 xprt->xp_lcladdr.maxlen = ack_p->LOCADDR_length; in svc_cots_kcreate()
285 if (xprt->xp_addrmask.maxlen) in svc_cots_kdestroy()
822 dr->dr_resp.maxlen = 0; in svc_cots_kdup()
824 dr->dr_addr.maxlen = 0; in svc_cots_kdup()
856 kmem_free(dr->dr_addr.buf, dr->dr_addr.maxlen); in svc_cots_kdup()
860 dr->dr_addr.maxlen = 0; in svc_cots_kdup()
868 if (dr->dr_resp.maxlen < size) { in svc_cots_kdup()
870 kmem_free(dr->dr_resp.buf, dr->dr_resp.maxlen); in svc_cots_kdup()
871 dr->dr_resp.maxlen = (unsigned int)size; in svc_cots_kdup()
[all …]
/illumos-gate/usr/src/cmd/listen/
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) in nlsc2addr() argument
214 int maxlen;
224 for (len = 0; ((maxlen--) && (*charaddr)); ++len) {
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_rcvuderr.c81 databuf.maxlen = 0; in _tx_rcvuderr()
112 databuf.maxlen = 0; in _tx_rcvuderr()
150 if (_T_IS_TLI(api_semantics) || uderr->addr.maxlen > 0) { in _tx_rcvuderr()
152 uderr->addr.maxlen)) { in _tx_rcvuderr()
162 if (_T_IS_TLI(api_semantics) || uderr->addr.maxlen > 0) { in _tx_rcvuderr()
164 uderr->opt.maxlen)) { in _tx_rcvuderr()
H A Dt_alloc.c270 buf->maxlen = 0; in _alloc_buf()
297 buf->maxlen = infalloc; in _alloc_buf()
306 buf->maxlen = 1024; in _alloc_buf()
312 buf->maxlen = 0; in _alloc_buf()
318 buf->maxlen = 0; in _alloc_buf()
332 buf->maxlen = 0; in _alloc_buf()
341 buf->maxlen = n; in _alloc_buf()
H A D_conn_util.c247 if (_T_IS_TLI(api_semantics) || call->addr.maxlen > 0) { in _t_rcv_conn_con()
249 call->addr.maxlen)) { in _t_rcv_conn_con()
258 if (_T_IS_TLI(api_semantics) || call->opt.maxlen > 0) { in _t_rcv_conn_con()
260 call->opt.maxlen)) { in _t_rcv_conn_con()
270 call->udata.maxlen > 0) { in _t_rcv_conn_con()
271 if (databuf.len > (int)call->udata.maxlen) { in _t_rcv_conn_con()
H A Dt_listen.c200 if (_T_IS_TLI(api_semantics) || call->addr.maxlen > 0) { in _tx_listen()
202 call->addr.maxlen)) { in _tx_listen()
211 if (_T_IS_TLI(api_semantics) || call->opt.maxlen > 0) { in _tx_listen()
213 call->opt.maxlen)) { in _tx_listen()
222 if (_T_IS_TLI(api_semantics) || call->udata.maxlen > 0) { in _tx_listen()
223 if (databuf.len > (int)call->udata.maxlen) { in _tx_listen()
H A Dt_rcvvudata.c123 databuf.maxlen = nbytes; in _tx_rcvvudata()
172 if (unitdata->addr.maxlen > 0) { in _tx_rcvvudata()
174 unitdata->addr.maxlen)) { in _tx_rcvvudata()
184 if (unitdata->opt.maxlen > 0) { in _tx_rcvvudata()
186 unitdata->opt.maxlen)) { in _tx_rcvvudata()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpcb_prot.c263 uint_t maxlen_save = objp->maxlen; in xdr_netbuf()
266 if (!xdr_u_int(xdrs, &objp->maxlen)) in xdr_netbuf()
273 return (xdr_bytes(xdrs, &objp->buf, &objp->maxlen, in xdr_netbuf()
274 objp->maxlen)); in xdr_netbuf()
283 objp->maxlen = maxlen_save; in xdr_netbuf()
285 res = xdr_bytes(xdrs, &objp->buf, &objp->len, objp->maxlen); in xdr_netbuf()
293 objp->maxlen = objp->len; in xdr_netbuf()
H A Drtime_tli.c110 tu_data.udata.maxlen = tu_data.udata.len; in rtime_tli()
112 tu_data.opt.maxlen = 0; in rtime_tli()
135 sndcall.opt.len = sndcall.opt.maxlen = 0; in rtime_tli()
136 sndcall.udata.len = sndcall.udata.maxlen = 0; in rtime_tli()
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpathutil.c334 int maxlen; /* The return value excluding space for the '\0' */ in _pu_pathname_dim() local
339 maxlen = PATH_MAX; in _pu_pathname_dim()
345 maxlen = pathconf(FS_ROOT_DIR, _PC_PATH_MAX); in _pu_pathname_dim()
346 if(maxlen <= 0 || errno) in _pu_pathname_dim()
347 maxlen = MAX_PATHLEN_FALLBACK; in _pu_pathname_dim()
353 maxlen = MAX_PATHLEN_FALLBACK; in _pu_pathname_dim()
359 return maxlen + 1; in _pu_pathname_dim()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrnlen.c38 strnlen(const char *str, size_t maxlen) in strnlen() argument
42 ptr = memchr(str, 0, maxlen); in strnlen()
44 return (maxlen); in strnlen()
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwcsnlen.c36 wcsnlen(const wchar_t *str, size_t maxlen) in wcsnlen() argument
40 if (maxlen != 0) { in wcsnlen()
46 } while (--maxlen != 0); in wcsnlen()
/illumos-gate/usr/src/uts/common/syscall/
H A Dstrcalls.c236 msgctl.maxlen = -1; in msgio()
238 msgdata.maxlen = -1; in msgio()
459 msgctl.maxlen = msgctl32.maxlen; in msgio32()
468 msgdata.maxlen = msgdata32.maxlen; in msgio32()
474 msgctl.maxlen = -1; in msgio32()
476 msgdata.maxlen = -1; in msgio32()
496 msgctl32.maxlen = msgctl.maxlen; in msgio32()
506 msgdata32.maxlen = msgdata.maxlen; in msgio32()
/illumos-gate/usr/src/lib/libnls/common/
H A Dnlsenv.c95 buf->maxlen = length; in nlsenv()
96 return(nlsc2addr(buf->buf, buf->maxlen, charaddr)); in nlsenv()
204 nlsc2addr(char *addr, int maxlen, char *charaddr) in nlsc2addr() argument
214 for (len = 0; ((maxlen--) && (*charaddr)); ++len) { in nlsc2addr()
/illumos-gate/usr/src/cmd/dtrace/demo/sched/
H A Dwhoqueue.d31 int maxlen; variable
41 /this->len > maxlen && spec[this->cpu]/
51 /this->len > maxlen/
57 maxlen = this->len;
/illumos-gate/usr/src/cmd/lp/lib/oam/
H A Dfmtmsg.c112 int maxlen, tmpcol; in wrap() local
127 maxlen = LINE_LEN - indent_len - 1; in wrap()
130 if (maxlen < 1) { in wrap()
152 if (col > maxlen) { in wrap()
161 if (tmpcol > maxlen) in wrap()
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/speculation/
H A Derr.D_ACT_SPEC.SpeculateWithCopyOutStr.d40 size_t maxlen; variable
45 maxlen = 10;
54 copyoutstr(str, addr, maxlen);
/illumos-gate/usr/src/uts/common/inet/kifconf/
H A Dkifconf.c85 sbuf.maxlen = sbuf.len = sizeof (sin); in kdlifconfig()
92 sbuf.maxlen = sbuf.len = sizeof (sin6); in kdlifconfig()
104 sbuf.maxlen = sbuf.len = sizeof (sin); in kdlifconfig()
111 sbuf.maxlen = sbuf.len = sizeof (sin6); in kdlifconfig()
127 sbuf.maxlen = sbuf.len = sizeof (sin); in kdlifconfig()
154 sbuf.maxlen = sbuf.len = sizeof (route); in kdlifconfig()

1234567891011