Displaying 3 results from an estimated 3 matches for "optional_sym".
2003 May 26
1
[patch] port-irix.c: refine jlimit support
--- openbsd-compat/port-irix.c.orig 2002-04-07 03:58:33.000000000 +0900
+++ openbsd-compat/port-irix.c 2003-05-27 02:11:07.620000380 +0900
@@ -7,6 +7,12 @@
#endif /* WITH_IRIX_PROJECT */
#ifdef WITH_IRIX_JOBS
#include <sys/resource.h>
+#include <optional_sym.h>
+# if !defined(JLIMIT_CPU)
+typedef __int64_t jid_t;
+extern jid_t jlimit_startjob(char *, uid_t, char *);
+# pragma optional jlimit_startjob
+# endif
#endif
#ifdef WITH_IRIX_AUDIT
#include <sat.h>
@@ -27,10 +33,15 @@
#endif /* WITH_IRIX_JOBS */
#ifdef WITH_IRIX_JOBS
- ji...
2002 Mar 07
1
Irix joblimits failure (was: Re: New snapshot)
...d(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>
-#endif
+# 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 */
#ifdef WITH_IRIX_AUDIT
-#include <...
2002 Mar 15
0
Optional symbols on IRIX
A couple days ago I mailed in a patch to use _MIPS_SYMBOL_PRESENT to
test at run-time whether jlimit_startjob() was present IRIX systems. I
neglected to mention that the patch I sent in wasn't entirely complete:
a _real_ fix would test '#include <optional_sym.h>' in configure, and
also require either the MipsPRO 7.2.x or MipsPRO 7.3.1.3 or newer
compiler.
David
--
David KAELBLING <drk at sgi.com> Silicon Graphics Computer Systems
1 Cabot Rd, suite 250; Hudson, MA 01749 781.839.2157, fax ...2357