12
#include <sys/types.h>
17
#include <installpaths.h>
19
#if TIME_WITH_SYS_TIME
20
# include <sys/time.h>
24
# include <sys/time.h>
34
#include <sys/resource.h>
44
char *rl_parser = MODULESDIR "/libparse.so";
45
char *rl_config = SYSCONFDIR "/rlinetd.conf";
47
#ifdef HAVE_GETOPT_LONG
48
struct option options[] = {
49
{ "help", 0, NULL, 'h' },
50
{ "debug", 0, NULL, 'd' },
51
{ "parser", 1, NULL, 'p' },
52
{ "config", 1, NULL, 'f' },
57
int main(int argc, char **argv) {
62
#ifdef HAVE_GETOPT_LONG
68
#ifdef HAVE_GETOPT_LONG
83
fprintf(stderr, "%s Version %s\n"
84
"Usage %s: [options]\n"
85
"\t-p file\t\talternative parser module (default %s)\n"
86
"\t-f file\t\talternative config file (default %s)\n"
87
"\t-h\t\tthis message\n", PACKAGE, VERSION, argv[0],
88
rl_parser, rl_config);
91
fprintf(stderr, "Unknown option '%c'\n", i);
110
openlog("rlinetd", LOG_NDELAY|LOG_PID, LOG_DAEMON);