Changeset 1608


Ignore:
Timestamp:
Nov 4, 2004, 7:46:04 AM (21 years ago)
Author:
bird
Message:

TcpIp and signal changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/sys/sharedpm.c

    • Property cvs2svn:cvs-rev changed from 1.11 to 1.12
    r1607 r1608  
    728728 *
    729729 * @returns 0 on success.
    730  * @returns -1 and errno on failure.
     730 * @returns Negative error code (errno.h) on failure.
    731731 * @param   iSocket     The new socket.
    732732 */
     
    746746    {
    747747        LIBC_ASSERTM_FAILED("iSocket=%d is out of the range (cSockets=%d)\n", iSocket, gpSPMHdr->pTcpip->cSockets);
    748         rc = -1;
    749         errno = EINVAL;
     748        rc = -EINVAL;
    750749    }
    751750    LIBCLOG_RETURN_INT(rc);
     
    757756 *
    758757 * @returns The new reference count.
    759  * @returns -1 and errno on failure.
     758 * @returns Negative error code (errno.h) on failure.
    760759 * @param   iSocket     socket to reference.
    761760 */
     
    774773        {
    775774            LIBC_ASSERTM_FAILED("iSocket=%d is referenced too many times! uRefs=%#x\n", iSocket, uRefs);
    776             rc = -1;
    777             errno = EBADF;
     775            rc = -EBADF;
    778776        }
    779777    }
     
    781779    {
    782780        LIBC_ASSERTM_FAILED("iSocket=%d is out of the range (cSockets=%d)\n", iSocket, gpSPMHdr->pTcpip->cSockets);
    783         rc = -1;
    784         errno = EINVAL;
     781        rc = -EINVAL;
    785782    }
    786783    LIBCLOG_RETURN_INT(rc);
     
    793790 * @returns The new reference count.
    794791 *          The caller must close the socket if 0 is returned.
    795  * @returns -1 and errno on failure.
     792 * @returns Negative error code (errno.h) on failure.
    796793 * @param   iSocket     Socket to dereference.
    797794 */
     
    810807        {
    811808            LIBC_ASSERTM_FAILED("iSocket=%d already 0! (uRefs=%#x)\n", iSocket, uRefs);
    812             rc = -1;
    813             errno = EBADF;
     809            rc = -EBADF;
    814810        }
    815811    }
     
    817813    {
    818814        LIBC_ASSERTM_FAILED("iSocket=%d is out of the range (cSockets=%d)\n", iSocket, gpSPMHdr->pTcpip->cSockets);
    819         rc = -1;
    820         errno = EINVAL;
     815        rc = -EINVAL;
    821816    }
    822817    LIBCLOG_RETURN_INT(rc);
     
    930925         * Check if already pending.
    931926         */
    932         __LIBC_PSPMSIGNAL   pSig = pProcess->pSigHead;
     927        __LIBC_PSPMSIGNAL   pSig = NULL;
    933928        if (!fQueued)
    934929        {
     930            pSig = pProcess->pSigHead;
    935931            int iSignal = pSignal->si_signo;
    936932            for (pSig = pProcess->pSigHead; pSig; pSig = pSig->pNext)
     
    14791475            /*
    14801476             * Register exit list handler and return with
    1481              * mutex ownership.
     1477             * mutex ownership. This must have a priority lower than
     1478             * the TCPIP library of OS/2 to prevent it from closing
     1479             * sockets.
    14821480             */
    1483             rc = DosExitList(0x9f00 | EXLST_ADD, spmExitList);
     1481            rc = DosExitList(0x9800 | EXLST_ADD, spmExitList);
    14841482            FS_RESTORE();
    14851483            LIBC_ASSERTM(!rc, "DosExitList failed with rc=%d\n", rc);
Note: See TracChangeset for help on using the changeset viewer.