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