mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 09:05:59 +08:00
feat(lwip): Midify stand I/O control APIs declare
This commit is contained in:
@ -580,9 +580,15 @@ int lwip_fcntl(int s, int cmd, int val);
|
|||||||
/** @ingroup socket */
|
/** @ingroup socket */
|
||||||
#define close(s) lwip_close(s)
|
#define close(s) lwip_close(s)
|
||||||
/** @ingroup socket */
|
/** @ingroup socket */
|
||||||
#define fcntl(s,cmd,val) lwip_fcntl(s,cmd,val)
|
|
||||||
|
/* Disable here to use stand APIs */
|
||||||
|
//#define fcntl(s,cmd,val) lwip_fcntl(s,cmd,val)
|
||||||
/** @ingroup socket */
|
/** @ingroup socket */
|
||||||
#define ioctl(s,cmd,argp) lwip_ioctl(s,cmd,argp)
|
//#define ioctl(s,cmd,argp) lwip_ioctl(s,cmd,argp)
|
||||||
|
|
||||||
|
int ioctl(int fd, int request, ...);
|
||||||
|
int fcntl(int fd, int request, ...);
|
||||||
|
|
||||||
#endif /* LWIP_POSIX_SOCKETS_IO_NAMES */
|
#endif /* LWIP_POSIX_SOCKETS_IO_NAMES */
|
||||||
#endif /* LWIP_COMPAT_SOCKETS != 2 */
|
#endif /* LWIP_COMPAT_SOCKETS != 2 */
|
||||||
|
|
||||||
|
@ -33,8 +33,3 @@
|
|||||||
#include "sdkconfig.h"
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
#include "lwip/sockets.h"
|
#include "lwip/sockets.h"
|
||||||
|
|
||||||
#ifdef CONFIG_USING_ESP_VFS
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#undef fcntl
|
|
||||||
|
|
||||||
#include <sys/fcntl.h>
|
#include <sys/fcntl.h>
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
#include "lwip/sockets.h"
|
||||||
|
|
||||||
int fcntl(int fd, int request, ...)
|
int fcntl(int fd, int request, ...)
|
||||||
{
|
{
|
||||||
int val, ret;
|
int val, ret;
|
||||||
|
Reference in New Issue
Block a user