Detect accept4() on specific versions of various platforms#294
Conversation
Signed-off-by: Andy Pan <i@andypan.me>
|
@madolson @zuiderkwast Got a minute for this? |
Signed-off-by: Andy Pan <i@andypan.me>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #294 +/- ##
===========================================
Coverage ? 68.41%
===========================================
Files ? 108
Lines ? 61562
Branches ? 0
===========================================
Hits ? 42117
Misses ? 19445
Partials ? 0 |
Signed-off-by: Andy Pan <i@andypan.me>
zuiderkwast
left a comment
There was a problem hiding this comment.
Thanks!
Can you update the PR description to mention the checks that couldn't have worked before without sys/params.h? I mean for which systems we never used accept4 but we do after this PR.
Just curios: Is MacOS included in any of these BSD checks?
Done.
No, macOS doesn't have system call |
|
Thanks! First I failed to see the point of the changes (I saw just adding |
…#294) This PR has mainly done three things: 1. Enable `accept4()` on DragonFlyBSD 2. Fix the failures of determining the presence of `accept4()` due to the missing <sys/param.h> on two OSs: NetBSD, OpenBSD 3. Drop the support of FreeBSD < 10.0 for `valkey` ### References - [param.h in DragonFlyBSD](https://github.com/DragonFlyBSD/DragonFlyBSD/blob/7485684fa5c3fadb6c7a1da0d8bb6ea5da4e0f2f/sys/sys/param.h#L129-L257) - [param.h in FreeBSD](https://github.com/freebsd/freebsd-src/blob/main/sys/sys/param.h#L46-L76) - [param.h in NetBSD](https://github.com/NetBSD/src/blob/b5f8d2f930b7ef226d4dc1b4f7017e998c0e5cde/sys/sys/param.h#L53-L70) - [param.h in OpenBSD](https://github.com/openbsd/src/blob/d9c286e032a7cee9baaecdd54eb0d43f658ae696/sys/sys/param.h#L40-L45) --------- Signed-off-by: Andy Pan <i@andypan.me> Signed-off-by: Sher Sun <sher.sun@huawei.com>
Squashed 'deps/libvalkey/' changes from 45c2ed15c..cb5ff91aa cb5ff91aa Release 0.5.0 cd3d5d8ff Fix potential heap-buffer-overflow in cluster error reply parsing (#305) 32c7c5d09 Refactor error handling to use valkeySetErrorFromErrno and valkeyClearError (#303) e4b548b32 Remove support for external dict while still supporting external sds (#302) 61b27c453 Try all addresses from DNS before failing to connect (#300) 8aff94fab RDMA: Fix lost EPOLLIN/POLLIN events b9285b5fc Optimize read buffer compaction and reduce copying (#294) 0fa809877 Additional overflow protection for MAP/ATTR b26c56e87 Fix gcc warnings (#287) git-subtree-dir: deps/libvalkey git-subtree-split: cb5ff91aa5816807f0a549bd2b36e611253dfeb6 Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Squashed 'deps/libvalkey/' changes from 45c2ed15c..cb5ff91aa cb5ff91aa Release 0.5.0 cd3d5d8ff Fix potential heap-buffer-overflow in cluster error reply parsing (#305) 32c7c5d09 Refactor error handling to use valkeySetErrorFromErrno and valkeyClearError (#303) e4b548b32 Remove support for external dict while still supporting external sds (#302) 61b27c453 Try all addresses from DNS before failing to connect (#300) 8aff94fab RDMA: Fix lost EPOLLIN/POLLIN events b9285b5fc Optimize read buffer compaction and reduce copying (#294) 0fa809877 Additional overflow protection for MAP/ATTR b26c56e87 Fix gcc warnings (#287) git-subtree-dir: deps/libvalkey git-subtree-split: cb5ff91aa5816807f0a549bd2b36e611253dfeb6 Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
This PR has mainly done three things:
accept4()on DragonFlyBSD 4.3+accept4()due to the missing <sys/param.h> on two OSs: NetBSD, OpenBSDvalkeyReferences