sofs19  0.1
FUSE based file system
syscalls.h File Reference

The sofs19 system calls. More...

#include <unistd.h>
#include <fcntl.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/statvfs.h>
#include <sys/stat.h>
#include <time.h>
#include <utime.h>
#include <libgen.h>

Go to the source code of this file.

Functions

int soMknod (const char *path, mode_t mode)
 Create a regular file with size 0. More...
 
int soLink (const char *path, const char *newPath)
 Make a new link to a file. More...
 
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. More...
 
int soMkdir (const char *path, mode_t mode)
 Create a directory. More...
 
int soRmdir (const char *path)
 Remove an existing directory. More...
 
int soRead (const char *path, void *buff, uint32_t count, int32_t pos)
 Read data from an open regular file. More...
 
int soWrite (const char *path, void *buff, uint32_t count, int32_t pos)
 Write data into an open regular file. More...
 
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. More...
 
int soTruncate (const char *path, off_t length)
 Truncate a regular file to a specified length. More...
 
int soReaddir (const char *path, void *buff, int32_t pos)
 Read a directory entry from a directory. More...
 
int soSymlink (const char *effPath, const char *path)
 Creates a symbolic link which contains the given path. More...
 
int soReadlink (const char *path, char *buff, size_t size)
 Read the value of a symbolic link. More...
 
int soOpenFileSystem (const char *devname)
 Open the sofs19 file system. More...
 
int soCloseFileSystem (void)
 Close the sofs19 file system. More...
 
int soStatFS (const char *path, struct statvfs *st)
 Get file system statistics. More...
 
int soStat (const char *path, struct stat *st)
 Get file status. More...
 
int soAccess (const char *path, int opRequested)
 Check real user's permissions for a file. More...
 
int soChmod (const char *path, mode_t mode)
 Change permissions of a file. More...
 
int soChown (const char *path, uid_t owner, gid_t group)
 Change the ownership of a file. More...
 
int soUtime (const char *path, const struct utimbuf *times)
 Change the last access and modification times of a file. More...
 
int soUtimens (const char *path, const struct timespec tv[2])
 Change the last access and modification times of a file with nanosecond resolution. More...
 
int soOpen (const char *path, int flags)
 Open a regular file. More...
 
int soClose (const char *path)
 Close a regular file. More...
 
int soFsync (const char *path)
 Synchronize a file's in-core state with storage device. More...
 
int soOpendir (const char *path)
 Open a directory for reading. More...
 
int soClosedir (const char *path)
 Close a directory. More...
 

Detailed Description

The sofs19 system calls.

The set of system calls are divided into two subsets:

  • one, contains the set of system calls for evaluation;
  • the other, constains the remaining required system calls
Author
Artur Carneiro Pereira 2007-2009, 2016-2019
Miguel Oliveira e Silva 2009, 2017
António Rui Borges - 2010–2015