]> git.puffer.fish Git - mirror/frr.git/commit
2005-02-14 Paul Jakma <paul.jakma@sun.com>
authorpaul <paul>
Mon, 14 Feb 2005 23:47:47 +0000 (23:47 +0000)
committerpaul <paul>
Mon, 14 Feb 2005 23:47:47 +0000 (23:47 +0000)
commit050c013ac35337d86b03f140fb17d2e8e33a8baa
tree7241e3972e2116f67b762a37305c31ee7d8d9671
parentf2e6c429375adf0d3c5deaa409734d5d41ac15ce
2005-02-14 Paul Jakma <paul.jakma@sun.com>

* stream.h: Unsigned long updated to size_t
* stream.c: ditto
* stream.h: Add stream_copy, stream_dup, stream_recvmsg.
  Add comment describing struct stream abstraction, and various
  other comments.
  Deprecate several unsafe/ambigious macros.
  Add STREAM_WRITEABLE and STREAM_READABLE.
  Add (stream_getl_from) for symmetry.
  Update stream_forward_{endp,getp} to use size_t offset.
  Make stream data a 0 length array, rather than a seperate malloc.
* stream.c: Add consistency checks. Update to follow stream.h
  changes.
  (stream_new) Alloc stream+data in one go.
  (stream_copy) new function, copy a stream.
  (stream_dup) new function, dup a stream.
  (stream_recvmsg) new function, recvmsg data into a stream.
  (stream_empty) no need to check getp == 0.
lib/ChangeLog
lib/stream.c
lib/stream.h