#include <netinet/in.h>
#include <libconfig.h>
+#include <getopt.h>
#define GPATH "loggr"
#define IPATH "logi"
#include "kernel.moc"
+int show_help = 0;
+
+static struct option long_options[] =
+{
+ {"help", no_argument, &show_help, 1},
+ {"node_number", required_argument, 0, 'n'},
+ {"type", required_argument, 0, 't'},
+ {"homedir", required_argument, 0, 'd'},
+ {"progdir", required_argument, 0, 'p'},
+ {"host", required_argument, 0, 'h'},
+ {0, 0, 0, 0}
+};
+
int main( int argc, char **argv )
{
+// int c;
+//while() {
+//c = getopt_long (argc, argv, "n::t::d::p::h:", long_options, &option_index);
+//switch(c) {}
+//}
int i;
for(i=0;i<5;i++) strcpy(myargs[i],"");
for(i=1;i<argc;i++) strcpy(myargs[i-1],argv[i]);