The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

rpmrc.c (3)
  • >> rpmrc.c (3) ( Linux man: Библиотечные вызовы )
  •  

    NAME

    lib/rpmrc.c - 
     
    

    SYNOPSIS


    #include 'system.h'
    #include <stdarg.h>
    #include 'rpmlib.h'
    #include 'rpmmacro.h'
    #include 'misc.h'
    #include 'debug.h'
     

    Data Structures


    struct canonEntry_s

    struct defaultEntry_s

    struct machCache_s

    struct machCacheEntry_s

    struct machEquivInfo_s

    struct machEquivTable_s

    struct rpmOption

    struct rpmvarValue

    struct tableType_s
     

    Defines


    #define __power_pc() 0

    #define OS 0

    #define ARCH 1
     

    Typedefs


    typedef const char * cptr_t

    typedef machCacheEntry_s * machCacheEntry

    typedef machCache_s * machCache

    typedef machEquivInfo_s * machEquivInfo

    typedef machEquivTable_s * machEquivTable

    typedef defaultEntry_s * defaultEntry

    typedef canonEntry_s * canonEntry

    typedef tableType_s * tableType
     

    Functions


    int doReadRC (FD_t fd, const char *urlfn)

    void rpmSetVarArch (int var, const char *val, const char *arch)

    void rebuildCompatTables (int type, const char *name)

    void rpmRebuildTargetVars (const char **target, const char **canontarget)

    int optionCompare (const void *a, const void *b)

    machCacheEntry machCacheFindEntry (const machCache cache, const char *key)

    int machCompatCacheAdd (char *name, const char *fn, int linenum, machCache cache)

    machEquivInfo machEquivSearch (const machEquivTable table, const char *name)

    void machAddEquiv (machEquivTable table, const char *name, int distance)

    void machCacheEntryVisit (machCache cache, machEquivTable table, const char *name, int distance)

    void machFindEquivs (machCache cache, machEquivTable table, const char *key)

    int addCanon (canonEntry *table, int *tableLen, char *line, const char *fn, int lineNum)

    int addDefault (defaultEntry *table, int *tableLen, char *line, const char *fn, int lineNum)

    const canonEntry lookupInCanonTable (const char *name, const canonEntry table, int tableLen)

    const char * lookupInDefaultTable (const char *name, const defaultEntry table, int tableLen)

    void setVarDefault (int var, const char *macroname, const char *val, const char *body)

    void setVar (const char *macroname, const char *body)

    void rpmSetDefaults (void)

    const char * checkAMD (void)

    void defaultMachine (const char **arch, const char **os)

    const char * rpmGetVarArch (int var, const char *arch)

    const char * rpmGetVar (int var)

    void freeRpmVar (struct rpmvarValue *orig)

    void rpmSetVar (int var, const char *val)

    void rpmSetTables (int archTable, int osTable)

    int rpmMachineScore (int type, const char *name)

    void rpmGetMachine (const char **arch, const char **os)

    void rpmSetMachine (const char *arch, const char *os)

    void getMachineInfo (int type, const char **name, int *num)

    void rpmGetArchInfo (const char **name, int *num)

    void rpmGetOsInfo (const char **name, int *num)

    void rpmFreeRpmrc (void)

    int rpmReadRC (const char *rcfiles)

    int rpmReadConfigFiles (const char *file, const char *target)

    int rpmShowRC (FILE *fp)
     

    Variables


    const char * defrcfiles = LIBRPMRC_FILENAME ':/etc/rpmrc:~/.rpmrc'

    const char * macrofiles = MACROFILES

    tableType_s tables [4]

    rpmOption optionTable []

    int optionTableSize = sizeof(optionTable) / sizeof(*optionTable)

    cptr_t current [2]

    int currTables [2] = { RPM_MACHTABLE_INSTOS, RPM_MACHTABLE_INSTARCH }

    rpmvarValue values [55]

    int defaultsInitialized = 0

    const char * prescriptenviron
     

    DEFINE DOCUMENTATION

     

    #define __power_pc() 0

    Definition at line 13 of file rpmrc.c.

    Referenced by defaultMachine().  

    #define ARCH 1

    Definition at line 123 of file rpmrc.c.

    Referenced by doReadRC(), rpmFreeRpmrc(), rpmGetArchInfo(), rpmGetMachine(), rpmGetVarArch(), rpmSetMachine(), rpmSetTables(), and rpmShowRC().  

    #define OS 0

    Definition at line 122 of file rpmrc.c.

    Referenced by rpmFreeRpmrc(), rpmGetMachine(), rpmGetOsInfo(), rpmSetMachine(), rpmSetTables(), and rpmShowRC().  

    TYPEDEF DOCUMENTATION

     

    typedef struct canonEntry_s * canonEntry

     

    typedef const char* cptr_t

    Definition at line 30 of file rpmrc.c.  

    typedef struct defaultEntry_s * defaultEntry

     

    typedef struct machCache_s * machCache

     

    typedef struct machCacheEntry_s * machCacheEntry

     

    typedef struct machEquivInfo_s * machEquivInfo

     

    typedef struct machEquivTable_s * machEquivTable

     

    typedef struct tableType_s * tableType

     

    FUNCTION DOCUMENTATION

     

    int addCanon (canonEntry * table, int * tableLen, char * line, const char * fn, int lineNum) [static]

    Definition at line 327 of file rpmrc.c.

    References _, canonEntry_s::name, canonEntry_s::num, RPMERR_RPMRC, rpmError, canonEntry_s::short_name, xrealloc(), and xstrdup().

    Referenced by doReadRC().  

    int addDefault (defaultEntry * table, int * tableLen, char * line, const char * fn, int lineNum) [static]

    Definition at line 381 of file rpmrc.c.

    References _, defaultEntry_s::defName, defaultEntry_s::name, RPMERR_RPMRC, rpmError, xrealloc(), and xstrdup().

    Referenced by doReadRC().  

    const char* checkAMD (void) [static]

    Definition at line 913 of file rpmrc.c.

    Referenced by defaultMachine().  

    void defaultMachine (const char ** arch, const char ** os) [static]

    Definition at line 939 of file rpmrc.c.

    References __power_pc, _free(), checkAMD(), Fclose(), Ferror(), Fopen(), Fread(), lookupInCanonTable(), RPM_MACHTABLE_INSTARCH, RPM_MACHTABLE_INSTOS, canonEntry_s::short_name, xcalloc(), and xisdigit().

    Referenced by rpmRebuildTargetVars(), rpmSetMachine(), and rpmSetTables().  

    int doReadRC (FD_t fd, const char * urlfn) [static]

    Definition at line 529 of file rpmrc.c.

    References _, _free(), addCanon(), addDefault(), addMacro(), alloca(), ARCH, rpmOption::archSpecific, current, Fclose(), fdSize(), Ferror(), Fopen(), Fread(), Fstrerror(), tableType_s::hasCanon, tableType_s::hasTranslate, rpmOption::localize, machCompatCacheAdd(), rpmOption::macroize, rpmOption::name, optionCompare(), optionTableSize, RMIL_RPMRC, RPMERR_RPMRC, rpmError, rpmGetPath(), rpmGetVar(), rpmRebuildTargetVars(), rpmSetVarArch(), RPMVAR_INCLUDE, RPMVAR_MACROFILES, RPMVAR_PROVIDES, rpmOption::var, xisspace(), and xmalloc().

    Referenced by rpmReadRC().  

    void freeRpmVar (struct rpmvarValue * orig) [static]

    Definition at line 1228 of file rpmrc.c.

    References _free(), rpmvarValue::arch, rpmvarValue::next, and rpmvarValue::value.

    Referenced by rpmSetVar().  

    void getMachineInfo (int type, const char ** name, int * num) [static]

    Definition at line 1378 of file rpmrc.c.

    References _, current, currTables, lookupInCanonTable(), canonEntry_s::num, RPMMESS_WARNING, rpmMessage, and canonEntry_s::short_name.

    Referenced by rpmGetArchInfo(), and rpmGetOsInfo().  

    const canonEntry lookupInCanonTable (const char * name, const canonEntry table, int tableLen) [static]

    Definition at line 416 of file rpmrc.c.

    Referenced by defaultMachine(), and getMachineInfo().  

    const char* lookupInDefaultTable (const char * name, const defaultEntry table, int tableLen) [static]

    Definition at line 433 of file rpmrc.c.

    Referenced by rpmSetMachine().  

    void machAddEquiv (machEquivTable table, const char * name, int distance) [static]

    Definition at line 259 of file rpmrc.c.

    References machEquivSearch(), xmalloc(), xrealloc(), and xstrdup().

    Referenced by machCacheEntryVisit(), and machFindEquivs().  

    void machCacheEntryVisit (machCache cache, machEquivTable table, const char * name, int distance) [static]

    Definition at line 278 of file rpmrc.c.

    References machCacheEntry_s::count, machCacheEntry_s::equivs, machAddEquiv(), machCacheFindEntry(), and machCacheEntry_s::visited.

    Referenced by machFindEquivs().  

    machCacheEntry machCacheFindEntry (const machCache cache, const char * key) [static]

    Definition at line 165 of file rpmrc.c.

    Referenced by machCacheEntryVisit(), and machCompatCacheAdd().  

    int machCompatCacheAdd (char * name, const char * fn, int linenum, machCache cache) [static]

    Definition at line 176 of file rpmrc.c.

    References _, _free(), machCacheEntry_s::count, machCacheEntry_s::equivs, machCacheFindEntry(), machCacheEntry_s::name, RPMERR_RPMRC, rpmError, machCacheEntry_s::visited, xisspace(), xmalloc(), xrealloc(), and xstrdup().

    Referenced by doReadRC().  

    machEquivInfo machEquivSearch (const machEquivTable table, const char * name) [static]

    Definition at line 247 of file rpmrc.c.

    References xstrcasecmp().

    Referenced by machAddEquiv(), and rpmMachineScore().  

    void machFindEquivs (machCache cache, machEquivTable table, const char * key) [static]

    Definition at line 299 of file rpmrc.c.

    References _free(), machAddEquiv(), and machCacheEntryVisit().

    Referenced by rebuildCompatTables().  

    int optionCompare (const void * a, const void * b) [static]

    Definition at line 157 of file rpmrc.c.

    References xstrcasecmp().

    Referenced by doReadRC().  

    void rebuildCompatTables (int type, const char * name) [static]

    Definition at line 1370 of file rpmrc.c.

    References currTables, and machFindEquivs().

    Referenced by rpmSetMachine(), and rpmSetTables().  

    const char* rpmGetVarArch (int var, const char * arch) [static]

    Definition at line 1201 of file rpmrc.c.

    References rpmvarValue::arch, ARCH, current, rpmvarValue::next, and rpmvarValue::value.

    Referenced by rpmGetVar(), and rpmRebuildTargetVars().  

    void rpmRebuildTargetVars (const char ** target, const char ** canontarget) [static]

    Definition at line 1416 of file rpmrc.c.

    References _free(), addMacro(), defaultMachine(), delMacro(), RMIL_RPMRC, RPM_MACHTABLE_BUILDARCH, RPM_MACHTABLE_BUILDOS, RPM_MACHTABLE_INSTARCH, RPM_MACHTABLE_INSTOS, rpmGetArchInfo(), rpmGetOsInfo(), rpmGetVarArch(), rpmSetMachine(), rpmSetTables(), RPMVAR_OPTFLAGS, xmalloc(), xstrcasecmp(), xstrdup(), and xtolower().

    Referenced by doReadRC(), and rpmReadConfigFiles().  

    void rpmSetDefaults (void) [static]

    Definition at line 488 of file rpmrc.c.

    References defaultsInitialized, prescriptenviron, RPMVAR_OPTFLAGS, setVar(), and setVarDefault().

    Referenced by rpmReadRC().  

    void rpmSetVarArch (int var, const char * val, const char * arch) [static]

    Definition at line 1253 of file rpmrc.c.

    References _free(), rpmvarValue::arch, rpmvarValue::next, rpmvarValue::value, xmalloc(), and xstrdup().

    Referenced by doReadRC().  

    void setVar (const char * macroname, const char * body) [static]

    Definition at line 461 of file rpmrc.c.

    References addMacro(), and RMIL_DEFAULT.

    Referenced by rpmSetDefaults().  

    void setVarDefault (int var, const char * macroname, const char * val, const char * body) [static]

    Definition at line 446 of file rpmrc.c.

    References addMacro(), RMIL_DEFAULT, rpmGetVar(), and rpmSetVar().

    Referenced by rpmSetDefaults().  

    VARIABLE DOCUMENTATION

     

    cptr_t current[2] [static]

    Definition at line 126 of file rpmrc.c.

    Referenced by doReadRC(), getMachineInfo(), rpmFreeRpmrc(), rpmGetMachine(), rpmGetVarArch(), rpmSetMachine(), and rpmShowRC().  

    int currTables[2] = { RPM_MACHTABLE_INSTOS, RPM_MACHTABLE_INSTARCH } [static]

    Definition at line 129 of file rpmrc.c.

    Referenced by getMachineInfo(), rebuildCompatTables(), rpmSetMachine(), and rpmSetTables().  

    int defaultsInitialized = 0 [static]

    Definition at line 135 of file rpmrc.c.

    Referenced by rpmFreeRpmrc(), and rpmSetDefaults().  

    const char* defrcfiles = LIBRPMRC_FILENAME ':/etc/rpmrc:~/.rpmrc' [static]

    Definition at line 25 of file rpmrc.c.

    Referenced by rpmReadRC().  

    struct rpmOption optionTable[] [static]

    Initial value:

     {
        { 'include',                 43 ,                   0, 1,   0, 2 },
        { 'macrofiles',              49 ,           0, 0,   0, 1 },
        { 'optflags',                3 ,            1, 0,   1, 0 },
        { 'provides',                38 ,                0, 0,      0, 0 },
    }
    

    Definition at line 111 of file rpmrc.c.  

    int optionTableSize = sizeof(optionTable) / sizeof(*optionTable) [static]

    Definition at line 120 of file rpmrc.c.

    Referenced by doReadRC(), and rpmShowRC().  

    const char* prescriptenviron [static]

    Initial value:

     '
    RPM_SOURCE_DIR='%{_sourcedir}'
    RPM_BUILD_DIR='%{_builddir}'
    RPM_DOC_DIR='%{_docdir}'
    export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_DOC_DIR
    RPM_OPT_FLAGS='%{optflags}'
    RPM_ARCH='%{_arch}'
    RPM_OS='%{_os}'
    export RPM_OPT_FLAGS RPM_ARCH RPM_OS
    RPM_PACKAGE_NAME='%{name}'
    RPM_PACKAGE_VERSION='%{version}'
    RPM_PACKAGE_RELEASE='%{release}'
    export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
    %{?buildroot:RPM_BUILD_ROOT='%{buildroot}'
    export RPM_BUILD_ROOT

    Definition at line 471 of file rpmrc.c.

    Referenced by rpmSetDefaults().  

    struct tableType_s tables[ 4 ] [static]

    Initial value:

     {
        { 'arch', 1, 0 },
        { 'os', 1, 0 },
        { 'buildarch', 0, 1 },
        { 'buildos', 0, 1 }
    }
    

    Definition at line 100 of file rpmrc.c.  

    struct rpmvarValue values[ 55 ] [static]

    Definition at line 132 of file rpmrc.c.  

    AUTHOR

    Generated automatically by Doxygen for rpm from the source code.


     

    Index

    NAME
    SYNOPSIS
    Data Structures
    Defines
    Typedefs
    Functions
    Variables
    DEFINE DOCUMENTATION
    #define __power_pc() 0
    #define ARCH 1
    #define OS 0
    TYPEDEF DOCUMENTATION
    typedef struct canonEntry_s * canonEntry
    typedef const char* cptr_t
    typedef struct defaultEntry_s * defaultEntry
    typedef struct machCache_s * machCache
    typedef struct machCacheEntry_s * machCacheEntry
    typedef struct machEquivInfo_s * machEquivInfo
    typedef struct machEquivTable_s * machEquivTable
    typedef struct tableType_s * tableType
    FUNCTION DOCUMENTATION
    int addCanon (canonEntry * table, int * tableLen, char * line, const char * fn, int lineNum) [static]
    int addDefault (defaultEntry * table, int * tableLen, char * line, const char * fn, int lineNum) [static]
    const char* checkAMD (void) [static]
    void defaultMachine (const char ** arch, const char ** os) [static]
    int doReadRC (FD_t fd, const char * urlfn) [static]
    void freeRpmVar (struct rpmvarValue * orig) [static]
    void getMachineInfo (int type, const char ** name, int * num) [static]
    const canonEntry lookupInCanonTable (const char * name, const canonEntry table, int tableLen) [static]
    const char* lookupInDefaultTable (const char * name, const defaultEntry table, int tableLen) [static]
    void machAddEquiv (machEquivTable table, const char * name, int distance) [static]
    void machCacheEntryVisit (machCache cache, machEquivTable table, const char * name, int distance) [static]
    machCacheEntry machCacheFindEntry (const machCache cache, const char * key) [static]
    int machCompatCacheAdd (char * name, const char * fn, int linenum, machCache cache) [static]
    machEquivInfo machEquivSearch (const machEquivTable table, const char * name) [static]
    void machFindEquivs (machCache cache, machEquivTable table, const char * key) [static]
    int optionCompare (const void * a, const void * b) [static]
    void rebuildCompatTables (int type, const char * name) [static]
    const char* rpmGetVarArch (int var, const char * arch) [static]
    void rpmRebuildTargetVars (const char ** target, const char ** canontarget) [static]
    void rpmSetDefaults (void) [static]
    void rpmSetVarArch (int var, const char * val, const char * arch) [static]
    void setVar (const char * macroname, const char * body) [static]
    void setVarDefault (int var, const char * macroname, const char * val, const char * body) [static]
    VARIABLE DOCUMENTATION
    cptr_t current[2] [static]
    int currTables[2] = { RPM_MACHTABLE_INSTOS, RPM_MACHTABLE_INSTARCH } [static]
    int defaultsInitialized = 0 [static]
    const char* defrcfiles = LIBRPMRC_FILENAME ':/etc/rpmrc:~/.rpmrc' [static]
    struct rpmOption optionTable[] [static]
    int optionTableSize = sizeof(optionTable) / sizeof(*optionTable) [static]
    const char* prescriptenviron [static]
    struct tableType_s tables[ 4 ] [static]
    struct rpmvarValue values[ 55 ] [static]
    AUTHOR


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру