pr_getopenfileinfo64.rst (1218B)
1 PR_GetOpenFileInfo64 2 ==================== 3 4 Gets an open file's information. File size is expressed as a 64-bit 5 integer. 6 7 8 Syntax 9 ------ 10 11 .. code:: 12 13 #include <prio.h> 14 15 PRStatus PR_GetOpenFileInfo64( 16 PRFileDesc *fd, 17 PRFileInfo *info); 18 19 20 Parameters 21 ~~~~~~~~~~ 22 23 The function has the following parameters: 24 25 ``fd`` 26 A pointer to a :ref:`PRFileDesc` object for an open file. 27 ``info`` 28 A pointer to a :ref:`PRFileInfo64` object. On output, information about 29 the given file is written into the file information object. 30 31 32 Returns 33 ~~~~~~~ 34 35 The function returns one of the following values: 36 37 - If file information is successfully obtained, ``PR_SUCCESS``. 38 - If file information is not successfully obtained, ``PR_FAILURE``. 39 40 41 Description 42 ----------- 43 44 :ref:`PR_GetOpenFileInfo64` is the 64-bit version of 45 :ref:`PR_GetOpenFileInfo`. It obtains the file type (normal file, 46 directory, or other), file size (as a 64-bit integer), and the creation 47 and modification times of the open file represented by the file 48 descriptor. 49 50 51 See Also 52 -------- 53 54 For the 32-bit version of this function, see :ref:`PR_GetOpenFileInfo`. To 55 get equivalent information on a file that's not already open, use 56 :ref:`PR_GetFileInfo64`.