summaryrefslogtreecommitdiffstats
path: root/config/cmake/HDFTests.c
diff options
context:
space:
mode:
Diffstat (limited to 'config/cmake/HDFTests.c')
-rw-r--r--config/cmake/HDFTests.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/config/cmake/HDFTests.c b/config/cmake/HDFTests.c
index 095f113..3d16721 100644
--- a/config/cmake/HDFTests.c
+++ b/config/cmake/HDFTests.c
@@ -89,17 +89,6 @@ int main ()
#endif /* DEV_T_IS_SCALAR */
-#ifdef HAVE_OFF64_T
-
-#include <sys/types.h>
-
-int main(void)
-{
- off64_t n = 0;
- return (int)n;
-}
-#endif
-
#ifdef TEST_DIRECT_VFD_WORKS
#include <sys/types.h>
@@ -138,43 +127,6 @@ main(void)
}
#endif
-#ifdef TEST_LFS_WORKS
-
-/* Return 0 when LFS is available and 1 otherwise. */
-
-#define _LARGEFILE_SOURCE
-#define _LARGEFILE64_SOURCE
-#define _LARGE_FILES
-#define _FILE_OFFSET_BITS 64
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <assert.h>
-#include <stdio.h>
-
-#define OFF_T_64 (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
-
-int main(int argc, char **argv)
-{
-
- /* Check that off_t can hold 2^63 - 1 and perform basic operations... */
- if (OFF_T_64 % 2147483647 != 1)
- return 1;
-
- /* stat breaks on SCO OpenServer */
- struct stat buf;
- stat(argv[0], &buf);
- if (!S_ISREG(buf.st_mode))
- return 2;
-
- FILE *file = fopen(argv[0], "r");
- off_t offset = ftello(file);
- fseek(file, offset, SEEK_CUR);
- fclose(file);
- return 0;
-}
-#endif
-
#ifdef HAVE_IOEO
#include <windows.h>