Back to index

glibc  2.9
Defines
dl-cache.h File Reference
#include <sysdeps/generic/dl-cache.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define add_system_dir(dir)

Define Documentation

#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))  \
       {                                                \
         len -= 2;                                      \
         path[len] = '\0';                              \
       }                                                \
      add_dir (path);                                          \
      if (len >= 4 && ! memcmp (path + len - 4, "/lib", 4))    \
       {                                                \
         memcpy (path + len, "64", 3);                         \
         add_dir (path);                                \
       }                                                \
    } while (0)

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