Changeset 1615 for trunk/src/emx/include/InnoTekLIBC/signals.h
- Timestamp:
- Nov 6, 2004, 9:35:32 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/InnoTekLIBC/signals.h
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r1614 r1615 32 32 *******************************************************************************/ 33 33 /** @defgroup __libc_back_signalRaise_return __libc_back_signalRaise() returns. 34 * These are only valid for positive return values. 34 35 * @{ */ 35 36 /** Try restart any interrupted system call. */ … … 44 45 /** If set the passed in SIGQUEUED structure was used. */ 45 46 #define __LIBC_BSRR_USED_QUEUED 0x40 46 /** Failure. */47 #define __LIBC_BSRR_ERROR 0xffffff2248 47 /** @} */ 49 48 … … 94 93 int __libc_back_signalSuspend(void); 95 94 int __libc_back_signalWait(const struct timespec *pTimeout); 96 int __libc_back_signalVerifyPid(pid_t pid);97 int __libc_back_signalVerifyPGrp(pid_t pgid);98 int __libc_back_signalSendPid(pid_t pid, int iSignalNo);99 95 int __libc_back_signalSendPidOther(pid_t pid, int iSignalNo); 100 int __libc_back_signalSendPGrp(pid_t pgrp, int iSignalNo);101 96 int __libc_back_signalAction(int iSignalNo, const struct sigaction *pSigAct, struct sigaction *pSigActOld); 102 unsigned __libc_back_signalRaise(int iSignalNo, siginfo_t *pSigInfo, void *pvXcptOrQueued, unsigned fFlags);103 97 int __libc_back_signalRaisePoked(void *pvXcptParams, int tidPoker); 104 98 void __libc_back_signalOS2V1Handler16bit(unsigned short uSignal, unsigned short uArg); 105 99 void __libc_back_signalOS2V1Handler32bit(unsigned uSignal, unsigned uArg); 106 100 101 102 /** 103 * Raises a signal in the current process. 104 * 105 * @returns On success a flag mask out of the __LIBC_BSRR_* #defines is returned. 106 * @returns On failure a negative error code (errno.h) is returned. 107 * @param iSignalNo Signal to raise. 108 * @param pSigInfo Pointer to signal info for this signal. 109 * NULL is allowed. 110 * @param pvXcptOrQueued Exception handler parameter list. 111 * Or if __LIBC_BSRF_QUEUED is set, a pointer to locally malloced 112 * SIGQUEUED node. 113 * @param fFlags Flags of the #defines __LIBC_BSRF_* describing how to 114 * deliver the signal. 115 * 116 * @remark This Backend Signal API does NOT require the caller to own the signal semaphore. 117 */ 118 int __libc_Back_signalRaise(int iSignalNo, siginfo_t *pSigInfo, void *pvXcptOrQueued, unsigned fFlags); 119 120 /** 121 * Send a signal to a process. 122 * 123 * @returns 0 on if signal sent. 124 * @returns -errno on failure. 125 * 126 * @param pid Process Id of the process which the signal is to be sent to. 127 * @param iSignalNo The signal to send. 128 * @remark This Backend Signal API does NOT require the caller to own the signal semaphore. 129 */ 130 int __libc_Back_signalSendPid(pid_t pid, int iSignalNo); 131 132 /** 133 * Verify the existance of another process and that the current process 134 * is allowed to signal it. 135 * 136 * @return 0 on success. 137 * @return -ESRCH if pid doesn't exist. 138 * @return -EPERM if we aren't allowed to signal the pid. 139 * @param pid Process Id for the process which we wanna signal. 140 * @todo Do EPERM check, no ideas here yet. 141 * @remark This Backend Signal API does NOT require the caller to own the signal semaphore. 142 */ 143 int __libc_Back_signalVerifyPid(pid_t pid); 144 145 /** 146 * Not implemented. 147 * 148 * @returns -ENOSYS. 149 * @param pgrp Process group (positive). 150 * 0 means the process group of this process. 151 * 1 means all process in the system. 152 * @param iSignalNo Signal to send to all the processes in the group. 153 */ 154 int __libc_Back_signalSendPGrp(pid_t pgrp, int iSignalNo); 155 156 /** 157 * Verify the existance of a process group and that the current process 158 * is allowed to signal it. 159 * 160 * @return 0 on success. 161 * @return -ESRCH if pgid doesn't exist. 162 * @return -EPERM if we aren't allowed to signal the pgid. 163 * @param pgid Process group id which the current process intend to signal. 164 * @todo Do EPERM check, no ideas here yet. 165 * @remark This Backend Signal API does NOT require the caller to own the signal semaphore. 166 */ 167 int __libc_Back_signalVerifyPGrp(pid_t pgid); 168 169 107 170 __END_DECLS 108 171 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.