home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / std / unix / 403 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.5 KB

  1. Path: sparky!uunet!uunet!not-for-mail
  2. From: karish@pangea.stanford.edu (Chuck Karish)
  3. Newsgroups: comp.std.unix
  4. Subject: Re: asyncronous I/O notification in POSIX: a question
  5. Date: 27 Aug 1992 18:05:06 -0700
  6. Organization: Mindcraft, Inc.
  7. Lines: 30
  8. Sender: sef@ftp.UU.NET
  9. Approved: sef@ftp.uucp (Moderator, Sean Eric Fagan)
  10. Message-ID: <17ju42INN8eg@ftp.UU.NET>
  11. References: <17jq1lINN7gc@ftp.UU.NET>
  12. NNTP-Posting-Host: ftp.uu.net
  13. X-Submissions: std-unix@uunet.uu.net
  14.  
  15. Submitted-by: karish@pangea.stanford.edu (Chuck Karish)
  16.  
  17. In article <17jq1lINN7gc@ftp.UU.NET> pdh@netcom.com (Phil Howard ) writes:
  18.  
  19. >What I cannot find or cannot figure out is how the process that has
  20. >received the EAGAIN code from [a non-blocking read() or write()] is
  21. >going to be
  22. >able to be notified of the fact that I/O is now completeable when that
  23. >condition exists, and how it can find out which file descriptor(s) has
  24. >the I/O ready (of probably 2 or more in cases where the benefit of the
  25. >asyncronous I/O is helpful).
  26. >
  27. >The mechanism I use in BSD is the select() function.
  28.  
  29. The description of [EAGAIN] in POSIX.1 is:
  30.  
  31.     [EAGAIN] Resource temporarily unavailable
  32.              This is a temporaty condition, and later calls to
  33.              the same routine may complete normally.
  34.  
  35. The portable way to find out whether the resource has become
  36. available (modem connection completed, data ready, memory available,
  37. etc.) is to wait a while, then try again.
  38. --
  39.  
  40.     Chuck Karish          karish@mindcraft.com
  41.     (415) 323-9000 x117   karish@forel.stanford.edu
  42.  
  43.  
  44. Volume-Number: Volume 29, Number 15
  45.