rt_ssize_t can give negative error code, which follows the unix style correctly
1. Change the type of cmd to 'int'; 2. Remove RT_LWIP_USING_RT_MEM macro;