1 Star 0 Fork 5.4K

OpenHarmony_EU incubator / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
stat-h.md 6.77 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.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/open-harmony-eu-incubator/docs.git
git@gitee.com:open-harmony-eu-incubator/docs.git
open-harmony-eu-incubator
docs
docs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891