aboutsummaryrefslogtreecommitdiffstats
path: root/src/libunixonacid/unixmessage_sender_flush.c
Commit message (Collapse)AuthorAgeFilesLines
* Save/restore errno in all safe wrappersLaurent Bercot2026-01-011-1/+3
|
* Huge incompatible changes.Laurent Bercot2021-07-281-1/+1
| | | | | | | | | | | | - Obsolete skalibs/environ.h and skalibs/getpeereid.h removed. - rc4 and md5 removed. - All *_t types renamed to avoid treading on POSIX namespace. - subgetopt() renamed to lgetopt(). - signal functions reworked; skasigaction removed; sig_stack removed - Various functions removed: skaoffsetof(), selfpipe_untrap() - New posixplz function: munmap_void. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Separate and expose ancil_recv_fd/ancil_send_fdLaurent Bercot2020-10-261-1/+1
| | | | | | | The goal is to make late channel creation easy, as opposed to textclient which always creates a new channel at start time. This commit also moves posixishard.h inclusions as late as possible.
* Add skalibs/posixishard.hLaurent Bercot2019-02-191-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | This will break things. It's a known issue. Patches to other packages will come later, to adapt them to the new API. To work around brokenness, there needs to be *two* different headers: 1. one to be used before including system headers, that maximizes visibility by enabling system-dependent feature test macros (that will be tested by system headers) 2. one to be used after including system headers, that performs preprocessor tests and defines. skalibs/nonposix.h is the first one. Previously, there was no second one, and the tests were scattered all over. There was a strnlen declaration in skalibs/posixplz.h (which serves a totally different function: declaring things that should be in POSIX, but *are not*, i.e. working around problems in the standard, instead of problems in systems failing to respect the standard), a build-time sysdep for error.h, #defines for MSG_NOSIGNAL, etc. etc. skalibs/posixishard.h now is the second one, and centralizes all the tests. As a result, the eproto sysdep is unnecessary and has been removed. skalibs/error.h is now a static header, it is not built anymore.
* Add DragonFly macro; remove nbwaitall and ancilautocloseLaurent Bercot2019-02-191-3/+0
|
* Align ancillary buffers on struct cmsghdr and int boundariesLaurent Bercot2017-04-231-3/+10
|
* More superflous headers cleanup and tiny fixesLaurent Bercot2017-03-131-2/+2
|
* More types changesLaurent Bercot2017-02-171-21/+22
| | | | | | | | | New disize Add size_t to the autotypes list Delete redundant and replace-libc files dev_t/ino_t pass Big size_t pass More things missing, still not operational yet
* Fix closecb support wherever a unixmessage may get dropped; add closecb ↵Laurent Bercot2016-04-221-1/+1
| | | | support to unixconnection
* Tentative re-commit of the closecb featureLaurent Bercot2016-02-021-2/+2
|
* Revert " Add support for advanced closing callbacks to ↵Laurent Bercot2016-02-021-2/+2
| | | | | | | | unixmessage_sender_flush." This reverts commit c9c7e241a7b68f67e0cc8a7d3874510dced532d6. (something is segfaulting, reverting until I find the fix)
* Add support for advanced closing callbacks to unixmessage_sender_flush.Laurent Bercot2016-01-181-2/+2
| | | | | (Typically, this will be used for refcounting when broadcasting copies of the same fd.)
* - Bugfix: unixmessage_sender_init didn't initialize b->shortyLaurent Bercot2015-02-191-0/+2
| | | | - byte_zero the ancilbuf's padding to appease valgrind
* Bugfix: unixmessage_put was recording the wrong number of fdsLaurent Bercot2015-01-091-1/+1
|
* - Bugfixes in unixmessage/skaclient (short writes / fd leakage / DoS)v2.1.0.0Laurent Bercot2015-01-061-17/+48
| | | | | | - ABI change: unixmessage protocol header is now 6 bytes (was 8) - API change: skaclient_start(_async) now takes an "options" argument - version increase to 2.1.0.0
* Remove redundant _XPG4_2 in unixmessage_sender_flushLaurent Bercot2015-01-031-4/+0
|
* Safe wrappers around sendmsg and recvmsg in unixmessage primitivesLaurent Bercot2014-12-311-2/+9
|
* So MSG_WAITALL can block even with MSG_DONTWAIT... wtfbsdseriously.Laurent Bercot2014-12-211-0/+3
| | | | | Only include MSG_WAITALL when it's tested nb, then. Also test yet another fix for the tryancilautoclose FreeBSD problem.
* Fix test of sendmsg return value (compare against int...)Laurent Bercot2014-12-141-1/+1
|
* initial commit with rc for skalibs-2.0.0.0Laurent Bercot2014-09-181-0/+82