source: proiecte/hpl/openmpi_compiled/share/man/man3/MPI_File_get_size.3 @ 97

Last change on this file since 97 was 97, checked in by (none), 14 years ago

Adding compiled files

File size: 2.2 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_File_get_size 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_File_get_size\fP \- Returns the current size of the file.
6
7.SH SYNTAX
8.ft R
9.nf
10C Syntax
11    #include <mpi.h>
12    int MPI_File_get_size(MPI_File \fIfh\fP, MPI_Offset \fI*size\fP)
13
14Fortran Syntax (see FORTRAN 77 NOTES)
15    INCLUDE 'mpif.h'
16    MPI_FILE_GET_SIZE(\fIFH\fP,\fI SIZE\fP, \fI IERROR\fP)
17        INTEGER \fIFH, ERROR\fP
18        INTEGER(KIND=MPI_OFFSET_KIND) \fISIZE\fP
19
20.SH C++ Syntax
21.nf
22#include <mpi.h>
23MPI::Offset MPI::File::Get_size() const
24
25.SH INPUT PARAMETERS
26.ft R
27.TP 1i
28fh   
29File handle (handle).
30.TP 1i
31size
32Size of the file in bytes (integer).
33
34.SH OUTPUT PARAMETER
35.ft R
36.TP 1i
37IERROR
38Fortran only: Error status (integer).
39
40.SH DESCRIPTION
41.ft R
42MPI_File_get_size returns, in
43.I size
44, the current size in bytes of the file associated with the file handle
45\fIfh\fP. Note that the file size returned by Solaris may not represent the number of bytes physically allocated for the file in those cases where all bytes in this file have not been written at least once.
46
47.SH FORTRAN 77 NOTES
48.ft R
49The MPI standard prescribes portable Fortran syntax for
50the \fISIZE\fP argument only for Fortran 90. Sun FORTRAN 77
51users may use the non-portable syntax
52.sp
53.nf
54     INTEGER*MPI_OFFSET_KIND \fISIZE\fP
55.fi
56.sp
57where MPI_ADDRESS_KIND is a constant defined in mpif.h
58and gives the length of the declared integer in bytes.
59
60.SH ERRORS
61Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ functions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object.
62.sp
63Before the error value is returned, the current MPI error handler is
64called. For MPI I/O function errors, the default error handler is set to MPI_ERRORS_RETURN. The error handler may be changed with MPI_File_set_errhandler; the predefined error handler MPI_ERRORS_ARE_FATAL may be used to make I/O errors fatal. Note that MPI does not guarantee that an MPI program can continue past an error. 
65
66.SH SEE ALSO
67.br
68MPI_File_preallocate
69.br
70
Note: See TracBrowser for help on using the repository browser.