CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Linux/Unix社区 >  程序开发区

有效组id值为-1有什么特别的意思吗?

楼主d4fan(kk)2005-01-03 17:17:18 在 Linux/Unix社区 / 程序开发区 提问

setregid   (getegid(),   -1);  
  这一句执行后,对程序有什么影响? 问题点数:50、回复次数:1Top

1 楼quil(晕)回复于 2005-01-03 20:48:58 得分 50

setregid(   )   is   used   to   set   the   real   and   effective   group   IDs   of  
        the   calling   process.   If   rgid   is   -1,   the   real   group   ID   is   not  
        changed;   if   egid   is   -1,   the   effective   group   ID   is   not   changed.  
        The   real   and   effective   group   IDs   may   be   set   to   different   values  
        in   the   same   call.  
   
        If   the   effective   user   ID   of   the   calling   process   is   root,   the   real  
        group   ID   and   the   effective   group   ID   can   be   set   to   any   legal  
        value.  
   
        If   the   effective   user   ID   of   the   calling   process   is   not   root,   the  
        real   group   ID   can   be   set   to   the   saved   set-group   ID   from  
        execve(S),   or   the   effective   group   ID   can   be   set   to   either   the  
        saved   set-group   ID   or   the   real   group   ID.   If   a   set-GID   process  
        sets   its   effective   group   ID   to   its   real   group   ID,   it   can   still  
        set   its   effective   group   ID   back   to   the   saved   set-group   ID.  
   
        If   the   real   group   ID   is   changed   (rgid   is   not   -1),   the   saved  
        set-group   ID   is   set   to   that   same   value.  
  Top

相关问题

  • N'DECLARE @ID DECIMAL;SET @ID=-1; 什么意思?
  • 请问“右值”是什么意思?
  • "Resource id #1"是什么意思??
  • Warning: no message line prompt for ID 0x8014.是何意思。
  • request("id"&j)是什么意思?
  • details.aspx?id{0}中{0}是什么意思?
  • ID=Request.QueryString("ID")和ID=Request("ID")是一个意思吗?
  • <img src="" id="asp">这里的ID是什么意思?
  • idl 中的id[DISPID_VALUE] id[DISPID_NEWENUM] 代表什么意思?
  • s.ticket_id*=c.ticket_id其中的*什么意思?

关键词

  • real
  • effective
  • group id
  • saved
  • changed
  • set

得分解答快速导航

  • 帖主:d4fan
  • quil

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo