2.5-18.1
[glibc.git] / sysdeps / unix / sysv / linux / ia64 / dl-cache.h
blobc2165706c0df9ade640f54804baa85c19a8a9428
1 /* Support for reading /etc/ld.so.cache files written by Linux ldconfig.
2 Copyright (C) 2000 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
20 #define _DL_CACHE_DEFAULT_ID 0x203
22 #define _dl_cache_check_flags(flags) \
23 ((flags) == _DL_CACHE_DEFAULT_ID)
25 #define EMUL_HACK "/emul/ia32-linux"
27 #define arch_startup(argc, argv) unlink (EMUL_HACK LD_SO_CACHE)
29 #define add_arch_dirs(config_file) \
30 do { \
31 int save_verbose = opt_verbose; \
32 opt_verbose = 0; \
34 parse_conf (config_file, EMUL_HACK, true); \
36 /* Always add the standard search paths. */ \
37 add_system_dir (EMUL_HACK SLIBDIR); \
38 if (strcmp (SLIBDIR, LIBDIR)) \
39 add_system_dir (EMUL_HACK LIBDIR); \
41 char emul_config_file[strlen (config_file) \
42 + sizeof EMUL_HACK]; \
43 strcpy (mempcpy (emul_config_file, EMUL_HACK, \
44 strlen (EMUL_HACK)), config_file); \
46 if (! access (emul_config_file, R_OK)) \
47 parse_conf (emul_config_file, EMUL_HACK, true); \
49 opt_verbose = save_verbose; \
50 } while (0)
52 #include_next <dl-cache.h>