You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
423 B

/* Code for module to be loaded by test63. */
#include <stdlib.h>
#include <stdio.h>
#include <dlfcn.h>
#include "magic.h"
long cookie = 0;
void exithandler(void);
long modfunction(long v1, long *argcookie, long v2) {
if(v1 != MAGIC4 || v2 != MAGIC5) {
fprintf(stderr, "wrong args to modfunction\n");
exit(1);
}
*argcookie = MAGIC3;
cookie = MAGIC2;
return MAGIC1;
}
void exithandler(void) {
/* OK */
}