Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

popt/popt.c File Reference

More...

#include "system.h"
#include <math.h>
#include "findme.h"
#include "poptint.h"

Go to the source code of this file.

Defines

#define ABS(a)   (((a) < 0) ? -(a) : (a))

Functions

char* strerror (int errno)
void poptSetExecPath (poptContext con, const char *path, int allowAbsolute)
void invokeCallbacksPRE (poptContext con, const struct poptOption *opt)
void invokeCallbacksPOST (poptContext con, const struct poptOption *opt)
void invokeCallbacksOPTION (poptContext con, const struct poptOption *opt, const struct poptOption *myOpt, const void *myData, int shorty)
poptContext poptGetContext (const char *name, int argc, const char **argv, const struct poptOption *options, int flags)
void cleanOSE (struct optionStackEntry *os)
void poptResetContext (poptContext con)
int handleExec (poptContext con, char *longName, char shortName)
int handleAlias (poptContext con, const char *longName, char shortName, const char *nextCharArg)
void execCommand (poptContext con)
const struct poptOptionfindOption (const struct poptOption *opt, const char *longName, char shortName, poptCallbackType *callback, const void **callbackData, int singleDash)
const char* findNextArg (poptContext con, unsigned argx, int delete)
const char* expandNextArg (poptContext con, const char *s)
void poptStripArg (poptContext con, int which)
int poptSaveLong (const struct poptOption *opt, long aLong)
int poptSaveInt (const struct poptOption *opt, long aLong)
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* const poptStrerror (const int error)
int poptStuffArgs (poptContext con, const char **argv)
const char* poptGetInvocationName (poptContext con)
int poptStrippedArgv (poptContext con, int argc, char **argv)


Detailed Description

Definition in file popt.c.


Define Documentation

#define ABS( a )   (((a) < 0) ? -(a) : (a))
 

Referenced by poptGetNextOpt().


Function Documentation

void cleanOSE ( struct optionStackEntry * os ) [static]
 

Definition at line 140 of file popt.c.

Referenced by poptGetNextOpt(), and poptResetContext().

void execCommand ( poptContext con ) [static]
 

Definition at line 276 of file popt.c.

Referenced by poptGetNextOpt().

const char* expandNextArg ( poptContext con,
const char * s ) [static]
 

Definition at line 422 of file popt.c.

Referenced by poptGetNextOpt().

const char* findNextArg ( poptContext con,
unsigned argx,
int delete ) [static]
 

Definition at line 396 of file popt.c.

Referenced by expandNextArg().

const struct poptOption* findOption ( const struct poptOption * opt,
const char * longName,
char shortName,
poptCallbackType * callback,
const void ** callbackData,
int singleDash ) [static]
 

Definition at line 348 of file popt.c.

Referenced by poptGetNextOpt().

int handleAlias ( poptContext con,
const char * longName,
char shortName,
const char * nextCharArg ) [static]
 

Definition at line 235 of file popt.c.

Referenced by poptGetNextOpt().

int handleExec ( poptContext con,
char * longName,
char shortName ) [static]
 

Definition at line 192 of file popt.c.

Referenced by poptGetNextOpt().

void invokeCallbacksOPTION ( poptContext con,
const struct poptOption * opt,
const struct poptOption * myOpt,
const void * myData,
int shorty ) [static]
 

Definition at line 69 of file popt.c.

Referenced by poptGetNextOpt().

void invokeCallbacksPOST ( poptContext con,
const struct poptOption * opt ) [static]
 

Definition at line 54 of file popt.c.

Referenced by poptGetNextOpt().

void invokeCallbacksPRE ( poptContext con,
const struct poptOption * opt ) [static]
 

Definition at line 39 of file popt.c.

Referenced by poptGetContext().

int poptSaveInt ( const struct poptOption * opt,
long aLong ) [static]
 

Definition at line 493 of file popt.c.

Referenced by poptGetNextOpt().

int poptSaveLong ( const struct poptOption * opt,
long aLong ) [static]
 

Definition at line 470 of file popt.c.

Referenced by poptGetNextOpt().

void poptStripArg ( poptContext con,
int which ) [static]
 

Definition at line 463 of file popt.c.

Referenced by poptGetNextOpt().

char* strerror ( int errno ) [static]
 

Definition at line 22 of file popt.c.

Referenced by Fstrerror(), _debug(), checkOwners(), cpioStrerror(), db_strerror(), dbiOpen(), doScript(), expandRegular(), getFdErrstr(), getFilesystemList(), getOutputFrom(), installBinaryPackage(), installSources(), main(), packageBinaries(), poptStrerror(), processSourceFiles(), removeFile(), rpmGetFilesystemUsage(), rpmProblemString(), rpmQueryVerify(), rpmdbRebuild(), runScript(), ufdRead(), and ufdWrite().


Generated at Mon May 21 08:53:42 2001 for rpm by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001