Rudiments: /home/dmuse/temp/rudiments/include/rudiments/private/file.h Source File

Rudiments

file.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information
3
4 protected:
5 virtual bool lowLevelOpen(const char *name, int32_t flags,
6 mode_t perms, bool useperms);
7
8 private:
9 static bool stat(const char *filename, void *st);
10
11 off64_t lseek(off64_t offset, int32_t whence) const;
12 bool lock(int32_t method, int16_t type, int16_t whence,
13 off64_t start, off64_t len) const;
14 bool checkLock(int16_t type,
15 int16_t whence,
16 off64_t start,
17 off64_t len,
18 int16_t *conftype,
19 int16_t *confwhence,
20 off64_t *confstart,
21 off64_t *conflen) const;
22 bool unlock(int16_t whence,
23 off64_t start, off64_t len) const;
24
25 void fileClone(const file &f);
26
27
28 bool posixFadvise(off64_t offset, off64_t len,
29 int32_t advice) const;
30 static int64_t pathConf(const char *path, int32_t name);
31 int64_t fpathConf(int32_t name) const;
32
33 fileprivate *pvt;
file
Definition: file.h:19