diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-02-18 15:49:44 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2009-02-18 15:49:44 +0000 |
commit | cf22c5c9b3a4a6cc81a269d49d2324b5df084d74 (patch) | |
tree | ca7e374c348baf4e6510329f3f271eca4eb5419f /elf/ldconfig.c | |
parent | 73c5dd45bc405428148ee740cac61a1279fe57d4 (diff) |
Updated to fedora-glibc-20090218T1534
Diffstat (limited to 'elf/ldconfig.c')
-rw-r--r-- | elf/ldconfig.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/elf/ldconfig.c b/elf/ldconfig.c index dd213669f3..4886645dfa 100644 --- a/elf/ldconfig.c +++ b/elf/ldconfig.c @@ -132,6 +132,9 @@ static void print_version (FILE *stream, struct argp_state *state); void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version; +/* Function to print some extra text in the help message. */ +static char *more_help (int key, const char *text, void *input); + /* Definitions of arguments for argp functions. */ static const struct argp_option options[] = { @@ -161,7 +164,7 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state); /* Data structure to communicate with argp functions. */ static struct argp argp = { - options, parse_opt, NULL, doc, NULL, NULL, NULL + options, parse_opt, NULL, doc, NULL, more_help, NULL }; /* Check if string corresponds to an important hardware capability or @@ -288,6 +291,23 @@ parse_opt (int key, char *arg, struct argp_state *state) return 0; } +/* Print bug-reporting information in the help message. */ +static char * +more_help (int key, const char *text, void *input) +{ + switch (key) + { + case ARGP_KEY_HELP_EXTRA: + /* We print some extra information. */ + return strdup (gettext ("\ +For bug reporting instructions, please see:\n\ +<http://www.gnu.org/software/libc/bugs.html>.\n")); + default: + break; + } + return (char *) text; +} + /* Print the version information. */ static void print_version (FILE *stream, struct argp_state *state) |