home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / emacs-19.28-src.tgz / tar.out / fsf / emacs / unixlib / src / pwd.c < prev    next >
C/C++ Source or Header  |  1996-09-28  |  311b  |  14 lines

  1. #include "amiga.h"
  2. #include <pwd.h>
  3.  
  4. struct passwd _amiga_user = {
  5.   NULL, "",
  6.   AMIGA_UID, AMIGA_GID,
  7.   0, "", NULL,
  8.   NULL, NULL
  9.   };
  10.  
  11. struct passwd *getpwuid(uid_t uid) { return &_amiga_user; }
  12. struct passwd *getpwnam(char *name) { return &_amiga_user; }
  13. char *getlogin(void) { return _amiga_user.pw_name; }
  14.