diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-02-28 15:41:46 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-02-28 15:41:46 +0000 |
commit | 388237d8080d59e5c1251f7cd2555765e69fdca8 (patch) | |
tree | 28520fd3a4d48d1590441476e586aadb04d1e180 /lib/libpthread/stdio | |
parent | 4380eb5ce7a0b0368b12fe8a65b9d3ea43fca25d (diff) |
cannot lseek(2) on a (FILE *)
Diffstat (limited to 'lib/libpthread/stdio')
-rw-r--r-- | lib/libpthread/stdio/ftell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/stdio/ftell.c b/lib/libpthread/stdio/ftell.c index 2d5e5fa6eb1..e112c731024 100644 --- a/lib/libpthread/stdio/ftell.c +++ b/lib/libpthread/stdio/ftell.c @@ -36,7 +36,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)ftell.c 5.4 (Berkeley) 2/5/91";*/ -static char *rcsid = "$Id: ftell.c,v 1.1 1995/10/18 08:43:07 deraadt Exp $"; +static char *rcsid = "$Id: ftell.c,v 1.2 1997/02/28 15:41:45 kstailey Exp $"; #endif /* LIBC_SCCS and not lint */ #include <pthread.h> @@ -62,7 +62,7 @@ ftell(fp) if (fp->_flags & __SOFF) pos = fp->_offset; else { - pos = lseek(fp, (fpos_t)0, SEEK_CUR); + pos = lseek(fileno(fp), (fpos_t)0, SEEK_CUR); } if (pos != -1L) { |