Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
fileset.h41 linesDownload Raw Back to storage
1/*-------------------------------------------------------------------------2 *3 * fileset.h4 *	  Management of named temporary files.5 *6 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group7 * Portions Copyright (c) 1994, Regents of the University of California8 *9 * src/include/storage/fileset.h10 *11 *-------------------------------------------------------------------------12 */13 14#ifndef FILESET_H15#define FILESET_H16 17#include "storage/fd.h"18 19/*20 * A set of temporary files.21 */22typedef struct FileSet23{24	pid_t		creator_pid;	/* PID of the creating process */25	uint32		number;			/* per-PID identifier */26	int			ntablespaces;	/* number of tablespaces to use */27	Oid			tablespaces[8]; /* OIDs of tablespaces to use. Assumes that28								 * it's rare that there more than temp29								 * tablespaces. */30} FileSet;31 32extern void FileSetInit(FileSet *fileset);33extern File FileSetCreate(FileSet *fileset, const char *name);34extern File FileSetOpen(FileSet *fileset, const char *name,35						int mode);36extern bool FileSetDelete(FileSet *fileset, const char *name,37						  bool error_on_failure);38extern void FileSetDeleteAll(FileSet *fileset);39 40#endif41 
codekingpro/portable-devtools · Team Ai