IPC with imsg? OpenBSD and Linux compatibility?

I read the source of Tmux to find out how it works. He saw that he was using imsg for his IPC, which I had not even heard of. I tried to learn more, but it turned out that imsg is rather difficult for Google and I get a lot of results for iMessage.

I found imsg documentation here , so it looks like an OpenBSD library. I started looking for a Linux implementation but can't find anything. It seems that the author of Tmux has written his own level of compatibility. It surprises me, because imsg seems that it would be really useful. Does Linux have a similar C API for this that I just don't know about?

+6
source share
1 answer

A quick view of the assembly script shows the following three files:

Thus, tmux authors send a copy of the OpenBSD imsg library, which is fully implemented in user space.

+8
source

All Articles