fix: 删除网络模块封装的ioctl等接口
【背景】删除网络模块封装的ioctl等接口 【修改方案】 1, 删除网络模块封装的ioctl等接口 【影响】 对现有的产品编译不会有影响。 re #I5SRE6 Signed-off-by: wangchen <wangchen240@huawei.com>
This commit is contained in:
parent
044cf59583
commit
2cf290bb7c
|
@ -240,4 +240,7 @@
|
|||
#define LWIP_SOCKET_OFFSET CONFIG_NFILE_DESCRIPTORS
|
||||
#endif
|
||||
|
||||
#define LWIP_SOCKET_IOCTL 0
|
||||
#define LWIP_SOCKET_FCNTL 0
|
||||
|
||||
#endif /* _LWIP_PORTING_LWIPOPTS_H_ */
|
||||
|
|
|
@ -211,6 +211,7 @@ int close(int fd)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if LWIP_SOCKET_IOCTL
|
||||
#ifdef LWIP_SOCKET_IOCTL_FUNC
|
||||
int ioctl(int fd, int req, ...)
|
||||
{
|
||||
|
@ -222,7 +223,9 @@ int ioctl(int fd, int req, ...)
|
|||
return lwip_ioctl(fd, (long)req, (void *)arg);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if LWIP_SOCKET_FCNTL
|
||||
#ifdef LWIP_SOCKET_FCNTL_FUNC
|
||||
int fcntl(int fd, int cmd, ...)
|
||||
{
|
||||
|
@ -234,6 +237,7 @@ int fcntl(int fd, int cmd, ...)
|
|||
return lwip_fcntl(fd, cmd, val);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if LWIP_SOCKET_SELECT
|
||||
#ifdef LWIP_SOCKET_SELECT_FUNC
|
||||
|
|
Loading…
Reference in New Issue