summaryrefslogtreecommitdiffstats
path: root/lib/libnv
Commit message (Collapse)AuthorAgeFilesLines
* 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