xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/listen.h (revision 33881f779a77dce6440bdc44610d94de75bebefe)
1 /*	$NetBSD: listen.h,v 1.3 2020/03/18 19:05:21 christos 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 #include <htable.h>
21 
22  /*
23   * Listener external interface.
24   */
25 extern int unix_listen(const char *, int, int);
26 extern int inet_listen(const char *, int, int);
27 extern int fifo_listen(const char *, int, int);
28 extern int stream_listen(const char *, int, int);
29 extern int unix_dgram_listen(const char *, int);
30 
31 extern int inet_accept(int);
32 extern int unix_accept(int);
33 extern int stream_accept(int);
34 
35 extern int WARN_UNUSED_RESULT recv_pass_attr(int, HTABLE **, int, ssize_t);
36 extern int pass_accept(int);
37 extern int pass_accept_attr(int, HTABLE **);
38 
39 /* LICENSE
40 /* .ad
41 /* .fi
42 /*	The Secure Mailer license must be distributed with this software.
43 /* AUTHOR(S)
44 /*	Wietse Venema
45 /*	IBM T.J. Watson Research
46 /*	P.O. Box 704
47 /*	Yorktown Heights, NY 10598, USA
48 /*
49 /*	Wietse Venema
50 /*	Google, Inc.
51 /*	111 8th Avenue
52 /*	New York, NY 10011, USA
53 /*--*/
54 
55 #endif
56