Lines Matching refs:amt
1397 size_t amt, nr; in source() local
1465 amt = bp->cnt; in source()
1466 if (i + (off_t)amt > stb.st_size) in source()
1467 amt = stb.st_size - i; in source()
1470 bp->buf, amt)) != amt) { in source()
1472 memset(bp->buf + nr, 0, amt - nr); in source()
1477 (void)atomicio(vwrite, remout, bp->buf, amt); in source()
1478 memset(bp->buf, 0, amt); in source()
1481 if (atomicio6(vwrite, remout, bp->buf, amt, scpio, in source()
1482 &statbytes) != amt) in source()
1668 int amt, exists, first, ofd; local
1899 amt = bp->cnt;
1900 if (i + amt > size)
1901 amt = size - i;
1902 count += amt;
1904 j = atomicio6(read, remin, cp, amt,
1912 amt -= j;
1914 } while (amt > 0);