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

📄 _geteuid.c

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

PUBLIC uid_t geteuid()
{
  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
   * (uid_t) -1 when there is an error.
   */
  if (_syscall(MM, GETUID, &m) < 0) return ( (uid_t) -1);
  return( (uid_t) m.m2_i1);
}

⌨️ 快捷键说明

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