comparison dbutil.h @ 1361:f9f930e1a516 fuzz

add dbmalloc epoch cleanup
author Matt Johnston <matt@ucc.asn.au>
date Sun, 21 May 2017 10:54:11 +0800
parents bbc0a0ee3843
children 5916af64acd4
comparison
equal deleted inserted replaced
1360:16f45f2df38f 1361:f9f930e1a516
28 28
29 #include "includes.h" 29 #include "includes.h"
30 #include "buffer.h" 30 #include "buffer.h"
31 #include "queue.h" 31 #include "queue.h"
32 #include "dbhelpers.h" 32 #include "dbhelpers.h"
33 #include "dbmalloc.h"
33 34
34 #ifndef DISABLE_SYSLOG 35 #ifndef DISABLE_SYSLOG
35 void startsyslog(const char *ident); 36 void startsyslog(const char *ident);
36 #endif 37 #endif
37 38
64 #endif 65 #endif
65 int buf_readfile(buffer* buf, const char* filename); 66 int buf_readfile(buffer* buf, const char* filename);
66 int buf_getline(buffer * line, FILE * authfile); 67 int buf_getline(buffer * line, FILE * authfile);
67 68
68 void m_close(int fd); 69 void m_close(int fd);
69 void * m_malloc(size_t size);
70 void * m_strdup(const char * str);
71 void * m_realloc(void* ptr, size_t size);
72 #define m_free(X) do {free(X); (X) = NULL;} while (0)
73 void setnonblocking(int fd); 70 void setnonblocking(int fd);
74 void disallow_core(void); 71 void disallow_core(void);
75 int m_str_to_uint(const char* str, unsigned int *val); 72 int m_str_to_uint(const char* str, unsigned int *val);
76 73
77 /* Used to force mp_ints to be initialised */ 74 /* Used to force mp_ints to be initialised */