Commit f29042b5312f7ec97ec7ca678ccbea8997a817c8
1 parent
09bfb054
TIOCGPTN and TIOCSPTLCK ioctls
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@90 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
4 additions
and
2 deletions
linux-user/ioctls.h
... | ... | @@ -37,6 +37,8 @@ |
37 | 37 | IOCTL(TIOCNOTTY, 0, TYPE_NULL) |
38 | 38 | IOCTL(TIOCGETD, IOC_R, MK_PTR(TYPE_INT)) |
39 | 39 | IOCTL(TIOCSETD, IOC_W, MK_PTR(TYPE_INT)) |
40 | + IOCTL(TIOCGPTN, IOC_R, MK_PTR(TYPE_INT)) | |
41 | + IOCTL(TIOCSPTLCK, IOC_W, MK_PTR(TYPE_INT)) | |
40 | 42 | IOCTL(FIOCLEX, 0, TYPE_NULL) |
41 | 43 | IOCTL(FIONCLEX, 0, TYPE_NULL) |
42 | 44 | IOCTL(FIOASYNC, IOC_W, MK_PTR(TYPE_INT)) | ... | ... |
syscall-i386.h
... | ... | @@ -572,8 +572,8 @@ struct target_pt_regs { |
572 | 572 | #define TARGET_TIOCSBRK 0x5427 /* BSD compatibility */ |
573 | 573 | #define TARGET_TIOCCBRK 0x5428 /* BSD compatibility */ |
574 | 574 | #define TARGET_TIOCGSID 0x5429 /* Return the session ID of FD */ |
575 | -#define TARGET_TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ | |
576 | -#define TARGET_TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ | |
575 | +#define TARGET_TIOCGPTN TARGET_IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ | |
576 | +#define TARGET_TIOCSPTLCK TARGET_IOW('T',0x31, int) /* Lock/unlock Pty */ | |
577 | 577 | |
578 | 578 | #define TARGET_FIONCLEX 0x5450 /* these numbers need to be adjusted. */ |
579 | 579 | #define TARGET_FIOCLEX 0x5451 | ... | ... |