public static String getLogicalHostName(String pathname) {
    { int separatorpos = Native.string_position(pathname, Stella.LOGICAL_HOST_SEPARATOR, 0);

      if ((separatorpos != Stella.NULL_INTEGER) &&
          (separatorpos >= 1)) {
        return (Native.string_subsequence(pathname, 0, separatorpos));
      }
      else {
        return (null);
      }
    }
  }