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  */
17struct 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
28extern int mypwnam_err(const char *, struct mypasswd **);
29extern int mypwuid_err(uid_t, struct mypasswd **);
30extern struct mypasswd *mypwnam(const char *);
31extern struct mypasswd *mypwuid(uid_t);
32extern 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
46