dhcpd-pools  2.28
ISC dhcpd lease usage analyser
Macros | Enumerations | Functions | Variables
getopt.c File Reference
#include <config.h>
#include "getopt.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "gettext.h"
#include "getopt_int.h"
Include dependency graph for getopt.c:

Macros

#define _(msgid)   gettext (msgid)
 
#define SWAP_FLAGS(ch1, ch2)
 
#define NONOPTION_P   (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')
 
#define free_option_list(l)
 

Enumerations

enum  { POSIXLY_CORRECT = 1 }
 

Functions

static void exchange (char **argv, struct _getopt_data *d)
 
static const char * _getopt_initialize (int argc _GL_UNUSED, char **argv _GL_UNUSED, const char *optstring, struct _getopt_data *d, int posixly_correct)
 
int _getopt_internal_r (int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, struct _getopt_data *d, int posixly_correct)
 
int _getopt_internal (int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, int posixly_correct)
 
int getopt (int argc, char *const *argv, const char *optstring)
 

Variables

char * optarg
 
int optind = 1
 
int opterr = 1
 
int optopt = '?'
 
static struct _getopt_data getopt_data
 

Macro Definition Documentation

#define _ (   msgid)    gettext (msgid)

Referenced by _getopt_internal_r().

#define free_option_list (   l)
Value:
while (l != NULL) \
{ \
struct option_list *pn = l->next; \
free (l); \
l = pn; \
}
#define NULL
Definition: getopt1.c:36

Referenced by _getopt_internal_r().

#define NONOPTION_P   (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')

Referenced by _getopt_internal_r().

#define SWAP_FLAGS (   ch1,
  ch2 
)

Referenced by exchange().

Enumeration Type Documentation

anonymous enum
Enumerator
POSIXLY_CORRECT 

Function Documentation

static const char* _getopt_initialize ( int argc  _GL_UNUSED,
char **argv  _GL_UNUSED,
const char *  optstring,
struct _getopt_data d,
int  posixly_correct 
)
static

Referenced by _getopt_internal_r().

int _getopt_internal ( int  argc,
char **  argv,
const char *  optstring,
const struct option longopts,
int *  longind,
int  long_only,
int  posixly_correct 
)

Referenced by getopt(), getopt_long(), and getopt_long_only().

Here is the call graph for this function:

int _getopt_internal_r ( int  argc,
char **  argv,
const char *  optstring,
const struct option longopts,
int *  longind,
int  long_only,
struct _getopt_data d,
int  posixly_correct 
)

Referenced by _getopt_internal(), _getopt_long_only_r(), and _getopt_long_r().

Here is the call graph for this function:

static void exchange ( char **  argv,
struct _getopt_data d 
)
static

Referenced by _getopt_internal_r().

int getopt ( int  argc,
char *const *  argv,
const char *  optstring 
)

Here is the call graph for this function:

Variable Documentation

struct _getopt_data getopt_data
static

Referenced by _getopt_internal().

char* optarg
int opterr = 1

Referenced by _getopt_internal().

int optind = 1

Referenced by _getopt_internal().

int optopt = '?'

Referenced by _getopt_internal().