home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: de.comp.os.unix
- Path: sparky!uunet!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!news.netmbx.de!news.Hamburg.Germany.EU.net!abqhh!malihh!clu
- From: clu@malihh.hanse.de (Carsten Lutz)
- Subject: Re: TIOCSTI ( ioctl / BSD4.3 )
- Message-ID: <C088os.GBy@malihh.hanse.de>
- Organization: malihh, Hamburg, Germany
- References: <C04s6w.31y@malihh.hanse.de> <1i2msoINN3dm@smurf.sub.org>
- Date: Sat, 2 Jan 1993 12:43:37 GMT
- Lines: 31
-
- In <1i2msoINN3dm@smurf.sub.org> urlichs@smurf.sub.org (Matthias Urlichs) writes:
- >In de.comp.os.unix, article <C04s6w.31y@malihh.hanse.de>,
- > root@malihh.hanse.de (Carsten Lutz) writes:
- >>
- >> #include <stdio.h>
- >> #include <sys/ioctl.h>
- >>
- >> main() {
- >> char c='a';
- >>
- >> ioctl(stdin, TIOCSTI, &c);
- >> printf("%c\n", getchar());
- >> }
- >>
- >> muesste nach meiner Auffassung also ein 'a' ausgeben. Tut es aber nicht,
- >> der ioctl() bewirkt scheinbar gar nichts.
- >>
- >AUA!!!
- >
- >> Was mache ich falsch ?
- >>
- >"man ioctl". "man stdio". Ersetze "stdin" durch "0".
- Ok, ich schaeme mich. thanx.
-
- gruessend,
- Carsten
-
-
- --
- * Carsten Lutz, Rellingen, FRG / clu@malihh.hanse.de ( NeXTmail accepted ) *
- * Voice : +49 4101 512493 Fax: +49 4101 27757 Traily : +49 4101 22306 *
-