Back to index

glibc  2.9
Classes | Defines | Functions
dl-cache.h File Reference
#include <stdint.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  file_entry
struct  cache_file
struct  file_entry_new
struct  cache_file_new

Defines

#define _DL_CACHE_DEFAULT_ID   3
#define _dl_cache_check_flags(flags)   ((flags) == 1 || (flags) == _DL_CACHE_DEFAULT_ID)
#define LD_SO_CACHE   SYSCONFDIR "/ld.so.cache"
#define add_system_dir(dir)   add_dir (dir)
#define CACHEMAGIC   "ld.so-1.7.0"
#define CACHEMAGIC_NEW   "glibc-ld.so.cache"
#define CACHE_VERSION   "1.1"
#define CACHEMAGIC_VERSION_NEW   CACHEMAGIC_NEW CACHE_VERSION
#define ALIGN_CACHE(addr)

Functions

int _dl_cache_libcmp (const char *p1, const char *p2) internal_function

Class Documentation

struct file_entry

Definition at line 61 of file dl-cache.h.

Class Members
int flags
unsigned int key
unsigned int value
struct cache_file

Definition at line 67 of file dl-cache.h.

Class Members
char magic
unsigned int nlibs
struct file_entry_new

Definition at line 79 of file dl-cache.h.

Class Members
int32_t flags
uint64_t hwcap
uint32_t key
uint32_t osversion
uint32_t value
struct cache_file_new

Definition at line 87 of file dl-cache.h.

Class Members
uint32_t len_strings
char magic
uint32_t nlibs
uint32_t unused
char version

Define Documentation

#define _dl_cache_check_flags (   flags)    ((flags) == 1 || (flags) == _DL_CACHE_DEFAULT_ID)

Definition at line 27 of file dl-cache.h.

#define _DL_CACHE_DEFAULT_ID   3

Definition at line 23 of file dl-cache.h.

#define add_system_dir (   dir)    add_dir (dir)

Definition at line 36 of file dl-cache.h.

#define ALIGN_CACHE (   addr)
Value:
(((addr) + __alignof__ (struct cache_file_new) -1)      \
 & (~(__alignof__ (struct cache_file_new) - 1)))

Definition at line 100 of file dl-cache.h.

#define CACHE_VERSION   "1.1"

Definition at line 75 of file dl-cache.h.

#define CACHEMAGIC   "ld.so-1.7.0"

Definition at line 39 of file dl-cache.h.

#define CACHEMAGIC_NEW   "glibc-ld.so.cache"

Definition at line 74 of file dl-cache.h.

Definition at line 76 of file dl-cache.h.

#define LD_SO_CACHE   SYSCONFDIR "/ld.so.cache"

Definition at line 32 of file dl-cache.h.


Function Documentation

int _dl_cache_libcmp ( const char *  p1,
const char *  p2 
)

Definition at line 127 of file dl-cache.c.

{
  while (*p1 != '\0')
    {
      if (*p1 >= '0' && *p1 <= '9')
        {
          if (*p2 >= '0' && *p2 <= '9')
            {
             /* Must compare this numerically.  */
             int val1;
             int val2;

             val1 = *p1++ - '0';
             val2 = *p2++ - '0';
             while (*p1 >= '0' && *p1 <= '9')
               val1 = val1 * 10 + *p1++ - '0';
             while (*p2 >= '0' && *p2 <= '9')
               val2 = val2 * 10 + *p2++ - '0';
             if (val1 != val2)
              return val1 - val2;
           }
         else
            return 1;
        }
      else if (*p2 >= '0' && *p2 <= '9')

Here is the caller graph for this function: