mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
Reinstate BufFileTell().
This commit is contained in:
parent
edf0b5f0db
commit
b4e906f191
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/storage/file/buffile.c,v 1.7 2000/06/15 03:32:26 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/storage/file/buffile.c,v 1.8 2000/06/18 03:11:40 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES:
|
* NOTES:
|
||||||
*
|
*
|
||||||
@ -532,14 +532,12 @@ BufFileSeek(BufFile *file, int fileno, long offset, int whence)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef NOT_USED
|
|
||||||
void
|
void
|
||||||
BufFileTell(BufFile *file, int *fileno, long *offset)
|
BufFileTell(BufFile *file, int *fileno, long *offset)
|
||||||
{
|
{
|
||||||
*fileno = file->curFile;
|
*fileno = file->curFile;
|
||||||
*offset = file->curOffset + file->pos;
|
*offset = file->curOffset + file->pos;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BufFileSeekBlock --- block-oriented seek
|
* BufFileSeekBlock --- block-oriented seek
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: buffile.h,v 1.6 2000/06/15 03:32:59 momjian Exp $
|
* $Id: buffile.h,v 1.7 2000/06/18 03:11:39 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -39,6 +39,7 @@ extern void BufFileClose(BufFile *file);
|
|||||||
extern size_t BufFileRead(BufFile *file, void *ptr, size_t size);
|
extern size_t BufFileRead(BufFile *file, void *ptr, size_t size);
|
||||||
extern size_t BufFileWrite(BufFile *file, void *ptr, size_t size);
|
extern size_t BufFileWrite(BufFile *file, void *ptr, size_t size);
|
||||||
extern int BufFileSeek(BufFile *file, int fileno, long offset, int whence);
|
extern int BufFileSeek(BufFile *file, int fileno, long offset, int whence);
|
||||||
|
extern void BufFileTell(BufFile *file, int *fileno, long *offset);
|
||||||
extern int BufFileSeekBlock(BufFile *file, long blknum);
|
extern int BufFileSeekBlock(BufFile *file, long blknum);
|
||||||
|
|
||||||
#endif /* BUFFILE_H */
|
#endif /* BUFFILE_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user