xdasd_cmdline.c File Reference

Command line parser. More...

#include "xdasd_cmdline.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Defines

#define SVNREV   "0"
#define XDASD_VERSION   PACKAGE_VERSION "." SVNREV
#define XDASD_CFGPATH   ETCDIR
#define XDASD_FLTPATH   ETCDIR
#define XDASD_LOGPATH   LSTDIR "/log"
#define XDASD_MCFPATH   LSTDIR "/log"
#define XDASD_RUNPATH   LSTDIR "/run/xdasd"
#define XDASD_CFGFNAME   "xdasd.conf"
#define XDASD_FLTFNAME   "xdasd.filter"
#define XDASD_LOGFNAME   "xdasd.log"
#define XDASD_MDIRNAME   "xdasd.mcache"
#define XDASD_DEF_CFGFILE   XDASD_CFGPATH "/" XDASD_CFGFNAME
#define XDASD_DEF_FLTFILE   XDASD_FLTPATH "/" XDASD_FLTFNAME
#define XDASD_DEF_LOGFILE   XDASD_LOGPATH "/" XDASD_LOGFNAME
#define XDASD_DEF_MSGFDIR   XDASD_MCFPATH "/" XDASD_MDIRNAME
#define XDASD_DEF_RUNPATH   XDASD_RUNPATH
#define strnenv(d, s, n)   ((strncpy((d),(s),(n)-1)[(n)-1] = 0),(d))
#define XDASD_USAGE_STRING

Functions

static void xdasd_print_usage (void)
 Displays available command line options of SLPD.
int xdasd_parse_cmdline (int argc, char **argv, XDASDCmdLine *cmdline)
 Parse argc/argv from main into an internal structure.


Detailed Description

Command line parser.

Author:
John Calcote (jcalcote@novell.com)
Attention:
Please submit patches to http://openxdas.sourceforge.net

Definition in file xdasd_cmdline.c.


Define Documentation

#define SVNREV   "0"

Definition at line 54 of file xdasd_cmdline.c.


Generated on Thu Aug 20 22:33:07 2009 for OpenXDAS by  doxygen 1.5.6