Back to index

glibc  2.9
Defines
dl-cache.h File Reference
#include <ldconfig.h>

Go to the source code of this file.

Defines

#define _DL_CACHE_DEFAULT_ID   (FLAG_MIPS64_LIBN64 | FLAG_ELF_LIBC6)
#define _dl_cache_check_flags(flags)   ((flags) == _DL_CACHE_DEFAULT_ID)
#define add_system_dir(dir)

Define Documentation

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

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

#define add_system_dir (   dir)
Value:
do                                                      \
    {                                                   \
      size_t len = strlen (dir);                        \
      char path[len + 3];                               \
      memcpy (path, dir, len + 1);                      \
      if (len >= 6                                      \
         && (! memcmp (path + len - 6, "/lib64", 6)            \
             || ! memcmp (path + len - 6, "/lib32", 6)))       \
       {                                                \
         len -= 2;                                      \
         path[len] = '\0';                              \
       }                                                \
      add_dir (path);                                          \
      if (len >= 4 && ! memcmp (path + len - 4, "/lib", 4))    \
       {                                                \
         memcpy (path + len, "32", 3);                         \
         add_dir (path);                                \
         memcpy (path + len, "64", 3);                         \
         add_dir (path);                                \
       }                                                \
    } while (0)

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