projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9c52e
)
Fix BSD fseeko to seek from the end of the file.
author
Bruce Momjian
<bruce@momjian.us>
Thu, 11 Aug 2005 23:05:14 +0000
(23:05 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Thu, 11 Aug 2005 23:05:14 +0000
(23:05 +0000)
src/port/fseeko.c
patch
|
blob
|
blame
|
history
diff --git
a/src/port/fseeko.c
b/src/port/fseeko.c
index 47fb372cff2dd6f6530dce0765856999286c4d7e..671d7382f732d025d2683290328409d821872d7a 100644
(file)
--- a/
src/port/fseeko.c
+++ b/
src/port/fseeko.c
@@
-8,7
+8,7
@@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/fseeko.c,v 1.1
8 2005/07/28 04:03:14 tgl
Exp $
+ * $PostgreSQL: pgsql/src/port/fseeko.c,v 1.1
9 2005/08/11 23:05:14 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
@@
-70,6
+70,7
@@
fseeko(FILE *stream, off_t offset, int whence)
if (fstat(fileno(stream), &filestat) != 0)
goto failure;
floc = filestat.st_size;
+ floc += offset;
if (fsetpos(stream, &floc) != 0)
goto failure;
#ifdef bsdi