/ast/src/lib/libcmd/ |
H A D | wc.c | 74 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 D | wclib.c | 61 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 D | rev.c | 64 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 D | cut.c | 368 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 D | codexgetpass.c | 41 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 D | cspoll.c | 55 register fd_set* wp = ≀ 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 D | mime.c | 394 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 D | deflate.c | 149 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 D | mime.c | 343 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 D | sfdcmore.c | 82 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 D | event.c | 317 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 D | warp.c | 621 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 D | imap.c | 1130 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 D | sfhdr.h | 340 #define mbrtowc(wp,s,n,mb) mbtowc(wp, s, n)
|
/ast/src/lib/libast/comp/ |
H A D | setlocale.c | 595 utf8_mbtowc(wchar_t* wp, const char* str, size_t n) argument 609 if (wp) 613 *wp = *sp; 626 *wp = w;
|