This reverts commit 541493d877.
541493d877
This was intended for integrating LWIP, but a different approach was used.
No more conflicts between LWIP & newlib read(), write(), fcntl(), etc. select() still only works if all of the fds are sockets. Closes https://github.com/espressif/esp-idf/issues/273