40 dlloader_load(
char *path,
char *arg)
46 handle = dlopen(path, RTLD_NOW);
48 printf(
"Loading '%s'\n", path);
51 printf(
"dlloader_load: loading failed: %s\n", dlerror());
56 p = dlsym(handle,
"autostart_processes");
58 printf(
"dlloader_load: could not find symbol 'autostart_processes'\n");
64 printf(
"Starting '%s'\n", PROCESS_NAME_STRING(*p));
#define LOADER_OK
No error.
#define NULL
The null pointer.
void process_start(struct process *p, process_data_t data)
Start a process.
#define LOADER_ERR_FMT
Data format error.