Changeset 1768


Ignore:
Timestamp:
Jan 17, 2005, 3:40:14 AM (21 years ago)
Author:
bird
Message:

A bit of instructional logging. A couple of todos.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.9 to 1.10
    r1767 r1768  
    231231    else if (rc > 0)
    232232    {
     233        /** @todo socket duplication within the same process! A per process reference counting is required too! */
     234
    233235        /*
    234236         * Someone is using the socket, we'll remove it from the list of
     
    336338    LIBCLOG_ENTER("pFH=%p:{iSocket=%d} fh=%d pfhNew=%p\n", (void *)pFH, ((PLIBCSOCKETFH)pFH)->iSocket, fh, (void *)pfhNew);
    337339    LIBC_ASSERTM_FAILED("Duplication of sockets aren't supported yet.\n");
     340    /** @todo In order to properly support this we need to have per process reference counting
     341     * of the sockets too. This should be done in a high heap block and done on allocation to
     342     * get the exec/spaw inheritance right. */
    338343    LIBCLOG_RETURN_INT(-ENOSYS);
    339344}
     
    11961201static int     TCPNAME(imp_soclose)(int s)
    11971202{
     1203    LIBCLOG_ENTER("iSocket=%d\n", s);
    11981204    static int (*TCPCALL pfn)(int s);
    11991205    if (!pfn && TCPNAME(get_imp)(ORD_SOCLOSE, (void **)(void *)&pfn))
    1200         return -1;
    1201     return pfn(s);
     1206        LIBCLOG_RETURN_INT(-1);
     1207    int rc = pfn(s);
     1208    LIBCLOG_RETURN_INT(rc);
    12021209}
    12031210
     
    12381245static int     TCPNAME(imp_addsockettolist)(int s)
    12391246{
     1247    LIBCLOG_ENTER("iSocket=%d\n", s);
    12401248    static int (*TCPCALL pfn)(int s);
    12411249    if (!pfn && TCPNAME(get_imp)(ORD_ADDSOCKETTOLIST, (void **)(void *)&pfn))
    1242         return -1;
    1243     return pfn(s);
     1250        LIBCLOG_RETURN_INT(-1);
     1251    int rc = pfn(s);
     1252    LIBCLOG_RETURN_INT(rc);
    12441253}
    12451254
    12461255static int     TCPNAME(imp_removesocketfromlist)(int s)
    12471256{
     1257    LIBCLOG_ENTER("iSocket=%d\n", s);
    12481258    static int (*TCPCALL pfn)(int s);
    12491259    if (!pfn && TCPNAME(get_imp)(ORD_REMOVESOCKETFROMLIST, (void **)(void *)&pfn))
    1250         return -1;
    1251     return pfn(s);
     1260        LIBCLOG_RETURN_INT(-1);
     1261    int rc = pfn(s);
     1262    LIBCLOG_RETURN_INT(rc);
    12521263}
    12531264
Note: See TracChangeset for help on using the changeset viewer.