@@ -71,6 +71,36 @@ function close(file::FileHandle)
7171 return nothing
7272end
7373
74+ # Info
75+ """
76+ MPI.File.get_info(file::FileHandle)
77+
78+ Returns the hints for a file that are actually being used by MPI.
79+
80+ # External links
81+ $(_doc_external (" MPI_File_get_info" ))
82+ """
83+ function get_info (file:: FileHandle )
84+ file_info = Info (init= false )
85+ @mpichk ccall ((:MPI_File_get_info , libmpi), Cint,
86+ (MPI_File, Ptr{MPI_Info}), file, file_info)
87+ return file_info
88+ end
89+
90+ """
91+ MPI.File.set_info!(file::FileHandle, info::Info)
92+
93+ Collectively sets new values for the hints associated with a MPI.File.FileHandle.
94+
95+ # External links
96+ $(_doc_external (" MPI_File_set_info" ))
97+ """
98+ function set_info! (file:: FileHandle , info:: Info )
99+ @mpichk ccall ((:MPI_File_set_info , libmpi), Cint,
100+ (MPI_File, MPI_Info), file, info)
101+ return file
102+ end
103+
74104# View
75105"""
76106 MPI.File.set_view!(file::FileHandle, disp::Integer, etype::Datatype, filetype::Datatype, datarep::AbstractString; kwargs...)
@@ -322,7 +352,7 @@ $(_doc_external("MPI_File_write_ordered"))
322352function write_ordered (file:: FileHandle , buf:: Buffer )
323353 stat_ref = Ref {Status} (MPI. STATUS_EMPTY)
324354 # int MPI_File_write_ordered(MPI_File fh, const void *buf, int count,
325- # MPI_Datatype datatype, MPI_Status *status)
355+ # MPI_Datatype datatype, MPI_Status *status)
326356 @mpichk ccall ((:MPI_File_write_ordered , libmpi), Cint,
327357 (MPI_File, MPIPtr, Cint, MPI_Datatype, Ptr{Status}),
328358 file, buf. data, buf. count, buf. datatype, stat_ref)
@@ -335,7 +365,7 @@ write_ordered(file::FileHandle, buf) = write_ordered(file, Buffer_send(buf))
335365 SEEK_SET = MPI. MPI_SEEK_SET
336366 SEEK_CUR = MPI. MPI_SEEK_CUR
337367 SEEK_END = MPI. MPI_SEEK_END
338- end
368+ end
339369
340370"""
341371 MPI.File.seek_shared(file::FileHandle, offset::Integer, whence::Seek=SEEK_SET)
0 commit comments