⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _getegid.c

📁 minux的源代码,一个非常小的操作系统
💻 C
字号:
#include <lib.h>
#define getegid	_getegid
#include <unistd.h>

PUBLIC gid_t getegid()
{
  message m;

  /* POSIX says that this function is always successful and that no
   * return value is reserved to indicate an error.  Minix syscalls
   * are not always successful and Minix returns the unreserved value
   * (gid_t) -1 when there is an error.
   */
  if (_syscall(MM, GETGID, &m) < 0) return ( (gid_t) -1);
  return( (gid_t) m.m2_i1);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -