anchor.diff:                             " | grep -v MOUNT | wc -l"),
       try list_to_integer(string:trim(NumString))
       catch
  -        _:Reason ->
  -            ?SKIP({failed_fstat, Reason})
  +        C:E ->
  +            ?EPRINT("Failed fstat: "
  +                    "~n      Error Class: ~p"
  +                    "~n      Error:       ~p", [C, E]),
  +            ?SKIP({failed_fstat, C, E})
       end.
   
   
  
positive.code:                                 access = Access}}
                    when (Access =:= read) orelse
                         (Access =:= read_write) ->
                      [{num_open_fd, fun num_open_fd_using_list_dir/0} |
                       Config];
                  _ ->
                      {skip, "Not proc fd"}
              end;
          {unix, solaris} ->
              ?IPRINT("init_per_testcase -> solaris: check pfiles"),
              case os:cmd("type pfiles") of
                  [] ->
                      {skip, "pfiles not found"};
                  _ ->
                      [{num_open_fd, fun num_open_fd_using_pfiles/0} |
                       Config]
              end;
          {unix, BSD} when (BSD =:= freebsd) orelse (BSD =:= openbsd) ->
              ?IPRINT("init_per_testcase -> ~w: check fstat", [BSD]),
              case os:cmd("which fstat") of
                  [] ->
                      {skip, "fstat not found"};
                  _ ->
                      [{num_open_fd, fun num_open_fd_using_fstat/0} |
                       Config]
              end;
  
negative.code:     %% There are other ways to test this:
      %% lsof (linux and maybe FreeBSD):    lsof -p <pid>
      %%    os:cmd("lsof -p " ++ os:getpid() ++ " | grep -v COMMAND | wc -l").
      %% fstat (FreeBSD, OpenBSD and maybe NetBSD): fstat -p <pid>
      %%    os:cmd("fstat -p " ++ os:getpid() ++ " | grep -v USER | wc -l").
      %% But this (list:dir) is good enough...
      case os:type() of
  