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>VFGetOffsetByFd</title> 9</head> 10 11<body> 12 13<h1>VFGetOffsetByFd</h1> 14 15<h2>Syntax</h2> 16<dl><dd><pre><code> 17#include <revolution/vf.h> 18 19s32 VFGetOffsetByFd( 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: Seek offset (0 or higher) An offset of 2 GB or more is returned as 2 GB (2,147,483,647 bytes ) 35Failure: -1 (currently, VF errors can be verified with the <code><a href="./VFGetLastError.html">VFGetLastError</a></code> function.) 36</PRE> 37 38 39<H2>Description</H2> 40<p> 41Gets the seek offset in bytes. To get an accurate seek offset of 2 GB or greater, use <code><a href="./VFGetOffsetU32ByFd.html">VFGetOffsetU32ByFd</a></code>.<br> 42</p> 43 44<h2>See Also</h2> 45<p> 46<code><a href="./VFGetOffsetU32ByFd.html">VFGetOffsetU32ByFd</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