diff options
| author | SkyperTHC | 2026-03-04 16:56:48 +0000 |
|---|---|---|
| committer | SkyperTHC | 2026-03-04 16:56:48 +0000 |
| commit | 9da824575b3f4496431691bdb3f6ce45c601accc (patch) | |
| tree | 781ffcc47483852cc340a7a84b2508aae292db83 /other/openssh-2.1.1p4/bsd-sigaction.h | |
| parent | bf6359d15fbb74aa95d36b1137fdc785def1bc46 (diff) | |
packetstorm sync
Diffstat (limited to 'other/openssh-2.1.1p4/bsd-sigaction.h')
| -rw-r--r-- | other/openssh-2.1.1p4/bsd-sigaction.h | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/other/openssh-2.1.1p4/bsd-sigaction.h b/other/openssh-2.1.1p4/bsd-sigaction.h deleted file mode 100644 index b37c1f8..0000000 --- a/other/openssh-2.1.1p4/bsd-sigaction.h +++ /dev/null | |||
| @@ -1,88 +0,0 @@ | |||
| 1 | /* $OpenBSD: SigAction.h,v 1.2 1999/06/27 08:15:19 millert Exp $ */ | ||
| 2 | |||
| 3 | /**************************************************************************** | ||
| 4 | * Copyright (c) 1998 Free Software Foundation, Inc. * | ||
| 5 | * * | ||
| 6 | * Permission is hereby granted, free of charge, to any person obtaining a * | ||
| 7 | * copy of this software and associated documentation files (the * | ||
| 8 | * "Software"), to deal in the Software without restriction, including * | ||
| 9 | * without limitation the rights to use, copy, modify, merge, publish, * | ||
| 10 | * distribute, distribute with modifications, sublicense, and/or sell * | ||
| 11 | * copies of the Software, and to permit persons to whom the Software is * | ||
| 12 | * furnished to do so, subject to the following conditions: * | ||
| 13 | * * | ||
| 14 | * The above copyright notice and this permission notice shall be included * | ||
| 15 | * in all copies or substantial portions of the Software. * | ||
| 16 | * * | ||
| 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * | ||
| 18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * | ||
| 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * | ||
| 20 | * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * | ||
| 21 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * | ||
| 22 | * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * | ||
| 23 | * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * | ||
| 24 | * * | ||
| 25 | * Except as contained in this notice, the name(s) of the above copyright * | ||
| 26 | * holders shall not be used in advertising or otherwise to promote the * | ||
| 27 | * sale, use or other dealings in this Software without prior written * | ||
| 28 | * authorization. * | ||
| 29 | ****************************************************************************/ | ||
| 30 | |||
| 31 | /**************************************************************************** | ||
| 32 | * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 * | ||
| 33 | * and: Eric S. Raymond <esr@snark.thyrsus.com> * | ||
| 34 | ****************************************************************************/ | ||
| 35 | |||
| 36 | /* | ||
| 37 | * $From: SigAction.h,v 1.5 1999/06/19 23:00:54 tom Exp $ | ||
| 38 | * | ||
| 39 | * This file exists to handle non-POSIX systems which don't have <unistd.h>, | ||
| 40 | * and usually no sigaction() nor <termios.h> | ||
| 41 | */ | ||
| 42 | |||
| 43 | #ifndef _SIGACTION_H | ||
| 44 | #define _SIGACTION_H | ||
| 45 | |||
| 46 | #if !defined(HAVE_SIGACTION) && defined(HAVE_SIGVEC) | ||
| 47 | |||
| 48 | #undef SIG_BLOCK | ||
| 49 | #define SIG_BLOCK 00 | ||
| 50 | |||
| 51 | #undef SIG_UNBLOCK | ||
| 52 | #define SIG_UNBLOCK 01 | ||
| 53 | |||
| 54 | #undef SIG_SETMASK | ||
| 55 | #define SIG_SETMASK 02 | ||
| 56 | |||
| 57 | /* | ||
| 58 | * <bsd/signal.h> is in the Linux 1.2.8 + gcc 2.7.0 configuration, | ||
| 59 | * and is useful for testing this header file. | ||
| 60 | */ | ||
| 61 | #if HAVE_BSD_SIGNAL_H | ||
| 62 | # include <bsd/signal.h> | ||
| 63 | #endif | ||
| 64 | |||
| 65 | struct sigaction | ||
| 66 | { | ||
| 67 | struct sigvec sv; | ||
| 68 | }; | ||
| 69 | |||
| 70 | typedef unsigned long sigset_t; | ||
| 71 | |||
| 72 | #undef sa_mask | ||
| 73 | #define sa_mask sv.sv_mask | ||
| 74 | #undef sa_handler | ||
| 75 | #define sa_handler sv.sv_handler | ||
| 76 | #undef sa_flags | ||
| 77 | #define sa_flags sv.sv_flags | ||
| 78 | |||
| 79 | int sigaction(int sig, struct sigaction *sigact, struct sigaction *osigact); | ||
| 80 | int sigprocmask (int how, sigset_t *mask, sigset_t *omask); | ||
| 81 | int sigemptyset (sigset_t *mask); | ||
| 82 | int sigsuspend (sigset_t *mask); | ||
| 83 | int sigdelset (sigset_t *mask, int sig); | ||
| 84 | int sigaddset (sigset_t *mask, int sig); | ||
| 85 | |||
| 86 | #endif /* !defined(HAVE_SIGACTION) && defined(HAVE_SIGVEC) */ | ||
| 87 | |||
| 88 | #endif /* !defined(_SIGACTION_H) */ | ||
