xref: /titanic_41/usr/src/lib/libresolv2/common/isc/ctl_p.h (revision bce835f2166e1510cc776830775859ba3e49c1ce)
1 struct ctl_buf {
2 	char *			text;
3 	size_t			used;
4 };
5 
6 #define	MAX_LINELEN		990	/*%< Like SMTP. */
7 #ifndef NO_SOCKADDR_UN
8 #define MAX_NTOP			PATH_MAX
9 #else
10 #define	MAX_NTOP		(sizeof "[255.255.255.255].65535")
11 #endif
12 
13 #define	allocated_p(Buf) ((Buf).text != NULL)
14 #define	buffer_init(Buf) ((Buf).text = 0, (Buf.used) = 0)
15 
16 #define	ctl_bufget	__ctl_bufget
17 #define	ctl_bufput	__ctl_bufput
18 #define	ctl_sa_ntop	__ctl_sa_ntop
19 #define	ctl_sa_copy	__ctl_sa_copy
20 
21 int			ctl_bufget(struct ctl_buf *, ctl_logfunc);
22 void			ctl_bufput(struct ctl_buf *);
23 const char *		ctl_sa_ntop(const struct sockaddr *, char *, size_t,
24 				    ctl_logfunc);
25 void			ctl_sa_copy(const struct sockaddr *,
26 				    struct sockaddr *);
27 
28 /*! \file */
29