diff options
author | mouring <mouring> | 2002-04-06 18:58:31 +0000 |
---|---|---|
committer | mouring <mouring> | 2002-04-06 18:58:31 +0000 |
commit | 61989aa6e93bc4c69f302f2ed924b597d9430f52 (patch) | |
tree | e9de22d7ced0a34a840d357fd9a39d617ba0d12f /openbsd-compat | |
parent | 64dec42662fcb54e7030a781a713df3e1769582f (diff) | |
download | openssh-61989aa6e93bc4c69f302f2ed924b597d9430f52.tar.gz |
- (bal) Revered out of runtime IRIX runtime detection of joblimits. Code is
incomplete.
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/port-irix.c | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/openbsd-compat/port-irix.c b/openbsd-compat/port-irix.c index bd03366f..a63ec429 100644 --- a/openbsd-compat/port-irix.c +++ b/openbsd-compat/port-irix.c @@ -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 */ |