diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-11-26 16:59:44 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-11-26 18:26:52 +0100 |
commit | db07fae8250401adb2b97ab3e53d41da2a6bd767 (patch) | |
tree | 3a9db118b13f39de8a39e652f61674cbf38ab143 /sysdeps/generic | |
parent | 603ae243f6fe03208a3bb92adecf72403367bd95 (diff) | |
download | glibc-db07fae8250401adb2b97ab3e53d41da2a6bd767.tar.gz glibc-db07fae8250401adb2b97ab3e53d41da2a6bd767.tar.xz glibc-db07fae8250401adb2b97ab3e53d41da2a6bd767.zip |
elf: Introduce enum opt_format in the ldconfig implementation
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/ldconfig.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/generic/ldconfig.h b/sysdeps/generic/ldconfig.h index b64aab0064..cfec9d4668 100644 --- a/sysdeps/generic/ldconfig.h +++ b/sysdeps/generic/ldconfig.h @@ -90,7 +90,14 @@ extern char *chroot_canon (const char *chroot, const char *name); /* Declared in ldconfig.c. */ extern int opt_verbose; -extern int opt_format; +enum opt_format + { + opt_format_old = 0, /* Use struct cache_file. */ + opt_format_compat = 1, /* Use both, old format followed by new. */ + opt_format_new = 2, /* Use struct cache_file_new. */ + }; + +extern enum opt_format opt_format; /* Prototypes for a few program-wide used functions. */ #include <programs/xmalloc.h> |