diff options
Diffstat (limited to 'libc/bionic/lseek64.c')
-rw-r--r-- | libc/bionic/lseek64.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libc/bionic/lseek64.c b/libc/bionic/lseek64.c index db0c413..c24ae64 100644 --- a/libc/bionic/lseek64.c +++ b/libc/bionic/lseek64.c @@ -25,16 +25,16 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -#include <unistd.h> -extern int __llseek(int fd, unsigned long offset_hi, unsigned long offset_lo, loff_t* result, int whence); +#include <unistd.h> -off64_t lseek64(int fd, off64_t off, int whence) -{ - loff_t result; +extern int __llseek(int fd, unsigned long offset_hi, unsigned long offset_lo, off64_t* result, int whence); - if ( __llseek(fd, (unsigned long)(off >> 32),(unsigned long)(off), &result, whence ) < 0 ) - return -1; +off64_t lseek64(int fd, off64_t off, int whence) { + off64_t result; + if (__llseek(fd, (unsigned long)(off >> 32),(unsigned long)(off), &result, whence) < 0) { + return -1; + } - return result; + return result; } |