Home
last modified time | relevance | path

Searched refs:wlen (Results 1 – 25 of 51) sorted by relevance

123

/freebsd-10-stable/contrib/nvi/common/
Dkey.h15 #define FILE2INT5(sp,buf,n,nlen,w,wlen) \ argument
16 sp->conv.file2int(sp, n, nlen, &buf, &wlen, &w)
17 #define INT2FILE(sp,w,wlen,n,nlen) \ argument
18 sp->conv.int2file(sp, w, wlen, &sp->cw, &nlen, &n)
19 #define CHAR2INT5(sp,buf,n,nlen,w,wlen) \ argument
20 sp->conv.sys2int(sp, n, nlen, &buf, &wlen, &w)
21 #define INT2CHAR(sp,w,wlen,n,nlen) \ argument
22 sp->conv.int2sys(sp, w, wlen, &sp->cw, &nlen, &n)
23 #define INPUT2INT5(sp,cw,n,nlen,w,wlen) \ argument
24 sp->conv.input2int(sp, n, nlen, &(cw), &wlen, &w)
[all …]
Dline.c94 size_t wlen; in db_get() local
179 if (FILE2INT(sp, data.data, data.size, wp, wlen)) { in db_get()
189 BINC_GOTOW(sp, ep->c_lp, ep->c_blen, wlen); in db_get()
190 MEMCPY(ep->c_lp, wp, wlen); in db_get()
194 ep->c_len = wlen; in db_get()
200 *lenp = wlen; in db_get()
523 size_t wlen; in db_last() local
562 FILE2INT(sp, data.data, data.size, wp, wlen); in db_last()
566 BINC_GOTOW(sp, ep->c_lp, ep->c_blen, wlen); in db_last()
567 MEMCPY(ep->c_lp, wp, wlen); in db_last()
[all …]
/freebsd-10-stable/contrib/nvi/cl/
Dcl_term.c97 size_t wlen; in cl_term_init() local
103 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init()
104 MEMCPY(name, wp, wlen); in cl_term_init()
105 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init()
106 MEMCPY(ts, wp, wlen); in cl_term_init()
107 CHAR2INT(sp, tkp->output, strlen(tkp->output), wp, wlen); in cl_term_init()
108 MEMCPY(output, wp, wlen); in cl_term_init()
124 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init()
125 MEMCPY(name, wp, wlen); in cl_term_init()
126 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init()
[all …]
Dcl_read.c56 size_t wlen; in cl_event() local
109 wp, wlen); in cl_event()
111 evp->e_len = wlen; in cl_event()
117 if (wlen == 0) in cl_event()
/freebsd-10-stable/usr.bin/grep/regex/
Dtre-fastmatch.c104 ? ((type == STR_WIDE) ? ((j + fg->wlen) > len) \
132 if (u != 0 && (unsigned)mismatch == fg->wlen - 1 - shift) \
134 v = fg->wlen - 1 - mismatch; \
136 &str_wide[!fg->reversed ? (size_t)j + fg->wlen \
170 u = MIN((type == STR_WIDE ? fg->wlen : fg->len) - shift, v); \
269 fg->defBc = fg->wlen - whasdot; \
272 fg->qsBc_table = hashtable_init(fg->wlen * (fg->icase ? 8 : 4), \
276 for (unsigned int i = whasdot + 1; i < fg->wlen; i++) \
278 int k = fg->wlen - i; \
302 fg->qsBc_table = hashtable_init(fg->wlen * (fg->icase ? 8 : 4), \
[all …]
Dtre-compile.c20 size_t wlen; in tre_convert_pattern() local
41 wlen = n; in tre_convert_pattern()
81 wlen = wcptr - wregex; in tre_convert_pattern()
84 wregex[wlen] = L'\0'; in tre_convert_pattern()
86 *wn = wlen; in tre_convert_pattern()
Dfastmatch.c44 size_t wlen; in tre_fixncomp() local
48 ret = tre_convert_pattern(regex, n, &wregex, &wlen); in tre_fixncomp()
52 ret = tre_compile_literal(preg, wregex, wlen, cflags); in tre_fixncomp()
65 size_t wlen; in tre_fastncomp() local
69 ret = tre_convert_pattern(regex, n, &wregex, &wlen); in tre_fastncomp()
74 ? tre_compile_literal(preg, wregex, wlen, cflags) in tre_fastncomp()
75 : tre_compile_fast(preg, wregex, wlen, cflags); in tre_fastncomp()
/freebsd-10-stable/contrib/nvi/ex/
Dex_script.c205 size_t wlen; in sscr_getprompt() local
246 if (CHAR2INT5(sp, exp->ibcw, t, p - t, wp, wlen)) in sscr_getprompt()
249 db_append(sp, 0, lline, wp, wlen)) in sscr_getprompt()
279 if (CHAR2INT5(sp, exp->ibcw, buf, llen, wp, wlen)) in sscr_getprompt()
281 if (db_last(sp, &lline) || db_append(sp, 0, lline, wp, wlen)) { in sscr_getprompt()
306 size_t wlen; in sscr_exec() local
311 if (db_get(sp, last_lno, DBG_FATAL, &wp, &wlen)) in sscr_exec()
313 INT2CHAR(sp, wp, wlen, p, last_len); in sscr_exec()
322 if (db_eget(sp, lno, &wp, &wlen, &isempty)) { in sscr_exec()
329 if (wlen == 0) in sscr_exec()
[all …]
Dex_init.c148 size_t wlen; in ex_exrc() local
191 CHAR2INT(sp, p, strlen(p) + 1, wp, wlen); in ex_exrc()
192 if (ex_run_str(sp, "NEXINIT", wp, wlen - 1, 1, 0)) in ex_exrc()
195 CHAR2INT(sp, p, strlen(p) + 1, wp, wlen); in ex_exrc()
196 if (ex_run_str(sp, "EXINIT", wp, wlen - 1, 1, 0)) in ex_exrc()
272 size_t wlen; in ex_run_file() local
275 CHAR2INT(sp, name, strlen(name)+1, wp, wlen); in ex_run_file()
276 argv_exp0(sp, &cmd, wp, wlen - 1); in ex_run_file()
Dex_args.c52 size_t wlen; in ex_next() local
66 wp, wlen); in ex_next()
67 if (argv_exp0(sp, cmdp, wp, wlen - 1)) in ex_next()
180 size_t wlen; in ex_prev() local
190 wp, wlen); in ex_prev()
191 if (argv_exp0(sp, cmdp, wp, wlen - 1)) in ex_prev()
Dex_source.c46 size_t wlen; in ex_source() local
87 if (CHAR2INT(sp, bp, (size_t)sb.st_size + 1, wp, wlen)) in ex_source()
90 rc = ex_run_str(sp, np, wp, wlen - 1, 1, 0); in ex_source()
Dex_argv.c368 size_t wlen; in argv_fexp() local
401 CHAR2INT(sp, t, tlen, wp, wlen); in argv_fexp()
402 MEMCPY(p, wp, wlen); in argv_fexp()
403 p += wlen; in argv_fexp()
416 CHAR2INT(sp, t, tlen, wp, wlen); in argv_fexp()
417 MEMCPY(p, wp, wlen); in argv_fexp()
418 p += wlen; in argv_fexp()
567 size_t wlen; in argv_flt_path() local
626 CHAR2INT(sp, dp->d_name, len + 1, wp, wlen); in argv_flt_path()
627 argv_alloc(sp, dlen + wlen + 1); in argv_flt_path()
[all …]
Dex_visual.c43 size_t wlen; in ex_visual() local
87 CHAR2INT(sp, buf, len, wp, wlen); in ex_visual()
88 (void)v_event_push(sp, NULL, wp, wlen, CH_NOMAP | CH_QUOTED); in ex_visual()
Dex_filter.c303 size_t wlen; in filter_ldisplay() local
309 FILE2INT5(sp, exp->ibcw, exp->ibp, len, wp, wlen); in filter_ldisplay()
310 if (ex_ldisplay(sp, wp, wlen, 0, 0)) in filter_ldisplay()
/freebsd-10-stable/sys/fs/cd9660/
Dcd9660_rrip.c119 int len, wlen, cont; local
146 wlen = 0;
152 wlen = 1;
157 wlen = 2;
171 wlen = strlen(inbuf);
179 wlen = strlen(inbuf);
187 wlen = isonum_711(pcomp->clen);
192 wlen = ana->maxlen + 1;
196 if (len + wlen > ana->maxlen) {
205 bcopy(inbuf,outbuf,wlen);
[all …]
/freebsd-10-stable/contrib/nvi/vi/
Dv_increment.c58 size_t beg, blen, end, len, nlen, wlen; in v_increment() local
112 wlen = len - beg; in v_increment()
113 if (p[beg] == '0' && wlen > 2 && in v_increment()
120 } else if (p[beg] == '0' && wlen > 1) { in v_increment()
126 } else if (wlen >= 1 && (p[beg] == '+' || p[beg] == '-')) { in v_increment()
168 wlen = (end - beg); in v_increment()
179 MEMMOVE(bp, &p[beg], wlen); in v_increment()
180 bp[wlen] = '\0'; in v_increment()
225 wlen -= 2; in v_increment()
227 nlen = SPRINTF(nbuf, sizeof(nbuf), ntype, wlen, ulval); in v_increment()
Dv_at.c45 size_t wlen; in v_at() local
107 CHAR2INT(sp, nbuf, len, wp, wlen); in v_at()
108 MEMCPY(wbuf, wp, wlen); in v_at()
109 if (v_event_push(sp, NULL, wp, wlen, 0)) in v_at()
/freebsd-10-stable/contrib/unbound/libunbound/
Dcontext.c298 size_t wlen = (pkt&&q->res->why_bogus)?strlen(q->res->why_bogus)+1:0; in context_serialize_answer() local
300 *len = sizeof(uint32_t)*5 + pkt_len + wlen; in context_serialize_answer()
307 sldns_write_uint32(p+4*sizeof(uint32_t), (uint32_t)wlen); in context_serialize_answer()
308 if(wlen > 0) in context_serialize_answer()
309 memmove(p+5*sizeof(uint32_t), q->res->why_bogus, wlen); in context_serialize_answer()
311 memmove(p+5*sizeof(uint32_t)+wlen, in context_serialize_answer()
322 size_t wlen; in context_deserialize_answer() local
330 wlen = (size_t)sldns_read_uint32(p+4*sizeof(uint32_t)); in context_deserialize_answer()
331 if(len > 5*sizeof(uint32_t) && wlen > 0) { in context_deserialize_answer()
332 if(len >= 5*sizeof(uint32_t)+wlen) in context_deserialize_answer()
[all …]
/freebsd-10-stable/contrib/netcat/
Dsocks.c132 size_t hlen, wlen; in socks_connect() local
194 wlen = 7 + hlen; in socks_connect()
204 wlen = 10; in socks_connect()
215 wlen = 22; in socks_connect()
221 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
222 if (cnt != wlen) in socks_connect()
223 err(1, "write failed (%zu/%zu)", cnt, wlen); in socks_connect()
255 wlen = 9; in socks_connect()
257 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
258 if (cnt != wlen) in socks_connect()
[all …]
/freebsd-10-stable/usr.sbin/extattrctl/
Dextattrctl.c94 ssize_t wlen; in initattr() local
134 wlen = write(i, zero_buf, sizeof zero_buf); in initattr()
136 wlen = write(i, zero_buf, easize); in initattr()
137 if (wlen == -1) { in initattr()
141 easize -= wlen; in initattr()
/freebsd-10-stable/lib/libc/stdio/
Dopen_wmemstream.c123 ssize_t consumed, wlen; in wmemstream_write() local
127 wlen = wbuflen(&ms->mbstate, buf, len); in wmemstream_write()
128 if (wlen < 0) { in wmemstream_write()
132 if (!wmemstream_grow(ms, ms->offset + wlen)) in wmemstream_write()
/freebsd-10-stable/usr.sbin/dconschat/
Ddconschat.c560 int len, wlen; in dconschat_write_dcons() local
571 wlen = MIN(blen, ch->size - ch->pos); in dconschat_write_dcons()
572 wlen = MIN(wlen, MAX_XFER); in dconschat_write_dcons()
573 len = dwrite(dc, buf, wlen, ch->buf + ch->pos); in dconschat_write_dcons()
849 int len, wlen; in dconschat_read_socket() local
853 wlen = 0; in dconschat_read_socket()
854 dconschat_read_filter(dc, p, rbuf, len, wbuf, &wlen); in dconschat_read_socket()
856 if (wlen > 0 && (dc->flags & F_READY) != 0) { in dconschat_read_socket()
857 dconschat_write_dcons(dc, p->port, wbuf, wlen); in dconschat_read_socket()
859 wbuf[wlen] = 0; in dconschat_read_socket()
[all …]
/freebsd-10-stable/bin/rm/
Drm.c428 int bsize, fd, wlen; in rm_overwrite() local
461 for (len = sbp->st_size; len > 0; len -= wlen) { \ in rm_overwrite()
462 wlen = len < bsize ? len : bsize; \ in rm_overwrite()
463 if (write(fd, buf, wlen) != wlen) \ in rm_overwrite()
/freebsd-10-stable/lib/libfetch/
Dcommon.c1186 ssize_t wlen, total; in fetch_writev() local
1223 wlen = SSL_write(conn->ssl, in fetch_writev()
1227 wlen = writev(conn->sd, iov, iovcnt); in fetch_writev()
1228 if (wlen == 0) { in fetch_writev()
1235 if (wlen < 0) { in fetch_writev()
1240 total += wlen; in fetch_writev()
1241 while (iovcnt > 0 && wlen >= (ssize_t)iov->iov_len) { in fetch_writev()
1242 wlen -= iov->iov_len; in fetch_writev()
1247 iov->iov_len -= wlen; in fetch_writev()
1248 iov->iov_base = __DECONST(char *, iov->iov_base) + wlen; in fetch_writev()
/freebsd-10-stable/sys/gnu/dts/arm/
Domap3-igep0020-rev-f.dts19 lbep5clwmc_wlen: regulator-lbep5clwmc-wlen {
21 regulator-name = "regulator-lbep5clwmc-wlen";

123