Ignore:
Timestamp:
Sep 4, 2004, 8:22:38 AM (21 years ago)
Author:
bird
Message:

Joined with the fork() tree from netlabs.cvs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/libsocket/socket.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1453 r1454  
    3333#include <sys/fcntl.h>
    3434#include <emx/io.h>
     35#include <os2emx.h>
     36#include <InnoTekLIBC/sharedpm.h>
    3537#define __LIBC_LOG_GROUP __LIBC_LOG_GRP_SOCKET
    3638#include <InnoTekLIBC/logstrict.h>
     
    4648    if (s >= 0)
    4749    {
    48         int             rc;
    4950        int             fh;
    50         PLIBCSOCKETFH   pFH;
    51         rc = __libc_FHAllocate(-1, O_RDWR | F_SOCKET, sizeof(LIBCSOCKETFH), &__libsocket_gSocketOps, (PLIBCFH*)&pFH, &fh);
    52         if (!rc)
    53         {
    54             pFH->iSocket = s;
     51        PLIBCSOCKETFH   pFH = TCPNAMEG(AllocFH)(s, &fh);
     52        if (pFH)
    5553            LIBCLOG_RETURN_INT(fh);
    56         }
    5754        else
    5855            __libsocket_soclose(s);
    59         __libsocket_setSocketErrno();
     56        __libc_TcpipSetSocketErrno();
    6057    }
    6158    else
    62         __libsocket_setLibcErrno();
     59        __libc_TcpipUpdateErrno();
    6360
    6461    LIBCLOG_RETURN_INT(-1);
Note: See TracChangeset for help on using the changeset viewer.