Commit graph

38 commits

Author SHA1 Message Date
76e3144436 Ready for Zig v0.15.2. Details in commit message.
The library jumped to Zig v0.15.2 which implies a new build system.
`build.zig` now compiles libipc as both static and dynamic libraries,
and provides an entry point to use `libipc` as-is for Zig applications.

Some examples have been added to help new users play with the library.

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