summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-11-23 21:45:23 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-11-23 21:45:23 (GMT)
commit58048308c5ce37479fbeff46a34305e870fd5ddc (patch)
tree4eeb0eb6459cc5892610f88bcca942923cee794f /src/H5private.h
parent7b402d827d766fb16b16ff8660dc044564a1cfb5 (diff)
downloadhdf5-58048308c5ce37479fbeff46a34305e870fd5ddc.zip
hdf5-58048308c5ce37479fbeff46a34305e870fd5ddc.tar.gz
hdf5-58048308c5ce37479fbeff46a34305e870fd5ddc.tar.bz2
[svn-r17925] Description:
Bring r17924 from trunk to 1.8 branch: Add detection for POSIX lstat() routine to configure script (mostly for non-UNIX/Linux machines) and add macro wrapper for it. Alphabetatize the system/library calls we test for, to make them easier to read. Removed the sigaction() detection & macro wrappers, since it's not used by the distribution currently. Tested on: FreeBSD/32 6.3 (duty) in debug mode (h5committested on trunk)
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 227f7c2..e377d51 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -724,11 +724,14 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...);
* For Unix, if off_t is not 64bit big, try use the pseudo-standard
* xxx64 versions if available.
*/
-#if !defined(HDfstat) || !defined(HDstat)
+#if !defined(HDfstat) || !defined(HDstat) || !defined(HDlstat)
#if H5_SIZEOF_OFF_T!=8 && H5_SIZEOF_OFF64_T==8 && defined(H5_HAVE_STAT64)
#ifndef HDfstat
#define HDfstat(F,B) fstat64(F,B)
#endif /* HDfstat */
+ #ifndef HDlstat
+ #define HDlstat(S,B) lstat64(S,B)
+ #endif /* HDlstat */
#ifndef HDstat
#define HDstat(S,B) stat64(S,B)
#endif /* HDstat */
@@ -739,6 +742,9 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...);
#ifndef HDfstat
#define HDfstat(F,B) fstat(F,B)
#endif /* HDfstat */
+ #ifndef HDlstat
+ #define HDlstat(S,B) lstat(S,B)
+ #endif /* HDlstat */
#ifndef HDstat
#define HDstat(S,B) stat(S,B)
#endif /* HDstat */
@@ -1074,9 +1080,6 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...);
#ifndef HDsetvbuf
#define HDsetvbuf(F,S,M,Z) setvbuf(F,S,M,Z)
#endif /* HDsetvbuf */
-#ifndef HDsigaction
- #define HDsigaction(N,A) sigaction(N,A)
-#endif /* HDsigaction */
#ifndef HDsigaddset
#define HDsigaddset(S,N) sigaddset(S,N)
#endif /* HDsigaddset */