File: pwd.h

package info (click to toggle)
gcvs 1.0final-12
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 12,248 kB
  • ctags: 10,631
  • sloc: ansic: 71,709; cpp: 39,780; sh: 18,434; makefile: 1,915; yacc: 1,299; tcl: 1,283; perl: 910; lex: 249; csh: 185; lisp: 7
file content (21 lines) | stat: -rwxr-xr-x 640 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _PWD_H
#define _PWD_H

/* Trying to declare uid_t is a mess.  We tried #include <sys/types.h>, which
   only worked on VAX (VMS 6.2, I think), and we tried defining it here
   which only worked on alpha, I think.  In any event, the VMS C library's
   concept of uid_t is fundamentally broken anyway (getuid() returns only
   the group part of the UIC), so we are better off with higher-level
   hooks like get_homedir and SYSTEM_GETCALLER.  */

#define pid_t int

struct passwd {
   char  *pw_name;
};

struct passwd *getpwuid(/* really uid_t, but see above about declaring it */);
char *getlogin(void); 

#else
#endif /* _PWD_H */