17c478bd9Sstevel@tonic-gate struct ctl_buf { 27c478bd9Sstevel@tonic-gate char * text; 37c478bd9Sstevel@tonic-gate size_t used; 47c478bd9Sstevel@tonic-gate }; 57c478bd9Sstevel@tonic-gate 6*9525b14bSRao Shoaib #define MAX_LINELEN 990 /*%< Like SMTP. */ 77c478bd9Sstevel@tonic-gate #ifndef NO_SOCKADDR_UN 87c478bd9Sstevel@tonic-gate #define MAX_NTOP PATH_MAX 97c478bd9Sstevel@tonic-gate #else 107c478bd9Sstevel@tonic-gate #define MAX_NTOP (sizeof "[255.255.255.255].65535") 117c478bd9Sstevel@tonic-gate #endif 127c478bd9Sstevel@tonic-gate 137c478bd9Sstevel@tonic-gate #define allocated_p(Buf) ((Buf).text != NULL) 147c478bd9Sstevel@tonic-gate #define buffer_init(Buf) ((Buf).text = 0, (Buf.used) = 0) 157c478bd9Sstevel@tonic-gate 167c478bd9Sstevel@tonic-gate #define ctl_bufget __ctl_bufget 177c478bd9Sstevel@tonic-gate #define ctl_bufput __ctl_bufput 187c478bd9Sstevel@tonic-gate #define ctl_sa_ntop __ctl_sa_ntop 197c478bd9Sstevel@tonic-gate #define ctl_sa_copy __ctl_sa_copy 207c478bd9Sstevel@tonic-gate 217c478bd9Sstevel@tonic-gate int ctl_bufget(struct ctl_buf *, ctl_logfunc); 227c478bd9Sstevel@tonic-gate void ctl_bufput(struct ctl_buf *); 237c478bd9Sstevel@tonic-gate const char * ctl_sa_ntop(const struct sockaddr *, char *, size_t, 247c478bd9Sstevel@tonic-gate ctl_logfunc); 257c478bd9Sstevel@tonic-gate void ctl_sa_copy(const struct sockaddr *, 267c478bd9Sstevel@tonic-gate struct sockaddr *); 27*9525b14bSRao Shoaib 28*9525b14bSRao Shoaib /*! \file */ 29