summaryrefslogtreecommitdiffstats
path: root/lib/libutil/imsg-buffer.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* check for NULL in ibuf_free().benno2015-12-291-1/+3
| | | | | ok and slight improvement, mmcco@ ok semarie@ and encouragement tedu@ krw@
* Use memset instead of bzero for better portability.nicm2015-07-121-5/+5
| | | | ok gilles claudio doug
* bzero cmsgbuf before using it, silences valgrind warnings.brynet2015-07-031-1/+2
| | | | henning@ "sure"
* return ERANGE instead of ENOMEM, so callers can differentiate real oombenno2014-12-251-2/+2
| | | | | | from this case where we have a static buffer and cant realloc. ok phessler, claudio, reyk
* limits.h rather than sys/param.hderaadt2014-06-301-2/+3
|
* original bug diagnosed by sthen: automatic retry in msgbuf_write onbenno2013-11-131-3/+3
| | | | | | | | | | | EAGAIN causes spinning. fix from claudio: "Let msgbuf_write return -1 with errno EAGAIN. The users then must check if this was the case and readd the event or poll again. The current handling in the imsg code is wrong for sure." ok gilles
* in imsg_read() avoid calling recvmsg() if we detect that we will be shortgilles2012-06-021-15/+17
| | | | | | | | | | | | | on descriptors, this can be achieved thanks to the new getdtablecount() system call. application may provide a reserve count to ensure that the recvmsg() call is not called when they don't have enough descriptors to work properly. change the API so that transient errors that can be retried immediately are retried within the function right away, whereas transient errors for which the application may want to take action will set errno to EAGAIN. ok deraadt@ and henning@
* Move imsg into libutil and add a man page.nicm2010-05-261-0/+303
Minor bump for libutil. Previous versions of this diff and man page looked at by various people. "you should just commit" deraadt