projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Feldman's stdio changes
[unix-history]
/
usr
/
src
/
lib
/
libc
/
stdio
/
rewind.c
/* @(#)rewind.c 4.2 (Berkeley) %G% */
#include <stdio.h>
rewind
(
iop
)
register
struct
_iobuf
*
iop
;
{
fflush
(
iop
);
lseek
(
fileno
(
iop
),
0L
,
0
);
iop
->
_cnt
=
0
;
iop
->
_ptr
=
iop
->
_base
;
iop
->
_flag
&= ~(
_IOERR
|
_IOEOF
);
if
(
iop
->
_flag
&
_IORW
)
iop
->
_flag
&= ~(
_IOREAD
|
_IOWRT
);
}