Subversion Repositories Kolibri OS

Rev

Rev 6099 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6099 Rev 6536
Line 11... Line 11...
11
#include 
11
#include 
12
#include 
12
#include 
13
#include 
13
#include 
14
#include 
14
#include 
Line 15... Line -...
15
 
-
 
16
/* #ifndef __STRICT_ANSI__*/
-
 
17
 
15
 
18
#if !defined(_SIGSET_T_DECLARED)
16
#if !defined(_SIGSET_T_DECLARED)
19
#define	_SIGSET_T_DECLARED
17
#define	_SIGSET_T_DECLARED
20
typedef	__sigset_t	sigset_t;
18
typedef	__sigset_t	sigset_t;
Line 75... Line 73...
75
/*  3.3.8 Synchronously Accept a Signal, P1003.1b-1993, p. 76 */
73
/*  3.3.8 Synchronously Accept a Signal, P1003.1b-1993, p. 76 */
Line 76... Line 74...
76
 
74
 
77
#define SA_NOCLDSTOP 0x1   /* Do not generate SIGCHLD when children stop */
75
#define SA_NOCLDSTOP 0x1   /* Do not generate SIGCHLD when children stop */
78
#define SA_SIGINFO   0x2   /* Invoke the signal catching function with */
76
#define SA_SIGINFO   0x2   /* Invoke the signal catching function with */
79
                           /*   three arguments instead of one. */
77
                           /*   three arguments instead of one. */
80
#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
78
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4 || __POSIX_VISIBLE >= 200809
81
#define SA_ONSTACK   0x4   /* Signal delivery will be on a separate stack. */
79
#define SA_ONSTACK   0x4   /* Signal delivery will be on a separate stack. */
Line 82... Line 80...
82
#endif
80
#endif
83
 
81
 
Line 123... Line 121...
123
	sigset_t sa_mask;
121
	sigset_t sa_mask;
124
	int sa_flags;
122
	int sa_flags;
125
};
123
};
126
#endif /* defined(__rtems__) */
124
#endif /* defined(__rtems__) */
Line 127... Line 125...
127
 
125
 
128
#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
126
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4 || __POSIX_VISIBLE >= 200809
129
/*
127
/*
130
 * Minimum and default signal stack constants. Allow for target overrides
128
 * Minimum and default signal stack constants. Allow for target overrides
131
 * from .
129
 * from .
132
 */
130
 */
Line 156... Line 154...
156
 
154
 
157
#define SIG_SETMASK 0	/* set mask with sigprocmask() */
155
#define SIG_SETMASK 0	/* set mask with sigprocmask() */
158
#define SIG_BLOCK 1	/* set of signals to block */
156
#define SIG_BLOCK 1	/* set of signals to block */
Line 159... Line -...
159
#define SIG_UNBLOCK 2	/* set of signals to, well, unblock */
-
 
160
 
-
 
161
/* These depend upon the type of sigset_t, which right now 
-
 
162
   is always a long.. They're in the POSIX namespace, but
-
 
163
   are not ANSI. */
-
 
164
#define sigaddset(what,sig) (*(what) |= (1<<(sig)), 0)
-
 
165
#define sigdelset(what,sig) (*(what) &= ~(1<<(sig)), 0)
-
 
166
#define sigemptyset(what)   (*(what) = 0, 0)
-
 
167
#define sigfillset(what)    (*(what) = ~(0), 0)
-
 
168
#define sigismember(what,sig) (((*(what)) & (1<<(sig))) != 0)
157
#define SIG_UNBLOCK 2	/* set of signals to, well, unblock */
Line 169... Line 158...
169
 
158
 
170
int _EXFUN(sigprocmask, (int how, const sigset_t *set, sigset_t *oset));
159
int _EXFUN(sigprocmask, (int how, const sigset_t *set, sigset_t *oset));
171
 
160
 
Line 172... Line 161...
172
#if defined(_POSIX_THREADS)
161
#if defined(_POSIX_THREADS)
173
int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset));
-
 
174
#endif
-
 
175
 
-
 
176
#if defined(__CYGWIN__) || defined(__rtems__)
-
 
177
#undef sigaddset
-
 
178
#undef sigdelset
-
 
179
#undef sigemptyset
162
int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset));
180
#undef sigfillset
163
#endif
181
#undef sigismember
164
 
182
 
165
#if defined(__CYGWIN__) || defined(__rtems__)
Line 183... Line 166...
183
#ifdef _COMPILING_NEWLIB
166
#ifdef _COMPILING_NEWLIB
Line 184... Line 167...
184
int _EXFUN(_kill, (pid_t, int));
167
int _EXFUN(_kill, (pid_t, int));
185
#endif /* _COMPILING_NEWLIB */
168
#endif /* _COMPILING_NEWLIB */
186
#endif /* __CYGWIN__ || __rtems__ */
169
#endif /* __CYGWIN__ || __rtems__ */
187
 
170
 
188
int _EXFUN(kill, (pid_t, int));
171
int _EXFUN(kill, (pid_t, int));
189
 
172
 
Line 197... Line 180...
197
int _EXFUN(sigemptyset, (sigset_t *));
180
int _EXFUN(sigemptyset, (sigset_t *));
198
int _EXFUN(sigpending, (sigset_t *));
181
int _EXFUN(sigpending, (sigset_t *));
199
int _EXFUN(sigsuspend, (const sigset_t *));
182
int _EXFUN(sigsuspend, (const sigset_t *));
200
int _EXFUN(sigpause, (int));
183
int _EXFUN(sigpause, (int));
Line 201... Line 184...
201
 
184
 
-
 
185
#if !defined(__CYGWIN__) && !defined(__rtems__)
-
 
186
/* These depend upon the type of sigset_t, which right now 
-
 
187
   is always a long.. They're in the POSIX namespace, but
-
 
188
   are not ANSI. */
-
 
189
#define sigaddset(what,sig) (*(what) |= (1<<(sig)), 0)
-
 
190
#define sigdelset(what,sig) (*(what) &= ~(1<<(sig)), 0)
-
 
191
#define sigemptyset(what)   (*(what) = 0, 0)
-
 
192
#define sigfillset(what)    (*(what) = ~(0), 0)
-
 
193
#define sigismember(what,sig) (((*(what)) & (1<<(sig))) != 0)
-
 
194
#endif /* !__CYGWIN__ && !__rtems__ */
-
 
195
#endif /* __BSD_VISIBLE || __XSI_VISIBLE >= 4 */
202
#if defined(__CYGWIN__) || defined(__rtems__)
196
 
203
#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
197
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4 || __POSIX_VISIBLE >= 200809
204
int _EXFUN(sigaltstack, (const stack_t *__restrict, stack_t *__restrict));
198
int _EXFUN(sigaltstack, (const stack_t *__restrict, stack_t *__restrict));
205
#endif
-
 
Line 206... Line 199...
206
#endif
199
#endif
207
 
200
 
208
#if defined(_POSIX_THREADS)
201
#if defined(_POSIX_THREADS)
209
#ifdef __CYGWIN__
202
#ifdef __CYGWIN__
Line 228... Line 221...
228
/*  3.3.9 Queue a Signal to a Process, P1003.1b-1993, p. 78 */
221
/*  3.3.9 Queue a Signal to a Process, P1003.1b-1993, p. 78 */
229
int _EXFUN(sigqueue, (pid_t pid, int signo, const union sigval value));
222
int _EXFUN(sigqueue, (pid_t pid, int signo, const union sigval value));
Line 230... Line 223...
230
 
223
 
Line 231... Line -...
231
#endif /* defined(_POSIX_REALTIME_SIGNALS) */
-
 
232
 
-
 
233
#endif /* defined(__CYGWIN__) || defined(__rtems__) */
-
 
234
 
-
 
235
/* #endif __STRICT_ANSI__ */
224
#endif /* defined(_POSIX_REALTIME_SIGNALS) */
236
 
225
 
237
#if defined(___AM29K__)
226
#if defined(___AM29K__)
238
/* These all need to be defined for ANSI C, but I don't think they are
227
/* These all need to be defined for ANSI C, but I don't think they are
239
   meaningful.  */
228
   meaningful.  */
Line 352... Line 341...
352
#ifdef __cplusplus
341
#ifdef __cplusplus
353
}
342
}
354
#endif
343
#endif
Line 355... Line 344...
355
 
344
 
356
#if defined(__CYGWIN__)
345
#if defined(__CYGWIN__)
357
#if __POSIX_VISIBLE >= 200809
346
#if __XSI_VISIBLE >= 4 || __POSIX_VISIBLE >= 200809
358
#include 
347
#include 
359
#endif
348
#endif
Line 360... Line 349...
360
#endif
349
#endif