summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin/sendmail/include/sm/mbdb.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-09-11 18:55:53 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-09-11 18:55:53 +0000
commit4643c616c81fb1198b29c3eaff4d697392c8dc4b (patch)
tree4afa26a5f1a2ef0e47061eb08b6d339bc7e8dad1 /gnu/usr.sbin/sendmail/include/sm/mbdb.h
parent8afe339a41c898cc4a2d42d03d115b16f2053bad (diff)
sendmail 8.12.0 with $Id tags converted to $Sendmail
Diffstat (limited to 'gnu/usr.sbin/sendmail/include/sm/mbdb.h')
-rw-r--r--gnu/usr.sbin/sendmail/include/sm/mbdb.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/usr.sbin/sendmail/include/sm/mbdb.h b/gnu/usr.sbin/sendmail/include/sm/mbdb.h
new file mode 100644
index 00000000000..f25d85c713d
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/include/sm/mbdb.h
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) 2001 Sendmail, Inc. and its suppliers.
+ * All rights reserved.
+ *
+ * By using this file, you agree to the terms and conditions set
+ * forth in the LICENSE file which can be found at the top level of
+ * the sendmail distribution.
+ *
+ * $Sendmail: mbdb.h,v 1.4 2001/03/08 03:23:08 ca Exp $
+ */
+
+#ifndef SM_MBDB_H
+# define SM_MBDB_H
+
+#include <pwd.h>
+#include <sm/types.h>
+#include <sm/limits.h>
+
+/*
+** This is an abstract interface for looking up local mail recipients.
+*/
+
+#define MBDB_MAXNAME 256
+#define SM_NO_UID ((uid_t)(-1))
+#define SM_NO_GID ((gid_t)(-1))
+
+typedef struct
+{
+ uid_t mbdb_uid;
+ gid_t mbdb_gid;
+ char mbdb_name[MBDB_MAXNAME];
+ char mbdb_fullname[MBDB_MAXNAME];
+ char mbdb_homedir[PATH_MAX + 1];
+ char mbdb_shell[PATH_MAX + 1];
+} SM_MBDB_T;
+
+extern int sm_mbdb_initialize __P((char *));
+extern void sm_mbdb_terminate __P((void));
+extern int sm_mbdb_lookup __P((char *, SM_MBDB_T *));
+extern void sm_mbdb_frompw __P((SM_MBDB_T *, struct passwd *));
+extern void sm_pwfullname __P((char *, char *, char *, size_t));
+
+#endif /* ! SM_MBDB_H */