heirloom-ed

diff sigset.h @ 0:1493bea5ac22

Initial version of the standalone heirloom-ed
author markus schnalke <meillo@marmaro.de>
date Mon, 05 Sep 2011 16:31:35 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sigset.h	Mon Sep 05 16:31:35 2011 +0200
     1.3 @@ -0,0 +1,38 @@
     1.4 +/*
     1.5 + * Copyright (c) 2004 Gunnar Ritter
     1.6 + *
     1.7 + * This software is provided 'as-is', without any express or implied
     1.8 + * warranty. In no event will the authors be held liable for any damages
     1.9 + * arising from the use of this software.
    1.10 + *
    1.11 + * Permission is granted to anyone to use this software for any purpose,
    1.12 + * including commercial applications, and to alter it and redistribute
    1.13 + * it freely, subject to the following restrictions:
    1.14 + *
    1.15 + * 1. The origin of this software must not be misrepresented; you must not
    1.16 + *    claim that you wrote the original software. If you use this software
    1.17 + *    in a product, an acknowledgment in the product documentation would be
    1.18 + *    appreciated but is not required.
    1.19 + *
    1.20 + * 2. Altered source versions must be plainly marked as such, and must not be
    1.21 + *    misrepresented as being the original software.
    1.22 + *
    1.23 + * 3. This notice may not be removed or altered from any source distribution.
    1.24 + */
    1.25 +/*	Sccsid @(#)sigset.h	1.9 (gritter) 1/22/06	*/
    1.26 +
    1.27 +#if defined (__FreeBSD__) || defined (__dietlibc__) || defined (__NetBSD__) || \
    1.28 +	defined (__OpenBSD__) || defined (__DragonFly__) || defined (__APPLE__)
    1.29 +
    1.30 +#ifndef	SIG_HOLD
    1.31 +#define	SIG_HOLD	((void (*)(int))2)
    1.32 +#endif	/* !SIG_HOLD */
    1.33 +
    1.34 +extern int	sighold(int);
    1.35 +extern int	sigignore(int);
    1.36 +extern int	sigpause(int);
    1.37 +extern int	sigrelse(int);
    1.38 +extern void	(*sigset(int, void (*)(int)))(int);
    1.39 +extern void	(*signal(int, void (*)(int)))(int);
    1.40 +#endif	/* __FreeBSD__ || __dietlibc__ || __NetBSD__ || __OpenBSD__ ||
    1.41 +	__DragonFly__ || __APPLE__ */