Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
b4e906f1
Commit
b4e906f1
authored
24 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Reinstate BufFileTell().
parent
edf0b5f0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/storage/file/buffile.c
+1
-3
1 addition, 3 deletions
src/backend/storage/file/buffile.c
src/include/storage/buffile.h
+2
-1
2 additions, 1 deletion
src/include/storage/buffile.h
with
3 additions
and
4 deletions
src/backend/storage/file/buffile.c
+
1
−
3
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/1
5
03:
32:26 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/file/buffile.c,v 1.
8
2000/06/1
8
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
...
...
This diff is collapsed.
Click to expand it.
src/include/storage/buffile.h
+
2
−
1
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/1
5
03:
32:59 momjian
Exp $
* $Id: buffile.h,v 1.
7
2000/06/1
8
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 */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment