sofs19  0.1
FUSE based file system
bin_syscalls.h
Go to the documentation of this file.
1 
15 #ifndef __SOFS19_BIN_SYSCALLS__
16 #define __SOFS19_BIN_SYSCALLS__
17 
18 #include <unistd.h>
19 #include <fcntl.h>
20 #include <inttypes.h>
21 #include <sys/types.h>
22 #include <sys/statvfs.h>
23 #include <sys/stat.h>
24 #include <time.h>
25 #include <utime.h>
26 #include <libgen.h>
27 
28 namespace sofs19
29 {
30  int binLink(const char *path, const char *newPath);
31 
32  int binUnlink(const char *path);
33 
34  int binRename(const char *path, const char *newPath);
35 
36  int binMknod(const char *path, mode_t mode);
37 
38  int binRead(const char *path, void *buff, uint32_t count, int32_t pos);
39 
40  int binWrite(const char *path, void *buff, uint32_t count, int32_t pos);
41 
42  int binTruncate(const char *path, off_t length);
43 
44  int binMkdir(const char *path, mode_t mode);
45 
46  int binRmdir(const char *path);
47 
48  int binReaddir(const char *path, void *buff, int32_t pos);
49 
50  int binSymlink(const char *effPath, const char *path);
51 
52  int binReadlink(const char *path, char *buff, size_t size);
53 
54  /* ******************************************************************* */
55 
56  int binOpenFileSystem(const char *devname);
57 
58  int binCloseFileSystem(void);
59 
60  int binStatFS(const char *path, struct statvfs *st);
61 
62  int binStat(const char *path, struct stat *st);
63 
64  int binAccess(const char *path, int opRequested);
65 
66  int binChmod(const char *path, mode_t mode);
67 
68  int binChown(const char *path, uid_t owner, gid_t group);
69 
70  int binUtime(const char *path, const struct utimbuf *times);
71 
72  int binUtimens(const char *path, const struct timespec tv[2]);
73 
74  int binOpen(const char *path, int flags);
75 
76  int binClose(const char *path);
77 
78  int binFsync(const char *path);
79 
80  int binOpendir(const char *path);
81 
82  int binClosedir(const char *path);
83 };
84 
85 #endif /* __SOFS19_BIN_SYSCALLS__ */