Ignore:
Timestamp:
Nov 7, 2004, 3:19:42 PM (21 years ago)
Author:
bird
Message:

More signal debugging and cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/backend.h

    • Property cvs2svn:cvs-rev changed from 1.9 to 1.10
    r1617 r1618  
    560560 *
    561561 * @returns 0 on success.
    562  * @returns -Negative errno on failure.
     562 * @returns Negative error code (errno) on failure.
    563563 * @param   iSignalNo   Signal number.
    564564 * @param   pSigAct     Pointer to new signal action.
     
    570570
    571571/**
     572 * Change interrupt/restart system call properties for a signal.
     573 *
     574 * @returns 0 on success.
     575 * @returns Negative error code (errno) on failure.
     576 * @param   iSignalNo   Signal number to change interrupt/restart
     577 *                      properties for.
     578 * @param   fFlag       If set Then clear the SA_RESTART from the handler action.
     579 *                      If clear Then set the SA_RESTART from the handler action.
     580 * @remark  The SA_RESTART flag is inherited when using signal().
     581 */
     582int __libc_Back_signalInterrupt(int iSignalNo, int fFlag);
     583
     584/**
    572585 * Changes and/or queries the alternative signal stack settings of a thread.
    573586 *
     
    584597 *
    585598 * @returns 0 on success.
    586  * @returns -1 and errno set to EINVAL on failure.
     599 * @returns Negative error code (errno) on failure.
    587600 * @param   pThrd       Thread to apply this to.
    588601 * @param   iHow        Describes the action taken if pSigSetNew not NULL. Recognized
     
    604617int __libc_Back_signalMask(__LIBC_PTHREAD pThrd, int iHow, const sigset_t * __restrict pSigSetNew, sigset_t * __restrict pSigSetOld);
    605618
     619/**
     620 * Wait for one or more signals and remove and return the first of them
     621 * to occur.
     622 *
     623 * Will return immediately if one of the signals is already pending. If more than
     624 * one signal is pending the signal with highest priority will be returned.
     625 *
     626 * @returns Signal number on success.
     627 * @returns Negative error code (errno) on failure.
     628 * @param   pSigSet     Signals to wait for.
     629 * @param   pSigInfo    Where to store the signal info for the signal
     630 *                      that we accepted.
     631 * @param   pTimeout    Timeout specification. If NULL wait for ever.
     632 */
     633int __libc_Back_signalWait(const sigset_t *pSigSet, siginfo_t *pSigInfo, const struct timespec *pTimeout);
     634
     635/**
     636 * Suspends the current thread till a signal have been handled.
     637 * The signal semaphore is owned.
     638 *
     639 * @returns Negative error code (errno) on failure. (allways fails)
     640 * @param   pSigSet     Temporary signal mask for the thread.
     641 */
     642int __libc_Back_signalSuspend(const sigset_t *pSigSet);
     643
     644/**
     645 * Gets the set of signals which are blocked by the current thread and are
     646 * pending on the process or the calling thread.
     647 *
     648 * @returns 0 indicating success.
     649 * @returns Negative error code (errno) on failure.
     650 * @param   pSigSet     Pointer to signal set where the result is to be stored.
     651 */
     652int __libc_Back_signalPending(sigset_t *pSigSet);
     653
    606654/** @} */
    607655
Note: See TracChangeset for help on using the changeset viewer.