2011-09-20 11:30:00 +02:00
|
|
|
#include <stdlib.h>
|
2011-09-20 22:37:47 +02:00
|
|
|
#include <string.h>
|
2011-09-20 11:30:00 +02:00
|
|
|
|
2011-09-20 10:31:35 +02:00
|
|
|
#include "abuse.h"
|
|
|
|
|
2011-09-20 22:37:47 +02:00
|
|
|
static int xmp_read(void *buf, u_int32_t len, u_int64_t offset)
|
2011-09-20 10:31:35 +02:00
|
|
|
{
|
2011-09-20 22:37:47 +02:00
|
|
|
(void) offset;
|
|
|
|
|
|
|
|
memset(buf, 0, len);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2011-09-20 12:32:13 +02:00
|
|
|
|
2011-09-20 22:37:47 +02:00
|
|
|
static struct abuse_operations aop = {
|
|
|
|
.read = xmp_read,
|
|
|
|
.size = 1024,
|
|
|
|
};
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
return abuse_main(argc, argv, &aop, NULL);
|
2011-09-20 10:31:35 +02:00
|
|
|
}
|