diff options
author | adrian <adrian@FreeBSD.org> | 2015-05-25 19:18:16 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2015-05-25 19:18:16 +0000 |
commit | daa4dc6942d7e419a8c535035abeee867ccd6487 (patch) | |
tree | 54f39f6faf7793d8e0ca3482eb053c1b73bd2cfe /contrib/llvm/lib/Analysis/LoopInfo.cpp | |
parent | 8e50f6e398c45b4abb0daff911d2655e7547e491 (diff) | |
download | FreeBSD-src-daa4dc6942d7e419a8c535035abeee867ccd6487.zip FreeBSD-src-daa4dc6942d7e419a8c535035abeee867ccd6487.tar.gz |
Convert malloc/free back to #define's, as part of OS portability work.
DragonflyBSD uses the FreeBSD wireless stack and drivers. Their malloc()
API is named differently, so they don't have userland/kernel symbol
clashes like we do (think libuinet.)
So, to make it easier for them and to port to other BSDs/other operating
systems, start hiding the malloc specific bits behind defines in
ieee80211_freebsd.h.
DragonflyBSD can now put these portability defines in their local
ieee80211_dragonflybsd.h.
This should be a great big no-op for everyone running wifi.
TODO:
* kill M_WAITOK - some platforms just don't want you to use it
* .. and/or handle it returning NULL rather than waiting forever.
* MALLOC_DEFINE() ?
* Migrate the well-known malloc names (eg M_TEMP) to net80211
namespace defines.
Diffstat (limited to 'contrib/llvm/lib/Analysis/LoopInfo.cpp')
0 files changed, 0 insertions, 0 deletions