suppfree.stderr.exp suppfree.vgtest \
toobig-allocs.stderr.exp toobig-allocs.vgtest \
trivialleak.stderr.exp trivialleak.vgtest \
- weirdioctl.stderr.exp weirdioctl.stdout.exp weirdioctl.vgtest \
metadata.stderr.exp metadata.stdout.exp metadata.vgtest-HIDING \
vgtest_ume.stderr.exp vgtest_ume.disabled \
writev.stderr.exp writev.stderr.exp2 writev.stderr.exp3 writev.vgtest \
realloc1 realloc2 realloc3 \
sigaltstack signal2 sigprocmask sigkill \
stack_changes strchr str_tester supp_unknown supp1 supp2 suppfree \
- trivialleak weirdioctl \
+ trivialleak \
mismatches new_override metadata \
xml1 \
writev zeropage
+++ /dev/null
-
-/* A program which sets a readable fd to have a timeout, and therefore
- needs --simulation-hints=ioctl-VTIME in order to run without
- blocking.
-
- [Nb: no longer true, since the ioctl-VTIME hack no longer exists]
-*/
-
-#include <stdio.h>
-#include <sys/ioctl.h>
-#include <termio.h>
-
-int main ( void )
-{
- int c, i;
- int res;
- struct termio tty, oldtty;
-
- /**
- ** Save the old tty settings, and get rid of echo
- ** for the new tty settings
- **/
- ioctl(0, TCGETA, &oldtty);
- tty = oldtty;
- tty.c_lflag &= ~(ICANON|ECHO|ECHOE|ECHOK|ECHONL);
- tty.c_cc[VMIN] = 0;
- tty.c_cc[VTIME] = 5;
- res = ioctl(0, TCSETA, &tty);
- printf("first ioctl returned %d\n", res);
-
- /**
- ** Now do whatever stuff you want non-echoed
- **/
- i = 0;
- while (i++ < 50) {
- c = getchar();
- printf("got %d\n", c);
- }
-
- /**
- ** Now reset the old settings
- **/
- res = ioctl(0, TCSETA, &oldtty);
- printf("second ioctl returned %d\n", res);
-
-return 0;
-}
+++ /dev/null
-Syscall param ioctl(TCSET{A,AW,AF}) points to uninitialised byte(s)
- at 0x........: ioctl (in /...libc...)
- by 0x........: __libc_start_main (in /...libc...)
- by 0x........: ...
- Address 0x........ is on thread 1's stack