Add BIND 9.2.4rc7.
[dragonfly.git] / contrib / bind-9.2.4rc7 / lib / bind / isc / ctl_p.h
blob42aade7d669d49f4f95dd8fc5b915477502f8b43
1 struct ctl_buf {
2 char * text;
3 size_t used;
4 };
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
13 #define allocated_p(Buf) ((Buf).text != NULL)
14 #define buffer_init(Buf) ((Buf).text = 0, (Buf.used) = 0)
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
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 *);