VSF Documented
|
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "../sys/types.h"
#include "../simple_libc/time.h"
#include "component/fs/vsf_fs_cfg.h"
Go to the source code of this file.
Data Structures | |
struct | stat |
struct | stat64 |
struct | vsf_linux_sys_stat_vplt_t |
Macros | |
#define | stat VSF_LINUX_WRAPPER(stat) |
#define | lstat VSF_LINUX_WRAPPER(lstat) |
#define | fstat VSF_LINUX_WRAPPER(fstat) |
#define | fstatat VSF_LINUX_WRAPPER(fstatat) |
#define | umask VSF_LINUX_WRAPPER(umask) |
#define | chmod VSF_LINUX_WRAPPER(chmod) |
#define | fchmod VSF_LINUX_WRAPPER(fchmod) |
#define | futimens VSF_LINUX_WRAPPER(futimens) |
#define | utimensat VSF_LINUX_WRAPPER(utimensat) |
#define | mkfifo VSF_LINUX_WRAPPER(mkfifo) |
#define | mkfifoat VSF_LINUX_WRAPPER(mkfifoat) |
#define | mknod VSF_LINUX_WRAPPER(mknod) |
#define | mknodat VSF_LINUX_WRAPPER(mknodat) |
#define | __NR_stat stat |
#define | __NR_fstat fstat |
#define | __NR_fstatat fstatat |
#define | __NR_umask umask |
#define | __NR_chmod chmod |
#define | __NR_fchmod fchmod |
#define | __NR_fchmodat fchmodat |
#define | __NR_futimesat futimesat |
#define | __NR_utimensat utimensat |
#define | VSF_FILE_ATTR_CHR (VSF_FILE_ATTR_USER << 0) |
#define | VSF_FILE_ATTR_BLK (VSF_FILE_ATTR_USER << 1) |
#define | VSF_FILE_ATTR_EXCL (VSF_FILE_ATTR_USER << 3) |
#define | VSF_FILE_ATTR_SOCK (VSF_FILE_ATTR_USER << 4) |
#define | VSF_FILE_ATTR_TTY (VSF_FILE_ATTR_USER << 5) |
#define | VSF_FILE_ATTR_FIFO (VSF_FILE_ATTR_USER << 6) |
#define | __VSF_FILE_ATTR_SHARE_PRIV (VSF_FILE_ATTR_USER << 16) |
#define | UTIME_NOW ((1l << 30) - 1l) |
#define | UTIME_OMIT ((1l << 30) - 2l) |
#define | S_IFDIR 0040000 |
#define | S_IFREG 0100000 |
#define | S_IFLNK 0120000 |
#define | S_IFIFO 0010000 |
#define | S_IFCHR 0020000 |
#define | S_IFSOCK 0140000 |
#define | S_IFBLK 0060000 |
#define | S_IFMT 0170000 |
#define | __S_IR 04 |
#define | __S_IW 02 |
#define | __S_IX 01 |
#define | S_IROTH (__S_IR << 0) |
#define | S_IWOTH (__S_IW << 0) |
#define | S_IXOTH (__S_IX << 0) |
#define | S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) |
#define | S_IRGRP (__S_IR << 3) |
#define | S_IWGRP (__S_IW << 3) |
#define | S_IXGRP (__S_IX << 3) |
#define | S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP) |
#define | S_IRUSR (__S_IR << 6) |
#define | S_IWUSR (__S_IW << 6) |
#define | S_IXUSR (__S_IX << 6) |
#define | S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR) |
#define | S_IREAD S_IRUSR |
#define | S_IWRITE S_IWUSR |
#define | S_IEXEC S_IXUSR |
#define | S_ISUID 0004000 |
#define | S_ISGID 0002000 |
#define | S_ISVTX 0001000 |
#define | S_ISLNK(__MODE) (((__MODE) & S_IFMT) == S_IFLNK) |
#define | S_ISREG(__MODE) (((__MODE) & S_IFMT) == S_IFREG) |
#define | S_ISDIR(__MODE) (((__MODE) & S_IFMT) == S_IFDIR) |
#define | S_ISFIFO(__MODE) (((__MODE) & S_IFMT) == S_IFIFO) |
#define | S_ISSOCK(__MODE) (((__MODE) & S_IFMT) == S_IFSOCK) |
#define | S_ISCHR(__MODE) (((__MODE) & S_IFMT) == S_IFCHR) |
#define | S_ISBLK(__MODE) (((__MODE) & S_IFMT) == S_IFBLK) |
#define | st_atime st_atim.tv_sec |
#define | st_mtime st_mtim.tv_sec |
#define | st_ctime st_ctim.tv_sec |
#define | st_atime st_atim.tv_sec |
#define | st_mtime st_mtim.tv_sec |
#define | st_ctime st_ctim.tv_sec |
Typedefs | |
typedef struct vsf_linux_sys_stat_vplt_t | vsf_linux_sys_stat_vplt_t |
Functions | |
mode_t | umask (mode_t mask) |
int | stat (const char *pathname, struct stat *buf) |
int | lstat (const char *pathname, struct stat *buf) |
int | fstat (int fd, struct stat *buf) |
int | fstatat (int dirfd, const char *pathname, struct stat *buf, int flags) |
int | futimens (int fd, const struct timespec times[2]) |
int | utimensat (int dirfd, const char *pathname, const struct timespec times[2], int flags) |
int | chmod (const char *pathname, mode_t mode) |
int | fchmod (int fd, mode_t mode) |
int | mkfifo (const char *pathname, mode_t mode) |
int | mkfifoat (int dirfd, const char *pathname, mode_t mode) |
int | mknod (const char *pathname, mode_t mode, dev_t dev) |
int | mknodat (int dirfd, const char *pathname, mode_t mode, dev_t dev) |
Variables | |
__VSF_VPLT_DECORATOR__ vsf_linux_sys_stat_vplt_t | vsf_linux_sys_stat_vplt |
#define stat VSF_LINUX_WRAPPER(stat) |
#define lstat VSF_LINUX_WRAPPER(lstat) |
#define fstat VSF_LINUX_WRAPPER(fstat) |
#define fstatat VSF_LINUX_WRAPPER(fstatat) |
#define umask VSF_LINUX_WRAPPER(umask) |
#define chmod VSF_LINUX_WRAPPER(chmod) |
#define fchmod VSF_LINUX_WRAPPER(fchmod) |
#define futimens VSF_LINUX_WRAPPER(futimens) |
#define utimensat VSF_LINUX_WRAPPER(utimensat) |
#define mkfifo VSF_LINUX_WRAPPER(mkfifo) |
#define mkfifoat VSF_LINUX_WRAPPER(mkfifoat) |
#define mknod VSF_LINUX_WRAPPER(mknod) |
#define mknodat VSF_LINUX_WRAPPER(mknodat) |
#define __NR_stat stat |
#define __NR_fstat fstat |
#define __NR_fstatat fstatat |
#define __NR_umask umask |
#define __NR_chmod chmod |
#define __NR_fchmod fchmod |
#define __NR_fchmodat fchmodat |
#define __NR_futimesat futimesat |
#define __NR_utimensat utimensat |
#define VSF_FILE_ATTR_CHR (VSF_FILE_ATTR_USER << 0) |
#define VSF_FILE_ATTR_BLK (VSF_FILE_ATTR_USER << 1) |
#define VSF_FILE_ATTR_EXCL (VSF_FILE_ATTR_USER << 3) |
#define VSF_FILE_ATTR_SOCK (VSF_FILE_ATTR_USER << 4) |
#define VSF_FILE_ATTR_TTY (VSF_FILE_ATTR_USER << 5) |
#define VSF_FILE_ATTR_FIFO (VSF_FILE_ATTR_USER << 6) |
#define __VSF_FILE_ATTR_SHARE_PRIV (VSF_FILE_ATTR_USER << 16) |
#define UTIME_NOW ((1l << 30) - 1l) |
#define UTIME_OMIT ((1l << 30) - 2l) |
#define S_IFDIR 0040000 |
#define S_IFREG 0100000 |
#define S_IFLNK 0120000 |
#define S_IFIFO 0010000 |
#define S_IFCHR 0020000 |
#define S_IFSOCK 0140000 |
#define S_IFBLK 0060000 |
#define S_IFMT 0170000 |
#define __S_IR 04 |
#define __S_IW 02 |
#define __S_IX 01 |
#define S_IROTH (__S_IR << 0) |
#define S_IWOTH (__S_IW << 0) |
#define S_IXOTH (__S_IX << 0) |
#define S_IRGRP (__S_IR << 3) |
#define S_IWGRP (__S_IW << 3) |
#define S_IXGRP (__S_IX << 3) |
#define S_IRUSR (__S_IR << 6) |
#define S_IWUSR (__S_IW << 6) |
#define S_IXUSR (__S_IX << 6) |
#define S_IREAD S_IRUSR |
#define S_IWRITE S_IWUSR |
#define S_IEXEC S_IXUSR |
#define S_ISUID 0004000 |
#define S_ISGID 0002000 |
#define S_ISVTX 0001000 |
#define st_atime st_atim.tv_sec |
#define st_mtime st_mtim.tv_sec |
#define st_ctime st_ctim.tv_sec |
#define st_atime st_atim.tv_sec |
#define st_mtime st_mtim.tv_sec |
#define st_ctime st_ctim.tv_sec |
typedef struct vsf_linux_sys_stat_vplt_t vsf_linux_sys_stat_vplt_t |
int lstat | ( | const char * | pathname, |
struct stat * | buf | ||
) |
int fstat | ( | int | fd, |
struct stat * | buf | ||
) |
int fstatat | ( | int | dirfd, |
const char * | pathname, | ||
struct stat * | buf, | ||
int | flags | ||
) |
int futimens | ( | int | fd, |
const struct timespec | times[2] | ||
) |
int utimensat | ( | int | dirfd, |
const char * | pathname, | ||
const struct timespec | times[2], | ||
int | flags | ||
) |
int chmod | ( | const char * | pathname, |
mode_t | mode | ||
) |
int fchmod | ( | int | fd, |
mode_t | mode | ||
) |
int mkfifo | ( | const char * | pathname, |
mode_t | mode | ||
) |
int mkfifoat | ( | int | dirfd, |
const char * | pathname, | ||
mode_t | mode | ||
) |
|
extern |