summaryrefslogtreecommitdiffstats
path: root/share/misc
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-10-20 17:54:55 +0000
committerphk <phk@FreeBSD.org>2000-10-20 17:54:55 +0000
commit55e86a81b7d5c5c9b30129c8436b626fd7e5747f (patch)
tree6ad4f5870ab0512eeafbd1dbebf12bb8ea3bcad0 /share/misc
parent02af04a1fbe478ec704796653724f46c704b4b65 (diff)
downloadFreeBSD-src-55e86a81b7d5c5c9b30129c8436b626fd7e5747f.zip
FreeBSD-src-55e86a81b7d5c5c9b30129c8436b626fd7e5747f.tar.gz
Introduce the M_ZERO flag to malloc(9)
Instead of: foo = malloc(sizeof(foo), M_WAIT); bzero(foo, sizeof(foo)); You can now (and please do) use: foo = malloc(sizeof(foo), M_WAIT | M_ZERO); In the future this will enable us to do idle-time pre-zeroing of malloc-space.
Diffstat (limited to 'share/misc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud