1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<title>VFGetFileSizeByFd</title> 9</head> 10 11<body> 12 13<h1>VFGetFileSizeByFd</h1> 14 15<h2>Syntax</h2> 16<dl><dd><pre><code> 17#include <revolution/vf.h> 18 19s32 VFGetFileSizeByFd( VFFile* file ); 20</code></pre></dd></dl> 21 22<h2>Arguments</h2> 23<p> 24<TABLE border="1" > 25 <tr> 26<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>file</EM></STRONG></CODE></TD> 27<TD width="520">The file descriptor.</TD> 28 </tr> 29</TABLE> 30</p> 31 32<h2>Return Values</h2> 33<PRE> 34Success: File size (0 or higher) A size of 2 GB or more is returned as 2 GB (2,147,483,647 bytes ) 35Failure: -1 (at this time, VF errors can be verified with <code><a href="./VFGetLastError.html">VFGetLastError</a></code>) 36</PRE> 37 38 39<H2>Description</H2> 40<p> 41Gets the file size in bytes from the file descriptor. To get an accurate file size for 2 GB or higher, use the <code><a href="./VFGetFileSizeU32ByFd.html">VFGetFileSizeU32ByFd</a></code> function. 42</p> 43 44<h2>See Also</h2> 45<p> 46<code><a href="./VFGetFileSizeU32ByFd.html">VFGetFileSizeU32ByFd</a></code>, <code><a href="./VFGetFileSize.html">VFGetFileSize</a></code>, <code><a href="./VFGetFileSizeU32.html">VFGetFileSizeU32</a></code> 47</p> 48 49<H2>Revision History</H2> 50<p> 512008/12/16 Added a description about the limits on the return values<br>2006/06/09 Initial version<br> 52</p> 53 54 55<hr><p>CONFIDENTIAL</p></body> 56</html> 57