2 * Acess2 OS Userland - insmod
3 * - By John Hodge (thePowersGang)
10 #include <acess/sys.h>
12 #define MODDIR "/Acess/Modules/"
15 void Usage(const char *progname)
17 fprintf(stderr, "Usage: %s <module>\n", progname);
21 int main(int argc, char *argv[])
28 const char *modname = argv[1];
30 char path[strlen(MODDIR)+strlen(modname)+1];
32 strcat(path, modname);
34 int rv = _SysLoadModule(path);
37 fprintf(stderr, "_SysLoadModule(\"%s\"): %s\n", path, strerror(rv));
40 printf("Loaded module '%s'\n", path);