函数 | |
int | fstat (int fd, struct stat *buf) |
int | fstat64 (int fd, struct stat64 *buf) |
int | lstat (const char *path, struct stat *buffer) |
int | VfsVnodePermissionCheck (const struct Vnode *node, int accMode) |
int | VfsPermissionCheck (uint fuid, uint fgid, uint fileMode, int accMode) |
static int | SetWorkDir (const char *dir, size_t len) |
int | chdir (const char *path) |
char * | getcwd (char *buf, size_t n) |
int | chmod (const char *path, mode_t mode) |
int | chown (const char *pathname, uid_t owner, gid_t group) |
int | access (const char *path, int amode) |
static struct dirent ** | scandir_get_file_list (const char *dir, int *num, int(*filter)(const struct dirent *)) |
int | scandir (const char *dir, struct dirent ***namelist, int(*filter)(const struct dirent *), int(*compar)(const struct dirent **, const struct dirent **)) |
int | alphasort (const struct dirent **a, const struct dirent **b) |
char * | rindex (const char *s, int c) |
locate character in string. 更多... | |
static char * | ls_get_fullpath (const char *path, struct dirent *pdirent) |
static void | PrintFileInfo64 (const struct stat64 *stat64Info, const char *name) |
static void | PrintFileInfo (const struct stat *statInfo, const char *name) |
int | LsFile (const char *path) |
int | LsDir (const char *path) |
void | ls (const char *pathname) |
list directory contents. 更多... | |
char * | realpath (const char *path, char *resolved_path) |
void | lsfd (void) |
查看FD 更多... | |
mode_t | GetUmask (void) |
获取用户创建文件掩码 更多... | |
mode_t | SysUmask (mode_t mask) |
给当前进程设置系统创建文件掩码,并返回进程旧掩码 更多... | |
在文件 vfs_other.c 第 293 行定义.
int alphasort | ( | const struct dirent ** | a, |
const struct dirent ** | b | ||
) |
在文件 vfs_other.c 第 427 行定义.
int chdir | ( | const char * | path | ) |
在文件 vfs_other.c 第 150 行定义.
在文件 vfs_other.c 第 256 行定义.
int chown | ( | const char * | pathname, |
uid_t | owner, | ||
gid_t | group | ||
) |
在文件 vfs_other.c 第 51 行定义.
char * getcwd | ( | char * | buf, |
size_t | n | ||
) |
this function is a POSIX compliant version, which will return current working directory.
buf | the returned current directory. |
size | the buffer size. |
在文件 vfs_other.c 第 222 行定义.
获取用户创建文件掩码
在文件 vfs_other.c 第 715 行定义.
void ls | ( | const char * | pathname | ) |
list directory contents.
pathname | [IN] Type #const char* The file pathname. |
<ul>None.</ul> |
在文件 vfs_other.c 第 600 行定义.
|
static |
int LsDir | ( | const char * | path | ) |
在文件 vfs_other.c 第 553 行定义.
int LsFile | ( | const char * | path | ) |
int lstat | ( | const char * | path, |
struct stat * | buffer | ||
) |
在文件 vfs_other.c 第 75 行定义.
|
static |
在文件 vfs_other.c 第 511 行定义.
|
static |
在文件 vfs_other.c 第 485 行定义.
char * realpath | ( | const char * | path, |
char * | resolved_path | ||
) |
char * rindex | ( | const char * | s, |
int | c | ||
) |
locate character in string.
s | [IN] Type #const char* A pointer to string. |
c | [IN] Type int The character. |
#char* | a pointer to the matched character or NULL if the character is not found. |
在文件 vfs_other.c 第 432 行定义.
int scandir | ( | const char * | dir, |
struct dirent *** | namelist, | ||
int(*)(const struct dirent *) | filter, | ||
int(*)(const struct dirent **, const struct dirent **) | compar | ||
) |
在文件 vfs_other.c 第 391 行定义.
|
static |