diff options
author | dt <dt@FreeBSD.org> | 1999-02-08 21:32:38 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1999-02-08 21:32:38 +0000 |
commit | dd5f24e20cdd683adbb5885bb01814ac81fbc90b (patch) | |
tree | 2f7f0b89a7c12e8dce152773c267d5fe10f78eb6 /lib/libc/stdio/fgetpos.c | |
parent | af242fbed135e989cc0ff0985a4ebdad783ef2eb (diff) | |
download | FreeBSD-src-dd5f24e20cdd683adbb5885bb01814ac81fbc90b.zip FreeBSD-src-dd5f24e20cdd683adbb5885bb01814ac81fbc90b.tar.gz |
Added functions fseeko() and ftello() (from susv2).
Fixed fgetpos() and fsetpos() for offsets > 2GB.
PR: 8637
Submitted by: Dan Nelson <dnelson@emsphone.com> (adjusted by me a little)
Diffstat (limited to 'lib/libc/stdio/fgetpos.c')
-rw-r--r-- | lib/libc/stdio/fgetpos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/fgetpos.c b/lib/libc/stdio/fgetpos.c index 7cac82e..eed7b13 100644 --- a/lib/libc/stdio/fgetpos.c +++ b/lib/libc/stdio/fgetpos.c @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)fgetpos.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id: fgetpos.c,v 1.5 1997/02/22 15:01:53 peter Exp $"; + "$Id: fgetpos.c,v 1.6 1998/04/11 07:40:42 jb Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -52,7 +52,7 @@ fgetpos(fp, pos) { int retval; FLOCKFILE(fp); - retval = (*pos = ftell(fp)) == (fpos_t)-1; + retval = (*pos = ftello(fp)) == (fpos_t)-1; FUNLOCKFILE(fp); return(retval); } |