]> git.proxmox.com Git - mirror_spl-debian.git/commit
Add kmem_asprintf(), strfree(), strdup(), and minor cleanup.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 11 Jun 2010 21:48:18 +0000 (14:48 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 11 Jun 2010 22:57:25 +0000 (15:57 -0700)
commitb868e22f05fd85be16afee800207f72b8e310d32
treeda050e86b8d79b4de1eac65640aa1506b06d51ea
parentbb1bb2c4c49659b47d65beb8ac24dc2c86989553
Add kmem_asprintf(), strfree(), strdup(), and minor cleanup.

This patch adds three missing Solaris functions: kmem_asprintf(), strfree(),
and strdup().  They are all implemented as a thin layer which just calls
their Linux counterparts.  As part of this an autoconf check for kvasprintf
was added because it does not appear in older kernels.  If the kernel does
not provide it then spl-generic implements it.

Additionally the dead DEBUG_KMEM_UNIMPLEMENTED code was removed to clean
things up and make the kmem.h a little more readable.
config/spl-build.m4
configure
include/sys/kmem.h
module/spl/spl-kmem.c
spl_config.h.in