Searched refs:ws (Results 1 - 13 of 13) sorted by relevance

/ast/src/lib/libast/port/
H A Dastwinsize.c76 struct winsize ws; local
78 if (!ttctl(fd, TIOCGWINSZ, &ws) && ws.ws_col > 0 && ws.ws_row > 0)
80 if (rows) *rows = ws.ws_row;
81 if (cols) *cols = ws.ws_col;
98 struct winsize ws;
100 if (!ttctl(fd, JWINSIZE, &ws) && ws.bytesx > 0 && ws
[all...]
/ast/src/lib/libpz/
H A Dpzwrite.c70 pz->ws.bp = pz->buf;
88 if (pz->ws.sz)
90 x = pz->ws.sz;
93 memcpy(pz->ws.sp, bp, x);
96 if (pz->ws.sz -= x)
97 pz->ws.sp += x;
99 dtinsert(pz->sort.order, pz->ws.se);
111 pz->ws.sp = elt->buf + k;
112 pz->ws.sz = x - k;
113 pz->ws
[all...]
H A Dpzsync.c43 op = pz->ws.io ? pz->ws.io : pz->io;
44 if (pz->ws.bp)
50 pz->ws.bp = 0;
66 pz->ws.bp = pz->buf;
70 n = pz->ws.row;
75 pz->count.records += pz->ws.rep;
76 sfputu(tmp, pz->ws.rep);
130 m = pz->ws.vp - pz->val;
H A Dpzopen.c243 if (!(r = pzsync(pz)) && (op = pz->ws.io))
250 if (pz->ws.pc)
253 (*pz->disc->errorf)(pz, pz->disc, 1, "last record incomplete %u/%u", pz->ws.pc, pz->row);
255 sfputu(op, pz->ws.pc);
256 sfwrite(op, pz->ws.pb, pz->ws.pc);
H A Dpzlib.h122 Pzws_t ws; /* read stream state */ \
/ast/src/cmd/mailx/
H A Dnames.c237 register Walk_str_t* ws = (Walk_str_t*)context; local
241 if (!ws->flags || ws->flags == (np->flags & GMASK)) {
242 if (s = ws->next) {
243 if (s > ws->base) {
244 if (ws->sep)
249 ws->next = s;
253 ws->count += strlen(np->name) + ws->sep;
264 Walk_str_t ws; local
[all...]
H A Dlocal.c412 struct winsize ws; local
415 if (ioctl(1, TIOCGWINSZ, (char*)&ws) < 0)
416 ws.ws_col = ws.ws_row = 0;
425 else if (ws.ws_row)
426 state.screenheight = ws.ws_row;
429 if (!(state.realscreenheight = ws.ws_row))
431 if (!(state.screenwidth = ws.ws_col))
/ast/src/lib/libvcodex/Vcwindow/
H A Dvcwfile.c194 Grint_t ws, ss, t; local
204 { if((ws = vcwf->work[i]) == (ss = msig[i-v]) )
207 { if(ws < ss)
208 { t = ws; ws = ss; ss = t; }
209 if(DIST(ws,ss) < ACCEPT(ss))
217 { if((ws = vcwf->work[i]) == (ss = msig[i-v]) )
220 { if(ws < ss)
221 { t = ws; ws
[all...]
/ast/src/cmd/mailx/port/
H A Dmime.c431 Walk_t ws; local
433 ws.fp = fp;
434 ws.hit = 0;
435 if (ws.pattern = pattern)
439 ws.prefix = s - (char*)pattern;
442 ws.pattern = 0;
443 list(mp->cap, ent, &ws);
444 return ws.hit;
447 dtwalk(mp->cap, list, &ws);
448 return ws
[all...]
/ast/src/lib/libast/misc/
H A Dmime.c445 Walk_t ws; local
447 ws.fp = fp;
448 ws.hit = 0;
449 ws.prefix = 0;
450 if (ws.pattern = pattern)
454 ws.prefix = pattern - ws.pattern;
455 else if (ent = find(mp, ws.pattern))
457 ws.pattern = 0;
458 list(mp->cap, ent, &ws);
[all...]
/ast/src/lib/libast/sfio/
H A Dsfvscanf.c977 argv.ws = (wchar_t*)value;
997 *argv.ws++ = wc;
1039 *argv.ws = 0;
H A Dsfhdr.h731 wchar_t *ws, **wsp; member in union:__anon307
/ast/src/cmd/sortlib/sync/
H A Dss.c2492 struct stat ws; local
2502 if (!fstat(sffileno(fp->group->io), &ws) && SAME(&ws, &ns))
2565 if (gp->io && !fstat(sffileno(gp->io), &ws) && SAME(&ws, &ns))

Completed in 35 milliseconds