+Fri Dec 19 18:19:42 1997 Dan Winship <danw@mit.edu>
+
+ * login.c (try_afscall): try_afscall doesn't work / isn't needed
+ on systems without SIGSYS
+
Thu Dec 11 23:20:20 1997 Tom Yu <tlyu@mit.edu>
* krlogind.c:
int pagflag = 0; /* true if setpag() has been called */
+/* This doesn't seem to be declared in the AFS header files. */
+extern ktc_ForgetAllTokens (), setpag ();
+
+#ifdef SIGSYS
static sigjmp_buf setpag_buf;
static sigtype sigsys ()
return retval;
}
-/* This doesn't seem to be declared in the AFS header files. */
-extern ktc_ForgetAllTokens (), setpag ();
-
#define try_setpag() try_afscall(setpag)
#define try_unlog() try_afscall(ktc_ForgetAllTokens)
+#else
+#define try_setpag() (setpag() == 0)
+#define try_unlog() (ktc_ForgetAllTokens() == 0)
+#endif /* SIGSYS */
#endif /* SETPAG */
void