home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp / 14137 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.1 KB  |  30 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!mcsun!julienas!newsserver!geant!courtel
  3. From: courtel@cenatls.cena.dgac.fr (Nicolas Courtel)
  4. Subject: Help: asynchronous I/O on HP9000-700 / HPUX 8.07
  5. Message-ID: <1992Dec16.162834.20132@cenatls.cena.dgac.fr>
  6. Lines: 19
  7. Sender: news@cenatls.cena.dgac.fr
  8. Organization: Centre d'Etudes de la Navigation Aerienne, Toulouse, France
  9. Date: Wed, 16 Dec 1992 16:28:34 GMT
  10.  
  11. I need to use asynchronous I/O (have SIGIO sent when descriptor ready) for
  12. sockets and pipes. After looking through the man, I have found two ways of doing
  13. it, using ioctl(2):
  14.  
  15. 1. SIOCSPGRP and FIOASYNC work for sockets, but not for pipes (errno is set to
  16. ENOTTY). This is not a surprise, as the doc says it is specific to sockets.
  17.  
  18. 2. FIOSSAIOOWN and FIOSSAIOSTAT work neither for sockets (errno = EOPNOTSUPP),
  19. nor for pipes (errno = ENOTTY again).
  20.  
  21. Is there another way of doing it, that would work for pipes?
  22.  
  23. Thanks by advance for all answers
  24.  
  25. --
  26. Nicolas Courtel - courtel@dgac.fr
  27.  
  28. >>>        The goal of science is to build better mousetraps.         <<<
  29. >>>            The goal of nature is to build better mice.            <<<
  30.