]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- (bal) Revered out of runtime IRIX runtime detection of joblimits. Code is
authorBen Lindstrom <mouring@eviladmin.org>
Sat, 6 Apr 2002 18:58:31 +0000 (18:58 +0000)
committerBen Lindstrom <mouring@eviladmin.org>
Sat, 6 Apr 2002 18:58:31 +0000 (18:58 +0000)
   incomplete.

ChangeLog
configure.ac
openbsd-compat/port-irix.c

index cfb3005d281c6bda9467b3a5d49b48f008cc0fac..5cd744a4d4b4b3dbe32b5e4302e127dd6fb07ac6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,8 @@
      http://bugzilla.mindrot.org/show_bug.cgi?id=76
  - (bal) Slight update to OpenSC support.  Better version checking. patch
    by Juha Yrjölä <jyrjola@cc.hut.fi> 
+ - (bal) Revered out of runtime IRIX detection of joblimits.  Code is
+   incomplete.
 
 20020405
  - (bal) Patch for OpenSC SmartCard library; ok markus@; patch by
  - Wrote replacements for strlcpy and mkdtemp
  - Released 1.0pre1
 
-$Id: ChangeLog,v 1.2030 2002/04/06 18:29:59 mouring Exp $
+$Id: ChangeLog,v 1.2031 2002/04/06 18:58:31 mouring Exp $
index caa747f64c0a21f4398e00458cdb01c004b656e1..2208c4a0730e206bbb65f0691a5f9e370473f64f 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.ac,v 1.32 2002/04/05 20:23:37 mouring Exp $
+# $Id: configure.ac,v 1.33 2002/04/06 18:58:32 mouring Exp $
 
 AC_INIT
 AC_CONFIG_SRCDIR([ssh.c])
@@ -114,7 +114,7 @@ case "$host" in
        AC_DEFINE(WITH_IRIX_ARRAY)
        AC_DEFINE(WITH_IRIX_PROJECT)
        AC_DEFINE(WITH_IRIX_AUDIT)
-       AC_DEFINE(WITH_IRIX_JOBS)
+       AC_CHECK_FUNC(jlimit_startjob, [AC_DEFINE(WITH_IRIX_JOBS)])
        AC_DEFINE(BROKEN_INET_NTOA)
        ;;
 *-*-linux*)
index bd03366f54e0b932e3485200e0d7def3337fb087..a63ec429a871824ea21a54861f729d1678ee6c29 100644 (file)
@@ -3,20 +3,13 @@
 #if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY)
 
 #ifdef WITH_IRIX_PROJECT
-# include <proj.h>
+#include <proj.h>
 #endif /* WITH_IRIX_PROJECT */
 #ifdef WITH_IRIX_JOBS
-# include <sys/resource.h>
-# include <optional_sym.h>
-# if !defined(JLIMIT_CPU)
-/* Simulate job limit support so we can still test for it at runtime. */
-typedef __int64_t jid_t;
-extern jid_t jlimit_startjob(char *, uid_t, char *);
-#  pragma optional jlimit_startjob
-# endif
-#endif /* WITH_IRIX_JOBS */
+#include <sys/resource.h>
+#endif
 #ifdef WITH_IRIX_AUDIT
-# include <sat.h>
+#include <sat.h>
 #endif /* WITH_IRIX_AUDIT */
 
 void
@@ -34,16 +27,10 @@ irix_setusercontext(struct passwd *pw)
 #endif /* WITH_IRIX_JOBS */
 
 #ifdef WITH_IRIX_JOBS
-       if (_MIPS_SYMBOL_PRESENT(jlimit_startjob)) {
-         jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive");
-         if (jid == -1) {
-           if (errno == ENOPKG)
-             jid = 0;
-           else
-             fatal("Failed to create job container: %.100s",
+        jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive");
+        if (jid == -1)
+                fatal("Failed to create job container: %.100s",
                     strerror(errno));
-         }
-       }
 #endif /* WITH_IRIX_JOBS */
 #ifdef WITH_IRIX_ARRAY
         /* initialize array session */