1 #ifndef _PWD_H 2 #define _PWD_H 3 4 /* Trying to declare uid_t is a mess. We tried #include <sys/types.h>, which 5 only worked on VAX (VMS 6.2, I think), and we tried defining it here 6 which only worked on alpha, I think. In any event, the VMS C library's 7 concept of uid_t is fundamentally broken anyway (getuid() returns only 8 the group part of the UIC), so we are better off with higher-level 9 hooks like get_homedir and SYSTEM_GETCALLER. */ 10 11 #if !defined(__VMS_VER) 12 #define pid_t int 13 #elif __VMS_VER < 70000000 14 #define pid_t int 15 #endif 16 17 struct passwd { 18 char *pw_name; 19 }; 20 21 struct passwd *getpwuid(/* really uid_t, but see above about declaring it */); 22 char *getlogin(void); 23 24 #else 25 #endif /* _PWD_H */ 26