summaryrefslogtreecommitdiffstats
path: root/lib/libnv
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Add tests for nvlist_pack/unpackrstone2015-03-011-0/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D1871 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
* | | | Add tests for nvlist_clonerstone2015-03-011-0/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D1870 Reviewed by: pjd, jfv MFC after: 1 month Sponsored by: Sandvine Inc
* | | | Tests of basic nvlist add functionsrstone2015-03-012-1/+2079
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D1869 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
* | | | Revert r279422. My "apply patch and commit" script wasn't addingrstone2015-03-011-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | new files properly. Pointy hat to: rstone
* | | | Tests of basic nvlist add functionsrstone2015-03-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D1869 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
* | | | Make libnv headers includable from C++rstone2015-03-012-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D1868 Reviewed by: jfv, pjd MFC after: 1 month Sponsored by: Sandvine Inc.
* | | | Make gcc happy.pjd2015-01-301-3/+12
| | | | | | | | | | | | | | | | Reported by: bz
* | | | Add missing nvlist_get_parent(3) link.pjd2015-01-301-0/+1
| | | | | | | | | | | | | | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
* | | | Handle empty nvlists correctly.pjd2015-01-301-16/+35
| | | | | | | | | | | | | | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
* | | | Modify nvlist_get_parent() API to take additional cookie argument.pjd2015-01-303-19/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This allow for non-recursive iteration over nested nvlists, as in documented example. Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
* | | | If moving descriptor or binary data to an nvlist fails, we need to close thepjd2015-01-301-5/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | descriptor or free the memory before returning. Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> While here, protect errno, so it won't be overwritted by close(2) or free(3).
* | | | Convert libraries to use LIBADDbapt2014-11-251-2/+1
| |_|/ |/| | | | | | | | While here reduce a bit overlinking
* | | fix typo, properly install a link to nv for nvlist_freev...jmg2014-10-271-1/+1
| | |
* | | Fix problem on big endian systems introduced in r271579 - when we werepjd2014-10-094-40/+40
| | | | | | | | | | | | | | | | | | | | | returning from handling a nested nvlist we were resetting big-endian flag. Reported by: Kuleshov Aleksey @ yandex.ru Tested by: Kuleshov Aleksey @ yandex.ru
* | | Document the new nvlist_get_parent() function.pjd2014-09-251-1/+7
| | | | | | | | | | | | Submitted by: Mariusz Zaborski
* | | Don't use nvl in case of a failure.pjd2014-09-181-1/+2
| | | | | | | | | | | | | | | Reported by: Coverity CID: 1238922
* | | Use non-recursive algorithm for traversing nvlists. This also removespjd2014-09-146-176/+306
| | | | | | | | | | | | | | | | | | the limit on number of nested nvlists. Submitted by: Mariusz Zaborski
* | | Remove the limit on descriptors that can be send in one nvlist.pjd2014-09-141-17/+96
| | | | | | | | | | | | Submitted by: Mariusz Zaborski
* | | Include src.opts.mk after SHLIBDIR has been defined so libnv is installed tongie2014-09-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /lib , not /usr/lib MFC after: 3 days Approved by: rpaulo (mentor) Submitted by: antoine Pointyhat to: me Phabric: D739
* | | Use better type for i.pjd2014-09-031-2/+2
| | |
* | | Declare i.pjd2014-09-031-1/+1
| | | | | | | | | | | | Reported by: sbruno
* | | Fix descriptors leak in case of nvlist_xunpack() failure.pjd2014-09-031-1/+4
| | | | | | | | | | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
* | | Integrate lib/libnv into the build/kyuangie2014-08-058-0/+1429
| |/ |/| | | | | | | | | | | | | | | Rename all of the TAP test applications from <test> to <test>_test to match the convention described in the TestSuite wiki page Phabric: D538 Approved by: jmmv (mentor) Sponsored by: EMC / Isilon Storage Division
* | use .Mt to mark up email addresses consistently (part3)bapt2014-06-231-1/+1
| | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* | Correct a typo.rstone2014-05-171-1/+1
|/ | | | MFC after: 1 week
* libnv: Don't lose big-endian flag when receiving a message.jilles2014-04-011-1/+1
| | | | | | | | | | | | A bug caused the "big endian" flag to be lost when receiving a message. As a result, the bits are interpreted as little endian and an extremely large allocation is attempted. This change fixes ping(8)'s communication to casperd(8) on big-endian architectures. Reported by: Anton Shterenlikht Tested by: danfe
* nv(3) was not in 10.0.bdrewery2014-03-211-2/+2
| | | | | | | It might be MFC'd to stable/10 for 10.1, but for now update the manual to avoid confusion on its availability. Discussed with: pjd
* Assert input arguments to buf_send() and buf_recv().pjd2014-02-021-0/+7
| | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
* Fix sending empty nvlist.pjd2014-02-021-2/+2
| | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
* MFp4 @1189711:pjd2014-01-031-1/+3
| | | | | | | Fix resource leaks on nvlist_destroy(). Reported by: Mariusz Zaborski <oshogbo@FreeBSD.org> MFC after: 3 days
* MFp4 @1189139:pjd2013-12-153-29/+5
| | | | | | | | | | | Get rid of the msg_peek() function, which has a problem. If there was less data in the socket buffer than requested by the caller, the function would busy loop, as select(2) will always return immediately. We can just receive nvlhdr now, because some time ago we splitted receive of data from the receive of descriptors. MFC after: 1 week
* Fix double free().pjd2013-11-251-3/+1
| | | | | Reported by: Coverity Coverity CID: 1130048
* Bring in libnv library for managing name/value pairs. The following typespjd2013-11-1213-0/+5161
are currently supported: - NV_TYPE_NULL - only name, no data; - NV_TYPE_BOOL - boolean (true or false); - NV_TYPE_NUMBER - 64bit unsigned integer; - NV_TYPE_STRING - C string; - NV_TYPE_NVLIST - nested nvlist; - NV_TYPE_DESCRIPTOR - file descriptor; - NV_TYPE_BINARY - binary data. For detailed documentation and examples see nv(3) manual page. Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud