builtin: Use pgetc in read(1)
commit1d072e9c3292281a7eee54c41fec117ff22723e5
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 2 Jun 2024 01:29:11 +0000 (2 09:29 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 8 Jun 2024 03:43:51 +0000 (8 11:43 +0800)
tree73c77368ecbca9d1c4abf373122f9f813c5689d2
parent7105464252db7af6a4fd2eb09229ad2601d112a7
builtin: Use pgetc in read(1)

Use pgetc instead of read(2) in read(1).  This allows any future
buffering in the input layer to be used by read(1).  This also
allows read(1) to call helpers in the parser that may use the
input layer.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
src/input.c
src/input.h
src/miscbltin.c