Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b4e906f1
Commit
b4e906f1
authored
Jun 18, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reinstate BufFileTell().
parent
edf0b5f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/backend/storage/file/buffile.c
src/backend/storage/file/buffile.c
+1
-3
src/include/storage/buffile.h
src/include/storage/buffile.h
+2
-1
No files found.
src/backend/storage/file/buffile.c
View file @
b4e906f1
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* 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:
*
...
...
@@ -532,14 +532,12 @@ BufFileSeek(BufFile *file, int fileno, long offset, int whence)
return
0
;
}
#ifdef NOT_USED
void
BufFileTell
(
BufFile
*
file
,
int
*
fileno
,
long
*
offset
)
{
*
fileno
=
file
->
curFile
;
*
offset
=
file
->
curOffset
+
file
->
pos
;
}
#endif
/*
* BufFileSeekBlock --- block-oriented seek
...
...
src/include/storage/buffile.h
View file @
b4e906f1
...
...
@@ -18,7 +18,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* 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
BufFileWrite
(
BufFile
*
file
,
void
*
ptr
,
size_t
size
);
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
);
#endif
/* BUFFILE_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment