cosmopolitan icon indicating copy to clipboard operation
cosmopolitan copied to clipboard

Feature Request: Implement named pipes

Open danila-zol opened this issue 10 months ago • 0 comments

Prerequisites

  • [x] I am running the latest code. Mention the version if possible as well.
  • [x] I carefully followed the README.md.
  • [x] I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • [x] I reviewed the Discussions, and have a new and useful enhancement to share.

Feature Description

I am trying to make Kakoune run as an APE binary. I was semi-successful, but it uses named pipes for some synchronizatoon and they seem to be unimplemented (see mknod()). So, I propose to make a polyfill for POSIX named pipes that works on all platforms.

Motivation

Make Kakoune and other programs that utilize named pipes work compiled against cosmopolitan libc.

Possible Implementation

Windows has support for named pipes, so it seems possible to just wrap them with a polyfill function. (refer to MS docs).

danila-zol avatar Mar 02 '25 16:03 danila-zol