Ignore:
Timestamp:
Feb 4, 2004, 11:37:02 PM (22 years ago)
Author:
bird
Message:

Initial logging stuff.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1172 r1173  
    3333#include <sys/fcntl.h>
    3434#include <emx/io.h>
     35#include <emx/libclog.h>
    3536#include "socket.h"
    3637
    3738int recv(int socket, void *buf, int len, int flags)
    3839{
     40    LIBCLOG_ENTER("socket=%d buf=%p len=%d flags=%#x\n", socket, buf, len, flags);
    3941    PLIBCSOCKETFH   pFHSocket = __libsocket_FH(socket);
    4042    if (pFHSocket)
     
    4345        rc = __libsocket_recv(pFHSocket->iSocket, buf, len, flags);
    4446        if (rc >= 0)
    45             return rc;
     47            LIBCLOG_RETURN_INT(rc);
    4648        __libsocket_setLibcErrno();
    4749    }
    4850
    49     return -1;
     51    LIBCLOG_RETURN_INT(-1);
    5052}
    5153
Note: See TracChangeset for help on using the changeset viewer.