| 1 | /* $Id: signals.h 1618 2004-11-07 14:19:42Z bird $ */
|
|---|
| 2 | /** @file
|
|---|
| 3 | *
|
|---|
| 4 | * InnoTek LIBC - Signal Internals.
|
|---|
| 5 | *
|
|---|
| 6 | * Copyright (c) 2004 knut st. osmundsen <[email protected]>
|
|---|
| 7 | *
|
|---|
| 8 | *
|
|---|
| 9 | * This file is part of InnoTek LIBC.
|
|---|
| 10 | *
|
|---|
| 11 | * InnoTek LIBC is free software; you can redistribute it and/or modify
|
|---|
| 12 | * it under the terms of the GNU Lesser General Public License as published
|
|---|
| 13 | * by the Free Software Foundation; either version 2 of the License, or
|
|---|
| 14 | * (at your option) any later version.
|
|---|
| 15 | *
|
|---|
| 16 | * InnoTek LIBC is distributed in the hope that it will be useful,
|
|---|
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 19 | * GNU Lesser General Public License for more details.
|
|---|
| 20 | *
|
|---|
| 21 | * You should have received a copy of the GNU Lesser General Public License
|
|---|
| 22 | * along with InnoTek LIBC; if not, write to the Free Software
|
|---|
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|---|
| 24 | *
|
|---|
| 25 | */
|
|---|
| 26 |
|
|---|
| 27 | #ifndef __signals_h__
|
|---|
| 28 | #define __signals_h__
|
|---|
| 29 |
|
|---|
| 30 | #include <sys/cdefs.h>
|
|---|
| 31 | #include <signal.h>
|
|---|
| 32 | #include <InnoTekLIBC/libc.h>
|
|---|
| 33 | #include <InnoTekLIBC/backend.h>
|
|---|
| 34 |
|
|---|
| 35 | /** Signal set for the signals which are pending on a process scope.
|
|---|
| 36 | * These signals are blocked by all threads and waiting to be delivered
|
|---|
| 37 | * to a thread. */
|
|---|
| 38 | extern sigset_t __libc_gSignalPending;
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 | __BEGIN_DECLS
|
|---|
| 42 |
|
|---|
| 43 | int __libc_back_signalInit(void);
|
|---|
| 44 | int __libc_back_signalInitExe(void *pvRegRec);
|
|---|
| 45 | int __libc_back_signalSemRequest(void);
|
|---|
| 46 | void __libc_back_signalSemRelease(void);
|
|---|
| 47 | unsigned __libc_back_signalSemIsOwner(void);
|
|---|
| 48 | void __libc_back_signalPokeThread(__LIBC_PTHREAD pThrd);
|
|---|
| 49 | void __libc_back_signalPokeProcess(void);
|
|---|
| 50 | int __libc_back_signalSuspend(void);
|
|---|
| 51 | int __libc_back_signalAccept(__LIBC_PTHREAD pThrd, int iSignalNo, sigset_t *pSigSet, siginfo_t *pSigInfo);
|
|---|
| 52 | int __libc_back_signalWait(__LIBC_PTHREAD pThrd, volatile int *pfDone, const struct timespec *pTimeout);
|
|---|
| 53 | int __libc_back_signalSendPidOther(pid_t pid, int iSignalNo, siginfo_t *pSigInfo);
|
|---|
| 54 | int __libc_back_signalAction(int iSignalNo, const struct sigaction *pSigAct, struct sigaction *pSigActOld);
|
|---|
| 55 | int __libc_back_signalRaisePoked(void *pvXcptParams, int tidPoker);
|
|---|
| 56 | void __libc_back_signalOS2V1Handler16bit(unsigned short uSignal, unsigned short uArg);
|
|---|
| 57 | void __libc_back_signalOS2V1Handler32bit(unsigned uSignal, unsigned uArg);
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 | __END_DECLS
|
|---|
| 61 |
|
|---|
| 62 | #endif
|
|---|