Add wrapper for ioctl TIOCGPGRP (Alexandre Duret-Lutz <duret_g@epita.fr>)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@39
This commit is contained in:
Julian Seward 2002-03-29 04:39:00 +00:00
parent df8253eda3
commit c712005a75
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-03-29 Alexandre Duret-Lutz <duret_g@epita.fr>
* vg_syscall_mem.c: wrapper for ioctl TIOCGPGRP.
2002-03-29 Tom Hughes <thh@cyberscience.com>
* vg_syscall_mem.c: Significantly improved SYSV IPC call

View File

@ -1312,6 +1312,13 @@ void VG_(wrap_syscall) ( void )
sizeof(struct winsize) );
KERNEL_DO_SYSCALL(res);
break;
case TIOCGPGRP:
/* Get process group ID for foreground processing group. */
must_be_writable( "ioctl(TIOCGPGRP)", arg3,
sizeof(pid_t) );
KERNEL_DO_SYSCALL(res);
if (!VG_(is_kerror)(res) && res == 0)
make_readable ( arg3, sizeof(pid_t) );
case TIOCGPTN: /* Get Pty Number (of pty-mux device) */
must_be_writable("ioctl(TIOCGPTN)", arg3, sizeof(int) );
KERNEL_DO_SYSCALL(res);