]> granicus.if.org Git - postgresql/blobdiff - src/include/storage/fd.h
Update copyright for 2009.
[postgresql] / src / include / storage / fd.h
index 0cebfb85bb21de7b696ddd534a92146382090bd2..17aa150aa03ea33e2bdc4be9f522ec0c7ddcfa48 100644 (file)
@@ -4,10 +4,10 @@
  *       Virtual file descriptor definitions.
  *
  *
- * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/storage/fd.h,v 1.52 2005/06/19 21:34:03 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/storage/fd.h,v 1.63 2009/01/01 17:24:01 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -59,19 +59,17 @@ extern int  max_files_per_process;
  */
 
 /* Operations on virtual Files --- equivalent to Unix kernel file ops */
-extern File FileNameOpenFile(FileName fileName, int fileFlags, int fileMode);
 extern File PathNameOpenFile(FileName fileName, int fileFlags, int fileMode);
 extern File OpenTemporaryFile(bool interXact);
 extern void FileClose(File file);
-extern void FileUnlink(File file);
 extern int     FileRead(File file, char *buffer, int amount);
 extern int     FileWrite(File file, char *buffer, int amount);
 extern int     FileSync(File file);
-extern long FileSeek(File file, long offset, int whence);
-extern int     FileTruncate(File file, long offset);
+extern off_t FileSeek(File file, off_t offset, int whence);
+extern int     FileTruncate(File file, off_t offset);
 
 /* Operations that allow use of regular stdio --- USE WITH CAUTION */
-extern FILE *AllocateFile(char *name, char *mode);
+extern FILE *AllocateFile(const char *name, const char *mode);
 extern int     FreeFile(FILE *file);
 
 /* Operations to allow use of the <dirent.h> library routines */
@@ -83,12 +81,17 @@ extern int  FreeDir(DIR *dir);
 extern int     BasicOpenFile(FileName fileName, int fileFlags, int fileMode);
 
 /* Miscellaneous support routines */
+extern void InitFileAccess(void);
 extern void set_max_safe_fds(void);
 extern void closeAllVfds(void);
+extern void SetTempTablespaces(Oid *tableSpaces, int numSpaces);
+extern bool TempTablespacesAreSet(void);
+extern Oid     GetNextTempTableSpace(void);
 extern void AtEOXact_Files(void);
 extern void AtEOSubXact_Files(bool isCommit, SubTransactionId mySubid,
-                                                         SubTransactionId parentSubid);
+                                 SubTransactionId parentSubid);
 extern void RemovePgTempFiles(void);
+
 extern int     pg_fsync(int fd);
 extern int     pg_fsync_no_writethrough(int fd);
 extern int     pg_fsync_writethrough(int fd);