summaryrefslogtreecommitdiff
path: root/libpipe/pq.c
AgeCommit message (Collapse)Author
2002-04-24Update copyright year.Marcus Brinkmann
2002-04-222002-04-22 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* pq.c (packet_set_ports): Correctly replace old ports buffer with new one. Take size of mach_port_t rather than pointer to it. (packet_read_ports): Take size of mach_port_t rather than pointer to it. (pq_queue): Update PACKET->num_ports, PACKET->buf_start and PACKET->buf_end for reused packets as well. Submitted by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
1999-07-111999-07-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* pq.c (packet_realloc): Use mmap instead of vm_allocate. (packet_read_ports): Likewise. (packet_read): Likewise.
1999-07-111999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* pq.c: Add #include <sys/mman.h> for munmap decl.
1999-07-031999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* pq.c (free_packets): Use munmap instead of vm_deallocate.
1998-10-20Add braces to silence gcc warnings.Roland McGrath
1996-07-01(pq_queue): Initialize packet->buf_vm_alloced.Miles Bader
1996-01-23(packet_read): If there's lots of empty space at the beginning of aMiles Bader
vm_alloced buffer, deallocate it.
1996-01-22(packet_realloc): Reflect in the new values of BUF_START & BUF_END that we'veMiles Bader
removed any empty space at the beginning of BUF.
1996-01-14(packet_size_adjust): Function removed.Miles Bader
(packet_new_size): New function. (packet_read): Re-arrange to be slightly less confusing. Reverse start-past-buf-beginning test that may have leaked memory.
1996-01-12(pq_queue): Initialize the ports_alloced field.Miles Bader
(packet_read): When a page-aligned read consumes the whole buffer, but there's a non-page-multiple amount available, don't let buf_len go negative.
1995-09-07(packet_read): Don't leave PACKET in a fucked up state when it's vm_allocate'dMiles Bader
but doesn't a page-multiple amount of data and we're reading everything.
1995-07-26Initial revisionMiles Bader