summaryrefslogtreecommitdiff
path: root/libraries/pysendfile/README
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/pysendfile/README')
-rw-r--r--libraries/pysendfile/README9
1 files changed, 9 insertions, 0 deletions
diff --git a/libraries/pysendfile/README b/libraries/pysendfile/README
new file mode 100644
index 0000000000..f4087ba0c1
--- /dev/null
+++ b/libraries/pysendfile/README
@@ -0,0 +1,9 @@
+A Python interface to sendfile(2) syscall.
+
+sendfile(2) is a system call which provides a "zero-copy" way of copying data
+from one file descriptor to another (a socket).
+
+The phrase "zero-copy" refers to the fact that all of the copying of data
+between the two descriptors is done entirely by the kernel, with no
+copying of data into userspace buffers. This is particularly useful
+when sending a file over a socket (e.g. FTP).