instead of the older names AC_HAVE_FUNCS, AC_HEADER_CHECK,
AC_CONST. Consolidate use of function testing macros.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12843
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-11-01 Ezra Peisach <epeisach@mit.edu>
+
+ * configure.in: Use AC_CHECK_FUNCS, AC_CHECK_HEADERS, AC_C_CONST
+ instead of the older names AC_HAVE_FUNCS, AC_HEADER_CHECK,
+ AC_CONST. Consolidate use of function testing macros.
+
2000-03-24 Ken Raeburn <raeburn@mit.edu>
* configure.in: Check for alpha*-dec-osf* instead of
AC_INIT(README.gssftp)
CONFIG_RULES
-AC_CONST
+AC_C_CONST
AC_PROG_INSTALL
AC_PROG_YACC
KRB5_SIGTYPE
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_FUNC_VFORK
-AC_HAVE_FUNCS(getcwd getdtablesize)
AC_HEADER_STDARG
-AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK(cfsetispeed,AC_DEFINE(POSIX_TERMIOS)))
+AC_CHECK_HEADER(termios.h,AC_CHECK_FUNC(cfsetispeed,AC_DEFINE(POSIX_TERMIOS)))
AC_CHECK_HEADERS(unistd.h stdlib.h string.h sys/select.h sys/sockio.h paths.h)
CHECK_UTMP
DECLARE_SYS_ERRLIST
AC_REPLACE_FUNCS(getdtablesize)
-AC_HAVE_FUNCS(getcwd getusershell seteuid setreuid setresuid)
+AC_CHECK_FUNCS(getcwd getdtablesize getusershell seteuid setreuid setresuid)
AC_CHECK_LIB(crypt,crypt) dnl
AC_CHECK_LIB(util,logwtmp) dnl
dnl
#include <vfork.h>
#endif
+#include "extern.h"
+
/*
- * Special version of popen which avoids call to shell. This insures noone
+ * Special version of popen which avoids call to shell. This insures no-one
* may create a pipe to a hidden program as a side effect of a list or dir
* command.
*/
ftpd_popen(program, type)
char *program, *type;
{
- register char *cp;
- FILE *volatile iop;
+ char *cp;
+ FILE *iop;
int argc, gargc, pdes[2], pid;
char **pop, *argv[MAX_ARGV], *gargv[MAX_GARGV], *vv[2];
- extern char **ftpglob(), **copyblk();
+ extern char **ftpglob();
- if (*type != 'r' && *type != 'w' || type[1])
+ if ((*type != 'r' && *type != 'w') || type[1])
return(NULL);
if (!pids) {
pfree: for (argc = 1; argv[argc] != NULL; argc++) {
blkfree((char **)argv[argc]);
+#if 0
free((char *)argv[argc]);
+#endif
}
return(iop);
}
+int
ftpd_pclose(iop)
FILE *iop;
{
+#include <stdio.h>
+
#define CRED_DECL extern AUTH_DAT kdata;
-#define SESSION &kdata.session
+#define SESSION kdata.session
#define myaddr data_source
#define hisaddr data_dest
+
+int secure_flush PROTOTYPE((int));
+int secure_putc PROTOTYPE((int, FILE *));
+int secure_getc PROTOTYPE((FILE *));
+int secure_write PROTOTYPE((int, unsigned char *, unsigned int));
+int secure_read PROTOTYPE((int, char *, unsigned int));
+void secure_gss_error PROTOTYPE((OM_uint32 maj_stat, OM_uint32 min_stat, char *s));
+
+#if defined(STDARG) || (defined(__STDC__) && ! defined(VARARGS)) || defined(HAVE_STDARG_H)
+void secure_error(char *, ...);
+#else
+void secure_error();
+#endif