Mercurial > dropbear
comparison dbutil.h @ 277:044bc108b9b3
* Per-IP connection unauthed connection limits
* m_close() exits fatally on failure
* other cleanups
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 08 Mar 2006 12:41:27 +0000 |
parents | c5d3ef11155f |
children | 79bf1023cf11 dc6173e09ff7 ed24dfc44904 1afa503e33f5 |
comparison
equal
deleted
inserted
replaced
266:e37b160c414c | 277:044bc108b9b3 |
---|---|
53 int nonblocking, char ** errstring); | 53 int nonblocking, char ** errstring); |
54 char* getaddrhostname(struct sockaddr_storage * addr); | 54 char* getaddrhostname(struct sockaddr_storage * addr); |
55 int buf_readfile(buffer* buf, const char* filename); | 55 int buf_readfile(buffer* buf, const char* filename); |
56 int buf_getline(buffer * line, FILE * authfile); | 56 int buf_getline(buffer * line, FILE * authfile); |
57 | 57 |
58 int m_close(int fd); | 58 void m_close(int fd); |
59 void * m_malloc(size_t size); | 59 void * m_malloc(size_t size); |
60 void * m_strdup(const char * str); | 60 void * m_strdup(const char * str); |
61 void * m_realloc(void* ptr, size_t size); | 61 void * m_realloc(void* ptr, size_t size); |
62 #define m_free(X) __m_free(X); (X) = NULL; | 62 #define m_free(X) __m_free(X); (X) = NULL; |
63 void __m_free(void* ptr); | 63 void __m_free(void* ptr); |