Collin Funk
8e88c32cfe
maint: Fix link errors on Solaris 11 OmniOS.
...
* bootstrap.conf (gnulib_modules): Add hostent and socket.
* ftp/Makefile.am (ftp_LDADD): New variable.
* ftpd/Makefile.am (ftpd_LDADD): New variable.
* ifconfig/Makefile.am (ifconfig_LDADD): New variable.
* ping/Makefile.am (ping_LDADD): Add $(LIBSOCKET), $(HOSTENT_LIB),
$(LIBINTL), and $(GETADDRINFO_LIB).
(ping6_LDADD): New variable.
* src/Makefile.am (hostname_LDADD, rlogin_LDADD, rsh_LDADD): Add
$(HOSTENT_LIB).
(tftp_LDADD, rexecd_LDADD): Add $(LIBSOCKET).
(rexec_LDADD, dnsdomainname_LDADD, logger_LDADD, inetd_LDADD)
(tftpd_LDADD): New variables.
(rlogind_LDADD): Add $(LIBSOCKET), $(LIBINTL), and $(GETADDRINFO_LIB).
(rshd_LDADD): Add $(HOSTENT_LIB), $(LIBINTL), and $(GETADDRINFO_LIB).
(syslogd_LDADD): Add $(LIBSOCKET), $(HOSTENT_LIB), $(LIBINTL), and
$(GETADDRINFO_LIB).
(uucpd_LDADD): Add $(LIBSOCKET) and $(HOSTENT_LIB).
* talk/Makefile.am (talk_LDADD): New variable.
* talkd/Makefile.am (talkd_LDADD): New variable.
* telnet/Makefile.am (telnet_LDADD): New variable.
* telnetd/Makefile.am (telnetd_LDADD): New variable.
* tests/Makefile.am (localhost_LDADD, runtime_ipv6_LDADD)
(addrpeek_LDADD, tcpget_LDADD): New variables.
* whois/Makefile.am (whois_LDADD): New variable.
2025-02-25 22:36:20 -08:00
Simon Josefsson
04c3738a6c
maint: Run 'make update-copyright'.
2025-01-01 18:21:25 +01:00
Collin Funk
b694830a33
ping, ping6: Modernize time functions.
...
* bootstrap.conf (gnulib_modules): Add timespec-add.
* ping/Makefile.am (LDADD): Add $(CLOCK_TIME_LIB),
$(PTHREAD_SIGMASK_LIB), and $(SELECT_LIB).
* ping/libping.c (ping_init): Use current_timespec instead of
gettimeofday.
* ping/ping_common.c (tvsub): Remove function.
(ping_timeout_p): Return a bool. Use timespec_sub and
current_timespec.
* ping/ping_common.h (PING_SET_INTERVAL): Expect a timespec instead of
a timeval.
(struct ping_data): Store the start time in a timespec instead of a
timeval.
(tvsub): Remove declaration.
(ping_timeout_p): Adjust prototype.
* ping/ping.c (send_echo): Use current_timespec.
(ping_init): Likewise.
(ping_run): Likewise. Use pselect.
* ping/ping6.c (send_echo): Use current_timespec.
(print_echo): Likewise.
(ping_init): Likewise.
(ping_run): Likewise. Use pselect.
* ping/ping_echo.c (print_echo): Use current_timespec.
2024-06-26 20:43:41 -07:00
Simon Josefsson
aba8d6528e
maint: Run 'make update-copyright'.
2024-01-01 11:28:59 +01:00
Simon Josefsson
4bfe18d36f
maint: Run 'make update-copyright'.
2023-01-01 01:37:41 +01:00
Alfred M. Szmidt
6d519229fa
Happy GNU 2022 year!
2022-01-01 17:23:02 +01:00
Simon Josefsson
1d5c923528
maint: Use copyright year ranges for readability.
...
* 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.
2021-09-03 18:41:09 +02:00
Alfred M. Szmidt
911413ea57
Happy GNU 2021 year!
2021-01-01 11:35:27 +01:00
Mats Erik Andersson
5164b075a5
Better portability for BSD install.
...
Reordering arguments in install hooks improves portability, and the
inclusion of exit codes helps post analysis. Reported by Bill Cole.
2020-02-03 19:12:28 +01:00
Simon Josefsson
d8de4587f2
Update copyright years to use intervals up to 2020.
2020-01-01 13:21:37 +01:00
Mats Erik Andersson
3d64a8c728
Update copyright years to 2017. (silent change)
2017-02-21 14:25:23 +01:00
Mats Erik Andersson
84dcf08568
Update copyright years to 2016. (silent change)
2016-01-22 19:09:49 +01:00
Mats Erik Andersson
d3c9b1b8fa
Update copyright years with 2015. (silent change)
2015-01-16 14:09:44 +01:00
Mats Erik Andersson
ae85332551
Update copyright years with 2014. (silent change)
2014-01-18 12:23:21 +01:00
Mats Erik Andersson
d1d52cce92
Update copyright years with 2013. (silent change)
2013-05-22 21:03:41 +02:00
Guillem Jover
92a0155315
Use standard suid-mode.
2013-03-13 23:09:32 +01:00
Guillem Jover
b1d8390d0a
Cleanup automake variables.
2013-01-24 15:20:39 +01:00
Mats Erik Andersson
3841619d01
ping, ping6: Support IDN named hosts.
2012-08-31 17:55:24 +02:00
Alfred M. Szmidt
53c5e95452
Silence sc_makefile_at_at_check.
2012-02-25 12:23:16 +01:00
Alfred M. Szmidt
99c71142f2
Updated copyright years; happy 2012! (silent change)
2012-01-01 19:27:00 +01:00
Alfred M. Szmidt
8899e044dd
New variables (iu_LIBRARIES and iu_INCLUDES ) for specifying core inetutils libraries and header files in Makefile.am.
2011-10-25 17:01:48 +02:00
Alfred M. Szmidt
d9788a7d35
Updated copyright years; happy 2011! (silent change)
2011-01-02 15:23:38 +00:00
Alfred M. Szmidt
700065918b
Clarify warning message when installing a SUID root program.
2010-01-29 18:19:02 +01:00
Alfred M. Szmidt
c583418f78
Updated copyright years for 2010.
...
Happy New Year!
2010-01-02 14:58:43 +01:00
Giuseppe Scrivano
a537491a63
Use ../lib/libgnu.a instead of -lgnu
2009-12-03 23:01:15 +01:00
Alfred M. Szmidt
0ae726abd8
Updated copyright notice. (silent change)
2009-11-03 18:35:51 +01:00
Alfred M. Szmidt
fed208aded
2009-04-30 Alfred M. Szmidt <ams@gnu.org>
...
* ftp/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* ftpd/Makefile.am (EXTRA_DIST): Removed man_MANS from list
* ftpd/Makefile.am (man_MANS): Variable removed.
* inetd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* libls/Makefile.am (EXTRA_DIST): Variable removed.
* logger/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* ping/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* rcp/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* rexecd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* rlogin/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* rlogind/Makefile.am (EXTRA_DIST, man_MANS): Variable removed.
* rsh/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* rshd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* syslogd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* talk/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* talkd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* telnet/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* telnetd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* tftp/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* tftpd/Makefile.am (EXTRA_DIST, man_MANS): Variables removed.
* ftp/ftp.1, ftpd/ftpd.8, gwhois/whois.1, inetd/inetd.8,
libls/ls.1, logger/logger.1, ping/ping.8, rcp/rcp.1,
rexecd/rexecd.8, rlogin/rlogin.1, rlogind/rlogind.8, rsh/rsh.1,
rshd/rshd.8, syslogd/syslog.conf.5, syslogd/syslogd.8,
talk/talk.1, talkd/talkd.8, telnet/telnet.1, telnetd/telnetd.8,
tftp/tftp.1, tftpd/tftpd.8: Files removed.
2009-04-30 11:02:11 +00:00
rakeshpandit
44f8b72406
2008-10-14 Rakesh Pandit <rakesh.pandit@gmail.com>
...
* libicmp/Makefile.am (libicmp_a_SOURCES): Removed libping.c
and ping.h
* ping/Makefile.am (ping_SOURCES): Added libping.c and ping.h
2008-10-14 16:34:17 +00:00
Alfred M. Szmidt
5dc26adea6
Updated to GPLv3.
2007-06-29 16:29:35 +00:00
Alfred M. Szmidt
2252942612
* ping/ping_timestamp.c: Don't include "getopt.h". Include
...
"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'.
2007-05-28 20:26:02 +00:00
Alfred M. Szmidt
b28bf395f2
* Makefile.am (MAINTAINERCLEANFILES): Removed variable.
...
* ping/Makefile.am (MAINTAINERCLEANFILES): Likewise.
2007-03-30 09:11:06 +00:00
Alfred M. Szmidt
e44ae1fdf6
ping/Makefile.am (MAINTAINERCLEANFILES): New variable.
2007-03-29 19:55:47 +00:00
Sergey Poznyakoff
15fb858b5e
Move pathdefs to AM_CPPFLAGS. Load libgnu after libinetutils.
2006-10-12 09:55:07 +00:00
Sergey Poznyakoff
8f38125dd5
Remove ansi2knr. Add copyleft header. Update INCLUDES.
2005-10-11 11:29:15 +00:00
Alfred M. Szmidt
6a85c51c5b
2005-06-19 Jeroen Dekkers <jeroen@dekkers.cx>
...
* Makefile.am: Add ping6.
(ping_SOURCES): Add ping_common.c and ping_common.h.
* ping6.c: New file.
* ping6.h: Likewise.
* ping_common.c: Likewise.
* ping_common.h: Likewise.
* ping.c: Include "ping_common.h". Remove __P macro in
prototypes.
(ping_cvt_number, init_data_buffer,
decode_pattern, show_license): Move to ...
* ping_common.c: ... here.
* ping_echo.c: Include "ping_common.h".
(tvsub, nabs, nsqrt): Move to ...
* ping_common.c: ... here.
2005-06-20 08:21:48 +00:00
Alfred M. Szmidt
e164d269be
(INCLUDES): Removed `-I$(top_builddir)/include'.
...
(LDADD): Added `-L../lib -lgnu'.
2005-01-21 07:59:01 +00:00
Sergey Poznyakoff
eeae368f36
Conditional install-exec-hook
2004-07-14 10:42:54 +00:00
Sergey Poznyakoff
7bcd70a9d2
Removed libm dependency
2003-01-15 08:32:40 +00:00
Alfred M. Szmidt
3b76d5d924
(bin_PROGRAMS): Use ping_BUILD instead of BUILD_PING.
2002-04-28 17:16:30 +00:00
Jeff Bailey
8fa96b2b7b
Upgrade to autoconf 2.52, automake 1.5, and various fixes for srcdir!=builddir builds
2002-02-11 04:17:02 +00:00
Sergey Poznyakoff
1e654b426e
Added $(man_MANS) to EXTRA_DIST.
2001-11-21 18:35:22 +00:00
Sergey Poznyakoff
a8b64a7f61
Add ping.8 in Makefile.am
2001-11-11 04:28:32 +00:00
Sergey Poznyakoff
e3944672c6
Certain programs __MUST__ be install root to work properly. There is a hook
...
in the installation to warn the user. But maybe in the future we should
try to install as root and failed the installation if it does not work?
* ping/Makefile.am: Rules to try install setuid root.
* rcp/Makefile.am: Rules to try install setuid root.
* rlogin/Makefile.am: Rules to try install setuid root.
* rsh/Makefile.am: Rules to try install setuid root.
2001-10-29 04:39:35 +00:00
Sergey Poznyakoff
a8bc345c6b
use @BUILD_PING@ instead of directly assigning bin_PROGRAMS
2001-06-19 15:09:35 +00:00
Sergey Poznyakoff
faac87fa5f
added OMIT_DEPENDENCIES
2001-06-18 15:54:49 +00:00
Sergey Poznyakoff
5e3b298242
initial implementation
2001-06-13 11:55:53 +00:00
Sergey Poznyakoff
5ddf123bac
ChangeLog configure.in ftp/Makefile.am ftpd/Makefile.am
...
ftpd/ftpcmd.y ftpd/ftpd.c ftpd/logwtmp.c ftpd/popen.c
glob/Makefile.am headers/config.h.in inetd/ChangeLog
inetd/Makefile.am inetd/inetd.c libinetutils/ChangeLog
libinetutils/Makefile.am libinetutils/cleansess.c
libinetutils/daemon.c libinetutils/des_rw.c
libinetutils/forkpty.c libinetutils/getusershell.c
libinetutils/herror.c libinetutils/hstrerror.c
libinetutils/iruserok.c libinetutils/localhost.c
libinetutils/login_tty.c libinetutils/logout.c
libinetutils/logwtmp.c libinetutils/openpty.c
libinetutils/readstream.c libinetutils/revoke.c
libinetutils/setenv.c libinetutils/setsig.c
libinetutils/strdup.c libinetutils/stub_tgetent.c
libinetutils/tftpsubs.c libinetutils/ttymsg.c
libinetutils/utmp_init.c libinetutils/utmp_logout.c
libinetutils/xgetcwd.c libinetutils/xstrdup.c
libls/Makefile.am libtelnet/Makefile.am libtelnet/genget.c
libtelnet/getent.c libtelnet/misc.c ping/Makefile.am
rcp/Makefile.am rcp/rcp.c rcp/util.c rexecd/ChangeLog
rexecd/Makefile.am rexecd/rexecd.c rlogin/Makefile.am
rlogin/rlogin.c rlogind/Makefile.am rlogind/rlogind.c
rsh/Makefile.am rsh/rsh.c rshd/Makefile.am rshd/rshd.c
syslog/Makefile.am syslog/syslog.c syslogd/Makefile.am
syslogd/syslogd.c talk/Makefile.am talk/ctl.c
talk/ctl_transact.c talk/display.c talk/get_addrs.c
talk/get_names.c talk/init_disp.c talk/invite.c talk/io.c
talk/look_up.c talk/msgs.c talk/talk.c talkd/Makefile.am
talkd/announce.c talkd/print.c talkd/process.c talkd/table.c
talkd/talkd.c telnet/Makefile.am telnet/authenc.c
telnet/commands.c telnet/externs.h telnet/main.c
telnet/network.c telnet/ring.c telnet/ring.h telnet/sys_bsd.c
telnet/telnet.c telnet/terminal.c telnet/tn3270.c
telnet/utilities.c telnetd/Makefile.am telnetd/authenc.c
telnetd/slc.c telnetd/state.c telnetd/sys_term.c
telnetd/telnetd.c telnetd/termstat.c telnetd/utility.c
tftp/Makefile.am tftp/tftp.c tftpd/Makefile.am tftpd/tftpd.c
uucpd/Makefile.am uucpd/uucpd.c whois/Makefile.am whois/net.c
In a bold move, bring all the functions prototype to ANSI C.
2000-07-19 04:08:39 +00:00
Miles Bader
1627633f84
Thu Mar 26 20:40:06 1998 Joel N. Weber II <nemo@nautilus.sub>
...
* */Makefile.am: Use @BUILD_FOO@ to determine whether to build the
program.
1998-03-27 09:52:06 +00:00
Jeff Bailey
57e4342a5f
Add start of ping **doesn't do anything useful**
1998-03-27 03:48:02 +00:00
Jeff Bailey
cee262f75a
Makefile updates - This will not compile yet wait for next update. Pathnames
...
are still an issue, but the FSF just received my assignment and I want this
in the repository
1998-01-27 21:24:57 +00:00