Searched refs:wp (Results 1 - 15 of 15) sorted by relevance

/ast/src/lib/libcmd/
H A Dwc.c74 static void printout(register Wc_t *wp, register char *name,register int mode) argument
77 sfprintf(sfstdout," %7I*d",sizeof(wp->lines),wp->lines);
79 sfprintf(sfstdout," %7I*d",sizeof(wp->words),wp->words);
81 sfprintf(sfstdout," %7I*d",sizeof(wp->chars),wp->chars);
83 sfprintf(sfstdout," %7I*d",sizeof(wp->chars),wp->longest);
94 register Wc_t *wp; local
[all...]
H A Dwclib.c61 Wc_t* wp; local
63 if (!(wp = (Wc_t*)stakalloc(sizeof(Wc_t))))
66 wp->mb = 0;
69 wp->mb = 1;
72 wp->mb = -1;
75 wp->type[n] = (w && isspace(n)) ? WC_SP : 0;
76 wp->type['\n'] = WC_SP|WC_NL;
77 if ((mode & (WC_MBYTE|WC_WORDS)) && wp->mb > 0)
81 wp->type[0x80+n] |= WC_MB;
83 wp
162 wc_count(Wc_t *wp, Sfio_t *fd, const char* file) argument
[all...]
H A Drev.c64 register wchar_t *wp, *xp; local
69 wp = 0;
77 if (!(wp = newof(wp, wchar_t, w, 0)))
83 xp = wp;
87 while (xp > wp)
92 if (wp)
93 free(wp);
97 if (wp)
98 free(wp);
[all...]
H A Dcut.c368 register unsigned char *wp; local
414 wp = --cp;
489 wp = cp - 1;
497 wp = cp - 1;
520 if ((c = wp - copy) > 0 && sfwrite(fdout, (char*)copy, c) < 0)
526 copy = empty ? cp : wp;
/ast/src/lib/libcodex/
H A Dcodexgetpass.c41 Sfio_t* wp; local
46 wp = rp;
50 wp = sfstderr;
60 sfprintf(wp, "%s", prompt);
61 sfsync(wp);
67 sfprintf(wp, "\n");
68 sfsync(wp);
71 if (rp == wp)
/ast/src/lib/libcs/
H A Dcspoll.c55 register fd_set* wp = &wr; local
72 FD_ZERO(wp);
87 FD_SET(pp->fd, wp);
98 wp = 0;
105 num = select(width + 1, rp, wp, ep, tp);
110 num = select(width + 1, rp, wp, ms);
134 if (wp && FD_ISSET(pp->fd, wp))
/ast/src/cmd/mailx/port/
H A Dmime.c394 register Walk_t* wp = (Walk_t*)context; local
399 if (!wp->pattern || !strncasecmp(ent->name, wp->pattern, wp->prefix) && (!ent->name[wp->prefix] || ent->name[wp->prefix] == '/'))
401 wp->hit++;
404 sfprintf(wp->fp, "%s", ent->name);
407 sfprintf(wp->fp, "\n\t");
410 sfprintf(wp
[all...]
/ast/src/cmd/codexlib/zip/
H A Ddeflate.c149 ulg wp; /* current position in slide */ member in struct:State_s
234 w = state->wp;
261 state->wp = w;
306 state->wp = w;
314 state->wp = w;
349 w = state->wp;
367 state->wp = w;
656 w = state->wp;
685 state->wp = w;
699 state->last = state->wp
[all...]
/ast/src/lib/libast/misc/
H A Dmime.c343 register Walk_t* wp = (Walk_t*)context; local
348 if (!wp->pattern || !strncasecmp(ent->name, wp->pattern, wp->prefix) && (!ent->name[wp->prefix] || ent->name[wp->prefix] == '/'))
350 wp->hit++;
353 sfprintf(wp->fp, "%s", ent->name);
356 sfprintf(wp->fp, "\n\t");
359 sfprintf(wp
[all...]
/ast/src/lib/libast/disc/
H A Dsfdcmore.c82 static int ttyquery(Sfio_t* rp, Sfio_t* wp, const char* label, Sfdisc_t* dp) argument
84 static int ttyquery(rp, wp, label, dp)
86 Sfio_t* wp;
136 sfwr(wp, label, n, dp);
/ast/src/cmd/coshell/
H A Devent.c317 Waiting_t* wp; local
322 if (cp->waiting && (wp = (Waiting_t*)dtmatch(cp->waiting, &ep)))
324 if (wp->id >= 0)
326 log(state, cp, 'x', "%d 0", wp->id);
335 dtdelete(cp->waiting, wp);
350 Waiting_t* wp; local
372 if (!(wp = newof(0, Waiting_t, 1, 0)))
378 wp->id = id;
379 wp->event = ep;
380 dtinsert(con->waiting, wp);
392 Waiting_t* wp; local
[all...]
/ast/src/cmd/warp/
H A Dwarp.c621 warp_select(register Call_t* p, int n, void* rp, void* wp, void* ep, register const struct timeval* tv) argument
628 return (*(Select_f)p->call)(n, rp, wp, ep, tv);
638 if ((r = (*(Select_f)p->call)(n, rp, wp, ep, &x)) != -1 && !p->warped && p->level != state.level)
644 select(int n, void* rp, void* wp, void* ep, const struct timeval* tv) argument
648 return warp_select(&call, n, rp, wp, ep, tv);
654 _select(int n, void* rp, void* wp, void* ep, const struct timeval* tv) argument
658 return warp_select(&call, n, rp, wp, ep, tv);
662 __select(int n, void* rp, void* wp, void* ep, const struct timeval* tv) argument
666 return warp_select(&call, n, rp, wp, ep, tv);
670 _libc_select(int n, void* rp, void* wp, voi argument
678 __libc_select(int n, void* rp, void* wp, void* ep, const struct timeval* tv) argument
[all...]
/ast/src/cmd/mailx/
H A Dimap.c1130 imaprecv(register Imap_t* imap, register Imapop_t* wp) argument
1141 if (!wp || wp == imap->op)
1149 if (!wp)
1151 else if (wp->state != IMAP_STATE_sent && wp != imap->op)
1153 if (wp->code)
1154 return wp;
1155 note(ERROR, "imap: %d: operation never sent", wp - imap->op);
1165 if (wp)
[all...]
/ast/src/lib/libast/sfio/
H A Dsfhdr.h340 #define mbrtowc(wp,s,n,mb) mbtowc(wp, s, n)
/ast/src/lib/libast/comp/
H A Dsetlocale.c595 utf8_mbtowc(wchar_t* wp, const char* str, size_t n) argument
609 if (wp)
613 *wp = *sp;
626 *wp = w;

Completed in 72 milliseconds