Date: Tue, 17 Feb 2015 17:45:34 +0000 From: "rstone (Ryan Stone)" <phabric-noreply@FreeBSD.org> To: freebsd-net@freebsd.org Subject: [Differential] [Request, 471 lines] D1882: Add macros to make code compile in kernel Message-ID: <differential-rev-PHID-DREV-fpkqvszwrqephgckolyk-req@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
rstone created this revision. rstone added a reviewer: jfvogel. rstone added subscribers: pjd, freebsd-net. REVISION SUMMARY Make it possible to compile libnv in the kernel. Mostly this involves wrapping functions that have a different signature in the kernel and in userland (e.g. malloc()) in a macro that will conditionally expand to the right API depending on whether the code is being compiled for the kernel or not. I have also #ifdef'ed out all of file descriptor-handling code, as well as the unsafe varargs functions. REVISION DETAIL https://reviews.freebsd.org/D1882 AFFECTED FILES lib/libnv/dnv.h lib/libnv/dnvlist.c lib/libnv/nv.h lib/libnv/nv_impl.h lib/libnv/nvlist.c lib/libnv/nvlist_impl.h lib/libnv/nvpair.c lib/libnv/nvpair_impl.h To: rstone, jfvogel Cc: freebsd-net, pjd
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?differential-rev-PHID-DREV-fpkqvszwrqephgckolyk-req>