diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-12-12 04:24:09 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-12-12 04:24:09 +0300 |
commit | 8fb3796385eb2416d05567a5996cc60f251d0021 (patch) | |
tree | bbb95a383e2485dcc0fdf9948770e2edfad0aee1 /newlib/libc/sys/rtems/include/signal.h | |
parent | 947411367d78a0fcbecb21f47711bce31c5a0d08 (diff) |
2000-12-11 Joel Sherrill <joel@OARcorp.com>
* Merge RTEMS specific .h files into main libc/include.
* libc/sys/rtems/include/signal.h: Removed.
* libc/sys/rtems/include/time.h: Removed.
* libc/sys/rtems/sys/features.h: Removed.
* libc/sys/rtems/sys/sched.h: Removed.
* libc/sys/rtems/sys/siginfo.h: Removed.
* libc/sys/rtems/sys/signal.h: Removed.
* libc/sys/rtems/sys/time.h: Removed.
* libc/sys/rtems/sys/times.h: Removed.
definitions for time_t and clock_t since these are
no longer in time.h.
* libc/include/pthread.h: New file.
* libc/include/sys/sched.h: New file.
* libc/include/sys/features.h: New file.
* libc/include/time.h: Removed duplicate definition of clock_t
and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality.
* libc/sys/linux/sys/types.h: Changed to include
* libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_.
* libc/include/sys/signal.h: Add more complete set of POSIX
signal functionality including real-time and threaded signals.
* libc/include/sys/types.h: Add clock_t, time_t, struct
timespec, and struct itimerspec. Centralizing these makes
things cleaner. RTEMS uses 64-bit dev_t.
Added numerous primitive definitions
for pthreads including macros, pthread_attr_t,
pthread_mutexattr_t, pthread_condattr_t, pthread_key_t,
pthread_once_t, and pthread_t.
* libc/include/sys/unistd.h: Added getlogin_r() prototype.
If RTEMS follow POSIX on read(), write() and sbrk() prototype.
Feature flags removed and moved to new file <sys/features.h>.
Full set of POSIX sysconf() constants
Diffstat (limited to 'newlib/libc/sys/rtems/include/signal.h')
-rw-r--r-- | newlib/libc/sys/rtems/include/signal.h | 142 |
1 files changed, 0 insertions, 142 deletions
diff --git a/newlib/libc/sys/rtems/include/signal.h b/newlib/libc/sys/rtems/include/signal.h deleted file mode 100644 index bb61b0c17..000000000 --- a/newlib/libc/sys/rtems/include/signal.h +++ /dev/null @@ -1,142 +0,0 @@ -/* - * $Id$ - */ - -#ifndef __POSIX_SIGNALS_h -#define __POSIX_SIGNALS_h - -#ifdef __cplusplus -extern "C" { -#endif - -#include <sys/features.h> -#include "_ansi.h" - -#include <sys/time.h> -#include <sys/siginfo.h> -#include <reent.h> /* only for reentrant signal() and raise() */ - -/* - * 7.7 Signal handling <signal.h>, ANSI C Standard. - */ - -typedef int sig_atomic_t; - -/* - * ANSI C Signal Handling Functions - */ - -typedef void (*_sig_func_ptr) (); - -_sig_func_ptr _EXFUN(_signal_r, (struct _reent *, int, _sig_func_ptr)); -int _EXFUN(_raise_r, (struct _reent *, int)); - -#ifndef _REENT_ONLY -_sig_func_ptr _EXFUN(signal, (int, _sig_func_ptr)); -int _EXFUN(raise, (int)); -#endif - -/* - * 3.3.2 Send a Signal to a Process, P1003.1b-1993, p. 68 - * - * NOTE: Behavior of kill() depends on _POSIX_SAVED_IDS. - */ - -int _EXFUN(kill, (pid_t pid, int sig)); - -/* - * 3.3.3 Manipulate Signal Sets, P1003.1b-1993, p. 69 - */ - -int _EXFUN(sigemptyset, (sigset_t *set)); -int _EXFUN(sigfillset, (sigset_t *set)); -int _EXFUN(sigaddset, (sigset_t *set, int signo)); -int _EXFUN(sigdelset, (sigset_t *set, int signo)); -int _EXFUN(sigismember, (const sigset_t *set, int signo)); - -/* - * 3.3.4 Examine and Change Signal Action, P1003.1b-1993, p. 70 - */ - -int _EXFUN(sigaction, - (int sig, const struct sigaction *act, struct sigaction *oact) -); - -/* - * 3.3.5 Examine and Change Blocked Signals, P1003.1b-1993, p. 73 - * - * NOTE: P1003.1c/D10, p. 37 adds pthread_sigmask(). - */ - -/* values for how */ - -#define SIG_BLOCK 1 /* resulting_set = (current_set | set) */ -#define SIG_UNBLOCK 2 /* resulting_set = (current_set & ~set) */ -#define SIG_SETMASK 3 /* resulting_set = set */ - -int _EXFUN(sigprocmask, (int how, const sigset_t *set, sigset_t *oset)); - -#if defined(_POSIX_THREADS) -int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset)); -#endif - -/* - * 3.3.6 Examine Pending Signals, P1003.1b-1993, p. 75 - */ - -int _EXFUN(sigpending, (sigset_t *set)); - -/* - * 3.3.7 Wait for a Signal, P1003.1b-1993, p. 75 - */ - -int _EXFUN(sigsuspend, (const sigset_t *sigmask)); - -#if defined(_POSIX_REALTIME_SIGNALS) - -/* - * 3.3.8 Synchronously Accept a Signal, P1003.1b-1993, p. 76 - * - * NOTE: P1003.1c/D10, p. 39 adds sigwait(). - */ - -int _EXFUN(sigwaitinfo, (const sigset_t *set, siginfo_t *info)); -int _EXFUN(sigtimedwait, - (const sigset_t *set, siginfo_t *info, const struct timespec *timeout) -); -int _EXFUN(sigwait, (const sigset_t *set, int *sig)); - -/* - * 3.3.9 Queue a Signal to a Process, P1003.1b-1993, p. 78 - */ - -int _EXFUN(sigqueue, (pid_t pid, int signo, const union sigval value)); - -#endif - -/* - * 3.3.10 Send a Signal to a Thread, P1003.1c/D10, p. 43 - */ - -#if defined(_POSIX_THREADS) -int _EXFUN(pthread_kill, (pthread_t thread, int sig)); -#endif - -/* - * 3.4.1 Schedule Alarm, P1003.1b-1993, p. 79 - */ - -unsigned int _EXFUN(alarm, (unsigned int seconds)); - -/* - * 3.4.2 Suspend Process Execution, P1003.1b-1993, p. 80 - */ - -int _EXFUN(pause, (void)); - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ |