Postfix3.3.1
mypwd.h
[詳解]
1 #ifndef _MYPWNAM_H_INCLUDED_
2 #define _MYPWNAM_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* mypwnam 3h
7 /* SUMMARY
8 /* caching getpwnam_r()/getpwuid_r()
9 /* SYNOPSIS
10 /* #include <mypwd.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15  * External interface.
16  */
17 struct mypasswd {
18  int refcount;
19  char *pw_name;
20  char *pw_passwd;
21  uid_t pw_uid;
22  gid_t pw_gid;
23  char *pw_gecos;
24  char *pw_dir;
25  char *pw_shell;
26 };
27 
28 extern int mypwnam_err(const char *, struct mypasswd **);
29 extern int mypwuid_err(uid_t, struct mypasswd **);
30 extern struct mypasswd *mypwnam(const char *);
31 extern struct mypasswd *mypwuid(uid_t);
32 extern void mypwfree(struct mypasswd *);
33 
34 /* LICENSE
35 /* .ad
36 /* .fi
37 /* The Secure Mailer license must be distributed with this software.
38 /* AUTHOR(S)
39 /* Wietse Venema
40 /* IBM T.J. Watson Research
41 /* P.O. Box 704
42 /* Yorktown Heights, NY 10598, USA
43 /*--*/
44 
45 #endif
char * pw_dir
Definition: mypwd.h:24
char * pw_shell
Definition: mypwd.h:25
Definition: mypwd.h:17
char * pw_name
Definition: mypwd.h:19
struct mypasswd * mypwnam(const char *)
Definition: mypwd.c:229
char * pw_passwd
Definition: mypwd.h:20
gid_t pw_gid
Definition: mypwd.h:22
char * pw_gecos
Definition: mypwd.h:23
uid_t pw_uid
Definition: mypwd.h:21
struct mypasswd * mypwuid(uid_t)
Definition: mypwd.c:165
int mypwnam_err(const char *, struct mypasswd **)
Definition: mypwd.c:242
int refcount
Definition: mypwd.h:18
int mypwuid_err(uid_t, struct mypasswd **)
Definition: mypwd.c:178
void mypwfree(struct mypasswd *)
Definition: mypwd.c:292