Fixed libzt lwip_select typo

This commit is contained in:
Joseph Henry
2017-09-29 13:25:11 -07:00
parent 11f13a7eff
commit cb8e6b94d8

View File

@@ -163,14 +163,14 @@ int zts_close(int fd)
int zts_poll(struct pollfd *fds, nfds_t nfds, int timeout) int zts_poll(struct pollfd *fds, nfds_t nfds, int timeout)
{ {
DEBUG_EXTRA(); DEBUG_ERROR("warning, this is not implemented");
return poll(fds, nfds, timeout); return poll(fds, nfds, timeout);
} }
int zts_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) int zts_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
{ {
DEBUG_EXTRA(); //DEBUG_EXTRA();
return select(nfds, readfds, writefds, exceptfds, timeout); return lwip_select(nfds, readfds, writefds, exceptfds, timeout);
} }
int zts_fcntl(int fd, int cmd, int flags) int zts_fcntl(int fd, int cmd, int flags)
@@ -228,12 +228,12 @@ ssize_t zts_recvmsg(int fd, struct msghdr *msg,int flags)
} }
int zts_read(int fd, void *buf, size_t len) { int zts_read(int fd, void *buf, size_t len) {
DEBUG_TRANS("fd=%d, len=%d", fd, len); //DEBUG_TRANS("fd=%d, len=%d", fd, len);
return lwip_read(fd, buf, len); return lwip_read(fd, buf, len);
} }
int zts_write(int fd, const void *buf, size_t len) { int zts_write(int fd, const void *buf, size_t len) {
DEBUG_TRANS("fd=%d, len=%d", fd, len); //DEBUG_TRANS("fd=%d, len=%d", fd, len);
return lwip_write(fd, buf, len); return lwip_write(fd, buf, len);
} }