diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2021-06-02 02:01:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 02:01:40 (GMT) |
commit | 5e4625c04f970464b0d46475214f707a895d03b1 (patch) | |
tree | 7299a0efa3bfcaa588bdb99f75a7bfb815ed64c6 /src | |
parent | 50d0888f491821435f6884c0c4c516f69ff67927 (diff) | |
download | hdf5-5e4625c04f970464b0d46475214f707a895d03b1.zip hdf5-5e4625c04f970464b0d46475214f707a895d03b1.tar.gz hdf5-5e4625c04f970464b0d46475214f707a895d03b1.tar.bz2 |
Removes some DEC Alpha cruft from H5detect and H5private.h (#708)
Diffstat (limited to 'src')
-rw-r--r-- | src/H5detect.c | 15 | ||||
-rw-r--r-- | src/H5private.h | 16 |
2 files changed, 1 insertions, 30 deletions
diff --git a/src/H5detect.c b/src/H5detect.c index 84b34e6..d148301 100644 --- a/src/H5detect.c +++ b/src/H5detect.c @@ -1655,21 +1655,6 @@ main(int argc, char *argv[]) if (!rawoutstream) rawoutstream = stdout; -#if defined(H5_HAVE_SETSYSINFO) && defined(SSI_NVPAIRS) -#if defined(UAC_NOPRINT) && defined(UAC_SIGBUS) - /* - * Make sure unaligned access generates SIGBUS and doesn't print warning - * messages so that we can detect alignment constraints on the DEC Alpha. - */ - int nvpairs[2]; - nvpairs[0] = SSIN_UACPROC; - nvpairs[1] = UAC_NOPRINT | UAC_SIGBUS; - if (setsysinfo(SSI_NVPAIRS, nvpairs, 1, 0, 0) < 0) { - fprintf(stderr, "H5detect: unable to turn off UAC handling: %s\n", HDstrerror(errno)); - } -#endif -#endif - #if defined(H5SETJMP) && defined(H5_HAVE_SIGNAL) /* verify the SIGBUS and SIGSEGV handlers work properly */ if (verify_signal_handlers(SIGBUS, sigbus_handler) != 0) { diff --git a/src/H5private.h b/src/H5private.h index d197465..0ff4c56 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -127,21 +127,6 @@ #endif /* - * System information. These are needed on the DEC Alpha to turn off fixing - * of unaligned accesses by the operating system during detection of - * alignment constraints in H5detect.c:main(). - */ -#ifdef H5_HAVE_SYS_SYSINFO_H -#include <sys/sysinfo.h> -#endif -#ifdef H5_HAVE_SYS_PROC_H -#include <sys/proc.h> -#endif -#ifdef H5_HAVE_IO_H -#include <io.h> -#endif - -/* * Dynamic library handling. These are needed for dynamically loading I/O * filters and VFDs. */ @@ -175,6 +160,7 @@ #include <windows.h> #include <direct.h> /* For _getcwd() */ +#include <io.h> /* POSIX I/O */ #endif /*H5_HAVE_WIN32_API*/ |