1 #include "pwd.h" 2 #include <stdio.h> 3 #include <unixlib.h> 4 5 static struct passwd pw; 6 7 /* This is only called from one relevant place, lock.c. In that context 8 the code is really trying to figure out who owns a directory. Nothing 9 which has anything to do with getpwuid or anything of the sort can help 10 us on VMS (getuid returns only the group part of the UIC). */ 11 struct passwd *getpwuid(unsigned int uid) 12 { 13 return NULL; 14 } 15 16 char *getlogin() 17 { 18 static char login[256]; 19 return cuserid(login); 20 } 21