diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-08-18 02:15:04 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-08-18 02:15:04 +0000 |
commit | 022903f22e54cbc78b4acc1ef54f73d19a051630 (patch) | |
tree | 2a2d88e2f97a71233a4b61c1ebf549e663f3d3aa /src/include | |
parent | eaae21fb4d4b8423dbd26731d9fcd3b3cecf2724 (diff) | |
download | postgresql-022903f22e54cbc78b4acc1ef54f73d19a051630.tar.gz postgresql-022903f22e54cbc78b4acc1ef54f73d19a051630.zip |
Reduce open() calls. Replace fopen() calls with calls to fd.c functions.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/storage/fd.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/include/storage/fd.h b/src/include/storage/fd.h index 011c8efb5b1..9d5a1e81970 100644 --- a/src/include/storage/fd.h +++ b/src/include/storage/fd.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: fd.h,v 1.6 1997/02/14 04:18:42 momjian Exp $ + * $Id: fd.h,v 1.7 1997/08/18 02:15:04 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -34,11 +34,7 @@ #ifndef FD_H #define FD_H -/* - * FileOpen uses the standard UNIX open(2) flags. - */ -#ifndef O_RDONLY -#endif /* O_RDONLY */ +#include <stdio.h> /* * FileSeek uses the standard UNIX lseek(2) flags. @@ -76,10 +72,9 @@ extern long FileTell(File file); extern int FileTruncate(File file, int offset); extern int FileSync(File file); extern int FileNameUnlink(char *filename); -extern void AllocateFile(void); -extern void FreeFile(void); +extern FILE *AllocateFile(char *name, char *mode); +extern void FreeFile(FILE *); extern void closeAllVfds(void); -extern void closeOneVfd(void); extern int pg_fsync(int fd); #endif /* FD_H */ |