12 #ifndef ROOT_TChirpFile
13 #define ROOT_TChirpFile
60 int Rename(
const char *from,
const char *to);
61 int Link(
const char *from,
const char *to);
62 int Symlink(
const char *from,
const char *to);
Int_t SysClose(Int_t fd)
Interface to system close. All arguments like in POSIX close().
Int_t Unlink(const char *path)
Unlink, i.e. remove, a file.
Int_t SysStat(Int_t fd, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime)
Return file stat information.
Int_t SysRead(Int_t fd, void *buf, Int_t len)
Interface to system read. All arguments like in POSIX read().
int Link(const char *from, const char *to)
Create a link from file1 to file2.
void * OpenDirectory(const char *name)
Open a directory. Returns 0 if directory does not exist.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Bool_t AccessPathName(const char *path, EAccessMode mode)
Returns FALSE if one can access a file using the specified access mode.
Bool_t ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf)
Read the nbuf blocks described in arrays pos and len.
Int_t SysSync(Int_t fd)
Interface to system fsync. All arguments like in POSIX fsync().
#define ClassDef(name, id)
Read and write data via a Chirp server.
int Rename(const char *from, const char *to)
Rename a file.
Int_t GetPathInfo(const char *path, FileStat_t &buf)
Get info about a file.
void FreeDirectory(void *dirp)
Free a directory.
const char * GetDirEntry(void *dirp)
Get a directory entry. Returns 0 if no more entries.
Long64_t SysSeek(Int_t fd, Long64_t offset, Int_t whence)
Interface to system lseek.
struct chirp_file * chirp_file_ptr
Int_t MakeDirectory(const char *name)
Make a directory.
int Utime(const char *file, Long_t modtime, Long_t actime)
Set the a files modification and access times.
int Symlink(const char *from, const char *to)
Create a symbolic link from file1 to file2.
Int_t SysWrite(Int_t fd, const void *buf, Int_t len)
Interface to system write. All arguments like in POSIX write().
int GetFsInfo(const char *path, Long_t *id, Long_t *bsize, Long_t *blocks, Long_t *bfree)
Get info about a file system: fs type, block size, number of blocks, number of free blocks...
Int_t SysOpen(const char *pathname, Int_t flags, UInt_t mode)
Interface to system open. All arguments like in POSIX open().
Abstract base class defining a generic interface to the underlying Operating System.
int Chmod(const char *file, UInt_t mode)
Set the file permission bits. Returns -1 in case or error, 0 otherwise.