regexps.com
These functions define a trivial file-system implementation in which all functions call their system-call equivalents.
void * vu_sys_make_closure (void * closure);
Return closure
.
void vu_sys_free_closure (void * closure);
A noop.
int vu_sys_access (int * errn, char * path, int mode, void * closure);
Call access
.
int vu_sys_chdir (int * errn, char * path, void * closure);
Call chdir
.
int vu_sys_chmod (int * errn, char * path, int mode, void * closure);
Call chmod
.
int vu_sys_chown (int * errn,
                  char * path,
                  int owner,
                  int group,
                  void * closure);
Call chown
.
int vu_sys_chroot (int * errn, char * path, void * closure);
Call chroot
.
int vu_sys_closedir (int * errn, DIR * dir, void * closure);
Call closedir
.
int vu_sys_close (int * errn, int fd, void * closure);
Call close
.
int vu_sys_fchdir (int * errn, int fd, void * closure);
Call fchdir
.
int vu_sys_fchmod (int * errn, int fd, int mode, void * closure);
Call fchmod
.
int vu_sys_fchown (int * errn,
                   int fd,
                   int owner,
                   int group,
                   void * closure);
Call fchown
.
int vu_sys_fstat (int * errn,
                  int fd,
                  struct stat * buf,
                  void * closure);
Call fstat
.
int vu_sys_fsync (int * errn, int fd, void * closure);
Call fsync
.
int vu_sys_ftruncate (int * errn, int fd, off_t where, void * closure);
Call ftruncate
.
int vu_sys_link (int * errn, char * from, char * to, void * closure);
Call link
.
off_t vu_sys_lseek (int * errn,
                    int fd,
                    off_t offset,
                    int whence,
                    void * closure);
Call lseek
.
int vu_sys_lstat (int * errn,
                  char * path,
                  struct stat * buf,
                  void * closure);
Call lstat
.
int vu_sys_mkdir (int * errn, char * path, int mode, void * closure);
Call mkdir
.
int vu_sys_open (int * errn,
                 char * path,
                 int flags,
                 int mode,
                 void * closure);
Call open
.
int vu_sys_opendir (int * errn,
                    DIR ** retv,
                    char * path,
                    void * closure);
Call opendir
.
ssize_t vu_sys_read (int * errn,
                     int fd,
                     char * buf,
                     size_t count,
                     void * closure);
Call read
.
int vu_sys_readdir (int * errn,
                    struct alloc_limits * limits,
                    char ** file_ret,
                    DIR * dir,
                    void * closure);
Call readdir
.
int vu_sys_readlink (int * errn,
                     char * path,
                     char * buf,
                     int bufsize,
                     void * closure);
Call readlink
.
int vu_sys_rename (int * errn, char * from, char * to, void * closure);
Call rename
.
int vu_sys_rmdir (int * errn, char * path, void * closure);
Call rmdir
.
int vu_sys_stat (int * errn,
                 char * path,
                 struct stat * buf,
                 void * closure);
Call stat
.
int vu_sys_symlink (int * errn, char * from, char * to, void * closure);
Call symlink
.
int vu_sys_truncate (int * errn,
                     char * path,
                     off_t where,
                     void * closure);
Call truncate
.
int vu_sys_unlink (int * errn, char * path, void * closure);
Call unlink
.
int vu_sys_utime (int * errn,
                  char * path,
                  struct utimbuf * times,
                  void * closure);
Call utime
.
ssize_t vu_sys_write (int * errn,
                      int fd,
                      char * buf,
                      size_t count,
                      void * closure);
Call write
.
int vu_sys_fcntl (int * errn,
                  int fd,
                  int cmd,
                  long arg,
                  void * closure);
Call fcntl
.
int vu_sys_dup (int * errn, int fd, void * closure);
Call dup
.
int vu_sys_dup2 (int * errn, int fd, int newfd, void * closure);
Call dup2
.
int vu_sys_move_state (int * errn, int fd, int newfd, void * closure);
A noop (return 0
).
regexps.com