Searched refs:errbuflen (Results 1 – 3 of 3) sorted by relevance
/external/libpcap/ |
D | sockutils.c | 131 void sock_fmterror(const char *caller, int errcode, char *errbuf, int errbuflen) in sock_fmterror() argument 148 pcap_snprintf(errbuf, errbuflen, "%sUnable to get the exact error message", caller); in sock_fmterror() 150 pcap_snprintf(errbuf, errbuflen, "Unable to get the exact error message"); in sock_fmterror() 155 pcap_snprintf(errbuf, errbuflen, "%s%s (code %d)", caller, message, errcode); in sock_fmterror() 157 pcap_snprintf(errbuf, errbuflen, "%s (code %d)", message, errcode); in sock_fmterror() 168 pcap_snprintf(errbuf, errbuflen, "%s%s (code %d)", caller, message, errcode); in sock_fmterror() 170 pcap_snprintf(errbuf, errbuflen, "%s (code %d)", message, errcode); in sock_fmterror() 194 void sock_geterror(const char *caller, char *errbuf, int errbuflen) in sock_geterror() argument 199 sock_fmterror(caller, GetLastError(), errbuf, errbuflen); in sock_geterror() 203 sock_fmterror(caller, errno, errbuf, errbuflen); in sock_geterror() [all …]
|
D | sockutils.h | 196 int sock_init(char *errbuf, int errbuflen); 198 void sock_fmterror(const char *caller, int errcode, char *errbuf, int errbuflen); 202 char *errbuf, int errbuflen); 204 char *errbuf, int errbuflen); 206 char *errbuf, int errbuflen); 207 SOCKET sock_open(struct addrinfo *addrinfo, int server, int nconn, char *errbuf, int errbuflen); 208 int sock_close(SOCKET sock, char *errbuf, int errbuflen); 211 char *errbuf, int errbuflen); 212 …er, int size, char *tempbuf, int *offset, int totsize, int checkonly, char *errbuf, int errbuflen); 213 int sock_discard(SOCKET sock, int size, char *errbuf, int errbuflen); [all …]
|
D | fmtutils.c | 61 pcap_fmt_errmsg_for_errno(char *errbuf, size_t errbuflen, int errnum, in pcap_fmt_errmsg_for_errno() argument 75 pcap_vsnprintf(errbuf, errbuflen, fmt, ap); in pcap_fmt_errmsg_for_errno() 83 if (msglen + 3 > errbuflen) { in pcap_fmt_errmsg_for_errno() 88 errbuflen_remaining = errbuflen - msglen; in pcap_fmt_errmsg_for_errno()
|