Wed Jul 27 12:52:04 1994 Mark Eichin (eichin@tweedledumber.cygnus.com)
+ * Makefile.in: add LIBOBJS, dependency for getdtablesize.o.
+ * getdtablesize.c: new file.
+ * configure.in: build getdtablesize.c if needed.
+
* login.c: HAVE_TTYENT_H.
* configure.in: add ttyent.h to HEADERS test.
K4LIB = $(KRB4)/lib/libkrb.a
KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB)
+LIBOBJS=@LIBOBJS@
+
SRCS= krcp.c krlogin.c krsh.c kcmd.c forward.c logutil.c $(SETENVSRC) \
login.c
OBJS= krcp.o krlogin.o krsh.o kcmd.o forward.c logutil.o $(SETENVOBJ) \
- login.o
+ login.o $(LIBOBJS)
all:: rsh rcp rlogin krshd krlogind login.krb5
install::
$(INSTALL_PROGRAM) login.krb5 $(DESTDIR)$(SERVER_BINDIR)/login.krb5
+
+getdtablesize.o: $(srcdir)/getdtablesize.c
+
AC_FUNC_CHECK(utimes,AC_DEFINE(HAS_UTIMES))
AC_FUNC_CHECK(getutent,AC_DEFINE(HAVE_GETUTENT))
AC_HAVE_HEADERS(sys/filio.h unistd.h sys/label.h ttyent.h)
+AC_REPLACE_FUNCS(getdtablesize)
CHECK_DIRENT
CHECK_FCNTL
AC_COMPILE_CHECK([F_SETOWN],
--- /dev/null
+/* Placed in the Public Domain by Mark Eichin, Cygnus Support 1994 */
+
+#include <sys/resource.h>
+int getdtablesize() {
+ struct rlimit rl;
+ getrlimit(RLIMIT_NOFILE, &rl);
+ return rl.rlim_cur;
+}