Commit Graph

404 Commits

Author SHA1 Message Date
Miles Bader
269ea6c8b3 (DISTFILES): Add err.h. 1996-08-20 23:56:22 +00:00
Miles Bader
0212b9fac0 (get_args): New function.
(setpeer, put, get, setrexmt, settimeout): Use get_args.
(command): Use fgets instead of gets.
1996-08-16 22:01:56 +00:00
Miles Bader
16e650ad37 Initial revision 1996-08-16 20:37:28 +00:00
Miles Bader
6f1203fb58 (SRCS): Add strdup.c, logout.c, logwtmp.c, cleansess.c, strerror.c,
hstrerror.c, & daemon.c.
(OBJS): Add cleansess.o.
(CPPFLAGS): New variable.
1996-08-16 20:37:00 +00:00
Miles Bader
871a082012 (inetutils_version): Change to 1.2. 1996-08-16 20:35:00 +00:00
Miles Bader
39018cc397 <paths.h>: Include removed. 1996-08-16 20:34:14 +00:00
Miles Bader
903cb9e32b (LogName, ConfFile, PidFile, ctty, main, wallmsg):
Use PATH_* macros instead of _PATH_* ones.
<paths.h>: Include removed.
1996-08-16 20:25:31 +00:00
Miles Bader
b970baba7c (CPPFLAGS): Use $(PATHDEF_...) variables. 1996-08-16 20:25:00 +00:00
Miles Bader
5c731a631d [__GNUC__] (CRYPT): Use alternate definition to avoid apparent gcc bug with
weak refs and ?: operator.
Replace HAVE_WEAK_REFS with HAVE_ATTR_WEAK_REFS, and test for any of the
  three with HAVE_WEAK_REFS.
If there's a system decl for crypt, use an ambiguous argument signature
  (`()') to avoid conflicting with it.
1996-08-16 20:23:15 +00:00
Miles Bader
d1b1207247 (DISTFILES): Add confpaths.h.in. 1996-08-16 20:22:10 +00:00
Miles Bader
a381c06181 (HAVE_STAT_ST_MTIMESPEC): Renamed from HAVE_ST_TIMESPEC.
(HAVE_STAT_ST_MTIME_USC): Renamed from HAVE_ST_TIME_USEC.
(HAVE_ATTR_WEAK_REFS, HAVE_UTMP_UT_TYPE, HAVE_UTMP_UT_HOST, HAVE_UTMP_UT_TV,
  HAVE_FD_SET_MACROS_IN_SYS_TIME_H, HAVE_H_ERRLIST_DECL, HAVE_STRUCT_LASTLOG,
  HAVE_CRYPT_DECL, SEEK_SET, SEEK_CUR, SEEK_END): New define slots.
Include <confpaths.h> at end.
1996-08-16 20:21:09 +00:00
Miles Bader
bd24d30092 (init_display): Use sigaction or sigvec as appropriate. 1996-08-16 20:11:10 +00:00
Miles Bader
124356490b (oob): Only use TIOCFLUSH if it's defined.
(writer): Only check VDSUSP if it's defined.
(main): Use sigaction, sigvec, or signal as appropriate.
1996-08-16 20:10:46 +00:00
Miles Bader
13e48c393d (main): Use PATH_* macros instead of _PATH_* ones.
[HAVE_FD_SET_MACROS_IN_SYS_TIME_H] <sys/time.h>: New include.
[HAVE_STDARG_H] <stdarg.h>: New include.
[!HAVE_STDARG_H] <varargs.h>: Conditionalize include.
1996-08-16 20:06:55 +00:00
Miles Bader
69442d7f76 (susystem): Use PATH_* macros instead of _PATH_* ones.
<paths.h>: Include removed.
1996-08-16 20:00:41 +00:00
Miles Bader
3e8ba85103 (write_stat_time): Replace HAVE_ST_TIME* with HAVE_STAT_ST_MTIME* (as
generated by new configure rules).
(toremote, tolocal): Use PATH_* macros instead of _PATH_* ones.
1996-08-16 19:59:49 +00:00
Miles Bader
f013d944f2 Include <stdarg.h> or <varargs.h> before including <err.h> (which needs
va_list).
(localhost): New declaration.
1996-08-16 19:57:54 +00:00
Miles Bader
6f96870b9e [!HAVE_HSTRERROR] (hookup):
Add grot to print error message for h_errno, using herror.
[HAVE_STDARG_H] <stdarg.h>: New include.
[!HAVE_STDARG_H] <varargs.h>: Conditionalize include.
(command): Make work with either <stdarg.h> or <varargs.h>.
1996-08-16 19:57:19 +00:00
Miles Bader
24ed739226 (site_idle): Renamed from `idle' to avoid conflict with linux <unistd.h>. 1996-08-16 19:56:35 +00:00
Miles Bader
d9595eeee4 (cmdtab): Change entry for "idle" to use site_idle. 1996-08-16 19:55:56 +00:00
Miles Bader
b421b04430 [!HAVE_STRDUP] (strdup): Function removed.
(remglob, shell): Use PATH_* macros instead of _PATH_* ones.
(site_idle): Renamed from `idle' to avoid conflict with linux <unistd.h>.
<paths.h>: Include removed.
1996-08-16 19:53:10 +00:00
Miles Bader
d8a0e94000 (LDLIBS): Add $(LIBGLOB).
(CPPFLAGS): New macro.
1996-08-16 19:51:51 +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
c852c45772 (dologin, dologout): Always use logwtmp now.
(dologout): Check HAVE_WAIT3 instead of BSDINETD.
(dologin): Only write lastlog if HAVE_STRUCT_LASTLOG.
(struct utmp): Type removed.
<utmp.h>: Include removed.
<paths.h>: Include removed.
1996-08-16 19:50:32 +00:00
Miles Bader
b8b54e0abd [!LOG_FTP] (LOG_FTP): New macro. 1996-08-16 19:49:29 +00:00
Miles Bader
4ebf077357 (telnet): Only use TIOCPKT_IOCTL if it's defined.
<paths.h>: Include removed.
1996-08-16 19:48:53 +00:00
Miles Bader
15c06299f9 (tty_linemode): If EXTPROC isn't defined, always return false (we can't set
linemode either in this case).
(start_login): Use PATH_* macros instead of _PATH_* ones.
<paths.h>: Include removed.
1996-08-16 19:47:48 +00:00
Miles Bader
fa38b821d2 <paths.h>: Include removed.
<sgtty.h>: Include removed.
1996-08-16 19:42:23 +00:00
Miles Bader
e28e1a4e4a (doit):
Use PATH_* macros instead of _PATH_* ones.
  Use setpgid instead of setpgrp.
<paths.h>: Include removed.
1996-08-16 19:41:43 +00:00
Miles Bader
70562cfc2d (CPPFLAGS): New macro. 1996-08-16 19:39:46 +00:00
Miles Bader
4f5fe5c39c [HAVE_FD_SET_MACROS_IN_SYS_TIME_H] <sys/time.h>: New include.
[!TTYDEF_IFLAG] (TTYDEF_IFLAG), [!TTYDEF_OFLAG] (TTYDEF_OFLAG),
  [!TTYDEF_LFLAG] (TTYDEF_LFLAG): New macros.
<paths.h>: Include removed.
1996-08-16 19:39:16 +00:00
Miles Bader
4c55717231 (main): Use sigaction, sigvec, or signal as appropriate.
(CONFIG): Initialize from PATH_INETDCONF.
1996-08-16 19:36:17 +00:00
Miles Bader
b0a22e74e2 (CPPFLAGS): Use $(PATHDEF_...) variables. 1996-08-16 19:34:42 +00:00
Miles Bader
eafdfeca0d (try_login): New function, guts from `pass'.
(pass): Call try_login.
(user):
  Always ask for a password for an uknown user.
  Call try_login directly if a known user with no password.
(end_login, pass, dologout): Use logwtmp_keep_open.
(send_file_list): Test for '\0' in name rather than looking at DIR's d_namlen
  field (which doesn't exist on all systems).
(retrieve, store): Use SEEK_* macros instead of L_*.
[!LOG_FTP] (LOG_FTP): New macro.
(version): Variable removed.
(main, statcmd): Use INETUTILS_VERSION instead of VERSION.
1996-08-16 19:25:56 +00:00
Miles Bader
fcd71a1719 (SRCS): Remove logwtmp.c.
(CPPFLAGS): Use $(PATHDEF_...) variables.
(LDLIBS): Add $(LIBGLOB).
1996-08-16 19:11:51 +00:00
Miles Bader
161aa00ccc Initial revision 1996-08-16 19:10:13 +00:00
Miles Bader
47014ad493 Put @PATHDEFS_MAKE@ at the end.
(LIBGLOB): New variable.
1996-08-16 19:09:54 +00:00
Miles Bader
516f68927e Use macros from iumacros.m4.
Rearrange to be more clear, and add lots of comments.
Configure system paths with IU_CONFIG_PATHS.
Add check for errno being declared.
Add checks for ut_type, ut_host, and ut_tv fields in struct utmp.
Check for libutils functions in libutil if it exists.
(AC_CHECK_HEADERS): Add utmp.h, utmpx.h, & glob.h.
(AC_CHECK_FUNCS): Add flock, ftruncate, wait3.  Remove strdup & logwtmp.
(AC_REPLACE_FUNCS): Add strdup, logout, logwtmp, sigvec, sigaction, & daemon.
Check to see if the fd_set macros are defined by <sys/time.h> rather than
  <sys/types.h> (!).
Include $LIBTERMCAP in LIBCURSES if necessary.
Check for hstrerror, and various things to provide a replacement if it
  doesn't exist.
Add check for struct lastlog in <utmp.h>.
Check whether crypt is declared in <unistd.h>.
Add tests for SEEK_* macros and L_* macros, defining the SEEK_* ones if they
  don't already exists.
Check for system glob, and config in our own if necessary.
1996-08-16 19:04:52 +00:00
Miles Bader
fe3ce1d5db Initial revision 1996-08-16 02:15:27 +00:00
Miles Bader
06075c0466 entered into RCS 1996-08-07 19:14:12 +00:00
Miles Bader
3826914858 Prefer termios if <termios.h> & <termio.h> exist. 1996-08-01 01:30:48 +00:00
Miles Bader
2a15f2b141 (fatal): Don't depend on sprintf returning a count.
<getopt.h>: New include.
1996-08-01 01:30:23 +00:00
Miles Bader
4d340b0745 (line): Define with a size of 2048 if LINE_MAX isn't defined.
<getopt.h>: New include.
1996-08-01 01:29:19 +00:00
Miles Bader
f293aaeb61 (help): Shorten description for -l/--user. 1996-08-01 00:54:34 +00:00
Miles Bader
e0197669ec (doit): Use CRYPT instead of crypt.
<crypt.h>: New include.
1996-08-01 00:38:18 +00:00
Miles Bader
4436639096 (rsaencpwd_passwdok): Use CRYPT instead of crypt.
<crypt.h>: New include.
1996-08-01 00:37:50 +00:00
Miles Bader
5e490bbe21 (passwdok): Use CRYPT instead of crypt.
<crypt.h>: New include.
1996-08-01 00:37:26 +00:00
Miles Bader
6e798c5a66 (pass): Use CRYPT instead of crypt.
<crypt.h>: New include.
1996-08-01 00:37:04 +00:00
Miles Bader
e65f4c514a (DISTFILES): Add crypt.h. 1996-08-01 00:36:21 +00:00
Miles Bader
49febbcfc3 Initial revision 1996-08-01 00:36:06 +00:00