Index: uspace/lib/libc/generic/io/io.c
===================================================================
--- uspace/lib/libc/generic/io/io.c	(revision c77a64ff173c6b97e1f85ac22e9fe1760cb720cc)
+++ uspace/lib/libc/generic/io/io.c	(revision ed90317444652a29e89501a128d66020aaea52b5)
@@ -541,9 +541,9 @@
 }
 
-int fseek(FILE *stream, long offset, int origin)
-{
-	off_t rc = lseek(stream->fd, offset, origin);
-	if (rc == (off_t) (-1)) {
-		/* errno has been set by lseek. */
+int fseek(FILE *stream, off64_t offset, int whence)
+{
+	off64_t rc = lseek(stream->fd, offset, whence);
+	if (rc == (off64_t) (-1)) {
+		/* errno has been set by lseek64. */
 		return -1;
 	}
@@ -554,13 +554,7 @@
 }
 
-int ftell(FILE *stream)
-{
-	off_t rc = lseek(stream->fd, 0, SEEK_CUR);
-	if (rc == (off_t) (-1)) {
-		/* errno has been set by lseek. */
-		return -1;
-	}
-
-	return rc;
+off64_t ftell(FILE *stream)
+{
+	return lseek(stream->fd, 0, SEEK_CUR);
 }
 
