41 Commits

Author SHA1 Message Date
Simon Josefsson
8e9d7c933a doc: Fix codespell nits 2025-11-27 00:33:35 +01:00
Simon Josefsson
04c3738a6c maint: Run 'make update-copyright'. 2025-01-01 18:21:25 +01: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
Simon Josefsson
c1b8d134d5 Indent code. 2022-10-26 00:03:45 +02:00
Simon Josefsson
541fbbdaea Build fixes for C23 compatibility.
* src/inetd.c (signal_set_handler): Clarify sighandler_t type.
* ifconfig/printif.c, ifconfig/system/bsd.c, ifconfig/system/generic.c,
  ifconfig/system/hurd.c, ifconfig/system/linux.c, src/tftp.c,
  telnet/commands.c: Reorder MAYBE_UNUSED.
* libtelnet/genget.c (isprefix, genget): Use const char.
  libtelnet/genget.c (Ambiguous): Use void.
* telnet/commands.c, telnet/externs.h, telnet/network.c,
  telnet/telnet.c, telnet/utilities.c: Clarify empty function types,
  and update callers.
2022-10-25 22:37:01 +02: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
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
Mats Erik Andersson
982ff0eeab Portability fixes and cleanup.
Support DragonFly BSD and fix a resilient
issue on OpenSolaris.
2012-04-11 22:08:09 +02:00
Alfred M. Szmidt
99c71142f2 Updated copyright years; happy 2012! (silent change) 2012-01-01 19:27:00 +01:00
Alfred M. Szmidt
d9788a7d35 Updated copyright years; happy 2011! (silent change) 2011-01-02 15:23:38 +00:00
Alfred M. Szmidt
a748d81646 Always use <termios.h> interface. 2010-10-18 18:15:04 +02:00
Alfred M. Szmidt
5f7a1ca76e Removed useless C preprocessor parentehsis.
* cfg.mk (local-checks-to-skip): Removed sc_useless_cpp_parens from list.

* ftp/cmds.c: Removed useless C preprocessor parentehsis.
* ftp/ftp.c: Likewise.
* ftpd/auth.c: Likewise.
* ftpd/ftpcmd.y: Likewise.
* ftpd/ftpd.c: Likewise.
* ftpd/logwtmp.c: Likewise.
* ifconfig/changeif.c: Likewise.
* ifconfig/flags.c: Likewise.
* ifconfig/if_index.c: Likewise.
* ifconfig/system.c: Likewise.
* ifconfig/system.h: Likewise.
* ifconfig/system/linux.c: Likewise.
* libinetutils/daemon.c: Likewise.
* libinetutils/kcmd.c: Likewise.
* libinetutils/krcmd.c: Likewise.
* libinetutils/utmp_init.c: Likewise.
* libinetutils/utmp_logout.c: Likewise.
* libls/fts.c: Likewise.
* libtelnet/auth-proto.h: Likewise.
* libtelnet/auth.c: Likewise.
* libtelnet/enc_des.c: Likewise.
* libtelnet/encrypt.c: Likewise.
* libtelnet/forward.c: Likewise.
* libtelnet/misc.c: Likewise.
* libtelnet/read_passwd.c: Likewise.
* src/inetd.c: Likewise.
* src/rcp.c: Likewise.
* src/rlogin.c: Likewise.
* src/rlogind.c: Likewise.
* src/rsh.c: Likewise.
* src/rshd.c: Likewise.
* src/uucpd.c: Likewise.
* talk/init_disp.c: Likewise.
* telnet/authenc.c: Likewise.
* telnet/commands.c: Likewise.
* telnet/defines.h: Likewise.
* telnet/externs.h: Likewise.
* telnet/main.c: Likewise.
* telnet/ring.c: Likewise.
* telnet/sys_bsd.c: Likewise.
* telnet/telnet.c: Likewise.
* telnet/tn3270.c: Likewise.
* telnet/utilities.c: Likewise.
* telnetd/state.c: Likewise.
* telnetd/telnetd.c: Likewise.
* telnetd/telnetd.h: Likewise.
* telnetd/term.c: Likewise.
* telnetd/termstat.c: Likewise.
* telnetd/utility.c: Likewise.
2010-08-19 19:13:59 +02:00
Alfred M. Szmidt
c583418f78 Updated copyright years for 2010.
Happy New Year!
2010-01-02 14:58:43 +01:00
Giuseppe Scrivano
dc01797816 Fix compiler warnings 2009-12-03 17:53:27 +01:00
Alfred M. Szmidt
0ae726abd8 Updated copyright notice. (silent change) 2009-11-03 18:35:51 +01:00
Alfred M. Szmidt
bf37ef653c Moved FSF copyright notice to the top. (silent change) 2009-11-03 18:35:45 +01:00
Sergey Poznyakoff
7e04d54de0 More fixes.
* ping/ping_common.h (DEFAULT_PING_COUNT): Set to 0. The
standard behavior for ping is to keep sending packets until
the user cancels it (unless -c is given).
* NEWS: Update.

* telnet/externs.h: Include unistd.h
* telnet/commands.c: Remove inclusion of unistd.h
* telnet/main.c: Include defines.h before externs.h
2009-01-05 16:12:39 +00:00
Sergey Poznyakoff
3d9c96104b Bugfixes.
* bootstrap.conf: Add dirfd, filemode, inttostr and progname.
* configure.ac: Fix checks for IPv6 header files.
* doc/Makefile.am (inetutils_TEXINFOS): Add traceroute.texi.
* doc/ftp.texi: Fixes.
* ftp/cmds.c: Add missing includes.
* ftp/ftp.c: Remove extern program_name.
* ftp/ftp_var.h: Include progname.h
* ftp/main.c (main): Call set_program_name
* ftp/ruserpass.c: Include error.h
* ftpd/Makefile.am (LDADD): Link LIBLS before libgnu.
* ftpd/extern.h: Include getopt.h
* ftpd/ftpd.c, gwhois/whois.c, hostname/hostname.c,
logger/logger.c, rcp/rcp.c, rexecd/rexecd.c, rlogin/rlogin.c,
rsh/rsh.c, rshd/rshd.c, syslogd/syslogd.c, talk/talk.c,
traceroute/traceroute.c: Include progname.h
(main): Call set_program_name.

* ftpd/popen.c: Remove useless extern.
* ifconfig/ifconfig.h: Include progname.h.
* ifconfig/options.c (parse_opt): Call set_program_name.
* ifconfig/options.h (program_name): Remove extern.
* inetd/inetd.c: Include progname.h
(main): Call set_program_name.
(EAI_ADDRFAMILY): Provide a fallback definition for FreeBSD.
* libinetutils/argcv.c: Include ctype.h
* libinetutils/libinetutils.h (utmp_logout, logwtmp_keep_open):
New protos.
* libls/bsdport.h: Remove
* libls/bsdport.c: Remove
* libls/Makefile.am (libls_a_SOURCES): Remove bsdport.c
(noinst_HEADERS): Remove bsdport.h
(INCLUDES): New var.
* libls/fts.c: Remove bsdport.h
* libls/ls.c: Remove bsdisms.
* libls/print.c: Likewise.
* libtelnet/auth.h (auth_debug_mode): Fix extern.
* ping/libping.c (ping_recv): Fix call to ping_event.handler.
* ping/ping.c, ping/ping6.c (main): Call set_program_name.
* ping/ping_common.c (ping_set_data): Remove useless if.
* ping/ping_common.h: Include error.h and progname.h
* rcp/util.c: Include error.h
* rlogind/rlogind.c: Include utmp.h

* talk/ctl.c (print_addr): Remove unused function.
* talk/ctl_transact.c: Include talk.h
* talk/display.c: Fix order of function definitions.
* talk/get_addrs.c: Include unistd.h
* talk/get_names.c: Include unistd.h and netinet/in.h
* talk/init_disp.c: Include unistd.h
* talk/invite.c: Fix order of function definitions.
* talk/io.c: Include unistd.h
* talk/look_up.c: Include unistd.h. Fix order of function
definitions.
* talk/talk.h: Include progname.h.
Add missing prototypes.
* talk/talk_ctl.h (ctl_transact): New proto.
* telnet/commands.c: Include sys/wait.h. Reorder function
definitions.
* telnet/externs.h, telnet/ring.h: Add missing prototypes.
* telnet/telnet.c: Reorder function definitions.
* telnet/utilities.c: Include sys/socket.h
* telnetd/telnetd.h: Include sys/stat.h and ctype.h.
Add missing prototypes.
* traceroute/Makefile.am (INCLUDES): Add ../lib.
(LDADD): Add ../libgnu.a
* uucpd/uucpd.c: Reorder function definitions.
2008-12-27 20:36:00 +00:00
Alfred M. Szmidt
836bde0319 Ran indent and cppi. Removed lint keywords. 2006-10-21 15:24:21 +00:00
Alfred M. Szmidt
807df34817 * telnetd/utility.c: Include <time.h>.
(expand_line): Cast LINE to (char *).

* ftpd/auth.c: Include <string.h>
(auth_user) <default>: Cast LEN to (size_t).

* ftp/cmdtab.c: Include <string.h>
* libinetutils/xalloc_die.c: Include <stdlib.h>
* talk/get_addrs.c: Include <stdlib.h>, and <string.h>.
* talk/get_names.c: Include <stdlib.h>, and <string.h>.
* talk/init_disp.c: Include <stdlib.h>.
* talk/invite.c: Include <string.h>
* talk/look_up.c: Include <string.h>
* talk/talk.c: Include <stdlib.h>
* telnet/network.c: Include <stdlib.h>
* telnet/ring.c: Include <string.h>.
* telnet/terminal.c: Include <stdlib.h>.
* telnet/utilities.c: Include <stdlib.h>.

* rexecd/rexecd.c: Renamed all occurences of ASIN to A_SIN.

* libtelnet/encrypt.c, ftp/cmds.c, libls/util.c,
libls/stat_flags.c, libls/print.c, libls/ls.c, libls/fts.c,
libinetutils/tftpsubs.c, libinetutils/des_rw.c, ftpd/popen.c,
ftpd/logwtmp.c, ftpd/ftpcmd.y, whois/net.c, telnetd/termstat.c,
telnetd/state.c, telnetd/slc.c, telnet/utilities.c, telnet/main.c,
libtelnet/misc-proto.h, libtelnet/key-proto.h,
libtelnet/forward.c, rcp/util.c, talk/invite.c, telnet/externs.h:
Remove useless casts to (void).

* libtelnet/encrypt.c, libtelnet/enc_des.c, libtelnet/enc-proto.h,
libtelnet/auth.h, telnetd/utility.c, telnetd/telnetd.h,
telnetd/telnetd.c, telnet/ring.h, telnet/krb4-proto.h,
telnet/commands.c, rlogind/rlogind.c, libtelnet/encrypt.h,
libtelnet/kerberos.c, libtelnet/read_passwd.c: Remove all
references to P().
2006-10-21 14:30:00 +00:00
Sergey Poznyakoff
7279a29ee4 Remove __P wrappers, use program_name instead of __progname, define it in main (required by error.c) 2006-10-12 09:57:29 +00:00
Sergey Poznyakoff
32f233fd10 * configure.in: Version to 1.3.2g.
* rlogind/rlogind.c (topdomain):  In badly configure systems(like mine 8),
	there is no domainame, this case will cause a sigsegv.  Because, we take
	for granted that local_domain_name, will be initialized correctly:
	 local_domain_name = topdomain()  // will return NULL.
	Change topdomain() to return the original name on failure.

	* syslogd/syslogd.c:  Use the same code in talkd/talkd.c to handle
	utmp vs utmpx.
	(wallmesg):  Use the macros when manipulating utmp functions.

	* telnet/telnet.c: jmp_buf is an opaque struct/object we should
	not try to initialize it, and in any case globals and static
	variables are initialize to zeros, a prerequesite of ISO C.

	* telnetd/telnetd.c: Remove stupid/obsolete hack, if an array
	is declare const char *, you can no write(readonly) to it.  This
	the way ISO C defines it, even if some compiler let it trough. Do
	the right thing everytime not only for GCC.
2001-10-27 19:10:33 +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
Sergey Poznyakoff
ce4e7a0f5a ftp/ChangeLog ftp/cmds.c ftp/cmdtab.c ftp/domacro.c
ftp/extern.h ftp/ftp.1 ftp/ftp.c ftp/ftp_var.h ftp/main.c
 	ftp/ruserpass.c ftpd/ChangeLog ftpd/extern.h ftpd/ftpcmd.y
 	ftpd/ftpd.8 ftpd/ftpd.c ftpd/popen.c headers/ChangeLog
 	headers/paths.h headers/syslog-int.h headers/tftpsubs.h
 	headers/arpa/ftp.h headers/arpa/telnet.h headers/arpa/tftp.h
 	headers/protocols/talkd.h inetd/ChangeLog inetd/inetd.8
 	inetd/inetd.c libinetutils/ChangeLog libinetutils/daemon.c
 	libinetutils/des_rw.c libinetutils/forkpty.c
 	libinetutils/iruserok.c libinetutils/kcmd.c
 	libinetutils/krcmd.c libinetutils/login_tty.c
 	libinetutils/openpty.c libinetutils/snprintf.c
 	libinetutils/snprintf.h libinetutils/syslog.c
 	libinetutils/tftpsubs.c libinetutils/ttymsg.c
 	libinetutils/utmp_init.c libls/cmp.c libls/extern.h libls/ls.1
 	libls/ls.c libls/ls.h libls/print.c libls/stat_flags.c
 	libls/util.c libtelnet/ChangeLog libtelnet/auth-proto.h
 	libtelnet/auth.c libtelnet/auth.h libtelnet/enc-proto.h
 	libtelnet/enc_des.c libtelnet/encrypt.c libtelnet/encrypt.h
 	libtelnet/forward.c libtelnet/genget.c libtelnet/getent.c
 	libtelnet/kerberos.c libtelnet/kerberos5.c
 	libtelnet/key-proto.h libtelnet/misc-proto.h libtelnet/misc.c
 	libtelnet/misc.h libtelnet/read_passwd.c rcp/ChangeLog
 	rcp/extern.h rcp/rcp.1 rcp/rcp.c rcp/util.c rexecd/ChangeLog
 	rexecd/rexecd.8 rexecd/rexecd.c rlogin/ChangeLog
 	rlogin/rlogin.1 rlogin/rlogin.c rlogind/ChangeLog
 	rlogind/rlogind.8 rlogind/rlogind.c rsh/ChangeLog rsh/rsh.1
 	rsh/rsh.c rshd/ChangeLog rshd/rshd.8 rshd/rshd.c
 	syslog/ChangeLog syslog/syslog.1 syslog/syslog.c
 	syslogd/ChangeLog syslogd/syslog.conf.5 syslogd/syslogd.8
 	syslogd/syslogd.c talk/ChangeLog 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.1 talk/talk.c talk/talk.h
 	talk/talk_ctl.h talkd/ChangeLog talkd/announce.c talkd/print.c
 	talkd/process.c talkd/table.c talkd/talkd.8 talkd/talkd.c
 	telnet/ChangeLog telnet/authenc.c telnet/commands.c
 	telnet/defines.h telnet/externs.h telnet/fdset.h
 	telnet/general.h telnet/main.c telnet/network.c telnet/ring.c
 	telnet/ring.h telnet/sys_bsd.c telnet/telnet.1 telnet/telnet.c
 	telnet/terminal.c telnet/tn3270.c telnet/types.h
 	telnet/utilities.c telnetd/ChangeLog telnetd/authenc.c
 	telnetd/defs.h telnetd/ext.h telnetd/global.c telnetd/slc.c
 	telnetd/state.c telnetd/sys_term.c telnetd/telnetd.8
 	telnetd/telnetd.c telnetd/telnetd.h telnetd/termstat.c
 	telnetd/utility.c tftp/ChangeLog tftp/extern.h tftp/main.c
 	tftp/tftp.1 tftp/tftp.c tftpd/ChangeLog tftpd/tftpd.8
 	tftpd/tftpd.c uucpd/ChangeLog uucpd/uucpd.c whois/ChangeLog
 	whois/main.c whois/net.c

	* *: Clause 3 removed.
	excerpt from email with RMS:
	"UCB has agreed to drop the advertising clause from the license for all
	BSD software.  The advertising clause is this one:

	3. All advertising materials mentioning features or use of this software
		must display the following acknowledgement:
		This product includes software developed by the University of
		California, Berkeley and its contributors.

	This means that we can delete that paragraph from all files which give
	the University of California as the only copyright holder."
2000-07-06 04:21:09 +00:00
Miles Bader
bde72eeb4e 4.4BSD-Lite2 distribution 1997-03-01 16:22:12 +00:00
Miles Bader
eee191e266 4.4BSD-Lite distribution 1997-03-01 16:19:22 +00:00
Miles Bader
67441657f8 Include termio.h & termios.h, not sys/termio.h & sys/termios.h. 1997-02-17 04:38:17 +00:00
Miles Bader
c67bfe7da6 <sys/filio.h>:
Make dependent on HAVE_SYS_FILIO_H, not FILIO_H.
1997-01-11 03:29:11 +00:00
Miles Bader
659434e762 (termdata):
Don't make entry for "termdata" dependent on `unix' being defined.
1996-12-30 20:26:37 +00:00
Miles Bader
4a9d7d42ef Prefer termios if both <termios.h> & <termio.h> exist.
Move define of `termio' to `termios' outside of file-already-
  included test, as sometimes the file's already been included.
1996-08-16 19:51:14 +00:00
Miles Bader
0f67bcdd37 entered into RCS 1996-02-12 19:22:22 +00:00
Miles Bader
31fa33b6e3 Formerly externs.h.~2~ 1995-12-08 22:42:07 +00:00
Miles Bader
3c89678f95 Initial revision 1995-12-08 21:54:01 +00:00