1*41fbaed0Stron /* $NetBSD: mbox_open.h,v 1.1.1.1 2009/06/23 10:08:47 tron Exp $ */ 2*41fbaed0Stron 3*41fbaed0Stron #ifndef _MBOX_OPEN_H_INCLUDED_ 4*41fbaed0Stron #define _MBOX_OPEN_H_INCLUDED_ 5*41fbaed0Stron 6*41fbaed0Stron /*++ 7*41fbaed0Stron /* NAME 8*41fbaed0Stron /* mbox_open 3h 9*41fbaed0Stron /* SUMMARY 10*41fbaed0Stron /* mailbox access 11*41fbaed0Stron /* SYNOPSIS 12*41fbaed0Stron /* #include <mbox_open.h> 13*41fbaed0Stron /* DESCRIPTION 14*41fbaed0Stron /* .nf 15*41fbaed0Stron 16*41fbaed0Stron /* 17*41fbaed0Stron * Utility library. 18*41fbaed0Stron */ 19*41fbaed0Stron #include <vstream.h> 20*41fbaed0Stron #include <vstring.h> 21*41fbaed0Stron #include <safe_open.h> 22*41fbaed0Stron 23*41fbaed0Stron /* 24*41fbaed0Stron * Global library. 25*41fbaed0Stron */ 26*41fbaed0Stron #include <dsn_buf.h> 27*41fbaed0Stron 28*41fbaed0Stron /* 29*41fbaed0Stron * External interface. 30*41fbaed0Stron */ 31*41fbaed0Stron typedef struct { 32*41fbaed0Stron char *path; /* saved path, for dot_unlock */ 33*41fbaed0Stron VSTREAM *fp; /* open stream or null */ 34*41fbaed0Stron int locked; /* what locks were set */ 35*41fbaed0Stron } MBOX; 36*41fbaed0Stron extern MBOX *mbox_open(const char *, int, mode_t, struct stat *, uid_t, gid_t, 37*41fbaed0Stron int, const char *, DSN_BUF *); 38*41fbaed0Stron extern void mbox_release(MBOX *); 39*41fbaed0Stron extern const char *mbox_dsn(int, const char *); 40*41fbaed0Stron 41*41fbaed0Stron /* LICENSE 42*41fbaed0Stron /* .ad 43*41fbaed0Stron /* .fi 44*41fbaed0Stron /* The Secure Mailer license must be distributed with this software. 45*41fbaed0Stron /* AUTHOR(S) 46*41fbaed0Stron /* Wietse Venema 47*41fbaed0Stron /* IBM T.J. Watson Research 48*41fbaed0Stron /* P.O. Box 704 49*41fbaed0Stron /* Yorktown Heights, NY 10598, USA 50*41fbaed0Stron /*--*/ 51*41fbaed0Stron 52*41fbaed0Stron #endif 53