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 /debug/pcprofiledump.c | |
| parent | 73c5dd45bc405428148ee740cac61a1279fe57d4 (diff) | |
| download | glibc-cf22c5c9b3a4a6cc81a269d49d2324b5df084d74.tar.xz glibc-cf22c5c9b3a4a6cc81a269d49d2324b5df084d74.zip | |
Updated to fedora-glibc-20090218T1534
Diffstat (limited to 'debug/pcprofiledump.c')
| -rw-r--r-- | debug/pcprofiledump.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/debug/pcprofiledump.c b/debug/pcprofiledump.c index 62c0d73f40..13d9e8c34c 100644 --- a/debug/pcprofiledump.c +++ b/debug/pcprofiledump.c @@ -1,5 +1,5 @@ /* Dump information generated by PC profiling. - Copyright (C) 1999, 2002, 2007 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2007, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999. @@ -66,6 +66,10 @@ static char *more_help (int key, const char *text, void *input); /* Prototype for option handler. */ static error_t parse_opt (int key, char *arg, struct argp_state *state); +/* Name and version of program. */ +static void print_version (FILE *stream, struct argp_state *state); +void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version; + /* Data structure to communicate with argp functions. */ static struct argp argp = { @@ -209,3 +213,16 @@ For bug reporting instructions, please see:\n\ } return (char *) text; } + +/* Print the version information. */ +static void +print_version (FILE *stream, struct argp_state *state) +{ + fprintf (stream, "pcprofiledump (GNU %s) %s\n", PACKAGE, VERSION); + fprintf (stream, gettext ("\ +Copyright (C) %s Free Software Foundation, Inc.\n\ +This is free software; see the source for copying conditions. There is NO\n\ +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\ +"), "2009"); + fprintf (stream, gettext ("Written by %s.\n"), "Ulrich Drepper"); +} |
