Changeset 1173 for trunk/src/emx/src/libsocket/recv.c
- Timestamp:
- Feb 4, 2004, 11:37:02 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/libsocket/recv.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r1172 r1173 33 33 #include <sys/fcntl.h> 34 34 #include <emx/io.h> 35 #include <emx/libclog.h> 35 36 #include "socket.h" 36 37 37 38 int recv(int socket, void *buf, int len, int flags) 38 39 { 40 LIBCLOG_ENTER("socket=%d buf=%p len=%d flags=%#x\n", socket, buf, len, flags); 39 41 PLIBCSOCKETFH pFHSocket = __libsocket_FH(socket); 40 42 if (pFHSocket) … … 43 45 rc = __libsocket_recv(pFHSocket->iSocket, buf, len, flags); 44 46 if (rc >= 0) 45 return rc;47 LIBCLOG_RETURN_INT(rc); 46 48 __libsocket_setLibcErrno(); 47 49 } 48 50 49 return -1;51 LIBCLOG_RETURN_INT(-1); 50 52 } 51 53 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.