Changeset 1642
- Timestamp:
- Nov 16, 2004, 11:18:46 AM (21 years ago)
- Location:
- trunk/src/emx
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/InnoTekLIBC/backend.h
-
Property cvs2svn:cvs-rev
changed from
1.13
to1.14
r1641 r1642 32 32 #include <sys/_timeval.h> 33 33 #include <sys/resource.h> 34 #include <sys/time.h> 34 35 #include <sys/wait.h> 35 36 #include <signal.h> … … 498 499 * deliver the signal. 499 500 */ 500 int __libc_Back_signalRaise(int iSignalNo, siginfo_t *pSigInfo, void *pvXcptOrQueued, unsigned fFlags);501 int __libc_Back_signalRaise(int iSignalNo, const siginfo_t *pSigInfo, void *pvXcptOrQueued, unsigned fFlags); 501 502 502 503 /** … … 637 638 */ 638 639 int __libc_Back_signalPending(sigset_t *pSigSet); 640 641 /** 642 * Queries and/or starts/stops a timer. 643 * 644 * @returns 0 on success. 645 * @returns Negative error code (errno.h) on failure. 646 * @param iWhich Which timer to get, any of the ITIMER_* #defines. 647 * OS/2 only supports ITIMER_REAL. 648 * @param pValue Where to store the value. 649 * Optional. If NULL pOldValue must not be NULL. 650 * @param pOldValue Where to store the old value. 651 * Optional. If NULL pValue must not be NULL. 652 */ 653 int __libc_Back_signalTimer(int iWhich, const struct itimerval *pValue, struct itimerval *pOldValue); 654 655 639 656 640 657 /** @} */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/b_signal.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r1641 r1642 60 60 void __libc_back_signalOS2V1Handler32bit(unsigned uSignal, unsigned uArg); 61 61 int __libc_back_signalInheritPack(__LIBC_PSPMINHSIG *ppSig, size_t *pcbSig); 62 void __libc_back_signalTimerNotifyTerm(void); 62 63 63 64 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/sharedpm.c
-
Property cvs2svn:cvs-rev
changed from
1.24
to1.25
r1641 r1642 74 74 #include <InnoTekLIBC/logstrict.h> 75 75 #include "b_process.h" 76 #include "b_signal.h" 76 77 #include "syscalls.h" 77 78 … … 2052 2053 { 2053 2054 /* 2054 * Notify the wait facilities.2055 * Notify the wait and timer facilities. 2055 2056 */ 2056 2057 __libc_back_processWaitNotifyTerm(); 2058 __libc_back_signalTimerNotifyTerm(); 2057 2059 2058 2060 /* -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/signals.c
-
Property cvs2svn:cvs-rev
changed from
1.13
to1.14
r1641 r1642 934 934 * deliver the signal. 935 935 */ 936 int __libc_Back_signalRaise(int iSignalNo, siginfo_t *pSigInfo, void *pvXcptOrQueued, unsigned fFlags)936 int __libc_Back_signalRaise(int iSignalNo, const siginfo_t *pSigInfo, void *pvXcptOrQueued, unsigned fFlags) 937 937 { 938 938 LIBCLOG_ENTER("iSignalNo=%d pSigInfo=%p{.si_signo=%d, .si_errno=%d, .si_code=%#x, .si_timestamp=%#x, .si_flags=%#x .si_pid=%#x, .si_pgrp=%#x, .si_tid=%#x, .si_uid=%d, .si_status=%d, .si_addr=%p, .si_value=%p, .si_band=%ld, .si_fd=%d} pvXcptOrQueued=%p fFlags=%#x\n", … … 985 985 986 986 /* 987 * Fill in the rest of the SigInfo packet if we've got one. 988 */ 987 * Copy the siginfo structure and fill in the rest of 988 * the SigInfo packet (if we've got one). 989 */ 990 siginfo_t SigInfo; 989 991 if (pSigInfo) 990 992 { 991 if (!pSigInfo->si_timestamp) 992 pSigInfo->si_timestamp = signalTimestamp(); 993 SigInfo = *pSigInfo; 994 if (!SigInfo.si_timestamp) 995 SigInfo.si_timestamp = signalTimestamp(); 993 996 if (fFlags & __LIBC_BSRF_QUEUED) 994 pSigInfo->si_flags |= __LIBC_SI_QUEUED;995 if (! pSigInfo->si_pid)996 pSigInfo->si_pid = _sys_pid;997 if (! pSigInfo->si_tid && pThrd)998 pSigInfo->si_tid = pThrd->tid;997 SigInfo.si_flags |= __LIBC_SI_QUEUED; 998 if (!SigInfo.si_pid) 999 SigInfo.si_pid = _sys_pid; 1000 if (!SigInfo.si_tid && pThrd) 1001 SigInfo.si_tid = pThrd->tid; 999 1002 } 1000 1003 … … 1015 1018 * Schedule the signal. 1016 1019 */ 1017 int rc = signalSchedule(pThrd, iSignalNo, pSigInfo , fFlags, fFlags & __LIBC_BSRF_QUEUED ? pvXcptOrQueued : NULL);1020 int rc = signalSchedule(pThrd, iSignalNo, pSigInfo ? &SigInfo : NULL, fFlags, fFlags & __LIBC_BSRF_QUEUED ? pvXcptOrQueued : NULL); 1018 1021 if (rc >= 0) 1019 1022 { -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.