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