1: #if defined(LIBC_SCCS) && !defined(lint)
2: static char sccsid[] = "@(#)rew.c 5.2 (Berkeley) 3/9/86";
3: #endif LIBC_SCCS and not lint
4:
5: #include <stdio.h>
6:
7: rewind(iop)
8: register FILE *iop;
9: {
10: fflush(iop);
11: lseek(fileno(iop), 0L, 0);
12: iop->_cnt = 0;
13: iop->_ptr = iop->_base;
14: iop->_flag &= ~(_IOERR|_IOEOF);
15: if (iop->_flag & _IORW)
16: iop->_flag &= ~(_IOREAD|_IOWRT);
17: }
Defined functions
rewind
defined in line
7; used 86 times
- in /usr/ingres/source/iutil/getservent.c line
28
- in /usr/ingres/source/iutil/getuser.c line
49
- in /usr/ingres/source/monitor/branch.c line
79
- in /usr/src/bin/tar.c line
1017
- in /usr/src/games/boggle/boggle.c line
613
- in /usr/src/games/sail/misc.c line
180
- in /usr/src/lib/libc/compat-4.1/getpw.c line
25
- in /usr/src/lib/libc/gen/getgrent.c line
21
- in /usr/src/lib/libc/gen/getpwent.c line
32
- in /usr/src/lib/libc/gen/getttyent.c line
27
- in /usr/src/lib/libc/net/getnetent.c line
33
- in /usr/src/lib/libc/net/getprotoent.c line
33
- in /usr/src/lib/libc/net/getservent.c line
33
- in /usr/src/lib/libc/net/hosttable/gethostent.c line
47
- in /usr/src/lib/libc/net/named/gethostnamadr.c line
296
- in /usr/src/new/emacs/etc/etags.c line
351
- in /usr/src/new/help/help.c line
1384
- in /usr/src/new/mh/support/bboards/mmdfI/bboards/getbbent.c line
171
- in /usr/src/new/mh/support/bboards/mmdfII/bboards/getbbent.c line
171
- in /usr/src/new/mh/support/pop/mmdfII/pop/getbbent.c line
171
- in /usr/src/new/mh/uip/conflict.c line
411
- in /usr/src/new/mh/uip/rcvpack.c line
77
- in /usr/src/new/mh/uip/rcvtty.c line
143,
198
- in /usr/src/new/mh/uip/replsbr.c line
369
- in /usr/src/new/mh/uip/rmail.c line
191-192(2),
382-384(2),
505-507(2)
- in /usr/src/new/mh/uip/slocal.c line
575,
1019,
1041
- in /usr/src/new/mh/zotnet/bboards/getbbent.c line
171
- in /usr/src/new/mh/zotnet/mf/mmdfI/src/uucp/rmail.c line
229-232(3),
343-344(2),
580-582(2)
- in /usr/src/new/news/src/inews.c line
530,
781
- in /usr/src/new/news/src/visual.c line
1208
- in /usr/src/new/nntp/server/misc.c line
292,
298
- in /usr/src/new/nntp/support/mkgrdates.c line
88
- in /usr/src/new/nntp/xmit/nntpxmit.c line
217
- in /usr/src/new/rcs/src/rcs.c line
1342
- in /usr/src/new/rcs/src/rcsedit.c line
107
- in /usr/src/new/spms/src/lib/libpdb/src/rewindpdb.c line
33
- in /usr/src/new/xns/examples/print/xnsprint.c line
401
- in /usr/src/new/xns/xnslib/getcourierent.c line
25
- in /usr/src/old/berknet/mach.c line
332
- in /usr/src/old/vpr/vprm.c line
134
- in /usr/src/ucb/Mail/collect.c line
319,
364,
407,
526,
625,
813
- in /usr/src/ucb/Mail/names.c line
302-307(2),
359
- in /usr/src/ucb/Mail/quit.c line
220
- in /usr/src/ucb/Mail/send.c line
292,
300,
357,
455,
485,
581
- in /usr/src/ucb/ctags.c line
270
- in /usr/src/ucb/mkstr.c line
206
- in /usr/src/ucb/sendbug/bugfiler.c line
712
- in /usr/src/ucb/w.c line
233
- in /usr/src/usr.bin/learn/copy.c line
95
- in /usr/src/usr.bin/lint/lpass2.c line
121-123(2)
- in /usr/src/usr.bin/xsend/xget.c line
82
- in /usr/src/usr.lib/libI77/backspace.c line
58
- in /usr/src/usr.lib/libI77/c_dfe.c line
49
- in /usr/src/usr.lib/libI77/err.c line
111
- in /usr/src/usr.lib/libI77/open.c line
172
- in /usr/src/usr.lib/libI77/rewind.c line
34
- in /usr/src/usr.lib/sendmail/src/deliver.c line
1130
Defined variables
sccsid
defined in line
2;
never used