setgroups
来源:互联网 发布:老男孩 linux 编辑:程序博客网 时间:2024/06/16 12:27
相关函数:initgroups, getgroup, getgid, setgid
头文件:#include <grp.h>
定义函数:int setgroups(size_t size, const gid_t * list);
函数说明:setgroups()用来将list 数组中所标明的组加入到目前进程的组设置中. 参数size 为list()的gid_t 数目, 最大值为NGROUP(32)。
返回值:设置成功则返回0, 如有错误则返回-1.
错误代码:
EFAULT:参数list 数组地址不合法.
EPERM:权限不足, 必须是root 权限
EINVAL:参数size 值大于NGROUP(32).
头文件:#include <grp.h>
定义函数:int setgroups(size_t size, const gid_t * list);
函数说明:setgroups()用来将list 数组中所标明的组加入到目前进程的组设置中. 参数size 为list()的gid_t 数目, 最大值为NGROUP(32)。
返回值:设置成功则返回0, 如有错误则返回-1.
错误代码:
EFAULT:参数list 数组地址不合法.
EPERM:权限不足, 必须是root 权限
EINVAL:参数size 值大于NGROUP(32).
0 0
- setgroups
- setgroups
- User namespaces and setgroups()
- setgroups函数:设置组代码函数
- C语言setgroups()函数:设置组代码函数
- MyEclipse中的快捷键
- volatile和const可以一起用
- Spring AOP学习11 - Spring AOP 与 AspectJ
- Centos 下NTP环境的创建
- memcache的最佳实践方案
- setgroups
- aop(网上找的demo)
- [docker]openstack的nova-docker插件安装试用
- LDA介绍
- setpwent
- IIS支持exe文件下载配置方法附图
- setregid
- web 开发笔记”A标签去掉下划线“
- poj 1659 Frogs' Neighborhood (Havel-Hakimi定理,判断序列是否可图)