sofs19
0.1
FUSE based file system
|
Go to the documentation of this file.
15 #ifndef __SOFS19_SYSCALLS__
16 #define __SOFS19_SYSCALLS__
21 #include <sys/types.h>
22 #include <sys/statvfs.h>
73 int soMknod(
const char *path, mode_t mode);
101 int soLink(
const char *path,
const char *newPath);
164 int soMkdir(
const char *path, mode_t mode);
218 int soRead(
const char *path,
void *buff, uint32_t count, int32_t pos);
247 int soWrite(
const char *path,
void *buff, uint32_t count, int32_t pos);
265 int soRename(
const char *path,
const char *newPath);
283 int soTruncate(
const char *path, off_t length);
309 int soReaddir(
const char *path,
void *buff, int32_t pos);
330 int soSymlink(
const char *effPath,
const char *path);
349 int soReadlink(
const char *path,
char *buff,
size_t size);
412 int soStatFS(
const char *path,
struct statvfs *st);
433 int soStat(
const char *path,
struct stat *st);
456 int soAccess(
const char *path,
int opRequested);
482 int soChmod(
const char *path, mode_t mode);
507 int soChown(
const char *path, uid_t owner, gid_t group);
526 int soUtime(
const char *path,
const struct utimbuf *times);
549 int soUtimens(
const char *path,
const struct timespec tv[2]);
571 int soOpen(
const char *path,
int flags);
int soUtimens(const char *path, const struct timespec tv[2])
Change the last access and modification times of a file with nanosecond resolution.
int soReaddir(const char *path, void *buff, int32_t pos)
Read a directory entry from a directory.
int soRename(const char *path, const char *newPath)
Change the name or the location of a file in the directory hierarchy of the file system.
int soStat(const char *path, struct stat *st)
Get file status.
int soChown(const char *path, uid_t owner, gid_t group)
Change the ownership of a file.
int soOpen(const char *path, int flags)
Open a regular file.
int soChmod(const char *path, mode_t mode)
Change permissions of a file.
int soUtime(const char *path, const struct utimbuf *times)
Change the last access and modification times of a file.
int soMkdir(const char *path, mode_t mode)
Create a directory.
int soRmdir(const char *path)
Remove an existing directory.
int soOpendir(const char *path)
Open a directory for reading.
int soClosedir(const char *path)
Close a directory.
int soStatFS(const char *path, struct statvfs *st)
Get file system statistics.
int soReadlink(const char *path, char *buff, size_t size)
Read the value of a symbolic link.
int soUnlink(const char *path)
Delete a link to a file from a directory and possibly the file it refers to from the file system.
int soLink(const char *path, const char *newPath)
Make a new link to a file.
int soRead(const char *path, void *buff, uint32_t count, int32_t pos)
Read data from an open regular file.
int soMknod(const char *path, mode_t mode)
Create a regular file with size 0.
int soAccess(const char *path, int opRequested)
Check real user's permissions for a file.
int soFsync(const char *path)
Synchronize a file's in-core state with storage device.
int soSymlink(const char *effPath, const char *path)
Creates a symbolic link which contains the given path.
int soTruncate(const char *path, off_t length)
Truncate a regular file to a specified length.
int soClose(const char *path)
Close a regular file.
int soCloseFileSystem(void)
Close the sofs19 file system.
int soOpenFileSystem(const char *devname)
Open the sofs19 file system.
int soWrite(const char *path, void *buff, uint32_t count, int32_t pos)
Write data into an open regular file.