code: function streamOptions(useroptions, overrides, defaults)
  {
  	var streamoptions, k;
  
  	streamoptions = {};
  	if (defaults) {
  		for (k in defaults)
  			streamoptions[k] = defaults[k];
  	}
  
  	if (useroptions) {
  		for (k in useroptions)
  			streamoptions[k] = useroptions[k];
  	}
  
  	for (k in overrides)
  		streamoptions[k] = overrides[k];
  
  	return (streamoptions);
  }
docs: /*
  Given a set of user-passed stream options in "useroptions" (which may be
  undefined) and a set of overrides (which must be a valid object), construct
  an options object containing the union, with "overrides" overriding
  "useroptions", without modifying either object.
  
  Note, this function originally came from joyent/dragnet. If this is modified,
  it should really be factored out into its own common module.