fix: 删除网络模块封装的ioctl等接口

【背景】删除网络模块封装的ioctl等接口

【修改方案】
1, 删除网络模块封装的ioctl等接口

【影响】
对现有的产品编译不会有影响。
re #I5SRE6
Signed-off-by: wangchen <wangchen240@huawei.com>
This commit is contained in:
wangchen 2022-09-23 07:12:01 +00:00
parent 044cf59583
commit 2cf290bb7c
2 changed files with 7 additions and 0 deletions

View File

@ -240,4 +240,7 @@
#define LWIP_SOCKET_OFFSET CONFIG_NFILE_DESCRIPTORS #define LWIP_SOCKET_OFFSET CONFIG_NFILE_DESCRIPTORS
#endif #endif
#define LWIP_SOCKET_IOCTL 0
#define LWIP_SOCKET_FCNTL 0
#endif /* _LWIP_PORTING_LWIPOPTS_H_ */ #endif /* _LWIP_PORTING_LWIPOPTS_H_ */

View File

@ -211,6 +211,7 @@ int close(int fd)
} }
#endif #endif
#if LWIP_SOCKET_IOCTL
#ifdef LWIP_SOCKET_IOCTL_FUNC #ifdef LWIP_SOCKET_IOCTL_FUNC
int ioctl(int fd, int req, ...) int ioctl(int fd, int req, ...)
{ {
@ -222,7 +223,9 @@ int ioctl(int fd, int req, ...)
return lwip_ioctl(fd, (long)req, (void *)arg); return lwip_ioctl(fd, (long)req, (void *)arg);
} }
#endif #endif
#endif
#if LWIP_SOCKET_FCNTL
#ifdef LWIP_SOCKET_FCNTL_FUNC #ifdef LWIP_SOCKET_FCNTL_FUNC
int fcntl(int fd, int cmd, ...) int fcntl(int fd, int cmd, ...)
{ {
@ -234,6 +237,7 @@ int fcntl(int fd, int cmd, ...)
return lwip_fcntl(fd, cmd, val); return lwip_fcntl(fd, cmd, val);
} }
#endif #endif
#endif
#if LWIP_SOCKET_SELECT #if LWIP_SOCKET_SELECT
#ifdef LWIP_SOCKET_SELECT_FUNC #ifdef LWIP_SOCKET_SELECT_FUNC