summaryrefslogtreecommitdiff
path: root/com32/lib/sys/opendev.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-08-09 16:13:55 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-08-09 16:45:05 -0700
commitf614a40876843b7de58d8410b47c8c68e2ab6992 (patch)
tree7d0d0d8e42a0a2a019bedb869b58699c208267e1 /com32/lib/sys/opendev.c
parent8b0f75f79811a30cd3f8460e305c6eea82f288a0 (diff)
downloadsyslinux-f614a40876843b7de58d8410b47c8c68e2ab6992.tar.gz
lib: add unread() syscall; use it to implement ungetc()
Add an unread() syscall, which allows some read bytes to be pushed back into the read buffer. This allows us to read a header from a file and then push it back. This also makes ungetc() implementable. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/sys/opendev.c')
0 files changed, 0 insertions, 0 deletions