home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / de / comp / os / unix / 2578 < prev    next >
Encoding:
Text File  |  1993-01-02  |  1.2 KB  |  42 lines

  1. Newsgroups: de.comp.os.unix
  2. Path: sparky!uunet!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!news.netmbx.de!news.Hamburg.Germany.EU.net!abqhh!malihh!clu
  3. From: clu@malihh.hanse.de (Carsten Lutz)
  4. Subject: Re: TIOCSTI ( ioctl / BSD4.3 )
  5. Message-ID: <C088os.GBy@malihh.hanse.de>
  6. Organization: malihh, Hamburg, Germany
  7. References: <C04s6w.31y@malihh.hanse.de> <1i2msoINN3dm@smurf.sub.org>
  8. Date: Sat, 2 Jan 1993 12:43:37 GMT
  9. Lines: 31
  10.  
  11. In <1i2msoINN3dm@smurf.sub.org> urlichs@smurf.sub.org (Matthias Urlichs) writes:
  12. >In de.comp.os.unix, article <C04s6w.31y@malihh.hanse.de>,
  13. >  root@malihh.hanse.de (Carsten Lutz) writes:
  14. >> 
  15. >> #include <stdio.h>
  16. >> #include <sys/ioctl.h>
  17. >> 
  18. >> main() {
  19. >>   char c='a';
  20. >> 
  21. >>   ioctl(stdin, TIOCSTI, &c);
  22. >>   printf("%c\n", getchar());
  23. >> }
  24. >> 
  25. >> muesste nach meiner Auffassung also ein 'a' ausgeben. Tut es aber nicht,
  26. >> der ioctl() bewirkt scheinbar gar nichts.
  27. >> 
  28. >AUA!!!
  29. >
  30. >> Was mache ich falsch ?
  31. >> 
  32. >"man ioctl". "man stdio". Ersetze "stdin" durch "0".
  33. Ok, ich schaeme mich. thanx.
  34.  
  35. gruessend,
  36.         Carsten
  37.  
  38.  
  39. -- 
  40. * Carsten Lutz, Rellingen, FRG / clu@malihh.hanse.de ( NeXTmail accepted )  *
  41. *   Voice : +49 4101 512493  Fax: +49 4101 27757  Traily : +49 4101 22306   *
  42.