#define _GNU_SOURCE #include #include #include int main() { int sp[2]; socketpair(AF_UNIX, SOCK_STREAM, 0, sp); for(;;) splice(sp[0], 0, 1, 0, 128 * 1024 * 1024, 0); }