tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sys/malloc.h




> On Jul 2, 2019, at 8:37 AM, coypu%sdf.org@localhost wrote:
> 
> I run into serious issues with needing to provide the malloc types from
> this.

Ah, right.

Maybe it's time to do a sweep through the kernel and get rid of the old name usage.  Then we could wrap the compatibility definitions in:

#ifdef __MALLOC_PROVIDE_LEGACY_NAMES
#define malloc(...)
#define free(...)
#define realloc(...)
#endif /* __MALLOC_PROVIDE_LEGACY_NAMES */

...for any stragglers (e.g. code that's directly shared with other BSD systems or whatever).

-- thorpej



Home | Main Index | Thread Index | Old Index