Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
include
fs
vfs.h
Go to the documentation of this file.
1
4
#ifndef __FS_VFS_H__
5
#define __FS_VFS_H__
6
7
#include <
dirent.h
>
8
#include <stdbool.h>
9
#include <stdint.h>
10
#include <
sys/stat.h
>
11
#include <
sys/types.h
>
12
13
int
vfs_mount(
int
tid,
const
char
*source,
const
char
*target);
14
int
vfs_open_file(
int
tid,
const
char
*pathname);
15
int
vfs_create_file(
int
tid,
const
char
*pathname, mode_t mode);
16
int
vfs_open_dir(
int
tid,
const
char
*pathname,
DIR
*dirp);
17
int
vfs_readdir(
DIR
*dirp,
struct
dirent
*
dirent
);
18
char
*vfs_getcwd(
int
tid,
char
*buf,
size_t
size);
19
int
vfs_chdir(
int
tid,
const
char
*path);
20
int
vfs_mkdir(
int
tid,
const
char
*pathname, mode_t mode);
21
int
vfs_chmod(
int
tid,
const
char
*pathname, mode_t mode);
22
int
vfs_utime(
int
tid,
const
char
*pathname, uint32_t mtime);
23
int
vfs_remove(
int
tid,
const
char
*pathname,
bool
rm_dir);
24
int
vfs_stat(
int
tid,
const
char
*pathname,
struct
stat
*statbuf);
25
int
vfs_rename(
int
tid,
const
char
*oldpath,
const
char
*newpath);
26
27
#endif
dirent.h
stat.h
dirent
Definition:
dirent.h:29
dirstream
Definition:
dirent.h:36
stat
Definition:
stat.h:46
types.h
Generated by
1.9.1