pjd
7eae47c978
Assert input arguments to buf_send() and buf_recv().
...
Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
2014-02-02 19:06:00 +00:00
pjd
79b0db8823
Fix sending empty nvlist.
...
Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
2014-02-02 19:03:52 +00:00
pjd
edb2f6bf13
MFp4 @1189711:
...
Fix resource leaks on nvlist_destroy().
Reported by: Mariusz Zaborski <oshogbo@FreeBSD.org>
MFC after: 3 days
2014-01-03 09:07:03 +00:00
pjd
d2d5bec62c
MFp4 @1189139:
...
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
2013-12-15 22:58:09 +00:00
pjd
1c22c1352a
Fix double free().
...
Reported by: Coverity
Coverity CID: 1130048
2013-11-25 20:45:30 +00:00
pjd
c4ff8d28a9
Bring in libnv library for managing name/value pairs. The following types
...
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
2013-11-12 19:39:14 +00:00