1 Star 0 Fork 5.3K

笛荡 / docs

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

fcntl.h

Overview

Related Modules:

FS

Description:

Declares structures and functions used for file and directory operations such as opening a file, creating a file, and allocating space.

Since:

1.0

Version:

1.0

Summary

Macros

Macro Name and Value

Description

O_ACCMODE (03|O_SEARCH)

Access mode.

O_RDONLY 00

Read-only.

O_WRONLY 01

Write-only.

O_RDWR 02

Read and write.

fallocate64 fallocate

Pre-allocates space to a file. See fallocate.

Functions

Function Name

Description

creat (const char *path, mode_t mode)

int

Creates a file or rewrites an existing file.

open (const char *path, int oflags,...)

int

Opens a file.

fallocate (int fd, int mode, off_t offset, off_t len)

int

Pre-allocates space to a file.

fcntl (int fd, int cmd,...)

int

Manipulates a specified file descriptor.

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

搜索帮助