Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b4e906f

Browse files
committed
Reinstate BufFileTell().
1 parent edf0b5f commit b4e906f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/backend/storage/file/buffile.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/file/buffile.c,v 1.7 2000/06/15 03:32:26 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/file/buffile.c,v 1.8 2000/06/18 03:11:40 tgl Exp $
1111
*
1212
* NOTES:
1313
*
@@ -532,14 +532,12 @@ BufFileSeek(BufFile *file, int fileno, long offset, int whence)
532532
return 0;
533533
}
534534

535-
#ifdef NOT_USED
536535
void
537536
BufFileTell(BufFile *file, int *fileno, long *offset)
538537
{
539538
*fileno = file->curFile;
540539
*offset = file->curOffset + file->pos;
541540
}
542-
#endif
543541

544542
/*
545543
* BufFileSeekBlock --- block-oriented seek

src/include/storage/buffile.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
1919
* Portions Copyright (c) 1994, Regents of the University of California
2020
*
21-
* $Id: buffile.h,v 1.6 2000/06/15 03:32:59 momjian Exp $
21+
* $Id: buffile.h,v 1.7 2000/06/18 03:11:39 tgl Exp $
2222
*
2323
*-------------------------------------------------------------------------
2424
*/
@@ -39,6 +39,7 @@ extern void BufFileClose(BufFile *file);
3939
extern size_t BufFileRead(BufFile *file, void *ptr, size_t size);
4040
extern size_t BufFileWrite(BufFile *file, void *ptr, size_t size);
4141
extern int BufFileSeek(BufFile *file, int fileno, long offset, int whence);
42+
extern void BufFileTell(BufFile *file, int *fileno, long *offset);
4243
extern int BufFileSeekBlock(BufFile *file, long blknum);
4344

4445
#endif /* BUFFILE_H */

0 commit comments

Comments
 (0)