uid = geteuid ();
uid = __geteuid ();
iruserok (raddr, superuser, ruser, luser)     u_int32_t raddr;     int superuser;     const char *ruser, *luser;{  FILE *hostf = NULL;  int isbad;  if (!superuser)    hostf = iruserfopen (_PATH_HEQUIV, 0);  if (hostf)    {      isbad = __ivaliduser (hostf, raddr, luser, ruser);      fclose (hostf);      if (!isbad)	return 0;    }  if (__check_rhosts_file || superuser)    {      char *pbuf;      struct passwd pwdbuf, *pwd;      size_t dirlen;      size_t buflen = __sysconf (_SC_GETPW_R_SIZE_MAX);      char *buffer = __alloca (buflen);      uid_t uid;      if (__getpwnam_r (luser, &pwdbuf, buffer, buflen, &pwd))	return -1;      dirlen = strlen (pwd->pw_dir);      pbuf = alloca (dirlen + sizeof "/.rhosts");      __mempcpy (__mempcpy (pbuf, pwd->pw_dir, dirlen),		 "/.rhosts", sizeof "/.rhosts");       /* Change effective uid while reading .rhosts.  If root and	  reading an NFS mounted file system, can't read files that	  are protected read/write owner only.  */       uid = geteuid ();       seteuid (pwd->pw_uid);       hostf = iruserfopen (pbuf, pwd->pw_uid);       if (hostf != NULL)	 {           isbad = __ivaliduser (hostf, raddr, luser, ruser);           fclose (hostf);	 }       seteuid (uid);       return isbad;    }  return -1;}