1 /* $NetBSD: mypwd.h,v 1.1.1.1 2009/06/23 10:08:47 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()/getpwuid() 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 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 46