mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-18 18:34:20 +08:00
[libc] redirecting header sys/ioctl to bits/ioctl
This commit is contained in:

committed by
Man, Jianting (Meco)

parent
94ed48d338
commit
3419e591da
@@ -23,6 +23,9 @@ struct winsize
|
||||
unsigned short ws_ypixel;
|
||||
};
|
||||
|
||||
#ifdef RT_USING_MUSLLIBC
|
||||
#include <bits/ioctl.h>
|
||||
#else
|
||||
/*
|
||||
* Direction bits, which any architecture can choose to override
|
||||
* before including this file.
|
||||
@@ -72,10 +75,6 @@ struct winsize
|
||||
#define FIOASYNC _IOW('f', 125, int) /* set/clear async i/o */
|
||||
#endif
|
||||
|
||||
#ifndef FIONWRITE
|
||||
#define FIONWRITE _IOR('f', 121, int) /* get # bytes outstanding in send queue */
|
||||
#endif
|
||||
|
||||
/* Socket I/O Controls */
|
||||
#ifndef SIOCSHIWAT
|
||||
#define SIOCSHIWAT _IOW('s', 0, int) /* set high watermark */
|
||||
@@ -206,6 +205,12 @@ struct winsize
|
||||
#define SIOCGSTAMP 0x8906
|
||||
#define SIOCGSTAMPNS 0x8907
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef FIONWRITE
|
||||
#define FIONWRITE _IOR('f', 121, int) /* get # bytes outstanding in send queue */
|
||||
#endif
|
||||
|
||||
#define SIOCADDRT 0x890B
|
||||
#define SIOCDELRT 0x890C
|
||||
#define SIOCRTMSG 0x890D
|
||||
|
Reference in New Issue
Block a user