HGOTO_ERROR(H5E_DATASPACE, H5E_BADTYPE, FAIL,"couldn't convert \"all\" selection to MPI type");
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the files COPYING and Copyright.html.  COPYING can be found at the root   *
 * of the source code distribution tree; Copyright.html can be found at the  *
 * root level of an installed copy of the electronic HDF5 document set and   *
 * is linked from the top-level documents page.  It can also be found at     *
 * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
 * access to either file, you may request a copy from help@hdfgroup.org.     *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
 * Programmer:  rky 980813
 *
 * Purpose: Functions to read/write directly between app buffer and file.
 *
 *      Beware of the ifdef'ed print statements.
 *      I didn't make them portable.
 */
#define H5S_PACKAGE     /*suppress error about including H5Spkg   */
#include "H5private.h"      /* Generic Functions            */
#include "H5Dprivate.h"     /* Datasets             */
#include "H5Eprivate.h"     /* Error handling           */
#include "H5Fprivate.h"     /* File access              */
#include "H5FDprivate.h"    /* File drivers             */
#include "H5Iprivate.h"     /* IDs                  */
#include "H5Oprivate.h"     /* Object headers           */
#include "H5Pprivate.h"         /* Property lists                       */
#include "H5Spkg.h"     /* Dataspaces               */
#ifdef H5_HAVE_PARALLEL
static herr_t
H5S_mpio_all_type( const H5S_t *space, size_t elmt_size,
             /* out: */
             MPI_Datatype *new_type,
             size_t *count,
             hsize_t *extra_offset,
             hbool_t *is_derived_type );
static herr_t
H5S_mpio_none_type( const H5S_t *space, size_t elmt_size,
             /* out: */
             MPI_Datatype *new_type,
             size_t *count,