Skip to content

Commit b0fa1fd

Browse files
committed
move the internal file_open/close functions to common/ompio
1 parent ccf76b7 commit b0fa1fd

14 files changed

+513
-590
lines changed

ompi/mca/common/ompio/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ headers = \
2424

2525
sources = \
2626
common_ompio_print_queue.c \
27+
common_ompio_file_open.c \
2728
common_ompio_file_read.c \
2829
common_ompio_file_write.c
2930

ompi/mca/common/ompio/common_ompio.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,15 @@ OMPI_DECLSPEC int mca_common_ompio_file_iread_at_all (mca_io_ompio_file_t *fp, O
7474
void *buf, int count, struct ompi_datatype_t *datatype,
7575
ompi_request_t **request);
7676

77+
OMPI_DECLSPEC int mca_common_ompio_file_open (ompi_communicator_t *comm, const char *filename,
78+
int amode, ompi_info_t *info,
79+
mca_io_ompio_file_t *ompio_fh, bool use_sharedfp);
80+
81+
OMPI_DECLSPEC int mca_common_ompio_file_close (mca_io_ompio_file_t *ompio_fh);
82+
OMPI_DECLSPEC int mca_common_ompio_file_get_size (mca_io_ompio_file_t *ompio_fh, OMPI_MPI_OFFSET_TYPE *size);
83+
OMPI_DECLSPEC int mca_common_ompio_file_get_position (mca_io_ompio_file_t *fh,OMPI_MPI_OFFSET_TYPE *offset);
84+
OMPI_DECLSPEC int mca_common_ompio_set_explicit_offset (mca_io_ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE offset);
85+
86+
7787

7888
#endif /* MCA_COMMON_OMPIO_H */

0 commit comments

Comments
 (0)