# 2.11BSD#431 - /usr/src/lib/libc/stdio/rew.c

##### Functions

    rewind            X

       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 88 times

- in /usr/ingres/source/iutil/getuser.c line 48
- in /usr/ingres/source/monitor/branch.c line 76
- in /usr/src/bin/chpass/chpass.c line 266
- in /usr/src/bin/ld/ld.c line 1552, 1614-1617(2), 1976
- in /usr/src/bin/nm/nm.c line 108
- in /usr/src/bin/tar.c line 1024
- in /usr/src/bin/tcsh/mkprstr.c line 219
- in /usr/src/games/atc/log.c line 178
- in /usr/src/games/battlestar/mkstr.c line 213
- in /usr/src/games/boggle/boggle.c line 610
- in /usr/src/games/hack/hack.rumors.c line 17
- in /usr/src/games/rogue/score.c line 176, 239
- in /usr/src/games/sail/misc.c line 180
- in /usr/src/lib/libc/gen/fstab.c line 180
- in /usr/src/lib/libc/gen/getgrent.c line 21
- in /usr/src/lib/libc/gen/getpwent.c line 123
- in /usr/src/lib/libc/gen/getttyent.c line 27
- in /usr/src/lib/libc/net/getnent.c line 34
- in /usr/src/lib/libc/net/getpent.c line 33
- in /usr/src/lib/libc/net/getsent.c line 34
- in /usr/src/lib/libc/net/hosttable/gethostent.c line 48
- in /usr/src/lib/libc/net/named/gethnamadr.c line 289
- in /usr/src/libexec/popper/pop_dropcopy.c line 154
- in /usr/src/libexec/popper/pop_dropinfo.c line 52
- in /usr/src/libexec/popper/pop_updt.c line 96-100(2)
- in /usr/src/new/nntp/server/misc.c line 295, 419, 425
- in /usr/src/new/nntp/server/newnews.c line 232
- in /usr/src/new/nntp/support/mkgrdates.c line 100
- in /usr/src/new/nntp/xmit/nntpxmit.c line 773, 966-968(2)
- in /usr/src/new/rcs/src/rcs.c line 1463
- in /usr/src/new/rcs/src/rcsedit.c line 144
- in /usr/src/ucb/Mail/collect.c line 309, 339, 350, 360, 373, 583, 593, 620
- in /usr/src/ucb/Mail/edit.c line 116
- in /usr/src/ucb/Mail/names.c line 261, 314
- in /usr/src/ucb/Mail/quit.c line 259
- in /usr/src/ucb/Mail/send.c line 449, 457-462(2), 551
- in /usr/src/ucb/ctags.c line 270
- in /usr/src/ucb/mkstr.c line 203
- in /usr/src/ucb/sendbug/bugfiler.c line 710
- in /usr/src/ucb/strcompact.c line 135-136(2), 159
- in /usr/src/ucb/symcompact.c line 245, 274
- in /usr/src/ucb/symdump.c line 70
- in /usr/src/ucb/symorder.c line 197-198(2), 231, 239
- in /usr/src/ucb/w.c line 165
- in /usr/src/usr.bin/learn/copy.c line 95
- in /usr/src/usr.bin/lint/lpass2.c line 117-119(2)
- in /usr/src/usr.bin/mkerrlst/mkerrlst.c line 89, 122
- 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 105
- in /usr/src/usr.lib/libI77/open.c line 172
- in /usr/src/usr.lib/libI77/rewind.c line 34
- in /usr/src/usr.sbin/cron/crontab.c line 344, 495-500(2)
- in /usr/src/usr.sbin/cron/misc.c line 278, 396
- in /usr/src/usr.sbin/sendmail.MX/src/deliver.c line 1188
- in /usr/src/usr.sbin/sendmail/src/deliver.c line 1133
- in /usr/src/usr.sbin/vipw/vipw.c line 101

#### Defined variables

sccsid defined in line 2; never used

Last modified: 1986-03-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 404 |