Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bind_unix, connect_unix: add string.h include | bptato | 2024-04-12 | 1 | -0/+1 |
| | | | | | it's needed for memcpy; it usually compiles without the include, but that's not guaranteed. | ||||
* | Add capsicum support | bptato | 2024-03-28 | 1 | -0/+16 |
| | | | | | | | | | | | | | It's the sandboxing system of FreeBSD. Quite pleasant to work with. (Just trying to figure out the basics with this one before tackling the abomination that is seccomp.) Indeed, the only non-trivial part was getting newSelector to work with Capsicum. Long story short it doesn't, so we use an ugly pointer cast + assignment. But even that is stdlib's "fault", not Capsicum's. This also gets rid of that ugly SocketPath global. | ||||
* | socketstream, serversocket: portable bindUnix | bptato | 2023-12-14 | 1 | -0/+14 |
reimplementing it portably in Nim seems incredibly annoying, so we just use C |