user: implement mlibc as the libc, finally.
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
#ifndef _SYS_IOCTL_H
|
||||
#define _SYS_IOCTL_H
|
||||
|
||||
#include <mlibc-config.h>
|
||||
#include <abi-bits/ioctls.h>
|
||||
|
||||
/* On Linux, sys/ioctl.h includes the termios ioctls. */
|
||||
#if __MLIBC_LINUX_OPTION
|
||||
# include <asm/ioctls.h>
|
||||
# include <bits/winsize.h>
|
||||
# include <sys/ttydefaults.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __MLIBC_ABI_ONLY
|
||||
|
||||
int ioctl(int __fd, unsigned long __request, ...);
|
||||
|
||||
#endif /* !__MLIBC_ABI_ONLY */
|
||||
|
||||
#define TIOCMGET 0x5415
|
||||
#define TIOCMBIS 0x5416
|
||||
#define TIOCMBIC 0x5417
|
||||
|
||||
#define FIONREAD 0x541B
|
||||
#define FIONBIO 0x5421
|
||||
#define FIONCLEX 0x5450
|
||||
#define FIOCLEX 0x5451
|
||||
|
||||
#define SIOCGIFNAME 0x8910
|
||||
#define SIOCGIFCONF 0x8912
|
||||
#define SIOCGIFFLAGS 0x8913
|
||||
#define SIOCSIFFLAGS 0x8914
|
||||
#define SIOCGIFMTU 0x8921
|
||||
#define SIOCSIFMTU 0x8922
|
||||
#define SIOCGIFINDEX 0x8933
|
||||
|
||||
#define SIOCPROTOPRIVATE 0x89E0
|
||||
#define SIOCDEVPRIVATE 0x89F0
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _SYS_IOCTL_H */
|
||||
Reference in New Issue
Block a user