2 * Copyright (c) 2001-2002 Sendmail, Inc. and its suppliers.
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
9 * $Id: mbdb.h,v 1.6 2002/05/24 20:50:14 gshapiro Exp $
17 #include <sm/limits.h>
20 ** This is an abstract interface for looking up local mail recipients.
23 #define MBDB_MAXNAME 256
24 #define SM_NO_UID ((uid_t)(-1))
25 #define SM_NO_GID ((gid_t)(-1))
31 char mbdb_name
[MBDB_MAXNAME
];
32 char mbdb_fullname
[MBDB_MAXNAME
];
33 char mbdb_homedir
[PATH_MAX
];
34 char mbdb_shell
[PATH_MAX
];
37 extern int sm_mbdb_initialize
__P((char *));
38 extern void sm_mbdb_terminate
__P((void));
39 extern int sm_mbdb_lookup
__P((char *, SM_MBDB_T
*));
40 extern void sm_mbdb_frompw
__P((SM_MBDB_T
*, struct passwd
*));
41 extern void sm_pwfullname
__P((char *, char *, char *, size_t));
43 #endif /* ! SM_MBDB_H */