Home
last modified time | relevance | path

Searched refs:wp (Results 1 – 25 of 54) sorted by relevance

123

/mirbsd/src/bin/mksh/
Dlex.c166 statep->ls_start = Xsavepos(ws, wp); \
174 wp = Xrestpos(ws, wp, statep->ls_start); \
199 char *wp; /* output word pointer */ in yylex() local
209 Xinit(ws, wp, 64, ATEMP); in yylex()
218 *wp++ = OQUOTE; in yylex()
266 Xcheck(ws, wp); in yylex()
275 *wp++ = ADELIM; in yylex()
276 *wp++ = c; in yylex()
287 *wp = EOS; in yylex()
288 if (is_wdvarname(Xstring(ws, wp), false)) { in yylex()
[all …]
Dfuncs.c79 c_true(const char **wp MKSH_A_UNUSED) in c_true()
85 c_false(const char **wp MKSH_A_UNUSED) in c_false()
232 c_pwd(const char **wp) in c_pwd() argument
238 while ((optc = ksh_getopt(wp, &builtin_opt, "LP")) != -1) in c_pwd()
249 wp += builtin_opt.optind; in c_pwd()
251 if (wp[0]) { in c_pwd()
275 c_print(const char **wp) in c_print() argument
288 if (wp[0][0] == 'e') { in c_print()
290 wp++; in c_print()
307 if (*wp && !strcmp(*wp, "-n")) { in c_print()
[all …]
Dtree.c302 wdvarput(struct shf *shf, const char *wp, int quotelevel, int opmode) in wdvarput() argument
318 switch (*wp++) { in wdvarput()
320 return (--wp); in wdvarput()
323 c = *wp++; in wdvarput()
333 c = *wp++; in wdvarput()
351 while ((c = *wp++) != 0) in wdvarput()
385 if (*wp++ == '{') in wdvarput()
387 while ((c = *wp++) != 0) in wdvarput()
389 wp = wdvarput(shf, wp, 0, opmode); in wdvarput()
392 if (*wp++ == '}') in wdvarput()
[all …]
Deval.c211 XPtrV *wp, in expand() argument
913 alt_expand(wp, cp, cp, in expand()
917 glob(cp, wp, tobool(f & DOMARKDIRS)); in expand()
919 XPput(*wp, cp); in expand()
921 XPput(*wp, debunk(cp, cp, in expand()
934 XPput(*wp, cp); in expand()
944 XPput(*wp, cp); in expand()
1450 glob(char *cp, XPtrV *wp, bool markdirs) in glob() argument
1452 int oldsize = XPsize(*wp); in glob()
1454 if (glob_str(cp, wp, markdirs) == 0) in glob()
[all …]
Dshf.c147 shf->rp = shf->wp = shf->buf; in shf_fdopen()
174 shf->rp = shf->wp = shf->buf; in shf_reopen()
214 shf->buf = shf->rp = shf->wp = (unsigned char *)buf; in shf_sopen()
354 shf->wp = nbuf + (shf->wp - shf->buf); in shf_emptybuf()
361 ssize_t n, ntowrite = shf->wp - shf->buf; in shf_emptybuf()
380 shf->wp = shf->buf + ntowrite; in shf_emptybuf()
388 shf->wp = shf->buf; in shf_emptybuf()
394 shf->wp = shf->buf; in shf_emptybuf()
610 *shf->wp++ = c; in shf_putchar()
643 (shf->wp != shf->buf || nbytes < shf->wnleft)) { in shf_write()
[all …]
Dhistrap.c88 c_fc(const char **wp) in c_fc() argument
103 while ((optc = ksh_getopt(wp, &builtin_opt, in c_fc()
161 wp += builtin_opt.optind; in c_fc()
173 if (*wp && **wp && (p = cstrchr(*wp + 1, '='))) { in c_fc()
174 strdupx(pat, *wp, ATEMP); in c_fc()
175 rep = pat + (p - *wp); in c_fc()
177 wp++; in c_fc()
180 if (!first && (first = *wp)) in c_fc()
181 wp++; in c_fc()
182 if (last || *wp) { in c_fc()
[all …]
/mirbsd/src/lib/libncurses/src/ncurses/base/
Dresizeterm.c55 WINDOWLIST *wp; in show_window_sizes() local
59 for (wp = _nc_windows; wp != 0; wp = wp->next) { in show_window_sizes()
61 &(wp->win), in show_window_sizes()
62 wp->win._maxy + 1, in show_window_sizes()
63 wp->win._maxx + 1, in show_window_sizes()
64 wp->win._begy, in show_window_sizes()
65 wp->win._begx); in show_window_sizes()
89 WINDOWLIST *wp; in child_depth() local
91 for (wp = _nc_windows; wp != 0; wp = wp->next) { in child_depth()
92 WINDOW *tst = &(wp->win); in child_depth()
[all …]
Dlib_window.c99 WINDOW *wp; in wsyncup() local
103 for (wp = win; wp->_parent; wp = wp->_parent) { in wsyncup()
105 WINDOW *pp = wp->_parent; in wsyncup()
107 assert((wp->_pary <= pp->_maxy) && in wsyncup()
108 ((wp->_pary + wp->_maxy) <= pp->_maxy)); in wsyncup()
110 for (y = 0; y <= wp->_maxy; y++) { in wsyncup()
111 int left = wp->_line[y].firstchar; in wsyncup()
113 struct ldat *line = &(pp->_line[wp->_pary + y]); in wsyncup()
115 int right = wp->_line[y].lastchar + wp->_parx; in wsyncup()
116 left += wp->_parx; in wsyncup()
[all …]
Dwresize.c53 WINDOWLIST *wp; in repair_subwindows() local
57 for (wp = _nc_windows; wp != 0; wp = wp->next) { in repair_subwindows()
58 WINDOW *tst = &(wp->win); in repair_subwindows()
/mirbsd/src/lib/libocurses/
Ddelwin.c47 register WINDOW *wp, *np; local
57 wp = win->nextp;
58 while (wp != win) {
59 np = wp->nextp;
60 delwin(wp);
61 wp = np;
70 for (wp = win->nextp; wp->nextp != win; wp = wp->nextp)
72 wp->nextp = win->nextp;
/mirbsd/src/usr.sbin/ppp/ppp/
Dpred.c179 u_char *cp, *wp, *hp; in Pred1Output() local
186 hp = wp = MBUF_CTOP(mwp); in Pred1Output()
188 *wp++ = *cp++ = orglen >> 8; in Pred1Output()
189 *wp++ = *cp++ = orglen & 0377; in Pred1Output()
196 len = compress(state, bufp + 2, wp, orglen); in Pred1Output()
201 wp += len; in Pred1Output()
204 memcpy(wp, bufp + 2, orglen); in Pred1Output()
205 wp += orglen; in Pred1Output()
209 *wp++ = fcs & 0377; in Pred1Output()
210 *wp++ = fcs >> 8; in Pred1Output()
[all …]
Dasync.c86 u_char *wp; in async_Encode() local
88 wp = *cp; in async_Encode()
91 *wp++ = HDLC_ESC; in async_Encode()
95 *wp++ = HDLC_ESC; in async_Encode()
98 *wp++ = c; in async_Encode()
99 *cp = wp; in async_Encode()
108 struct mbuf *wp; in async_LayerPush() local
121 wp = bp; in async_LayerPush()
123 while (wp) { in async_LayerPush()
124 sp = MBUF_CTOP(wp); in async_LayerPush()
[all …]
Ddeflate.c73 u_char *wp, *rp; in DeflateOutput() local
97 wp = MBUF_CTOP(mo); in DeflateOutput()
98 *wp++ = state->seqno >> 8; in DeflateOutput()
99 *wp++ = state->seqno & 0377; in DeflateOutput()
104 state->cx.next_out = wp; in DeflateOutput()
203 u_char *wp; in DeflateInput() local
238 wp = MBUF_CTOP(mo); in DeflateInput()
239 wp[0] = '\0'; in DeflateInput()
248 state->cx.next_out = wp + 1; in DeflateInput()
282 if (!(wp[1] & 1)) { in DeflateInput()
[all …]
/mirbsd/src/usr.bin/window/
Dwwchild.c54 struct ww **wp; in wwchild() local
62 for (wp = wwindex; wp < &wwindex[NWW]; wp++) { in wwchild()
63 if (*wp && (*wp)->ww_state == WWS_HASPROC in wwchild()
64 && (*wp)->ww_pid == pid) { in wwchild()
65 (*wp)->ww_state = WWS_DEAD; in wwchild()
Dwwenviron.c58 wwenviron(wp)
59 struct ww *wp; variable
75 if ((i = wp->ww_socket) < 0) {
76 if ((i = open(wp->ww_ttyname, 2)) < 0)
80 if (wwsetttysize(i, wp->ww_w.nr, wp->ww_w.nc) < 0)
104 WWT_TERMCAP, wp->ww_w.nc, wp->ww_w.nr, wwwintermcap);
106 (void) snprintf(buf, sizeof buf, "%d", wp->ww_id + 1);
Dwwspawn.c53 wwspawn(wp, file, argv)
54 struct ww *wp; variable
73 if (wwenviron(wp) >= 0)
82 wp->ww_pid = pid;
83 wp->ww_state = WWS_HASPROC;
90 if (wp->ww_socket >= 0) {
91 (void) close(wp->ww_socket);
92 wp->ww_socket = -1;
Dwwdelete.c71 struct ww *wp; variable
73 for (wp = w->ww_forw; wp != &wwhead; wp = wp->ww_forw)
74 wp->ww_order--;
Dlcmd2.c184 struct ww *w, *wp; variable
200 if ((wp = window[i]) == 0)
203 wp == selwin ? '+' : (wp == lastselwin ? '-' : ' '),
205 wp->ww_state == WWS_HASPROC ? "" : "(No process)",
207 wp->ww_label ? wp->ww_label : "(No label)");
/mirbsd/src/sys/dev/pci/
Dnoct.c1018 u_int32_t wp; local
1060 wp = sc->sc_eawp;
1064 sc->sc_eacmd[wp].buf[i] = 0;
1065 sc->sc_eacmd[wp].buf[0] = EA_0_SI;
1068 sc->sc_eacmd[wp].buf[1] = htole32(EA_OP_MD5);
1071 sc->sc_eacmd[wp].buf[1] = htole32(EA_OP_SHA1);
1076 sc->sc_eacmd[wp].buf[1] |= htole32(crd->crd_len);
1078 sc->sc_eacmd[wp].buf[2] = htole32(adr >> 32);
1079 sc->sc_eacmd[wp].buf[3] = htole32(adr & 0xffffffff);
1083 (wp * sizeof(struct noct_ea_cmd)) +
[all …]
/mirbsd/src/usr.bin/mail/
Dhead.c255 nextword(char *wp, char *wbuf) in nextword() argument
259 if (wp == NULL) { in nextword()
263 while ((c = *wp++) && c != ' ' && c != '\t') { in nextword()
266 while ((c = *wp++) && c != '"') in nextword()
271 wp--; in nextword()
275 for (; c == ' ' || c == '\t'; c = *wp++) in nextword()
279 return(wp - 1); in nextword()
/mirbsd/src/usr.bin/printf/
Dprintf.c114 c_printf(const char **wp) in c_printf() argument
122 kshname = wp[0]; in c_printf()
123 ++wp; in c_printf()
124 if (wp[0] && !strcmp(wp[0], "--")) in c_printf()
125 ++wp; in c_printf()
126 if (wp[0]) { in c_printf()
127 strdupx(fmt, wp[0], ATEMP); in c_printf()
130 rv = real_main(fmt, wp); in c_printf()
/mirbsd/src/usr.bin/less/
Dprompt.c440 wherechar(p, wp) in wherechar() argument
442 int *wp;
449 case 't': *wp = TOP; break;
450 case 'm': *wp = MIDDLE; break;
451 case 'b': *wp = BOTTOM; break;
452 case 'B': *wp = BOTTOM_PLUS_ONE; break;
453 case 'j': *wp = adjsline(jump_sline); break;
454 default: *wp = TOP; p--; break;
/mirbsd/src/usr.bin/oldroff/nroff/
Dn7.c586 register i, w, *wp; in movword() local
590 wp = wordp; in movword()
592 while(((i = *wp++) & CMASK) == ' '){ in movword()
596 wp--; in movword()
602 )hyphen(wp); in movword()
606 while(*hyp && (*hyp <= wp))hyp++; in movword()
608 if((hyoff != 1) && (*hyp == wp)){ in movword()
611 ((wp > (wdstart+1)) && in movword()
612 (wp < wdend) && in movword()
613 (!(hyf & 04) || (wp < (wdend-1))) && in movword()
[all …]
/mirbsd/src/sbin/routed/
Drdisc.c105 n_long *wp, *lim; in trace_rdisc() local
122 wp = &p->ad.icmp_ad_info[0].icmp_ad_addr; in trace_rdisc()
123 lim = &wp[(len - sizeof(p->ad)) / sizeof(*wp)]; in trace_rdisc()
124 for (i = 0; i < p->ad.icmp_ad_num && wp <= lim; i++) { in trace_rdisc()
126 naddr_ntoa(wp[0]), (int)ntohl(wp[1])); in trace_rdisc()
127 wp += p->ad.icmp_ad_asize; in trace_rdisc()
934 n_long *wp; in read_d() local
1000 wp = &p->ad.icmp_ad_info[0].icmp_ad_addr; in read_d()
1003 wp[0], wp[1], in read_d()
1006 wp += p->ad.icmp_ad_asize; in read_d()
/mirbsd/src/lib/libc/time/
Dzdump.c231 register char * wp; local
236 wp = NULL;
240 wp = _("lacks alphabetic at start");
242 wp = _("has fewer than 3 alphabetics");
244 wp = _("has more than 6 alphabetics");
245 if (wp == NULL && (*cp == '+' || *cp == '-')) {
252 wp = _("differs from POSIX standard");
253 if (wp == NULL)
258 progname, zone, abbr, wp);

123