Changeset 1608
- Timestamp:
- Nov 4, 2004, 7:46:04 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/sys/sharedpm.c
-
Property cvs2svn:cvs-rev
changed from
1.11
to1.12
r1607 r1608 728 728 * 729 729 * @returns 0 on success. 730 * @returns -1 and errnoon failure.730 * @returns Negative error code (errno.h) on failure. 731 731 * @param iSocket The new socket. 732 732 */ … … 746 746 { 747 747 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; 750 749 } 751 750 LIBCLOG_RETURN_INT(rc); … … 757 756 * 758 757 * @returns The new reference count. 759 * @returns -1 and errnoon failure.758 * @returns Negative error code (errno.h) on failure. 760 759 * @param iSocket socket to reference. 761 760 */ … … 774 773 { 775 774 LIBC_ASSERTM_FAILED("iSocket=%d is referenced too many times! uRefs=%#x\n", iSocket, uRefs); 776 rc = -1; 777 errno = EBADF; 775 rc = -EBADF; 778 776 } 779 777 } … … 781 779 { 782 780 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; 785 782 } 786 783 LIBCLOG_RETURN_INT(rc); … … 793 790 * @returns The new reference count. 794 791 * The caller must close the socket if 0 is returned. 795 * @returns -1 and errnoon failure.792 * @returns Negative error code (errno.h) on failure. 796 793 * @param iSocket Socket to dereference. 797 794 */ … … 810 807 { 811 808 LIBC_ASSERTM_FAILED("iSocket=%d already 0! (uRefs=%#x)\n", iSocket, uRefs); 812 rc = -1; 813 errno = EBADF; 809 rc = -EBADF; 814 810 } 815 811 } … … 817 813 { 818 814 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; 821 816 } 822 817 LIBCLOG_RETURN_INT(rc); … … 930 925 * Check if already pending. 931 926 */ 932 __LIBC_PSPMSIGNAL pSig = pProcess->pSigHead;927 __LIBC_PSPMSIGNAL pSig = NULL; 933 928 if (!fQueued) 934 929 { 930 pSig = pProcess->pSigHead; 935 931 int iSignal = pSignal->si_signo; 936 932 for (pSig = pProcess->pSigHead; pSig; pSig = pSig->pNext) … … 1479 1475 /* 1480 1476 * 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. 1482 1480 */ 1483 rc = DosExitList(0x9 f00 | EXLST_ADD, spmExitList);1481 rc = DosExitList(0x9800 | EXLST_ADD, spmExitList); 1484 1482 FS_RESTORE(); 1485 1483 LIBC_ASSERTM(!rc, "DosExitList failed with rc=%d\n", rc); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.