aboutsummaryrefslogtreecommitdiff
path: root/libpipe/pipe.c
Commit message (Collapse)AuthorAgeFilesLines
* Add braces to silence gcc warnings.Roland McGrath1998-10-201-26/+31
|
* (pipe_send):Miles Bader1996-01-141-1/+1
| | | | For non-blocking writes, avoid writing more than the user requested.
* (_pipe_no_readers): REALLY wake up writers when the pipe breaks.Miles Bader1995-09-141-1/+1
|
* (_pipe_no_readers): Wake up write selects too when the pipe breaks.Miles Bader1995-09-011-1/+4
|
* `pipe_pair_select_read_write' --> `pipe_pair_select'.Miles Bader1995-08-311-4/+4
| | | | | `pipe_select_read' --> `pipe_select_readable'. `pipe_select_write' --> `pipe_select_writable'.
* (pipe_send): Make writes blockable.Miles Bader1995-08-311-22/+168
| | | | | | | | | | | (pipe_recv): Wakeup blocked writers. (pipe_kick): Function deleted. (pipe_create): Make connection-oriented pipes start out broken. (_pipe_first_reader): New function. (_pipe_first_writer): Don't check whether PIPE is connection- oriented before clearing PIPE_BROKEN, as otherwise it will never be set. (pipe_pair_select_read_write): New function. (pipe_multiple_lock): New variable.
* (pipe_send): Use condition_broadcast, not condition_signal.Miles Bader1995-08-291-2/+2
|
* (pipe_create): Don't initialize interrupt_seq_num field.Miles Bader1995-08-291-1/+0
|
* `aquire' -> `acquire'.Miles Bader1995-08-291-1/+1
|
* (pipe_create): Initialize READERS & WRITERS, not REFS.Miles Bader1995-08-151-15/+33
| | | | | | (_pipe_first_writer): New function. (_pipe_no_writers, _pipe_no_writers): New function. (pipe_break): Function deleted.
* (pipe_recv): Get rid of code to deal with getting the source address from theMiles Bader1995-08-011-16/+3
| | | | | control packet if there is no data packet, since pipe_write always writes a data packet.
* (pipe_recv): Assert that a control packet should only have a source addressMiles Bader1995-07-311-8/+20
| | | | | | | | if there is no corresponding data packet. (pipe_send): Change the test to determine whether we should write a control packet, so that we only do so if we need to. Also, don't record the source address in control packets, as it's recorded in the following data packet anyway, and this prevents it from being dealloc'd twice.
* Initial revisionMiles Bader1995-07-261-0/+246