Go to the documentation of this file.
9#ifndef LLDB_HOST_COMMON_GETOPTINC_H
10#define LLDB_HOST_COMMON_GETOPTINC_H
16#define REPLACE_GETOPT_LONG
18#if defined(_MSC_VER) || defined(__NetBSD__)
19#define REPLACE_GETOPT_LONG_ONLY
22#if defined(REPLACE_GETOPT)
25#define required_argument 1
26#define optional_argument 2
38int getopt(
int argc,
char *
const argv[],
const char *optstring);
53#if defined(REPLACE_GETOPT_LONG)
54int getopt_long(
int argc,
char *
const *argv,
const char *optstring,
55 const struct option *longopts,
int *longindex);
58#if defined(REPLACE_GETOPT_LONG_ONLY)
59int getopt_long_only(
int argc,
char *
const *argv,
const char *optstring,
60 const struct option *longopts,
int *longindex);