Skip to content

Instantly share code, notes, and snippets.

// Test case for OP_SPLICE short read issue. Most systems may require the open
// file limit to be raised (4096, which is probably still within the hard limit,
// should be enough).
//
// This tries to read from a file called '20k', which I generated with the
// following:
// `dd if=/dev/random of=20k bs=1k count=20`
#define _GNU_SOURCE
#include <errno.h>