1 Star 0 Fork 4.9K

Cain / docs

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

capability.h

Overview

Related Modules:

PROCESS

Description:

Provides functions and related data structures for obtaining and setting process capabilities.

Since:

1.0

Version:

1.0

Summary

Functions

Function Name

Description

capget (cap_user_header_t hdr_ptr, cap_user_data_t data_ptr)

int 

Obtains the capability information of a specified process based on the input parameters (compatible with the Linux API format).

capset (cap_user_header_t hdr_ptr, const cap_user_data_t data_ptr)

int 

Sets the capability information for a specified process based on the input parameters (compatible with the Linux API format).

ohos_capget (unsigned int *caps)

int 

Obtains the capability information of a specified process based on the input parameters.

ohos_capset (unsigned int caps)

int 

Sets the capability information of a specified process based on the input parameters.

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

搜索帮助