commandline.h File Reference

#include <isc/boolean.h>
#include <isc/lang.h>
#include <isc/platform.h>

Go to the source code of this file.

Defines

#define ISC_COMMANDLINE_H   1

Functions

ISC_LANG_BEGINDECLS int isc_commandline_parse (int argc, char *const *argv, const char *options)
 parse command line

Variables

LIBISC_EXTERNAL_DATA int isc_commandline_index
 Index into parent argv vector.
LIBISC_EXTERNAL_DATA int isc_commandline_option
 Character checked for validity.
LIBISC_EXTERNAL_DATA char * isc_commandline_argument
 Argument associated with option.
LIBISC_EXTERNAL_DATA char * isc_commandline_progname
 For printing error messages.
LIBISC_EXTERNAL_DATA isc_boolean_t isc_commandline_errprint
 Print error message.
LIBISC_EXTERNAL_DATA isc_boolean_t isc_commandline_reset
 Reset getopt.


Detailed Description

Definition in file commandline.h.


Define Documentation

#define ISC_COMMANDLINE_H   1

Definition at line 21 of file commandline.h.


Function Documentation

ISC_LANG_BEGINDECLS int isc_commandline_parse ( int  argc,
char *const *  argv,
const char *  options 
)

parse command line

getopt -- Parse argc/argv argument vector.

Definition at line 95 of file commandline.c.

References BADARG, BADOPT, ENDOPT, isc_commandline_argument, isc_commandline_errprint, isc_commandline_index, isc_commandline_option, isc_commandline_progname, isc_commandline_reset, ISC_FALSE, ISC_MSG_ILLEGALOPT, ISC_MSG_OPTNEEDARG, isc_msgcat_get(), ISC_MSGSET_COMMANDLINE, and REQUIRE.

Referenced by main(), parse_args(), parse_command_line(), and pre_parse_args().


Variable Documentation

LIBISC_EXTERNAL_DATA int isc_commandline_index

Index into parent argv vector.

Definition at line 72 of file commandline.c.

Referenced by isc_commandline_parse(), main(), parse_args(), parse_command_line(), and pre_parse_args().

LIBISC_EXTERNAL_DATA int isc_commandline_option

Character checked for validity.

Definition at line 74 of file commandline.c.

Referenced by isc_commandline_parse(), main(), parse_args(), parse_command_line(), and pre_parse_args().

LIBISC_EXTERNAL_DATA char* isc_commandline_argument

Argument associated with option.

Definition at line 76 of file commandline.c.

Referenced by isc_commandline_parse(), main(), parse_args(), parse_command_line(), and pre_parse_args().

LIBISC_EXTERNAL_DATA char* isc_commandline_progname

For printing error messages.

Definition at line 78 of file commandline.c.

Referenced by isc_commandline_parse().

LIBISC_EXTERNAL_DATA isc_boolean_t isc_commandline_errprint

Print error message.

Definition at line 80 of file commandline.c.

Referenced by isc_commandline_parse(), main(), and parse_command_line().

LIBISC_EXTERNAL_DATA isc_boolean_t isc_commandline_reset

Reset getopt.

Definition at line 82 of file commandline.c.

Referenced by isc_commandline_parse(), main(), and pre_parse_args().


Generated on Tue Apr 28 17:41:15 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha