#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
#include "mysqlfs-plugin.h"
#include <mysqlfs.h>
Include dependency graph for check-xor-filt.c:

Go to the source code of this file.
Functions | |
| unsigned char | checksum (const unsigned char *x, size_t size) |
| The most trivial 8-bit checksum known to mankind. | |
| int | main (int argc, char **argv) |
| Test program to check that the dummy loads; based on the example in dlopen() man page. | |
Many of the build-up tests that this testcase does are previously verified by check-xor.c, so they are compressed into one-line maintenance nightmares to reduce the on-screen realestate. I'm not a fan typically of compressed onscreen realestate (which is why I favour my coding style, but that's a holywar): compressed code is more difficult to maintain, newer engineers and gurus alike; this is a testcase.
Definition in file check-xor-filt.c.
| unsigned char checksum | ( | const unsigned char * | x, | |
| size_t | size | |||
| ) |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Test program to check that the dummy loads; based on the example in dlopen() man page.
Definition at line 44 of file check-xor-filt.c.
References DATA_BLOCK_SIZE, and VERSION.
1.4.7