summaryrefslogtreecommitdiff
path: root/do/seek
diff options
context:
space:
mode:
Diffstat (limited to 'do/seek')
-rw-r--r--do/seek29
1 files changed, 0 insertions, 29 deletions
diff --git a/do/seek b/do/seek
deleted file mode 100644
index c295ea7f66..0000000000
--- a/do/seek
+++ /dev/null
@@ -1,29 +0,0 @@
-bool
-do_seek(stab, pos, whence)
-STAB *stab;
-long pos;
-int whence;
-{
- register STIO *stio;
-
- if (!stab)
- goto nuts;
-
- stio = stab_io(stab);
- if (!stio || !stio->ifp)
- goto nuts;
-
-#ifdef ULTRIX_STDIO_BOTCH
- if (feof(stio->ifp))
- (void)fseek (stio->ifp, 0L, 2); /* ultrix 1.2 workaround */
-#endif
-
- return fseek(stio->ifp, pos, whence) >= 0;
-
-nuts:
- if (dowarn)
- warn("seek() on unopened file");
- errno = EBADF;
- return FALSE;
-}
-