xref: /netbsd-src/external/ibm-public/postfix/dist/src/global/mypwd.h (revision a30b880ed60a24c405edba78187a04247f4d9d33)
1 /*	$NetBSD: mypwd.h,v 1.1.1.2 2013/01/02 18:58:59 tron Exp $	*/
2 
3 #ifndef _MYPWNAM_H_INCLUDED_
4 #define _MYPWNAM_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	mypwnam 3h
9 /* SUMMARY
10 /*	caching getpwnam_r()/getpwuid_r()
11 /* SYNOPSIS
12 /*	#include <mypwd.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * External interface.
18   */
19 struct mypasswd {
20     int     refcount;
21     char   *pw_name;
22     char   *pw_passwd;
23     uid_t   pw_uid;
24     gid_t   pw_gid;
25     char   *pw_gecos;
26     char   *pw_dir;
27     char   *pw_shell;
28 };
29 
30 extern int mypwnam_err(const char *, struct mypasswd **);
31 extern int mypwuid_err(uid_t, struct mypasswd **);
32 extern struct mypasswd *mypwnam(const char *);
33 extern struct mypasswd *mypwuid(uid_t);
34 extern void mypwfree(struct mypasswd *);
35 
36 /* LICENSE
37 /* .ad
38 /* .fi
39 /*	The Secure Mailer license must be distributed with this software.
40 /* AUTHOR(S)
41 /*	Wietse Venema
42 /*	IBM T.J. Watson Research
43 /*	P.O. Box 704
44 /*	Yorktown Heights, NY 10598, USA
45 /*--*/
46 
47 #endif
48