1*a7879b44Schristos /* $NetBSD: sig.h,v 1.2 2012/06/12 19:03:26 christos Exp $ */ 2ca13337dSchristos 3ca13337dSchristos /*- 4ca13337dSchristos * Copyright (c) 2006 The NetBSD Foundation, Inc. 5ca13337dSchristos * All rights reserved. 6ca13337dSchristos * 7ca13337dSchristos * Redistribution and use in source and binary forms, with or without 8ca13337dSchristos * modification, are permitted provided that the following conditions 9ca13337dSchristos * are met: 10ca13337dSchristos * 1. Redistributions of source code must retain the above copyright 11ca13337dSchristos * notice, this list of conditions and the following disclaimer. 12ca13337dSchristos * 2. Redistributions in binary form must reproduce the above copyright 13ca13337dSchristos * notice, this list of conditions and the following disclaimer in the 14ca13337dSchristos * documentation and/or other materials provided with the distribution. 15ca13337dSchristos * 16ca13337dSchristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 17ca13337dSchristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18ca13337dSchristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19ca13337dSchristos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 20ca13337dSchristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21ca13337dSchristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22ca13337dSchristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23ca13337dSchristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24ca13337dSchristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25ca13337dSchristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26ca13337dSchristos * POSSIBILITY OF SUCH DAMAGE. 27ca13337dSchristos */ 28ca13337dSchristos 29ca13337dSchristos #ifndef __SIG_H__ 30ca13337dSchristos #define __SIG_H__ 31ca13337dSchristos 32ca13337dSchristos int sig_ignore(int, struct sigaction *, sigset_t *); 33ca13337dSchristos int sig_restore(int, struct sigaction *, sigset_t *); 34ca13337dSchristos int sig_setflags(int, int, struct sigaction *); 35ca13337dSchristos 36ca13337dSchristos void sig_hold(void); 37ca13337dSchristos void sig_release(void); /* XXX: should this be named sig_relse()? */ 38ca13337dSchristos 39ca13337dSchristos void sig_check(void); 40ca13337dSchristos void sig_setup(void); 41ca13337dSchristos sig_t sig_signal(int, sig_t); 42*a7879b44Schristos sig_t sig_current(int); 43ca13337dSchristos 44ca13337dSchristos #endif /* __SIG_H__ */ 45ca13337dSchristos 46