aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2001-08-13 22:54:42 +0000
committerJeff Johnston <jjohnstn@redhat.com>2001-08-13 22:54:42 +0000
commit52c80be81471afa563671b5b78e8de702faa54d6 (patch)
tree101fce2a52741fa60a42eb714b12fd349467c296 /newlib
parent29a075260a1640f3851f01ec451a4b4563d9ba43 (diff)
downloadnewlib-52c80be81471afa563671b5b78e8de702faa54d6.zip
newlib-52c80be81471afa563671b5b78e8de702faa54d6.tar.gz
newlib-52c80be81471afa563671b5b78e8de702faa54d6.tar.bz2
2001-08-13 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New macro constants for mallopt options. (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/include/malloc.h14
2 files changed, 20 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 4b7c859..53991e0 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-13 Jeff Johnston <jjohnstn@redhat.com>
+
+ * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
+ macro constants for mallopt options.
+ (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.
+
2001-08-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
diff --git a/newlib/libc/include/malloc.h b/newlib/libc/include/malloc.h
index 90f877f..5ccdda6 100644
--- a/newlib/libc/include/malloc.h
+++ b/newlib/libc/include/malloc.h
@@ -75,6 +75,20 @@ extern int _malloc_trim_r _PARAMS ((struct _reent *, size_t));
extern _VOID mstats _PARAMS ((char *));
extern _VOID _mstats_r _PARAMS ((struct _reent *, char *));
+/* SVID2/XPG mallopt options */
+
+#define M_MXFAST 1 /* UNUSED in this malloc */
+#define M_NLBLKS 2 /* UNUSED in this malloc */
+#define M_GRAIN 3 /* UNUSED in this malloc */
+#define M_KEEP 4 /* UNUSED in this malloc */
+
+/* mallopt options that actually do something */
+
+#define M_TRIM_THRESHOLD -1
+#define M_TOP_PAD -2
+#define M_MMAP_THRESHOLD -3
+#define M_MMAP_MAX -4
+
#ifndef __CYGWIN__
/* Some systems provide this, so do too for compatibility. */
extern void cfree _PARAMS ((_PTR));