summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-04-10 00:12:45 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-04-10 00:12:45 +0000
commitf29042b5312f7ec97ec7ca678ccbea8997a817c8 (patch)
tree608329551204cb6098fc3ae3ac53c997229544bf
parent09bfb054fb4d7a72b4989141de157cdeda6704bd (diff)
downloadfocaccia-qemu-f29042b5312f7ec97ec7ca678ccbea8997a817c8.tar.gz
focaccia-qemu-f29042b5312f7ec97ec7ca678ccbea8997a817c8.zip
TIOCGPTN and TIOCSPTLCK ioctls
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@90 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--linux-user/ioctls.h2
-rw-r--r--syscall-i386.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index b9aadb7a58..b4bfb3ab6e 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -37,6 +37,8 @@
      IOCTL(TIOCNOTTY, 0, TYPE_NULL)
      IOCTL(TIOCGETD, IOC_R, MK_PTR(TYPE_INT))
      IOCTL(TIOCSETD, IOC_W, MK_PTR(TYPE_INT))
+     IOCTL(TIOCGPTN, IOC_R, MK_PTR(TYPE_INT))
+     IOCTL(TIOCSPTLCK, IOC_W, MK_PTR(TYPE_INT))
      IOCTL(FIOCLEX, 0, TYPE_NULL)
      IOCTL(FIONCLEX, 0, TYPE_NULL)
      IOCTL(FIOASYNC, IOC_W, MK_PTR(TYPE_INT))
diff --git a/syscall-i386.h b/syscall-i386.h
index dae9be4e12..f77b55b0ac 100644
--- a/syscall-i386.h
+++ b/syscall-i386.h
@@ -572,8 +572,8 @@ struct target_pt_regs {
 #define TARGET_TIOCSBRK	0x5427  /* BSD compatibility */
 #define TARGET_TIOCCBRK	0x5428  /* BSD compatibility */
 #define TARGET_TIOCGSID	0x5429  /* Return the session ID of FD */
-#define TARGET_TIOCGPTN	_IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
-#define TARGET_TIOCSPTLCK	_IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TARGET_TIOCGPTN	TARGET_IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
+#define TARGET_TIOCSPTLCK	TARGET_IOW('T',0x31, int)  /* Lock/unlock Pty */
 
 #define TARGET_FIONCLEX	0x5450  /* these numbers need to be adjusted. */
 #define TARGET_FIOCLEX		0x5451