12unsigned char buf[128 * 1024];
25 CHECK ((handle =
open (argv[1])) > 1,
"open \"%s\"", argv[1]);
28 for (i = 0; i < size; i++)
int main(int argc UNUSED, char *argv[])
unsigned char buf[128 *1024]
const char * test_name
Reads a 128 kB file into static data and "sorts" the bytes in it, using counting sort,...
#define UNUSED
GCC lets us add "attributes" to functions, function parameters, etc.
int open(const char *file)
int write(int fd, const void *buffer, unsigned size)
void seek(int fd, unsigned position)
int read(int fd, void *buffer, unsigned size)
#define CHECK(SUCCESS,...)
Takes an expression to test for SUCCESS and a message, which may include printf-style arguments.