Commit Graph

35 Commits (ad5fb32cfb2151aa616ae22c20d1e513d58e2110)

Author SHA1 Message Date
Philippe PITTOLI ad5fb32cfb make dist 2024-06-21 21:33:41 +02:00
Philippe PITTOLI f59eb58e0b Switch: callbacks can be set to "NULL" to keep default operations. 2024-06-18 13:19:30 +02:00
Philippe PITTOLI 45614deacb libipc.h now explains basically all the API. 2024-06-18 00:43:10 +02:00
Philippe PITTOLI 8ffd0faba1 Some documentation in libipc.h, size_t for buffer sizes. 2024-06-17 14:50:26 +02:00
Philippe PITTOLI c0d6404186 Switching now handles callbacks correctly. 2024-06-17 00:14:48 +02:00
Philippe PITTOLI 18a77fa2ef Switching now works with provided bindings. 2024-06-16 16:02:03 +02:00
Philippe PITTOLI 8e889ef242 Event now includes a "newfd" field for new client's fd. 2024-06-15 22:19:31 +02:00
Philippe PITTOLI 31e05ef1c2 Ready for zig v0.13. 2024-06-07 14:49:48 +02:00
Philippe PITTOLI b0a29f5800 Install the archive libipc.a by default. 2024-06-06 20:12:50 +02:00
Philippe PITTOLI 88244a7e64 Change version. 2024-06-06 16:12:23 +02:00
Philippe PITTOLI 13081f3612 Compiles with zig-0.12 2024-06-06 03:39:52 +02:00
Philippe PITTOLI c5aad3535a Makefile: install package config .pc file. 2024-05-31 19:29:55 +02:00
Philippe Pittoli 3190dae731 Allow cross-compilation. 2024-03-21 13:02:02 +01:00
Philippe Pittoli d441b3bf88 Fix all const values marked as "variables". 2024-03-21 02:53:25 +01:00
Philippe Pittoli aa6bc4952e Store current fd to avoid conflict. 2023-07-01 15:35:47 +02:00
Philippe Pittoli 0d74c82e7c Update to new Zig API (0.11.0-dev.3892+0a6cd257b). 2023-07-01 13:43:41 +02:00
Philippe Pittoli 8ca93de58a API change for FS (.lock = .exclusive). 2023-06-03 03:27:56 +02:00
Philippe Pittoli efd7584ce5 Add a way to print sent messages (in comments). 2023-05-27 04:30:20 +02:00
Philippe Pittoli a43c8bd6d3 From std.mem.set to @memset. 2023-05-24 01:33:11 +02:00
Philippe Pittoli 9d4f5b3cab End the connection when reading a wrong message length. 2023-05-15 10:13:01 +02:00
Philippe Pittoli 5807ea51bd BrokenPipe is now considered as a disconnection. 2023-05-15 09:21:02 +02:00
Philippe Pittoli bc4c54f624 Manage disconnection (BrokenPipe) error while sending a message. 2023-05-15 09:12:32 +02:00
Philippe Pittoli 527049ed3d Following the new Zig std. 2023-05-03 03:21:30 +02:00
Philippe Pittoli 2f369adfef Makefile: build documentation. 2023-04-22 15:49:19 +02:00
Philippe Pittoli c345cd605d Add file lock to prevent running a service twice and remove old socket. 2023-02-15 15:12:09 +01:00
Philippe Pittoli 77123ac649 TODO: handle signals through the self-pipe trick. 2023-02-15 11:06:20 +01:00
Philippe Pittoli e181f54bb4 Create the rundir, umask (mkdir + Unix sockets), use fmt.bufPrint. 2023-02-14 19:16:07 +01:00
Philippe Pittoli 2e192aef1b umask: enable group write perms, prevent other (rwx) perms. 2023-02-13 22:09:57 +01:00
Philippe Pittoli b446c98518 Add a makefile (build, install, serve-doc, dist). 2023-02-08 12:05:03 +01:00
Philippe Pittoli 70c062a598 Code style using 'zig fmt'. 2023-02-07 07:47:00 +01:00
Philippe Pittoli 5ca55f0525 TODO: put the error message in a code block. 2023-02-06 14:44:33 +01:00
Philippe Pittoli fc81cbddc8 Add README. 2023-02-06 14:38:58 +01:00
Philippe Pittoli 64506bbee0 Exchange-fd: fix a compilation issue (msghdr_const structure). 2023-02-06 14:15:48 +01:00
Philippe Pittoli c5f6729c71 Add TODO.md. 2023-02-06 10:48:45 +01:00
Philippe Pittoli 721d8842c5 Initial commit. Old commit history: https://git.baguette.netlib.re/Baguette/libipc-old 2023-02-06 10:44:51 +01:00