Merge "Support asm/sockios.h for MIPS."
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <ioctls_portable.h>
|
#include <ioctls_portable.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
#include <linux/sockios.h>
|
||||||
|
|
||||||
#if FIONREAD_PORTABLE==FIONREAD
|
#if FIONREAD_PORTABLE==FIONREAD
|
||||||
#error Bad build environment
|
#error Bad build environment
|
||||||
@@ -195,6 +196,18 @@ static inline int mips_change_request(int request)
|
|||||||
return TIOCGLTC;
|
return TIOCGLTC;
|
||||||
case OTIOCCONS_PORTABLE:
|
case OTIOCCONS_PORTABLE:
|
||||||
return OTIOCCONS;
|
return OTIOCCONS;
|
||||||
|
case FIOSETOWN_PORTABLE:
|
||||||
|
return FIOSETOWN;
|
||||||
|
case SIOCSPGRP_PORTABLE:
|
||||||
|
return SIOCSPGRP;
|
||||||
|
case FIOGETOWN_PORTABLE:
|
||||||
|
return FIOGETOWN;
|
||||||
|
case SIOCGPGRP_PORTABLE:
|
||||||
|
return SIOCGPGRP;
|
||||||
|
case SIOCATMARK_PORTABLE:
|
||||||
|
return SIOCATMARK;
|
||||||
|
case SIOCGSTAMP_PORTABLE:
|
||||||
|
return SIOCGSTAMP;
|
||||||
}
|
}
|
||||||
return request;
|
return request;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,4 +171,13 @@ struct sgttyb_portable {
|
|||||||
#define TIOCGLTC_PORTABLE _IOR_PORTABLE('t',116,struct ltchars_portable)/* get local special chars*/
|
#define TIOCGLTC_PORTABLE _IOR_PORTABLE('t',116,struct ltchars_portable)/* get local special chars*/
|
||||||
#define OTIOCCONS_PORTABLE _IO_PORTABLE('t', 98) /* for hp300 -- sans int arg */
|
#define OTIOCCONS_PORTABLE _IO_PORTABLE('t', 98) /* for hp300 -- sans int arg */
|
||||||
|
|
||||||
|
/* Derived from development/ndk/platforms/android-3/arch-arm/include/asm/sockios.h */
|
||||||
|
|
||||||
|
#define FIOSETOWN_PORTABLE 0x8901
|
||||||
|
#define SIOCSPGRP_PORTABLE 0x8902
|
||||||
|
#define FIOGETOWN_PORTABLE 0x8903
|
||||||
|
#define SIOCGPGRP_PORTABLE 0x8904
|
||||||
|
#define SIOCATMARK_PORTABLE 0x8905
|
||||||
|
#define SIOCGSTAMP_PORTABLE 0x8906
|
||||||
|
|
||||||
#endif /* _IOCTLS_PORTABLE_H */
|
#endif /* _IOCTLS_PORTABLE_H */
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#ifndef _SOCKET_PORTABLE_H_
|
#ifndef _SOCKET_PORTABLE_H_
|
||||||
#define _SOCKET_PORTABLE_H_
|
#define _SOCKET_PORTABLE_H_
|
||||||
|
|
||||||
/* From ndk/platforms/android-3/include/sys/socket.h */
|
/* Derived from development/ndk/platforms/android-3/include/sys/socket.h */
|
||||||
#define SOCK_STREAM_PORTABLE 1
|
#define SOCK_STREAM_PORTABLE 1
|
||||||
#define SOCK_DGRAM_PORTABLE 2
|
#define SOCK_DGRAM_PORTABLE 2
|
||||||
#define SOCK_RAW_PORTABLE 3
|
#define SOCK_RAW_PORTABLE 3
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
#define SOCK_PACKET_PORTABLE 10
|
#define SOCK_PACKET_PORTABLE 10
|
||||||
|
|
||||||
|
|
||||||
/* Derived from android-3/arch-arm/include/asm/socket.h */
|
/* Derived from development/ndk/platforms/android-3/arch-arm/include/asm/socket.h */
|
||||||
|
|
||||||
#define SOL_SOCKET_PORTABLE 1
|
#define SOL_SOCKET_PORTABLE 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user