source: trunk/src/emx/include/signal.h@ 1624

Last change on this file since 1624 was 1624, checked in by bird, 21 years ago

Updated some headers to 5.2/3 level.

  • Property cvs2svn:cvs-rev set to 1.5
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 4.6 KB
Line 
1/** @file
2 * FreeBSD 5.1
3 * @changed bird: Added sighold(), sigignore(), sigrelse(). Added wrapper
4 * between the two sigpause() APIs.
5 */
6
7/*-
8 * Copyright (c) 1991, 1993
9 * The Regents of the University of California. All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
19 * 3. All advertising materials mentioning features or use of this software
20 * must display the following acknowledgement:
21 * This product includes software developed by the University of
22 * California, Berkeley and its contributors.
23 * 4. Neither the name of the University nor the names of its contributors
24 * may be used to endorse or promote products derived from this software
25 * without specific prior written permission.
26 *
27 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
28 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
31 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * @(#)signal.h 8.3 (Berkeley) 3/30/94
40 * $FreeBSD: src/include/signal.h,v 1.24 2003/03/31 23:30:41 jeff Exp $
41 */
42
43#ifndef _SIGNAL_H_
44#define _SIGNAL_H_
45
46#include <sys/cdefs.h>
47#include <sys/_types.h>
48#include <sys/signal.h>
49
50#if __BSD_VISIBLE
51/*
52 * XXX should enlarge these, if only to give empty names instead of bounds
53 * errors for large signal numbers.
54 */
55extern __const char *__const sys_signame[NSIG];
56extern __const char *__const sys_siglist[NSIG];
57extern __const int sys_nsig;
58#endif
59
60#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
61#ifndef _PID_T_DECLARED
62typedef __pid_t pid_t;
63#define _PID_T_DECLARED
64#endif
65#endif
66
67__BEGIN_DECLS
68int raise(int);
69
70#if __POSIX_VISIBLE || __XSI_VISIBLE
71int kill(__pid_t, int);
72int sigaction(int, const struct sigaction * __restrict,
73 struct sigaction * __restrict);
74int sigaddset(sigset_t *, int);
75int sigdelset(sigset_t *, int);
76int sigemptyset(sigset_t *);
77int sigfillset(sigset_t *);
78int sigismember(const sigset_t *, int);
79int sigpending(sigset_t *);
80int sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict);
81int sigsuspend(const sigset_t *);
82int sigwait(const sigset_t * __restrict, int * __restrict);
83#endif
84
85#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 600
86#if 0
87/*
88 * PR: 35924
89 * XXX we don't actually have these. We set _POSIX_REALTIME_SIGNALS to
90 * -1 to show that we don't have them, but this symbol is not necessarily
91 * in scope (in the current implementation), so we can't use it here.
92 */
93#endif /* bird we do */
94int sigqueue(__pid_t, int, const union sigval);
95struct timespec;
96int sigtimedwait(const sigset_t * __restrict, siginfo_t * __restrict,
97 const struct timespec * __restrict);
98int sigwaitinfo(const sigset_t * __restrict, siginfo_t * __restrict);
99#endif
100
101#if __XSI_VISIBLE
102int killpg(__pid_t, int);
103int sigaltstack(const stack_t * __restrict, stack_t * __restrict);
104int sigpause(int);
105#endif
106
107#if __POSIX_VISIBLE >= 200112
108int siginterrupt(int, int);
109#endif
110
111#if __BSD_VISIBLE
112int sigblock(int);
113struct __ucontext; /* XXX spec requires a complete declaration. */
114int sigreturn(const struct __ucontext *);
115int sigsetmask(int);
116int sigstack(const struct sigstack *, struct sigstack *);
117int sigvec(int, struct sigvec *, struct sigvec *);
118void psignal(unsigned int, const char *);
119#endif
120
121/* bird: standard call which BSD doesn't prototype. */
122#if __XSI_VISIBLE
123int sighold(int);
124int sigignore(int);
125int sigrelse(int);
126void (*sigset(int, void (*)(int)))(int);
127#endif
128#if __BSD_VISIBLE && !defined(_XOPEN_SOURCE) && !defined(sigpause)
129int __sigpause_bsd(int);
130#define sigpause(mask) __sigpause_bsd(mask)
131#endif
132/* bird: end */
133
134__END_DECLS
135
136#endif /* !_SIGNAL_H_ */
137
Note: See TracBrowser for help on using the repository browser.