* cfg.mk (update-copyright-env): Add, from coreutils.
(VC_LIST_ALWAYS_EXCLUDE_REGEX): Add, for update-copyright exceptions.
* README: Add info about copyright year ranges.
* *: Update copyright notices.
* ping/ping_common.h, ping/ping.c, ping/ping_address.c,
ping/ping_echo.c, ping/ping_router.c, ping/ping_timestamp.c,
ping/libping.c: Added common headers from ping related
files (ping.c, ping_address.c, ping_echo.c, ping_router.c,
ping_timestamp.c, libping.c) and ping6.c to ping/ping_common.h.
* ping/ping.h, ping/ping6.h, ping/ping_common.h (ping_data,
ping_efp): Moved ping_data, ping_efp from ping.h & ping6.h
to ping_common.h
* ping/libping.c, ping/ping6.c, ping/ping_common.c (_ping_setbuf,
ping_set_data): Moved _ping_setbuf and ping_set_data from libping.c
& ping6.c to ping_common.c
* ping/ping_common.h (ping_address, event, ping_data): Introduced new
unions ping_address and event in ping_common.h. Replaced ping efp
handler(ping_efp/ping_efp6) with event union and socket
address(sockaddr_in sockaddr_in6) with ping_address union.
* ping/ping_common.h (_PING_BUFLEN, _ping_setbuf, ping_set_data): New arg
use_ipv6 and all callers changed.
* libicmp/libping.c (ping_reset): New function.
(_ping_freebuf): Free PING->ping_cktab.
(ping_unset_data): New function.
* libicmp/ping.h (ping_reset): New function.
(ping_unset_data): New function.
* ping/ping.c (ping_type): Changed type to `int (*ping_type) (char
*hostname)'. All users changed accordingly.
(decode_type): Likewise.
(main): Multiple host support implemented.
(ping_run): Added new variable I. Replaced `while' with `for' to
avoid decrementing PRELOAD. Replaced free with ping_unset_data.
* ping/ping6.c (main): Added new variable STATUS. Multiple host
support implemented.
(ping_run): Added new variable I. Replaced `while' with `for' to
avoid decrementing PRELOAD.
(ping_echo): Changed type to `static int ping_echo (char *hostname)`.
All callers and declarations changed accordingly. Added new variable
STATUS. Free PING->ping_hostname.
(ping_reset): New function.
(echo_finish): Call return instead of exit.
* ping/ping_address.c (ping_address): Changed type to
`int ping_address (char *hostname)'. All callers and extern
declarations changed accordingly.
* ping/ping_echo.c (ping_echo): Likewise.
* ping/ping_router.c (ping_router): Likewise.
* ping/ping_timestamp.c (ping_timestamp): Likewise.
"ping_common.h".
(ping_timestamp): Use error instead of "output message; exit;"
concoction's.
* ping/ping_impl.h (is_root, preload): Removed extern
declarations.
* ping/ping_echo.c (ping_echo): Use error instead of "output
message; exit;" concoction's.
* ping/ping_common.h (show_license): Removed declaration.
* ping/ping_common.c: Include "ping_common.h".
(ping_cvt_number, decode_pattern): Use error instead of "output
message; exit;" concoction's.
(show_license): Function removed.
* ping/ping_address.c: Don't include "getopt.h". Include
"ping_common.h".
(ping_address): Use error instead of "output message; exit;"
concoction's.
* ping/ping6.c: Include <stdbool.h>. Don't include <getopt.h>.
Include <argp.h> and "libinetutils.h".
(short_options, long_options): Variables removed.
(is_root, patptr, one, pattern_len): New variables.
(show_usage): Function removed.
(program_name): Variable removed.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc, argp_options): New variables.
(parse_opt): New function.
(argp): New variable.
(main): Use argp to parse program options.
(ping_echo, ping_init): Use error instead of "output message;
exit;" concoction's.
* ping/ping.c: Don't include <getopt.h>. Include <argp.h> and
"libinetutils.h".
(short_options, long_options): Variables removed.
(is_root, patptr, pattern_len, socket_type, count, interval): New
variables.
(show_usage): Function removed.
(decode_type): Changed type to `int (*decode_type (const char
*arg)) (int argc, char **argv)'. All callers changed accordingly.
(program_name): Variable removed.
(ARGP_PROGRAM_DATA): Call macro.
(args_doc, doc): New variables.
(ARG_ECHO, ARG_ADDRESS, ARG_TIMESTAMP, ARG_ROUTERDISCOVERY): New
enums.
(argp_options): New variable.
(parse_opt): New function.
(main): Use argp to parse program options.
* ping/Makefile.am (INCLUDES): Added
`-I$(top_srcdir)/libinetutils'.