Changeset 1630 for trunk/src/emx/include


Ignore:
Timestamp:
Nov 14, 2004, 12:28:29 PM (21 years ago)
Author:
bird
Message:

More signals and waiting stuff.

Location:
trunk/src/emx/include
Files:
3 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.16 to 1.17
    r1629 r1630  
    9999    /** Structure size. */
    100100    unsigned                        cb;
    101     /** Process ID. */
     101    /** Process Id. */
    102102    pid_t                           pid;
     103    /** Process Group Id. */
     104    pid_t                           pgrp;
    103105    /** Exit code. */
    104106    int                             iExitCode;
     
    542544    unsigned                            cSigMaxActive;
    543545    /** 112 - Notification event semaphore.
    544      * This semaphore is signaled when an event occurs.
     546     * This semaphore is signaled when an event occurs. An event is either a signal
     547     * or a child notification.
     548     * At the moment this isn't used by anyone, but it's being signaled just in case.
    545549     */
    546550    unsigned long                       hevNotify;
  • trunk/src/emx/include/sys/signal.h

    • Property cvs2svn:cvs-rev changed from 1.9 to 1.10
    r1629 r1630  
    160160/** Don't mask the signal which is being delivered. */
    161161#define SA_NODEFER          0x00000010
    162 /** Don't keep zombies around for wait*(). Not implmented on OS/2. */
     162/** Don't keep zombies around for wait*(). */
    163163#define SA_NOCLDWAIT        0x00000020
    164164/** Signal the handler with the full set of arguments. */
     
    407407    /** Signal code. (See SI_* and FPE_* macros.) */
    408408    int             si_code;
    409     /** Timestamp when the signal was generated - LIBC extension. */
     409    /** LIBC Extension: Timestamp when the signal was generated. */
    410410    unsigned        si_timestamp;
    411     /** Flags - LIBC extension. __LIBC_SI_* */
     411    /** LIBC Extension: Flags. __LIBC_SI_* */
    412412    unsigned        si_flags;
    413413    /** Process sending the signal. */
    414414    __pid_t         si_pid;
    415     /** Thread sending the signal - LIBC extension. */
     415    /** LIBC Extension: the program group of the sender. */
     416    unsigned        si_pgrp;
     417    /** LIBC Extension: Thread sending the signal. */
    416418    unsigned        si_tid;
    417     /** User sending the signal (ruid). (Usually 0 for OS/2) */
     419    /** User sending the signal (real uid). */
    418420    __uid_t         si_uid;
    419421    /** Exit value. (SIGCHLD) */
     
    428430    int             si_fd;
    429431    /** Reserve a little bit for future usage. */
    430     unsigned        auReserved[3];
     432    unsigned        auReserved[6];
    431433} siginfo_t;
    432434
     
    435437 * @{ */
    436438/** If set the signal was queue. */
    437 #define __LIBC_SI_QUEUED        0x00000001
     439#define __LIBC_SI_QUEUED            0x00000001
    438440/** Internal signal generated by LIBC. */
    439 #define __LIBC_SI_INTERNAL      0x00000002
     441#define __LIBC_SI_INTERNAL          0x00000002
     442/** Don't notify the child wait facilities. (Signal origins there.) */
     443#define __LIBC_SI_NO_NOTIFY_CHILD   0x00000004
    440444/** @} */
    441445#endif
  • trunk/src/emx/include/sys/wait.h

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1629 r1630  
    103103pid_t   wait(int *);
    104104pid_t   waitpid(pid_t, int *, int);
    105 #if 0 /* bird: old __BSD_VISIBLE */
    106105struct rusage;
    107106pid_t   wait3(int *, int, struct rusage *);
    108107pid_t   wait4(pid_t, int *, int, struct rusage *);
    109 #endif
    110108
    111109
     
    118116/** Wait for processes that have exited. */
    119117#define WEXITED         8
    120 /** Wait for processes that have stopped. */
    121 #define WSTOPPED       16
    122 /** Keep the wait state around for later wait calls, i.e. just peek at the stuff. */
    123 #define WNOWAIT        32
     118/** Wait for processes that have stopped. Same as WUNTRACED atm. */
     119#define WSTOPPED       WUNTRACED
     120/** Keep the wait state around for later wait calls, i.e. just peek at the stuff.
     121 * Very logical name, not chance at all that anyone will confuse it for WNOHANG. */
     122#define WNOWAIT        16
    124123
    125124/* The following values are used by the `waitid' function.  */
Note: See TracChangeset for help on using the changeset viewer.