Marcel Moolenaar 9dfba391d6 Make the malloc(3) family of functions weak and make their non-weak
implementations visible for use by applications. The functions $F that
are now weak symbols are:
	allocm, calloc, dallocm, free, malloc, malloc_usable_size,
	nallocm, posix_memalign, rallocm, realloc, sallocm

The non-weak implementations of $F are exported as __$F.

Submitted by:	stevek@juniper.net
Reviewed by:	jasone@, kib@
Approved by:	jasone@ (jemalloc)
Obtained from:	juniper Networks, Inc
2013-05-25 18:59:11 +00:00

47 lines
548 B
Plaintext

/*
* $FreeBSD$
*/
FBSD_1.0 {
_malloc_options;
_malloc_message;
malloc;
posix_memalign;
calloc;
realloc;
free;
malloc_usable_size;
};
FBSD_1.3 {
malloc_conf;
malloc_message;
aligned_alloc;
malloc_stats_print;
mallctl;
mallctlnametomib;
mallctlbymib;
allocm;
rallocm;
sallocm;
dallocm;
nallocm;
__malloc;
__calloc;
__realloc;
__free;
__posix_memalign;
__malloc_usable_size;
__allocm;
__rallocm;
__sallocm;
__dallocm;
__nallocm;
};
FBSDprivate_1.0 {
_malloc_thread_cleanup;
_malloc_prefork;
_malloc_postfork;
};