anchor.diff:  enabled() ->
       true.
   
  -send(Out, Filename) ->
  -    send(Out, Filename, 0, 0).
  -send(Out, Filename, Offset) ->
  -    send(Out, Filename, Offset, 0).
   send(Out, Filename, Offset, Count) ->
       Count1 = case Count of
  -                 0 ->
  +                 all ->
                        case file:read_file_info(Filename) of
                            {ok, #file_info{size = Size}} ->
                                Size - Offset;
                            Error ->
                                Error
                        end;
  +                 Count when is_integer(Count) ->
  +                     Count;
                    _ ->
  -                     Count
  +                     {error, badarg}
                end,
       case Count1 of
           {error, _}=Error2 ->
  
positive.code: code_change(_OldVsn, Data, _Extra) ->
      {ok, Data}.
  
  do_send(Out, SocketFd, Filename, Offset, Count) ->
      Call = list_to_binary([<<Offset:64, Count:64, SocketFd:32>>,
                             Filename, <<0:8>>]),
  
negative.code: 
  -include_lib("kernel/include/file.hrl").
  
  -endif.
  
  send(Out, Filename) ->
      send(Out, Filename, 0, all).
  send(Out, Filename, Offset) ->
      send(Out, Filename, Offset, all).
  
  -ifdef(HAVE_SENDFILE).
  
  start_link() ->
      gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
  
  