From 80f97d0eb306330d46cd3583906043ab50f519dd Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 9 Jun 2017 22:17:24 +0200 Subject: Add readme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- .gitignore | 2 ++ README.md | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8da825a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +/a.out diff --git a/README.md b/README.md new file mode 100644 index 0000000..f8f1eb0 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +Despite unix(7) offering much more features than pipe(7), +it is much faster. There is however two features unix(7) +does not have: there is no guarantee that small writes are +atomic, there is not support for splice(2)/tee(2) which +is extremely efficient, and file descriptor hijacking is +not support. The latter is a double-sided sword: it [the +lack of support] increases security, but other processes' +file cannot be opened and programs must treat /dev/fd/ +paths especially. + +![](graph.svg) + +send(3)/recv(3) is marginally faster than write(3)/read(3). -- cgit v1.2.3-70-g09d2