2 * Acess2 OS Userland - insmod
3 * - By John Hodge (thePowersGang)
11 #include <acess/sys.h>
13 #define MODDIR "/Acess/Modules/"
16 void Usage(const char *progname)
18 fprintf(stderr, "Usage: %s <module>\n", progname);
22 int main(int argc, char *argv[])
29 const char *modname = argv[1];
31 char path[strlen(MODDIR)+strlen(modname)+1];
33 strcat(path, modname);
35 int rv = _SysLoadModule(path);
38 fprintf(stderr, "_SysLoadModule(\"%s\"): %s\n", path, strerror(rv));
41 printf("Loaded module '%s'\n", path);