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
60d3c9fd
Commit
60d3c9fd
authored
Mar 04, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Declare the arguments of AllocateFile() as const char *, not char *.
This is consistent with the standard definition of fopen().
parent
2689abf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/backend/storage/file/fd.c
src/backend/storage/file/fd.c
+2
-2
src/include/storage/fd.h
src/include/storage/fd.h
+2
-2
No files found.
src/backend/storage/file/fd.c
View file @
60d3c9fd
...
@@ -7,7 +7,7 @@
...
@@ -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
* $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.12
5 2006/01/17 23:52:31
tgl Exp $
* $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.12
6 2006/03/04 21:32:47
tgl Exp $
*
*
* NOTES:
* NOTES:
*
*
...
@@ -1236,7 +1236,7 @@ FileTruncate(File file, long offset)
...
@@ -1236,7 +1236,7 @@ FileTruncate(File file, long offset)
* Ideally this should be the *only* direct call of fopen() in the backend.
* Ideally this should be the *only* direct call of fopen() in the backend.
*/
*/
FILE
*
FILE
*
AllocateFile
(
c
har
*
name
,
char
*
mode
)
AllocateFile
(
c
onst
char
*
name
,
const
char
*
mode
)
{
{
FILE
*
file
;
FILE
*
file
;
...
...
src/include/storage/fd.h
View file @
60d3c9fd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/include/storage/fd.h,v 1.5
4 2005/10/15 02:49:46 momjian
Exp $
* $PostgreSQL: pgsql/src/include/storage/fd.h,v 1.5
5 2006/03/04 21:32:46 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -71,7 +71,7 @@ extern long FileSeek(File file, long offset, int whence);
...
@@ -71,7 +71,7 @@ extern long FileSeek(File file, long offset, int whence);
extern
int
FileTruncate
(
File
file
,
long
offset
);
extern
int
FileTruncate
(
File
file
,
long
offset
);
/* Operations that allow use of regular stdio --- USE WITH CAUTION */
/* Operations that allow use of regular stdio --- USE WITH CAUTION */
extern
FILE
*
AllocateFile
(
c
har
*
name
,
char
*
mode
);
extern
FILE
*
AllocateFile
(
c
onst
char
*
name
,
const
char
*
mode
);
extern
int
FreeFile
(
FILE
*
file
);
extern
int
FreeFile
(
FILE
*
file
);
/* Operations to allow use of the <dirent.h> library routines */
/* Operations to allow use of the <dirent.h> library routines */
...
...
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