diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-10-28 19:25:12 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-10-28 19:25:12 +0000 |
commit | b4e3b2bd68e78769ad75361e880976b40c1d6a7b (patch) | |
tree | 93cb7e067d3fcdd62b683e27d6fae978cf4dda36 /doc/posix1003.1 | |
parent | Merged Vista SCORE603e, Radstone PPCn_60x, and DY-4 DMV177 BSPs along (diff) | |
download | rtems-b4e3b2bd68e78769ad75361e880976b40c1d6a7b.tar.bz2 |
Patch from Ian Lance Taylor <ian@airs.com>.
I just happened across the sync_io support in
c/src/exec/score/cpu/unix/cpu.c
(is this documented anywhere?). That looked more useful than the
signal driven I/O I was using before, so I tried it. I ran across a
few bugs in the way it uses select.
Select changes its fd_set arguments, so you can't use global variables
for them. You have to copy them into local variables first.
If select returns -1 with errno set to EINTR, then it has not changed
any of the fd_sets. You can't start looking at them.
When clearing a descriptor, the code has the usual select off by one
error when setting sync_io_nfds.
I don't see how this code could ever have worked correctly.
I have appended a patch for the problems I found.
Diffstat (limited to 'doc/posix1003.1')
0 files changed, 0 insertions, 0 deletions