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