Module Name:    src
Committed By:   christos
Date:           Sat Mar  9 03:52:11 UTC 2019

Modified Files:
        src/include: malloc.h

Log Message:
PR/54050: Ryo ONODERA: Add the jemalloc-specific api prototypes and extern.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/include/malloc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/malloc.h
diff -u src/include/malloc.h:1.3 src/include/malloc.h:1.4
--- src/include/malloc.h:1.3	Tue Oct 25 20:56:03 1994
+++ src/include/malloc.h	Fri Mar  8 22:52:10 2019
@@ -1,3 +1,32 @@
-/*	$NetBSD: malloc.h,v 1.3 1994/10/26 00:56:03 cgd Exp $	*/
+/*	$NetBSD: malloc.h,v 1.4 2019/03/09 03:52:10 christos Exp $	*/
+
+#ifndef _MALLOC_H_
+#define _MALLOC_H_
 
 #include <stdlib.h>
+
+__BEGIN_DECLS
+
+void *mallocx(size_t, int);
+void *rallocx(void *, size_t, int);
+size_t xallocx(void *, size_t, size_t, int);
+size_t sallocx(void *, int);
+void dallocx(void *, int);
+void sdallocx(void *, size_t, int);
+size_t nallocx(size_t, int);
+
+int mallctl(const char *, void *, size_t *, void *, size_t);
+int mallctltomib(const char *, size_t *, size_t *);
+int mallctlbymib(const size_t *, size_t, void *, size_t *, void *, size_t);
+
+void malloc_stats_print(void (*)(void *, const char *), void *, const char *);
+
+size_t malloc_usable_size(const void *);
+
+void (*malloc_message)(void *, const char *);
+
+const char *malloc_conf;
+
+__END_DECLS
+
+#endif /* _MALLOC_H_ */

Reply via email to