Mixes for Privacy and Anonymity in the Internet
|
Macros | |
#define | POPT_ERROR_NOARG -10 |
#define | POPT_ERROR_BADOPT -11 |
#define | POPT_ERROR_OPTSTOODEEP -13 |
#define | POPT_ERROR_BADQUOTE -15 /* only from poptParseArgString() */ |
#define | POPT_ERROR_ERRNO -16 /* only from poptParseArgString() */ |
Functions | |
static char * | strerror (int errno) |
void | poptSetExecPath (poptContext con, const char *path, int allowAbsolute) |
static void | invokeCallbacks (poptContext con, const struct poptOption *table, int post) |
poptContext | poptGetContext (const char *name, int argc, const char **argv, const struct poptOption *options, int flags) |
static void | cleanOSE (struct optionStackEntry *os) |
void | poptResetContext (poptContext con) |
static int | handleExec (poptContext con, char *longName, char shortName) |
static int | handleAlias (poptContext con, const char *longName, char shortName, const char *nextCharArg) |
static const struct poptOption * | findOption (const struct poptOption *table, const char *longName, char shortName, poptCallbackType *callback, const void **callbackData, int singleDash) |
static const char * | findNextArg (poptContext con, unsigned argx, int deletE) |
static const char * | expandNextArg (poptContext con, const char *s) |
static void | poptStripArg (poptContext con, int which) |
int | poptGetNextOpt (poptContext con) |
const char * | poptGetOptArg (poptContext con) |
const char * | poptGetArg (poptContext con) |
const char * | poptPeekArg (poptContext con) |
const char ** | poptGetArgs (poptContext con) |
void | poptFreeContext (poptContext con) |
int | poptAddAlias (poptContext con, struct poptAlias newAlias, int flags) |
const char * | poptBadOption (poptContext con, int flags) |
const char * | poptStrerror (const int error) |
int | poptStuffArgs (poptContext con, const char **argv) |
const char * | poptGetInvocationName (poptContext con) |
int | poptStrippedArgv (poptContext con, int argc, char **argv) |
#define POPT_ERROR_BADOPT -11 |
#define POPT_ERROR_BADQUOTE -15 /* only from poptParseArgString() */ |
#define POPT_ERROR_ERRNO -16 /* only from poptParseArgString() */ |
#define POPT_ERROR_NOARG -10 |
#define POPT_ERROR_OPTSTOODEEP -13 |
|
static |
References optionStackEntry::argb, optionStackEntry::argv, optionStackEntry::nextArg, PBM_FREE, and xfree.
Referenced by poptGetNextOpt(), and poptResetContext().
|
static |
References findNextArg().
Referenced by poptGetNextOpt().
|
static |
References optionStackEntry::argb, optionStackEntry::argc, optionStackEntry::argv, optionStackEntry::next, poptContext_s::optionStack, poptContext_s::os, PBM_ALLOC, PBM_ISSET, and PBM_SET.
Referenced by expandNextArg().
|
static |
|
static |
References poptContext_s::aliases, optionStackEntry::argb, poptAlias::argc, optionStackEntry::argc, poptAlias::argv, optionStackEntry::argv, optionStackEntry::currAlias, poptOption::longName, poptAlias::longName, optionStackEntry::next, optionStackEntry::nextArg, optionStackEntry::nextCharArg, poptContext_s::numAliases, poptContext_s::optionStack, poptContext_s::os, POPT_ERROR_OPTSTOODEEP, POPT_OPTION_DEPTH, poptDupArgv(), poptOption::shortName, poptAlias::shortName, and optionStackEntry::stuffed.
Referenced by poptGetNextOpt().
|
static |
References poptContext_s::doExec, poptContext_s::execs, poptContext_s::finalArgv, poptContext_s::finalArgvAlloced, poptContext_s::finalArgvCount, poptContext_s::flags, poptOption::longName, execEntry::longName, poptContext_s::numExecs, POPT_CONTEXT_NO_EXEC, poptOption::shortName, and execEntry::shortName.
Referenced by poptGetNextOpt().
|
static |
References poptOption::arg, poptOption::argInfo, poptOption::descrip, poptOption::longName, POPT_ARG_CALLBACK, POPT_ARG_INCLUDE_TABLE, POPT_ARG_MASK, POPT_CALLBACK_REASON_POST, POPT_CALLBACK_REASON_PRE, POPT_CBFLAG_POST, POPT_CBFLAG_PRE, and poptOption::shortName.
Referenced by poptGetContext(), and poptGetNextOpt().
int poptAddAlias | ( | poptContext | con, |
struct poptAlias | newAlias, | ||
int | flags | ||
) |
const char* poptBadOption | ( | poptContext | con, |
int | flags | ||
) |
void poptFreeContext | ( | poptContext | con | ) |
References poptContext_s::aliases, poptContext_s::appName, poptContext_s::arg_strip, optionStackEntry::argb, poptAlias::argv, poptContext_s::execPath, poptContext_s::execs, poptContext_s::finalArgv, poptContext_s::leftovers, poptAlias::longName, execEntry::longName, poptContext_s::numAliases, poptContext_s::numExecs, poptContext_s::os, poptContext_s::otherHelp, PBM_FREE, poptResetContext(), execEntry::script, and xfree.
Referenced by CACmdLnOptions::parse().
const char* poptGetArg | ( | poptContext | con | ) |
References poptContext_s::leftovers, poptContext_s::nextLeftover, and poptContext_s::numLeftovers.
const char** poptGetArgs | ( | poptContext | con | ) |
References poptContext_s::leftovers, poptContext_s::nextLeftover, and poptContext_s::numLeftovers.
poptContext poptGetContext | ( | const char * | name, |
int | argc, | ||
const char ** | argv, | ||
const struct poptOption * | options, | ||
int | flags | ||
) |
References poptContext_s::aliases, poptContext_s::appName, poptContext_s::arg_strip, optionStackEntry::argb, optionStackEntry::argc, optionStackEntry::argv, poptContext_s::execAbsolute, poptContext_s::execs, poptContext_s::finalArgv, poptContext_s::finalArgvAlloced, poptContext_s::flags, flags, invokeCallbacks(), poptContext_s::leftovers, optionStackEntry::next, poptContext_s::numAliases, poptContext_s::numExecs, poptContext_s::options, poptContext_s::optionStack, poptContext_s::os, POPT_CONTEXT_KEEP_FIRST, and POPT_CONTEXT_POSIXMEHARDER.
Referenced by CACmdLnOptions::parse().
const char* poptGetInvocationName | ( | poptContext | con | ) |
References optionStackEntry::argv, and poptContext_s::os.
int poptGetNextOpt | ( | poptContext | con | ) |
References alloca(), poptOption::arg, optionStackEntry::argb, optionStackEntry::argc, poptOption::argInfo, optionStackEntry::argv, cleanOSE(), expandNextArg(), poptContext_s::finalArgv, poptContext_s::finalArgvAlloced, poptContext_s::finalArgvCount, findOption(), poptContext_s::flags, handleAlias(), handleExec(), invokeCallbacks(), poptContext_s::leftovers, poptOption::longName, optionStackEntry::next, optionStackEntry::nextArg, optionStackEntry::nextCharArg, poptContext_s::numLeftovers, poptContext_s::options, poptContext_s::optionStack, poptContext_s::os, PBM_ISSET, POPT_, POPT_ARG_INT, POPT_ARG_LONG, POPT_ARG_MASK, POPT_ARG_NONE, POPT_ARG_STRING, POPT_ARG_VAL, POPT_ARGFLAG_STRIP, POPT_CALLBACK_REASON_OPTION, POPT_CONTEXT_POSIXMEHARDER, POPT_ERROR_BADNUMBER, POPT_ERROR_BADOPT, POPT_ERROR_NOARG, POPT_ERROR_OVERFLOW, poptStripArg(), poptContext_s::restLeftover, poptOption::shortName, poptOption::val, xfree, and xstrdup().
Referenced by CACmdLnOptions::parse().
const char* poptGetOptArg | ( | poptContext | con | ) |
References optionStackEntry::nextArg, and poptContext_s::os.
const char* poptPeekArg | ( | poptContext | con | ) |
References poptContext_s::leftovers, poptContext_s::nextLeftover, and poptContext_s::numLeftovers.
void poptResetContext | ( | poptContext | con | ) |
References poptContext_s::arg_strip, optionStackEntry::argb, cleanOSE(), optionStackEntry::currAlias, poptContext_s::doExec, poptContext_s::finalArgv, poptContext_s::finalArgvCount, optionStackEntry::next, optionStackEntry::nextArg, optionStackEntry::nextCharArg, poptContext_s::nextLeftover, poptContext_s::numLeftovers, poptContext_s::optionStack, poptContext_s::os, PBM_FREE, poptContext_s::restLeftover, and xfree.
Referenced by poptFreeContext().
void poptSetExecPath | ( | poptContext | con, |
const char * | path, | ||
int | allowAbsolute | ||
) |
References poptContext_s::execAbsolute, poptContext_s::execPath, xfree, and xstrdup().
const char* poptStrerror | ( | const int | error | ) |
|
static |
References poptContext_s::arg_strip, optionStackEntry::argc, poptContext_s::optionStack, PBM_ALLOC, and PBM_SET.
Referenced by poptGetNextOpt().
int poptStrippedArgv | ( | poptContext | con, |
int | argc, | ||
char ** | argv | ||
) |
References poptContext_s::arg_strip, optionStackEntry::argc, optionStackEntry::argv, and PBM_ISSET.
int poptStuffArgs | ( | poptContext | con, |
const char ** | argv | ||
) |
References optionStackEntry::argb, optionStackEntry::argc, optionStackEntry::argv, optionStackEntry::currAlias, optionStackEntry::next, optionStackEntry::nextArg, optionStackEntry::nextCharArg, poptContext_s::optionStack, poptContext_s::os, POPT_ERROR_OPTSTOODEEP, POPT_OPTION_DEPTH, poptDupArgv(), and optionStackEntry::stuffed.
|
static |
References POPT_.
Referenced by CAFirstMix::doUserLogin_internal(), poptStrerror(), CATLSClientSocket::receive(), and CATLSClientSocket::send().