s3-lib Remove unused sys_fseek()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 9 Feb 2012 01:04:23 +0000 (12:04 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Feb 2012 11:19:29 +0000 (12:19 +0100)
source3/include/proto.h
source3/lib/system.c

index 7ca2f8731c6d9c76953852751e4f4fed3e8148eb..2afe726af2362ec2640ab8af9bc0e93975614991 100644 (file)
@@ -343,7 +343,6 @@ int sys_ftruncate(int fd, SMB_OFF_T offset);
 int sys_posix_fallocate(int fd, SMB_OFF_T offset, SMB_OFF_T len);
 int sys_fallocate(int fd, enum vfs_fallocate_mode mode, SMB_OFF_T offset, SMB_OFF_T len);
 SMB_OFF_T sys_lseek(int fd, SMB_OFF_T offset, int whence);
-int sys_fseek(FILE *fp, SMB_OFF_T offset, int whence);
 SMB_OFF_T sys_ftell(FILE *fp);
 int sys_creat(const char *path, mode_t mode);
 int sys_open(const char *path, int oflag, mode_t mode);
index a308014f464766cdc5b6a7e1c5e94be2215ed8de..2342eda732a8ea6d7415ab819b447edfff03e708 100644 (file)
@@ -727,23 +727,6 @@ SMB_OFF_T sys_lseek(int fd, SMB_OFF_T offset, int whence)
 #endif
 }
 
-/*******************************************************************
- An fseek() wrapper that will deal with 64 bit filesizes.
-********************************************************************/
-
-int sys_fseek(FILE *fp, SMB_OFF_T offset, int whence)
-{
-#if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(LARGE_SMB_OFF_T) && defined(HAVE_FSEEK64)
-       return fseek64(fp, offset, whence);
-#elif defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(LARGE_SMB_OFF_T) && defined(HAVE_FSEEKO64)
-       return fseeko64(fp, offset, whence);
-#elif defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(LARGE_SMB_OFF_T) && defined(HAVE_FSEEKO)
-       return fseeko(fp, offset, whence);
-#else
-       return fseek(fp, offset, whence);
-#endif
-}
-
 /*******************************************************************
  An ftell() wrapper that will deal with 64 bit filesizes.
 ********************************************************************/