1 /*	$NetBSD: listen.h,v 1.1.1.1 2009/06/23 10:09:00 tron Exp $	*/
2 
3 #ifndef _LISTEN_H_INCLUDED_
4 #define _LISTEN_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	listen 3h
9 /* SUMMARY
10 /*	listener interface file
11 /* SYNOPSIS
12 /*	#include <listen.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * Utility library.
18   */
19 #include <iostuff.h>
20 
21  /*
22   * Listener external interface.
23   */
24 extern int unix_listen(const char *, int, int);
25 extern int inet_listen(const char *, int, int);
26 extern int fifo_listen(const char *, int, int);
27 extern int stream_listen(const char *, int, int);
28 
29 #define upass_listen(path, mode, log) unix_listen((path), (mode), (log))
30 
31 extern int inet_accept(int);
32 extern int unix_accept(int);
33 extern int stream_accept(int);
34 extern int upass_accept(int);
35 
36 /* LICENSE
37 /* .ad
38 /* .fi
39 /*	The Secure Mailer license must be distributed with this software.
40 /* AUTHOR(S)
41 /*	Wietse Venema
42 /*	IBM T.J. Watson Research
43 /*	P.O. Box 704
44 /*	Yorktown Heights, NY 10598, USA
45 /*--*/
46 
47 #endif
48