Implement internal buffering for recv() for files and sockets so they don't just read one byte at a time.