Ignore:
Timestamp:
Sep 5, 2004, 12:56:05 PM (21 years ago)
Author:
bird
Message:

Fixes and bzero.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1456 r1457  
    206206     * Every process is in one or another list depending on their state. */
    207207    struct __libc_SPMProcess   *pNext;
     208    /** Pointer to the previous process in the list. */
     209    struct __libc_SPMProcess   *pPrev;
     210
    208211    /** Version of the SPM which created this process. */
    209212    unsigned                    uVersion;
     
    232235
    233236    /** Reserved pool pointer field with default value 0. */
    234     unsigned                    aReserved[40 - 12];
     237    unsigned                    aReserved[40 - 13];
    235238
    236239    /** Number of possible pointers to shared memory starting at pvInherit.
     
    239242    unsigned                    cPoolPointers;
    240243    /** Pointer to data inherited from the parent process. */
    241     __LIBC_PSPMINHERIT         pInherit;
     244    __LIBC_PSPMINHERIT volatile pInherit;
    242245} __LIBC_SPMPROCESS, *__LIBC_PSPMPROCESS;
    243246
     
    313316    /** Array index by process state giving the head pointers
    314317     * to the processes in that state. */
    315     __LIBC_PSPMPROCESS         apHeads[__LIBC_PROCSTATE_MAX];
     318    __LIBC_PSPMPROCESS volatile apHeads[__LIBC_PROCSTATE_MAX];
    316319
    317320    /** Pointer to the tcpip globals. */
     
    320323    pid_t                       pidCreate;
    321324    /** Creation timestamp. */
    322     union
     325    __extension__ union
    323326    {
    324327#ifdef INCL_DOSDATETIME
     
    334337
    335338/**
     339 * SPM Exception handler registration record.
     340 */
     341typedef struct __LIBC_SPMXCPTREGREC
     342{
     343    __extension__ union
     344    {
     345#ifdef INCL_DOSEXCEPTIONS
     346        EXCEPTIONREGISTRATIONRECORD Core;
     347#endif
     348        void *apv[2];
     349    };
     350    unsigned                        uFutureStuff0;
     351    unsigned                        uFutureStuff1;
     352} __LIBC_SPMXCPTREGREC;
     353/** Pointer to SPM exception handler registration record. */
     354typedef __LIBC_SPMXCPTREGREC *__LIBC_PSPMXCPTREGREC;
     355
     356
     357
     358
     359/**
    336360 * Gets the current process.
    337361 *
     
    402426 * @returns 0 on success.
    403427 * @returns -1 and errno on failure.
    404  * @remark  Don't think of calling this if you're not LIBC!
    405  */
    406 int __libc_spmLock(void);
     428 * @param   pRegRec     Pointer to the exception handler registration record.
     429 * @remark  Don't even think of calling this if you're not LIBC!
     430 */
     431int __libc_spmLock(__LIBC_PSPMXCPTREGREC pRegRec);
    407432
    408433/**
     
    410435 *
    411436 * @returns 0 on success.
    412  * @returns 1 on failure.
    413  * @remark  Don't think of calling this if you're not LIBC!
    414  */
    415 int __libc_spmUnlock(void);
     437 * @returns -1 on and errno failure.
     438 * @param   pRegRec     Pointer to the exception handler registration record.
     439 * @remark  Don't even think of calling this if you're not LIBC!
     440 */
     441int __libc_spmUnlock(__LIBC_PSPMXCPTREGREC pRegRec);
    416442
    417443/**
Note: See TracChangeset for help on using the changeset viewer.