bin/ksh/expr.c
137
static void evalerr ARGS((Expr_state *es, enum error_type type,
bin/ksh/expr.c
139
static struct tbl *evalexpr ARGS((Expr_state *es, enum prec prec));
bin/ksh/expr.c
140
static void token ARGS((Expr_state *es));
bin/ksh/expr.c
142
static void assign_check ARGS((Expr_state *es, enum token op,
bin/ksh/expr.c
145
static struct tbl *intvar ARGS((Expr_state *es, struct tbl *vp));
bin/ksh/expr.c
177
Expr_state * const es = &curstate;
bin/ksh/expr.c
201
token(es);
bin/ksh/expr.c
203
if (es->tok == END) {
bin/ksh/expr.c
204
es->tok = LIT;
bin/ksh/expr.c
205
es->val = tempvar();
bin/ksh/expr.c
208
v = intvar(es, evalexpr(es, MAX_PREC));
bin/ksh/expr.c
210
if (es->tok != END)
bin/ksh/expr.c
211
evalerr(es, ET_UNEXPECTED, (char *) 0);
bin/ksh/expr.c
225
evalerr(es, type, str)
bin/ksh/expr.c
226
Expr_state *es;
bin/ksh/expr.c
235
switch (es->tok) {
bin/ksh/expr.c
237
s = es->val->name;
bin/ksh/expr.c
240
s = str_val(es->val);
bin/ksh/expr.c
246
tbuf[0] = *es->tokp;
bin/ksh/expr.c
251
s = opinfo[(int)es->tok].name;
bin/ksh/expr.c
253
warningf(true, "%s: unexpected `%s'", es->expression, s);
bin/ksh/expr.c
257
warningf(true, "%s: bad number `%s'", es->expression, str);
bin/ksh/expr.c
262
es->expression, str);
bin/ksh/expr.c
267
es->expression, str);
bin/ksh/expr.c
272
es->expression, str);
bin/ksh/expr.c
277
warningf(true, "%s: %s", es->expression, str);
bin/ksh/expr.c
284
evalexpr(es, prec)
bin/ksh/expr.c
285
Expr_state *es;
bin/ksh/expr.c
293
op = es->tok;
bin/ksh/expr.c
297
token(es);
bin/ksh/expr.c
298
vl = intvar(es, evalexpr(es, P_PRIMARY));
bin/ksh/expr.c
307
token(es);
bin/ksh/expr.c
308
vl = evalexpr(es, MAX_PREC);
bin/ksh/expr.c
309
if (es->tok != CLOSE_PAREN)
bin/ksh/expr.c
310
evalerr(es, ET_STR, "missing )");
bin/ksh/expr.c
311
token(es);
bin/ksh/expr.c
313
token(es);
bin/ksh/expr.c
314
if (es->tok != VAR)
bin/ksh/expr.c
315
evalerr(es, ET_LVALUE, opinfo[(int) op].name);
bin/ksh/expr.c
316
vl = do_ppmm(es, op, es->val, true);
bin/ksh/expr.c
317
token(es);
bin/ksh/expr.c
319
vl = es->val;
bin/ksh/expr.c
320
token(es);
bin/ksh/expr.c
322
evalerr(es, ET_UNEXPECTED, (char *) 0);
bin/ksh/expr.c
325
if (es->tok == O_PLUSPLUS || es->tok == O_MINUSMINUS) {
bin/ksh/expr.c
326
vl = do_ppmm(es, es->tok, vl, false);
bin/ksh/expr.c
327
token(es);
bin/ksh/expr.c
331
vl = evalexpr(es, ((int) prec) - 1);
bin/ksh/expr.c
332
for (op = es->tok; IS_BINOP(op) && opinfo[(int) op].prec == prec;
bin/ksh/expr.c
333
op = es->tok)
bin/ksh/expr.c
335
token(es);
bin/ksh/expr.c
338
vl = intvar(es, vl);
bin/ksh/expr.c
340
assign_check(es, op, vasn);
bin/ksh/expr.c
341
vr = intvar(es, evalexpr(es, P_ASSIGN));
bin/ksh/expr.c
343
vr = intvar(es, evalexpr(es, ((int) prec) - 1));
bin/ksh/expr.c
347
if (es->noassign)
bin/ksh/expr.c
350
evalerr(es, ET_STR, "zero divisor");
bin/ksh/expr.c
413
es->noassign++;
bin/ksh/expr.c
414
vr = intvar(es, evalexpr(es, ((int) prec) - 1));
bin/ksh/expr.c
417
es->noassign--;
bin/ksh/expr.c
421
es->noassign++;
bin/ksh/expr.c
422
vr = intvar(es, evalexpr(es, ((int) prec) - 1));
bin/ksh/expr.c
425
es->noassign--;
bin/ksh/expr.c
431
es->noassign++;
bin/ksh/expr.c
432
vl = evalexpr(es, MAX_PREC);
bin/ksh/expr.c
434
es->noassign--;
bin/ksh/expr.c
435
if (es->tok != CTERN)
bin/ksh/expr.c
436
evalerr(es, ET_STR, "missing :");
bin/ksh/expr.c
437
token(es);
bin/ksh/expr.c
439
es->noassign++;
bin/ksh/expr.c
440
vr = evalexpr(es, P_TERN);
bin/ksh/expr.c
442
es->noassign--;
bin/ksh/expr.c
467
token(es)
bin/ksh/expr.c
468
Expr_state *es;
bin/ksh/expr.c
475
for (cp = es->tokp; (c = *cp), isspace((unsigned char)c); cp++)
bin/ksh/expr.c
477
es->tokp = cp;
bin/ksh/expr.c
480
es->tok = END;
bin/ksh/expr.c
489
evalerr(es, ET_STR, "missing ]");
bin/ksh/expr.c
501
if (es->noassign) {
bin/ksh/expr.c
502
es->val = tempvar();
bin/ksh/expr.c
503
es->val->flag |= EXPRLVALUE;
bin/ksh/expr.c
505
tvar = str_nsave(es->tokp, cp - es->tokp, ATEMP);
bin/ksh/expr.c
506
es->val = global(tvar);
bin/ksh/expr.c
509
es->tok = VAR;
bin/ksh/expr.c
513
tvar = str_nsave(es->tokp, --cp - es->tokp, ATEMP);
bin/ksh/expr.c
514
es->val = tempvar();
bin/ksh/expr.c
515
es->val->flag &= ~INTEGER;
bin/ksh/expr.c
516
es->val->type = 0;
bin/ksh/expr.c
517
es->val->val.s = tvar;
bin/ksh/expr.c
518
if (setint_v(es->val, es->val) == NULL)
bin/ksh/expr.c
519
evalerr(es, ET_BADLIT, tvar);
bin/ksh/expr.c
521
es->tok = LIT;
bin/ksh/expr.c
529
es->tok = (enum token) i;
bin/ksh/expr.c
534
es->tok = BAD;
bin/ksh/expr.c
536
es->tokp = cp;
bin/ksh/expr.c
541
do_ppmm(Expr_state *es, enum token op, struct tbl *vasn, bool is_prefix)
bin/ksh/expr.c
546
assign_check(es, op, vasn);
bin/ksh/expr.c
548
vl = intvar(es, vasn);
bin/ksh/expr.c
561
assign_check(es, op, vasn)
bin/ksh/expr.c
562
Expr_state *es;
bin/ksh/expr.c
567
evalerr(es, ET_LVALUE, opinfo[(int) op].name);
bin/ksh/expr.c
569
evalerr(es, ET_RDONLY, opinfo[(int) op].name);
bin/ksh/expr.c
588
intvar(es, vp)
bin/ksh/expr.c
589
Expr_state *es;
bin/ksh/expr.c
602
evalerr(es, ET_RECURSIVE, vp->name);
bin/ksh/expr.c
603
es->evaling = vp;
bin/ksh/expr.c
607
es->evaling = (struct tbl *) 0;
bin/ksh/vi.c
1072
if (es->cursor != es->linelen)
bin/ksh/vi.c
1073
es->cursor++;
bin/ksh/vi.c
1083
if (es->cursor != 0)
bin/ksh/vi.c
1084
es->cursor--;
bin/ksh/vi.c
1095
if (es->linelen == 0)
bin/ksh/vi.c
1098
p = &es->cbuf[es->cursor];
bin/ksh/vi.c
1106
if (es->cursor < es->linelen - 1)
bin/ksh/vi.c
1107
es->cursor++;
bin/ksh/vi.c
1114
int ret = x_do_comment(es->cbuf, es->cbufsize,
bin/ksh/vi.c
1115
&es->linelen);
bin/ksh/vi.c
1117
es->cursor = 0;
bin/ksh/vi.c
1123
print_expansions(es, 1);
bin/ksh/vi.c
1148
if (insert == 0 && es->cursor != 0 && es->cursor >= es->linelen)
bin/ksh/vi.c
1149
es->cursor--;
bin/ksh/vi.c
1166
if (!sub && es->cursor == 0)
bin/ksh/vi.c
1172
if (!sub && es->cursor == 0)
bin/ksh/vi.c
1178
if (!sub && es->cursor + 1 >= es->linelen)
bin/ksh/vi.c
1181
if (sub && ncursor < es->linelen)
bin/ksh/vi.c
1186
if (!sub && es->cursor + 1 >= es->linelen)
bin/ksh/vi.c
1189
if (sub && ncursor < es->linelen)
bin/ksh/vi.c
1217
if (!sub && es->cursor == 0)
bin/ksh/vi.c
1219
ncursor = es->cursor - argcnt;
bin/ksh/vi.c
1226
if (!sub && es->cursor + 1 >= es->linelen)
bin/ksh/vi.c
1228
if (es->linelen != 0) {
bin/ksh/vi.c
1229
ncursor = es->cursor + argcnt;
bin/ksh/vi.c
1230
if (ncursor > es->linelen)
bin/ksh/vi.c
1231
ncursor = es->linelen;
bin/ksh/vi.c
1236
if (!sub && es->cursor + 1 >= es->linelen)
bin/ksh/vi.c
1242
if (!sub && es->cursor + 1 >= es->linelen)
bin/ksh/vi.c
1253
while (ncursor < es->linelen - 1 && isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1259
if (ncursor > es->linelen)
bin/ksh/vi.c
1260
ncursor = es->linelen;
bin/ksh/vi.c
1266
if (es->linelen != 0)
bin/ksh/vi.c
1267
ncursor = es->linelen;
bin/ksh/vi.c
1273
ncursor = es->cursor;
bin/ksh/vi.c
1274
while (ncursor < es->linelen &&
bin/ksh/vi.c
1275
(i = bracktype(es->cbuf[ncursor])) == 0)
bin/ksh/vi.c
1277
if (ncursor == es->linelen)
bin/ksh/vi.c
1282
if (++ncursor >= es->linelen)
bin/ksh/vi.c
1288
t = bracktype(es->cbuf[ncursor]);
bin/ksh/vi.c
1311
if (es->cursor > 0)
bin/ksh/vi.c
1312
es->cursor--;
bin/ksh/vi.c
1323
memmove(ybuf, &es->cbuf[a], yanklen);
bin/ksh/vi.c
1375
memmove(holdbuf, es->cbuf, es->linelen);
bin/ksh/vi.c
1376
holdlen = es->linelen;
bin/ksh/vi.c
1383
es->cursor = 0;
bin/ksh/vi.c
1384
es->linelen = holdlen;
bin/ksh/vi.c
1385
memmove(es->cbuf, holdbuf, holdlen);
bin/ksh/vi.c
1433
es = &ebuf;
bin/ksh/vi.c
1434
es->cbuf = buf;
bin/ksh/vi.c
1435
es->cbufsize = len;
bin/ksh/vi.c
1439
es->linelen = undo->linelen = 0;
bin/ksh/vi.c
1440
es->cursor = undo->cursor = 0;
bin/ksh/vi.c
1441
es->winleft = undo->winleft = 0;
bin/ksh/vi.c
1485
if (es->cursor + len >= es->cbufsize)
bin/ksh/vi.c
1487
if (es->cursor + len > es->linelen)
bin/ksh/vi.c
1488
es->linelen = es->cursor + len;
bin/ksh/vi.c
1490
if (es->linelen + len >= es->cbufsize)
bin/ksh/vi.c
1492
memmove(&es->cbuf[es->cursor + len], &es->cbuf[es->cursor],
bin/ksh/vi.c
1493
es->linelen - es->cursor);
bin/ksh/vi.c
1494
es->linelen += len;
bin/ksh/vi.c
1496
memmove(&es->cbuf[es->cursor], buf, len);
bin/ksh/vi.c
1497
es->cursor += len;
bin/ksh/vi.c
1505
if (es->linelen != b)
bin/ksh/vi.c
1506
memmove(&es->cbuf[a], &es->cbuf[b], es->linelen - b);
bin/ksh/vi.c
1507
es->linelen -= b - a;
bin/ksh/vi.c
1519
if (es->linelen == 0)
bin/ksh/vi.c
1521
ncursor = es->cursor;
bin/ksh/vi.c
1525
if (++ncursor == es->linelen)
bin/ksh/vi.c
1531
} while (es->cbuf[ncursor] != ch);
bin/ksh/vi.c
1548
ncursor = es->cursor;
bin/ksh/vi.c
1549
while (ncursor < es->linelen && argcnt--) {
bin/ksh/vi.c
1550
if (is_wordch(es->cbuf[ncursor]))
bin/ksh/vi.c
1551
while (ncursor < es->linelen &&
bin/ksh/vi.c
1552
is_wordch(es->cbuf[ncursor]))
bin/ksh/vi.c
1554
else if (!isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1555
while (ncursor < es->linelen &&
bin/ksh/vi.c
1556
!is_wordch(es->cbuf[ncursor]) &&
bin/ksh/vi.c
1557
!isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1559
while (ncursor < es->linelen &&
bin/ksh/vi.c
1560
isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
157
static struct edstate *es; /* current editor state */
bin/ksh/vi.c
1572
ncursor = es->cursor;
bin/ksh/vi.c
1574
while (--ncursor > 0 && isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1577
if (is_wordch(es->cbuf[ncursor]))
bin/ksh/vi.c
1579
is_wordch(es->cbuf[ncursor]))
bin/ksh/vi.c
1583
!is_wordch(es->cbuf[ncursor]) &&
bin/ksh/vi.c
1584
!isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1598
ncursor = es->cursor;
bin/ksh/vi.c
1599
while (ncursor < es->linelen && argcnt--) {
bin/ksh/vi.c
1600
while (++ncursor < es->linelen - 1 &&
bin/ksh/vi.c
1601
isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1603
if (ncursor < es->linelen - 1) {
bin/ksh/vi.c
1604
if (is_wordch(es->cbuf[ncursor]))
bin/ksh/vi.c
1605
while (++ncursor < es->linelen &&
bin/ksh/vi.c
1606
is_wordch(es->cbuf[ncursor]))
bin/ksh/vi.c
1609
while (++ncursor < es->linelen &&
bin/ksh/vi.c
1610
!is_wordch(es->cbuf[ncursor]) &&
bin/ksh/vi.c
1611
!isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1625
ncursor = es->cursor;
bin/ksh/vi.c
1626
while (ncursor < es->linelen && argcnt--) {
bin/ksh/vi.c
1627
while (ncursor < es->linelen &&
bin/ksh/vi.c
1628
!isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1630
while (ncursor < es->linelen &&
bin/ksh/vi.c
1631
isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1643
ncursor = es->cursor;
bin/ksh/vi.c
1645
while (--ncursor >= 0 && isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1647
while (ncursor >= 0 && !isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1660
ncursor = es->cursor;
bin/ksh/vi.c
1661
while (ncursor < es->linelen - 1 && argcnt--) {
bin/ksh/vi.c
1662
while (++ncursor < es->linelen - 1 &&
bin/ksh/vi.c
1663
isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1665
if (ncursor < es->linelen - 1) {
bin/ksh/vi.c
1666
while (++ncursor < es->linelen &&
bin/ksh/vi.c
1667
!isspace((unsigned char)es->cbuf[ncursor]))
bin/ksh/vi.c
1696
if ((es->linelen = strlen(hptr)) >= es->cbufsize)
bin/ksh/vi.c
1697
es->linelen = es->cbufsize - 1;
bin/ksh/vi.c
1698
memmove(es->cbuf, hptr, es->linelen);
bin/ksh/vi.c
1699
es->cursor = 0;
bin/ksh/vi.c
1733
if ((es->linelen = strlen(hptr)) >= es->cbufsize)
bin/ksh/vi.c
1734
es->linelen = es->cbufsize - 1;
bin/ksh/vi.c
1735
memmove(es->cbuf, hptr, es->linelen);
bin/ksh/vi.c
1736
es->cursor = 0;
bin/ksh/vi.c
1773
if (es->cursor < es->winleft)
bin/ksh/vi.c
1776
cur = es->winleft;
bin/ksh/vi.c
1777
while (cur < es->cursor)
bin/ksh/vi.c
1778
col = newcol((unsigned char) es->cbuf[cur++], col);
bin/ksh/vi.c
1793
while (tcur < es->cursor) {
bin/ksh/vi.c
1800
tcol = newcol((unsigned char) es->cbuf[tcur++], tcol);
bin/ksh/vi.c
1803
holdcol1 = newcol((unsigned char) es->cbuf[holdcur1++],
bin/ksh/vi.c
1805
es->winleft = holdcur1;
bin/ksh/vi.c
1829
cur = es->winleft;
bin/ksh/vi.c
1832
while (col < winwidth && cur < es->linelen) {
bin/ksh/vi.c
1833
if (cur == es->cursor && leftside)
bin/ksh/vi.c
1835
if ((ch = es->cbuf[cur]) == '\t') {
bin/ksh/vi.c
1861
if (cur == es->cursor && !leftside)
bin/ksh/vi.c
1865
if (cur == es->cursor)
bin/ksh/vi.c
1891
if (es->winleft > 0 && moreright)
bin/ksh/vi.c
1896
else if (es->winleft > 0)
bin/ksh/vi.c
1951
restore_edstate(es, buf);
bin/ksh/vi.c
1962
es->cbuf, es->linelen, es->cursor,
bin/ksh/vi.c
1969
buf = save_edstate(es);
bin/ksh/vi.c
1972
es->cursor = start;
bin/ksh/vi.c
1985
es->cursor += i;
bin/ksh/vi.c
2015
restore_edstate(es, buf);
bin/ksh/vi.c
2029
es->cbuf, es->linelen, es->cursor,
bin/ksh/vi.c
2074
buf = save_edstate(es);
bin/ksh/vi.c
2076
es->cursor = start;
bin/ksh/vi.c
232
if (es->linelen == 0) {
bin/ksh/vi.c
247
if (c == -1 || len <= (size_t)es->linelen)
bin/ksh/vi.c
250
if (es->cbuf != buf)
bin/ksh/vi.c
251
memmove(buf, es->cbuf, es->linelen);
bin/ksh/vi.c
253
buf[es->linelen++] = '\n';
bin/ksh/vi.c
255
return es->linelen;
bin/ksh/vi.c
282
es->cursor--;
bin/ksh/vi.c
303
es->cursor = 0;
bin/ksh/vi.c
304
es->linelen = 0;
bin/ksh/vi.c
315
es->cursor = 0;
bin/ksh/vi.c
316
es->linelen = 0;
bin/ksh/vi.c
327
del_range(es->cursor, es->cursor + 1);
bin/ksh/vi.c
330
es->cbuf[es->cursor++] = ch;
bin/ksh/vi.c
413
es->linelen -= char_len((unsigned char) locpat[srchlen]);
bin/ksh/vi.c
414
es->cursor = es->linelen;
bin/ksh/vi.c
423
es->linelen = 1;
bin/ksh/vi.c
424
es->cursor = 1;
bin/ksh/vi.c
436
es->linelen -= char_len((unsigned char) locpat[i]);
bin/ksh/vi.c
438
es->cursor = es->linelen;
bin/ksh/vi.c
447
if (es->linelen + 2 > es->cbufsize)
bin/ksh/vi.c
449
es->cbuf[es->linelen++] = 'M';
bin/ksh/vi.c
450
es->cbuf[es->linelen++] = '-';
bin/ksh/vi.c
454
if (es->linelen + 2 > es->cbufsize)
bin/ksh/vi.c
456
es->cbuf[es->linelen++] = '^';
bin/ksh/vi.c
457
es->cbuf[es->linelen++] = ch ^ '@';
bin/ksh/vi.c
459
if (es->linelen >= es->cbufsize)
bin/ksh/vi.c
461
es->cbuf[es->linelen++] = ch;
bin/ksh/vi.c
463
es->cursor = es->linelen;
bin/ksh/vi.c
576
if (es->cursor == undo->cursor) {
bin/ksh/vi.c
582
es->cursor--;
bin/ksh/vi.c
583
if (es->cursor >= undo->linelen)
bin/ksh/vi.c
584
es->linelen--;
bin/ksh/vi.c
586
es->cbuf[es->cursor] = undo->cbuf[es->cursor];
bin/ksh/vi.c
588
if (es->cursor == 0) {
bin/ksh/vi.c
594
es->cursor--;
bin/ksh/vi.c
595
es->linelen--;
bin/ksh/vi.c
596
memmove(&es->cbuf[es->cursor], &es->cbuf[es->cursor+1],
bin/ksh/vi.c
597
es->linelen - es->cursor + 1);
bin/ksh/vi.c
603
if (es->cursor != 0) {
bin/ksh/vi.c
605
memmove(es->cbuf, &es->cbuf[es->cursor],
bin/ksh/vi.c
606
es->linelen - es->cursor);
bin/ksh/vi.c
607
es->linelen -= es->cursor;
bin/ksh/vi.c
608
es->cursor = 0;
bin/ksh/vi.c
614
if (es->cursor != 0) {
bin/ksh/vi.c
616
memmove(&es->cbuf[tcursor], &es->cbuf[es->cursor],
bin/ksh/vi.c
617
es->linelen - es->cursor);
bin/ksh/vi.c
618
es->linelen -= es->cursor - tcursor;
bin/ksh/vi.c
619
if (inslen < es->cursor - tcursor)
bin/ksh/vi.c
622
inslen -= es->cursor - tcursor;
bin/ksh/vi.c
623
es->cursor = tcursor;
bin/ksh/vi.c
670
print_expansions(es, 0);
bin/ksh/vi.c
682
if (es->linelen >= es->cbufsize - 1)
bin/ksh/vi.c
686
memmove(&es->cbuf[es->cursor+1], &es->cbuf[es->cursor],
bin/ksh/vi.c
687
es->linelen - es->cursor);
bin/ksh/vi.c
688
es->linelen++;
bin/ksh/vi.c
690
es->cbuf[es->cursor++] = ch;
bin/ksh/vi.c
691
if (insert == REPLACE && es->cursor > es->linelen)
bin/ksh/vi.c
692
es->linelen++;
bin/ksh/vi.c
713
if (cur == es->linelen && cur != 0)
bin/ksh/vi.c
715
es->cursor = cur;
bin/ksh/vi.c
721
undo->winleft = es->winleft;
bin/ksh/vi.c
722
memmove(undo->cbuf, es->cbuf, es->linelen);
bin/ksh/vi.c
723
undo->linelen = es->linelen;
bin/ksh/vi.c
724
undo->cursor = es->cursor;
bin/ksh/vi.c
774
if (es->linelen != 0)
bin/ksh/vi.c
775
es->cursor++;
bin/ksh/vi.c
782
es->cursor = es->linelen;
bin/ksh/vi.c
787
es->cursor = domove(1, "^", 1);
bin/ksh/vi.c
788
del_range(es->cursor, es->linelen);
bin/ksh/vi.c
802
c2 = es->linelen;
bin/ksh/vi.c
810
!isspace((unsigned char)es->cbuf[es->cursor])) {
bin/ksh/vi.c
811
while (isspace((unsigned char)es->cbuf[--ncursor]))
bin/ksh/vi.c
815
if (ncursor > es->cursor) {
bin/ksh/vi.c
816
c1 = es->cursor;
bin/ksh/vi.c
820
c2 = es->cursor;
bin/ksh/vi.c
829
es->cursor = c1;
bin/ksh/vi.c
839
if (es->linelen != 0)
bin/ksh/vi.c
840
es->cursor++;
bin/ksh/vi.c
843
if (es->cursor != 0)
bin/ksh/vi.c
844
es->cursor--;
bin/ksh/vi.c
854
if (any && es->cursor != 0)
bin/ksh/vi.c
855
es->cursor--;
bin/ksh/vi.c
862
del_range(es->cursor, es->linelen);
bin/ksh/vi.c
867
yank_range(es->cursor, es->linelen);
bin/ksh/vi.c
868
del_range(es->cursor, es->linelen);
bin/ksh/vi.c
869
if (es->cursor != 0)
bin/ksh/vi.c
870
es->cursor--;
bin/ksh/vi.c
897
es->cursor = domove(1, "^", 1);
bin/ksh/vi.c
924
if (es->linelen == 0)
bin/ksh/vi.c
930
es->cbuf[es->cursor] = cmd[1];
bin/ksh/vi.c
939
if (es->linelen == 0)
bin/ksh/vi.c
942
if (es->cursor + argcnt > es->linelen)
bin/ksh/vi.c
943
argcnt = es->linelen - es->cursor;
bin/ksh/vi.c
944
del_range(es->cursor, es->cursor + argcnt);
bin/ksh/vi.c
949
if (es->linelen == 0)
bin/ksh/vi.c
953
es->cbuf[es->linelen] = '\0';
bin/ksh/vi.c
955
histsave(source->line, es->cbuf, 1);
bin/ksh/vi.c
960
shf_snprintf(es->cbuf, es->cbufsize,
bin/ksh/vi.c
964
es->linelen = strlen(es->cbuf);
bin/ksh/vi.c
968
if (es->linelen == 0)
bin/ksh/vi.c
971
if (es->cursor + argcnt > es->linelen)
bin/ksh/vi.c
972
argcnt = es->linelen - es->cursor;
bin/ksh/vi.c
973
yank_range(es->cursor, es->cursor + argcnt);
bin/ksh/vi.c
974
del_range(es->cursor, es->cursor + argcnt);
bin/ksh/vi.c
978
if (es->cursor > 0) {
bin/ksh/vi.c
980
if (es->cursor < argcnt)
bin/ksh/vi.c
981
argcnt = es->cursor;
bin/ksh/vi.c
982
yank_range(es->cursor - argcnt, es->cursor);
bin/ksh/vi.c
983
del_range(es->cursor - argcnt, es->cursor);
bin/ksh/vi.c
984
es->cursor -= argcnt;
bin/ksh/vi.c
990
t = es;
bin/ksh/vi.c
991
es = undo;
common/lib/libc/stdlib/heapsort.c
247
kheapsort(void *a, size_t n, size_t es,
common/lib/libc/stdlib/heapsort.c
251
heapsort(void *a, size_t n, size_t es,
common/lib/libc/stdlib/heapsort.c
257
return kheapsort_r(a, n, es, cmpnocookie, cmp, k);
common/lib/libc/stdlib/heapsort.c
259
return heapsort_r(a, n, es, cmpnocookie, cmp);
crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c
1071
unsigned long es;
crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c
1073
es = CRYPTO_thread_id();
crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c
1078
es, ERR_error_string(l, buf), file, line,
games/gomoku/makemove.c
245
spot_index es = 0;
games/gomoku/makemove.c
248
es = s; /* save the intersection point */
games/gomoku/makemove.c
272
intersect[a * FAREA + b] = es;
games/gomoku/makemove.c
273
intersect[b * FAREA + a] = es;
lib/libc/regex/engine.c
441
sopno es; /* end sop of current subRE */
lib/libc/regex/engine.c
459
for (ss = startst; ss < stopst; ss = es) {
lib/libc/regex/engine.c
461
es = ss;
lib/libc/regex/engine.c
462
switch (OP(m->g->strip[es])) {
lib/libc/regex/engine.c
465
es += OPND(m->g->strip[es]);
lib/libc/regex/engine.c
468
while (OP(m->g->strip[es]) != O_CH)
lib/libc/regex/engine.c
469
es += OPND(m->g->strip[es]);
lib/libc/regex/engine.c
472
es++;
lib/libc/regex/engine.c
506
rest = walk(m, sp, stp, ss, es, false);
lib/libc/regex/engine.c
509
tail = walk(m, rest, stop, es, stopst, false);
lib/libc/regex/engine.c
517
esub = es - 1;
lib/libc/regex/engine.c
530
rest = walk(m, sp, stp, ss, es, false);
lib/libc/regex/engine.c
533
tail = walk(m, rest, stop, es, stopst, false);
lib/libc/regex/engine.c
541
esub = es - 1;
lib/libc/regex/engine.c
566
rest = walk(m, sp, stp, ss, es, false);
lib/libc/regex/engine.c
569
tail = walk(m, rest, stop, es, stopst, false);
lib/libc/stdlib/merge.c
391
mergesort(void *a, size_t n, size_t es,
lib/libc/stdlib/merge.c
395
return mergesort_r(a, n, es, cmpnocookie, cmp);
lib/libc/stdlib/qsort.c
101
qsort_r(void *a, size_t n, size_t es,
lib/libc/stdlib/qsort.c
108
_DIAGASSERT(a != NULL || n == 0 || es == 0);
lib/libc/stdlib/qsort.c
111
loop: SWAPINIT(a, es);
lib/libc/stdlib/qsort.c
113
for (pm = (char *) a + es; pm < (char *) a + n * es; pm += es)
lib/libc/stdlib/qsort.c
115
pl > (char *) a && cmp(pl - es, pl, cookie) > 0;
lib/libc/stdlib/qsort.c
116
pl -= es)
lib/libc/stdlib/qsort.c
117
swap(pl, pl - es);
lib/libc/stdlib/qsort.c
120
pm = (char *) a + (n / 2) * es;
lib/libc/stdlib/qsort.c
123
pn = (char *) a + (n - 1) * es;
lib/libc/stdlib/qsort.c
125
d = (n / 8) * es;
lib/libc/stdlib/qsort.c
133
pa = pb = (char *) a + es;
lib/libc/stdlib/qsort.c
135
pc = pd = (char *) a + (n - 1) * es;
lib/libc/stdlib/qsort.c
140
pa += es;
lib/libc/stdlib/qsort.c
142
pb += es;
lib/libc/stdlib/qsort.c
147
pd -= es;
lib/libc/stdlib/qsort.c
149
pc -= es;
lib/libc/stdlib/qsort.c
154
pb += es;
lib/libc/stdlib/qsort.c
155
pc -= es;
lib/libc/stdlib/qsort.c
158
pn = (char *) a + n * es;
lib/libc/stdlib/qsort.c
161
r = min((size_t)(pd - pc), pn - pd - es);
lib/libc/stdlib/qsort.c
171
if (s > es) {
lib/libc/stdlib/qsort.c
172
if (r > es)
lib/libc/stdlib/qsort.c
173
qsort_r(a, r / es, es, cmp, cookie);
lib/libc/stdlib/qsort.c
175
n = s / es;
lib/libc/stdlib/qsort.c
180
if (r > es) {
lib/libc/stdlib/qsort.c
181
if (s > es)
lib/libc/stdlib/qsort.c
182
qsort_r(pn - s, s / es, es, cmp, cookie);
lib/libc/stdlib/qsort.c
183
n = r / es;
lib/libc/stdlib/qsort.c
198
qsort(void *a, size_t n, size_t es,
lib/libc/stdlib/qsort.c
202
qsort_r(a, n, es, cmpnocookie, cmp);
lib/libc/stdlib/qsort.c
67
#define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \
lib/libc/stdlib/qsort.c
68
es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
lib/libc/stdlib/qsort.c
86
swapfunc(a, b, es, swaptype)
libexec/ld.elf_so/expand.c
132
const char *es = p + s;
libexec/ld.elf_so/expand.c
134
if ((br && *es != '}') ||
libexec/ld.elf_so/expand.c
135
(!br && (es != ep &&
libexec/ld.elf_so/expand.c
136
isalpha((unsigned char)*es))))
libexec/ld.elf_so/expand.c
145
p = es + br;
sbin/iscsictl/iscsic_driverif.c
371
char es[64];
sbin/iscsictl/iscsic_driverif.c
384
snprintf(esp = es, sizeof(es), "Recovered Error");
sbin/iscsictl/iscsic_driverif.c
387
snprintf(esp = es, sizeof(es), "Not Ready");
sbin/iscsictl/iscsic_driverif.c
390
snprintf(esp = es, sizeof(es), "Medium Error");
sbin/iscsictl/iscsic_driverif.c
393
snprintf(esp = es, sizeof(es), "Hardware Error");
sbin/iscsictl/iscsic_driverif.c
396
snprintf(esp = es, sizeof(es), "Illegal Request");
sbin/iscsictl/iscsic_driverif.c
399
snprintf(esp = es, sizeof(es), "Unit Attention");
sbin/iscsictl/iscsic_driverif.c
402
snprintf(esp = es, sizeof(es), "Data Protect");
sbin/iscsictl/iscsic_driverif.c
405
snprintf(esp = es, sizeof(es), "Blank Check");
sbin/mount_nfs/mount_nfs.c
199
char *es;
sbin/mount_nfs/mount_nfs.c
200
long num = strtol(s, &es, 10);
sbin/mount_nfs/mount_nfs.c
201
if (*es || num <= 0 || num > INT_MAX)
sys/arch/amd64/amd64/db_machdep.c
58
{ "es", dbreg(es), db_x86_regop, NULL },
sys/arch/amd64/include/frame_regs.h
53
greg(es, ES, 17) /* tf_es */ \
sys/arch/amd64/include/frameasm.h
343
movw %es,TF_ES(%rsp) ; \
sys/arch/amiga/dev/if_es.c
123
CFATTACH_DECL_NEW(es, sizeof(struct es_softc),
sys/arch/atari/atari/atari_init.c
1322
u_int *s, *es;
sys/arch/atari/atari/atari_init.c
1327
es = s + (M68K_STSIZE >> 2);
sys/arch/atari/atari/atari_init.c
1334
for (i = 0; s < es; s++, i++)
sys/arch/atari/stand/tostools/libtos/error.c
86
char *es = strerror(err);
sys/arch/atari/stand/tostools/libtos/error.c
87
if (es)
sys/arch/atari/stand/tostools/libtos/error.c
88
eprintf(": %s", es);
sys/arch/hp300/stand/common/machdep.c
190
transfer(char *entry, int howto, int od, int csc, char *lr, char *es)
sys/arch/hp300/stand/common/machdep.c
200
_transfer(entry, howto, od, csc, lr, es);
sys/arch/i386/i386/db_machdep.c
69
{ "es", dbreg(es), db_x86_regop, NULL },
sys/arch/i386/include/frameasm.h
160
movw %es,TF_ES(%esp) ; \
sys/arch/i386/include/frameasm.h
167
movw %ax,%es ; \
sys/arch/i386/stand/pxeboot/pxe.h
124
uint16_t es;
sys/arch/xen/x86/cpu.c
873
initctx->user_regs.es = GSEL(GDATA_SEL, SEL_KPL);
sys/arch/xen/x86/cpu.c
974
initctx->user_regs.es = GSEL(GDATA_SEL, SEL_KPL);
sys/dev/nvmm/x86/nvmm_x86_svm.c
2038
&vmcb->state.es);
sys/dev/nvmm/x86/nvmm_x86_svm.c
2179
&vmcb->state.es);
sys/dev/nvmm/x86/nvmm_x86_svm.c
429
struct vmcb_segment es;
sys/dev/sbus/p9100.c
1734
uint8_t pf, mc3, es;
sys/dev/sbus/p9100.c
1742
es = 0; /* no swapping */
sys/dev/sbus/p9100.c
1750
es = 2; /* swap bytes in 16bit words */
sys/dev/sbus/p9100.c
1762
es = 6; /* swap both half-words and bytes */
sys/dev/sbus/p9100.c
1814
(s3 << SHIFT_3) | (ps << PIXEL_SHIFT) | (es << SWAP_SHIFT);
sys/dev/scsipi/ss_scanjet.c
344
show_es(char *es)
sys/dev/scsipi/ss_scanjet.c
346
char *p = es;
sys/kern/kern_ksyms.c
641
Elf_Sym *es;
sys/kern/kern_ksyms.c
654
if ((es = findsym(sym, st, type)) != NULL) {
sys/kern/kern_ksyms.c
655
*val = es->st_value;
sys/kern/kern_ksyms.c
657
*symp = es;
sys/kern/kern_ksyms.c
760
Elf_Sym *les, *es = NULL;
sys/kern/kern_ksyms.c
790
es = les;
sys/kern/kern_ksyms.c
796
if (es == NULL)
sys/kern/kern_ksyms.c
798
if ((f & KSYMS_EXACT) && (v != es->st_value))
sys/kern/kern_ksyms.c
803
*sym = stable + es->st_name;
sys/kern/subr_kobj.c
158
Elf_Sym *es;
sys/kern/subr_kobj.c
519
es = &ko->ko_symtab[j];
sys/kern/subr_kobj.c
520
if (es->st_shndx != i) {
sys/kern/subr_kobj.c
523
es->st_value += (Elf_Addr)addr;
sys/lib/libsa/qsort.c
102
for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es)
sys/lib/libsa/qsort.c
103
for (pl = pm; pl > (char *)a && cmp(pl - es, pl) > 0;
sys/lib/libsa/qsort.c
104
pl -= es)
sys/lib/libsa/qsort.c
105
swap(pl, pl - es);
sys/lib/libsa/qsort.c
108
pm = (char *)a + (n / 2) * es;
sys/lib/libsa/qsort.c
111
pn = (char *)a + (n - 1) * es;
sys/lib/libsa/qsort.c
113
d = (n / 8) * es;
sys/lib/libsa/qsort.c
121
pa = pb = (char *)a + es;
sys/lib/libsa/qsort.c
123
pc = pd = (char *)a + (n - 1) * es;
sys/lib/libsa/qsort.c
129
pa += es;
sys/lib/libsa/qsort.c
131
pb += es;
sys/lib/libsa/qsort.c
137
pd -= es;
sys/lib/libsa/qsort.c
139
pc -= es;
sys/lib/libsa/qsort.c
145
pb += es;
sys/lib/libsa/qsort.c
146
pc -= es;
sys/lib/libsa/qsort.c
149
for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es)
sys/lib/libsa/qsort.c
150
for (pl = pm; pl > (char *)a && cmp(pl - es, pl) > 0;
sys/lib/libsa/qsort.c
151
pl -= es)
sys/lib/libsa/qsort.c
152
swap(pl, pl - es);
sys/lib/libsa/qsort.c
156
pn = (char *)a + n * es;
sys/lib/libsa/qsort.c
159
r = min(pd - pc, pn - pd - es);
sys/lib/libsa/qsort.c
161
if ((size_t)(r = pb - pa) > es)
sys/lib/libsa/qsort.c
162
qsort(a, r / es, es, cmp);
sys/lib/libsa/qsort.c
163
if ((size_t)(r = pd - pc) > es) {
sys/lib/libsa/qsort.c
166
n = r / es;
sys/lib/libsa/qsort.c
46
void qsort(void *a, size_t n, size_t es, cmp_t *cmp);
sys/lib/libsa/qsort.c
62
#define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \
sys/lib/libsa/qsort.c
63
es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
sys/lib/libsa/qsort.c
80
swapfunc(a, b, es, swaptype)
sys/lib/libsa/qsort.c
93
qsort(void *a, size_t n, size_t es, cmp_t *cmp)
sys/lib/libsa/qsort.c
99
SWAPINIT(a, es);
usr.bin/elf2ecoff/elf2ecoff.c
725
struct ecoff_extsym *es = &ecoffsymtab.ecoff_syms[i];
usr.bin/elf2ecoff/elf2ecoff.c
726
es->es_flags = bswap16(es->es_flags);
usr.bin/elf2ecoff/elf2ecoff.c
727
es->es_ifd = bswap16(es->es_ifd);
usr.bin/elf2ecoff/elf2ecoff.c
728
bswap32_region(&es->es_strindex,
usr.bin/elf2ecoff/elf2ecoff.c
729
sizeof(*es) - sizeof(es->es_flags) -
usr.bin/elf2ecoff/elf2ecoff.c
730
sizeof(es->es_ifd));
usr.bin/spell/spellprog/spellprog.c
121
static int es(char *, const char *, const char *, size_t);
usr.bin/spell/spellprog/spellprog.c
155
.d1 = "", .a1 = "+s", .p2 = es,