K 10 svn:author V 4 ngie K 8 svn:date V 27 2016-01-03T07:30:12.623797Z K 7 svn:log V 1291 MFC r282251,r282283,r282346,r282347,r282349,r282350,r283156,r283158: r282251 (by oshogbo): Remove recursion from descriptor-related functions. r282283 (by oshogbo): Mark local function as static as a result of removing recursion. r282346 (by oshogbo): Approved, opr?cz u?ycie RESTORE_ERRNO() do ustawiania errno. Change the nvlist_recv() function to take additional argument that specifies flags expected on the received nvlist. Receiving a nvlist with different set of flags than the ones we expect might lead to undefined behaviour, which might be potentially dangerous. Update consumers of this and related functions and update the tests. Update man page for nvlist_unpack, nvlist_recv, nvlist_xfer, cap_recv_nvlist and cap_xfer_nvlist. r282347 (by oshogbo): Introduce the NV_FLAG_NO_UNIQUE flag. When set, it allows to store multiple values using the same key in a nvlist. Obtained from: WHEEL Systems (http://www.wheelsystems.com) Update man page. r282349 (by oshogbo): Remove duplicated code using macro template for the nvlist_add_.* functions. r282350 (by oshogbo): nv_malloc can fail in userland. Add check to prevent a NULL pointer dereference. Pointed out by: mjg r283156 (by oshogbo): Always use the nv_free function. r283158 (by oshogbo): Fix memory leak. END