1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
2 /*
3  *
4  *   Copyright (C) 1997 University of Chicago.
5  *   See COPYRIGHT notice in top-level directory.
6  */
7 
8 #include "mpioimpl.h"
9 
10 #ifdef HAVE_WEAK_SYMBOLS
11 
12 #if defined(HAVE_PRAGMA_WEAK)
13 #pragma weak MPI_File_read_at_all_end = PMPI_File_read_at_all_end
14 #elif defined(HAVE_PRAGMA_HP_SEC_DEF)
15 #pragma _HP_SECONDARY_DEF PMPI_File_read_at_all_end MPI_File_read_at_all_end
16 #elif defined(HAVE_PRAGMA_CRI_DUP)
17 #pragma _CRI duplicate MPI_File_read_at_all_end as PMPI_File_read_at_all_end
18 /* end of weak pragmas */
19 #elif defined(HAVE_WEAK_ATTRIBUTE)
20 int MPI_File_read_at_all_end(MPI_File fh, void *buf, MPI_Status *status) __attribute__((weak,alias("PMPI_File_read_at_all_end")));
21 #endif
22 
23 /* Include mapping from MPI->PMPI */
24 #define MPIO_BUILD_PROFILING
25 #include "mpioprof.h"
26 #endif
27 
28 /*@
29     MPI_File_read_at_all_end - Complete a split collective read using
30     explicit offset
31 
32 Input Parameters:
33 . fh - file handle (handle)
34 
35 Output Parameters:
36 . buf - initial address of buffer (choice)
37 . status - status object (Status)
38 
39 .N fortran
40 @*/
MPI_File_read_at_all_end(MPI_File fh,void * buf,MPI_Status * status)41 int MPI_File_read_at_all_end(MPI_File fh, void *buf, MPI_Status *status)
42 {
43     int error_code;
44     static char myname[] = "MPI_FILE_READ_AT_ALL_END";
45 
46 
47     error_code = MPIOI_File_read_all_end(fh, buf, myname, status);
48 
49     return error_code;
50 }
51