#include "system.h"
#include "rpmio_internal.h"
#include <argv.h>
#include "debug.h"
Include dependency graph for argv.c:
Go to the source code of this file.
Functions | |
static void * | _free (const void *p) |
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL. | |
void | argvPrint (const char *msg, ARGV_t argv, FILE *fp) |
Print argv array elements. | |
ARGI_t | argiFree (ARGI_t argi) |
Destroy an argi array. | |
ARGV_t | argvFree (ARGV_t argv) |
Destroy an argv array. | |
int | argiCount (ARGI_t argi) |
Return no. | |
ARGint_t | argiData (ARGI_t argi) |
Return data from argi array. | |
int | argvCount (const ARGV_t argv) |
Return no. | |
ARGV_t | argvData (ARGV_t argv) |
Return data from argv array. | |
int | argvCmp (const void *a, const void *b) |
Compare argv arrays (qsort/bsearch). | |
int | argvSort (ARGV_t argv, int(*compar)(const void *, const void *)) |
Sort an argv array. | |
ARGV_t | argvSearch (ARGV_t argv, ARGstr_t val, int(*compar)(const void *, const void *)) |
Find an element in an argv array. | |
int | argiAdd (ARGI_t *argip, int ix, int val) |
Add an int to an argi array. | |
int | argvAdd (ARGV_t *argvp, ARGstr_t val) |
Add a string to an argv array. | |
int | argvAppend (ARGV_t *argvp, const ARGV_t av) |
Append one argv array to another. | |
int | argvSplit (ARGV_t *argvp, const char *str, const char *seps) |
Split a string into an argv array. | |
char * | argvJoin (ARGV_t argv) |
Concatenate an argv array into a string. | |
int | argvFgets (ARGV_t *argvp, void *fd) |
Read lines into an argv array. |
Definition in file argv.c.
|
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
|
|
Add an int to an argi array.
Definition at line 123 of file argv.c. References ARGI_s::nvals, ARGI_s::vals, xcalloc(), and xrealloc(). Referenced by rpmfcApply(), and rpmfcClassify(). |
|
Return no. of elements in argi array.
Definition at line 64 of file argv.c. References ARGI_s::nvals. Referenced by main(), rpmfcApply(), and rpmfcGenerateDepends(). |
|
Return data from argi array.
Definition at line 72 of file argv.c. References ARGI_s::nvals, and ARGI_s::vals. Referenced by rpmfcGenerateDepends(). |
|
Destroy an argi array.
Definition at line 41 of file argv.c. References _free(), ARGI_s::nvals, and ARGI_s::vals. Referenced by rpmfcFree(). |
|
Add a string to an argv array.
Definition at line 144 of file argv.c. References argvCount(), xrealloc(), and xstrdup(). Referenced by argvFgets(), missingokTag(), rpmfcClassify(), rpmfcSaveArg(), and rpmteChain(). |
|
Append one argv array to another.
Definition at line 161 of file argv.c. References argvCount(), xrealloc(), and xstrdup(). Referenced by rpmfcExec(), and rpmgiGlobArgv(). |
|
Compare argv arrays (qsort/bsearch).
Definition at line 96 of file argv.c. Referenced by argvSearch(), and argvSort(). |
|
Return no. of elements in argv array.
Definition at line 80 of file argv.c. Referenced by argvAdd(), argvAppend(), argvSearch(), argvSort(), hSaveBlinks(), hSaveFlinks(), main(), rpmfcApply(), rpmfcClassify(), rpmfcExpandAppend(), rpmfcFindRequiredPackages(), rpmfcGenerateDepends(), and rpmfcHelper(). |
|
Return data from argv array.
Definition at line 89 of file argv.c. Referenced by hSaveBlinks(), hSaveFlinks(), and rpmfcGenerateDepends(). |
|
Read lines into an argv array.
Definition at line 237 of file argv.c. References argvAdd(), argvFree(), and fdGetFILE. Referenced by main(). |
|
Destroy an argv array.
Definition at line 51 of file argv.c. References _free(). Referenced by argvFgets(), delTE(), missingokTag(), rpmdsNew(), rpmfcClassify(), rpmfcExec(), rpmfcFree(), rpmfcGenerateDepends(), rpmfcHelper(), rpmgiFree(), and rpmgiGlobArgv(). |
|
Concatenate an argv array into a string.
Definition at line 213 of file argv.c. References stpcpy(), and xmalloc(). Referenced by getOutputFrom(). |
|
Print argv array elements.
|
|
Find an element in an argv array.
Definition at line 113 of file argv.c. References argvCmp(), and argvCount(). Referenced by rpmfcClassify(), and rpmfcSaveArg(). |
|
Sort an argv array.
Definition at line 105 of file argv.c. References argvCmp(), and argvCount(). Referenced by main(), and rpmfcSaveArg(). |
|
Split a string into an argv array.
Definition at line 176 of file argv.c. References xmalloc(), and xstrdup(). Referenced by rpmfcHelper(). |