diff options
author | Kenneth G Raeburn <raeburn@mit.edu> | 1991-03-21 07:31:44 +0000 |
---|---|---|
committer | Kenneth G Raeburn <raeburn@mit.edu> | 1991-03-21 07:31:44 +0000 |
commit | 6d22005aa2628eb8e8e43f37798daf16cac42934 (patch) | |
tree | 6c1f251d95b67433b2bc01a57521e3da163c3c78 /server/zserver.h | |
parent | 93d7ad83e34feaef5d9af9b0af42b9151384a0e9 (diff) |
Remove SigBlock stuff.
Declare Kerberos stuff only if using it.
Diffstat (limited to 'server/zserver.h')
-rw-r--r-- | server/zserver.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/server/zserver.h b/server/zserver.h index 8f71688..9d47ec3 100644 --- a/server/zserver.h +++ b/server/zserver.h @@ -7,9 +7,9 @@ * * $Source$ * $Author$ - * $Header$ + * $Zephyr: /mit/zephyr/src/server/RCS/zserver.h,v 1.34 91/03/08 12:53:24 raeburn Exp $ * - * Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. + * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of Technology. * For copying and distribution information, see the file * "mit-copyright.h". */ @@ -291,6 +291,16 @@ enum ZSentType { NOT_FOUND /* user not found for uloc */ }; +class SignalBlock { + int old_mask; +public: + SignalBlock (int mask) { + old_mask = sigblock (mask); + } + ~SignalBlock () { + (void) sigsetmask (old_mask); + } +}; const int dump_masks = sigmask (SIGFPE) | sigmask (SIGEMT); /* useful... */ @@ -380,8 +390,10 @@ extern void hostm_lose_ignore(ZClient_t *client); extern void hostm_renumber_servers (int *); /* found in kstuff.c */ +#ifdef KERBEROS extern int GetKerberosData (int, struct in_addr, AUTH_DAT*, char*, char*); extern Code_t SendKerberosData (int, KTEXT, char*, char*); +#endif /* found in server.c */ extern void server_timo(void *which); |