1 Star 0 Fork 4.9K

罗小黑 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
stat-h.md 6.80 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

stat.h

Overview

Related Modules:

FS

Description:

Provides functions for file and directory operations.

These functions can be used for file system operations, such as file read/write, directory traversal, and file system mounting.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

stat

Defines the file information structure.

Functions

Function Name

Description

stat (const char *__restrict path, struct stat *__restrict buf)

int 

Obtains file information.

fstat (int fd, struct stat *buf)

int 

Obtains file status information.

lstat (const char *__restrict path, struct stat *__restrict buf)

int 

Obtains file information.

mkdir (const char *pathname, mode_t mode)

int 

Creates a directory.

mkfifo (const char *name, mode_t mode)

int 

Creates a named pipe to implement inter-process communication.

mkdirat (int fd, const char *pathname, mode_t mode)

int 

Creates a directory.

chmod (const char *pathname, mode_t mode)

int 

Modifies permissions for a file.

umask (mode_t mode)

mode_t 

Sets umask for a process.

1
https://gitee.com/lawguiren/docs.git
git@gitee.com:lawguiren/docs.git
lawguiren
docs
docs
master

搜索帮助