linux-user: Add SIOCGPGRP, SIOCGSTAMP, SIOCGSTAMPNS
Mirror syscall_defs.h for the element type of struct timeval and struct timespec, even though that's not 100% accurate for each guest. Signed-off-by: Helge Deller <deller@gmx.de> [rth: Changed the MK_ARRAY types as per above; added ioctl.h entries.] Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
8cb762fe01
commit
405b491504
@ -164,6 +164,9 @@
|
|||||||
IOCTL(SIOCSRARP, IOC_W, MK_PTR(MK_STRUCT(STRUCT_arpreq)))
|
IOCTL(SIOCSRARP, IOC_W, MK_PTR(MK_STRUCT(STRUCT_arpreq)))
|
||||||
IOCTL(SIOCGRARP, IOC_R, MK_PTR(MK_STRUCT(STRUCT_arpreq)))
|
IOCTL(SIOCGRARP, IOC_R, MK_PTR(MK_STRUCT(STRUCT_arpreq)))
|
||||||
IOCTL(SIOCGIWNAME, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_char_ifreq)))
|
IOCTL(SIOCGIWNAME, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_char_ifreq)))
|
||||||
|
IOCTL(SIOCGPGRP, IOC_R, MK_PTR(TYPE_INT)) /* pid_t */
|
||||||
|
IOCTL(SIOCGSTAMP, IOC_R, MK_PTR(MK_STRUCT(STRUCT_timeval)))
|
||||||
|
IOCTL(SIOCGSTAMPNS, IOC_R, MK_PTR(MK_STRUCT(STRUCT_timespec)))
|
||||||
|
|
||||||
IOCTL(CDROMPAUSE, 0, TYPE_NULL)
|
IOCTL(CDROMPAUSE, 0, TYPE_NULL)
|
||||||
IOCTL(CDROMSTART, 0, TYPE_NULL)
|
IOCTL(CDROMSTART, 0, TYPE_NULL)
|
||||||
|
@ -930,9 +930,13 @@ struct target_pollfd {
|
|||||||
|
|
||||||
#if defined(TARGET_ALPHA) || defined(TARGET_MIPS) || defined(TARGET_SH4)
|
#if defined(TARGET_ALPHA) || defined(TARGET_MIPS) || defined(TARGET_SH4)
|
||||||
#define TARGET_SIOCATMARK TARGET_IOR('s', 7, int)
|
#define TARGET_SIOCATMARK TARGET_IOR('s', 7, int)
|
||||||
|
#define TARGET_SIOCGPGRP TARGET_IOR('s', 9, pid_t)
|
||||||
#else
|
#else
|
||||||
#define TARGET_SIOCATMARK 0x8905
|
#define TARGET_SIOCATMARK 0x8905
|
||||||
|
#define TARGET_SIOCGPGRP 0x8904
|
||||||
#endif
|
#endif
|
||||||
|
#define TARGET_SIOCGSTAMP 0x8906 /* Get stamp (timeval) */
|
||||||
|
#define TARGET_SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */
|
||||||
|
|
||||||
/* Networking ioctls */
|
/* Networking ioctls */
|
||||||
#define TARGET_SIOCADDRT 0x890B /* add routing table entry */
|
#define TARGET_SIOCADDRT 0x890B /* add routing table entry */
|
||||||
|
@ -14,6 +14,12 @@ STRUCT(serial_icounter_struct,
|
|||||||
STRUCT(sockaddr,
|
STRUCT(sockaddr,
|
||||||
TYPE_SHORT, MK_ARRAY(TYPE_CHAR, 14))
|
TYPE_SHORT, MK_ARRAY(TYPE_CHAR, 14))
|
||||||
|
|
||||||
|
STRUCT(timeval,
|
||||||
|
MK_ARRAY(TYPE_LONG, 2))
|
||||||
|
|
||||||
|
STRUCT(timespec,
|
||||||
|
MK_ARRAY(TYPE_LONG, 2))
|
||||||
|
|
||||||
STRUCT(rtentry,
|
STRUCT(rtentry,
|
||||||
TYPE_ULONG, MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr),
|
TYPE_ULONG, MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr), MK_STRUCT(STRUCT_sockaddr),
|
||||||
TYPE_SHORT, TYPE_SHORT, TYPE_ULONG, TYPE_PTRVOID, TYPE_SHORT, TYPE_PTRVOID,
|
TYPE_SHORT, TYPE_SHORT, TYPE_ULONG, TYPE_PTRVOID, TYPE_SHORT, TYPE_PTRVOID,
|
||||||
|
Loading…
Reference in New Issue
Block a user