summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_receive.c
AgeCommit message (Collapse)Author
2019-02-19 Add skalibs/posixishard.hLaurent Bercot
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.
2019-02-19 Add DragonFly macro; remove nbwaitall and ancilautocloseLaurent Bercot
2017-07-16 Add egidingroups sysdeps, change fd_close() to void and saving errno, ↵Laurent Bercot
propagate changes
2017-04-23 Align ancillary buffers on struct cmsghdr and int boundariesLaurent Bercot
2017-02-17 More types changesLaurent Bercot
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
2015-03-13 Applied Roman Kimov's fixesv2.3.1.3Laurent Bercot
2015-01-06 - Bugfixes in unixmessage/skaclient (short writes / fd leakage / DoS)v2.1.0.0Laurent Bercot
- 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
2014-12-31 Safe wrappers around sendmsg and recvmsg in unixmessage primitivesLaurent Bercot
2014-12-21 So MSG_WAITALL can block even with MSG_DONTWAIT... wtfbsdseriously.Laurent Bercot
Only include MSG_WAITALL when it's tested nb, then. Also test yet another fix for the tryancilautoclose FreeBSD problem.
2014-12-21 So the non-portable MSG_DONTWAIT may alleviate the problem... mightLaurent Bercot
as well use it on architectures that support it.
2014-12-20 Found the BSD unixmessage bug. recvmsg(..., MSG_WAITALL) blocksLaurent Bercot
until buffer full or socket shutdown on BSD, *even if the socket is nonblocking*. So I added an "okwaitall" sysdeps, and won't set MSG_WAITALL on retarded systems.
2014-12-14unixmessage_receive: don't read more than 1 message at a timeLaurent Bercot
2014-12-06Correctly (hopefully) update the main cbuffer in unixmessage_receiver_fillLaurent Bercot
2014-12-06Ditch diuints in unixmessage_receiver_fill, revert recvmsg() interpretationLaurent Bercot
2014-12-06Fix: adjust unixmessage_receiver_fill() math after recvmsg(). </3Laurent Bercot
2014-12-06Rewrite unixmessage_receiver without buffer, only cbufferLaurent Bercot
2014-09-18initial commit with rc for skalibs-2.0.0.0Laurent Bercot