This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> |