summaryrefslogtreecommitdiffstats
path: root/perform
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 /perform
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 'perform')
-rw-r--r--perform/sio_standalone.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/perform/sio_standalone.h b/perform/sio_standalone.h
index 9faaac1..b31d4846 100644
--- a/perform/sio_standalone.h
+++ b/perform/sio_standalone.h
@@ -177,22 +177,26 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...);
#ifdef _WIN32
#ifdef __MWERKS__
#define HDfstat(F,B) fstat(F,B)
+ #define HDlstat(S,B) lstat(S,B)
#define HDstat(S,B) stat(S,B)
typedef struct stat h5_stat_t;
typedef off_t h5_stat_size_t;
#else /*MSVC*/
#define HDfstat(F,B) _fstati64(F,B)
+ #define HDlstat(S,B) _lstati64(S,B)
#define HDstat(S,B) _stati64(S,B)
typedef struct _stati64 h5_stat_t;
typedef __int64 h5_stat_size_t;
#endif
#elif H5_SIZEOF_OFF_T!=8 && H5_SIZEOF_OFF64_T==8 && defined(H5_HAVE_STAT64)
#define HDfstat(F,B) fstat64(F,B)
+ #define HDlstat(S,B) lstat64(S,B)
#define HDstat(S,B) stat64(S,B)
typedef struct stat64 h5_stat_t;
typedef off64_t h5_stat_size_t;
#else
#define HDfstat(F,B) fstat(F,B)
+ #define HDlstat(S,B) lstat(S,B)
#define HDstat(S,B) stat(S,B)
typedef struct stat h5_stat_t;
typedef off_t h5_stat_size_t;
@@ -349,7 +353,6 @@ int HDremove_all(const char * fname);
#else
#define HDsetvbuf(F,S,M,Z) setvbuf(F,S,M,(Z>1?Z:2))
#endif
-#define HDsigaction(N,A) sigaction(N,A)
#define HDsigaddset(S,N) sigaddset(S,N)
#define HDsigdelset(S,N) sigdelset(S,N)
#define HDsigemptyset(S) sigemptyset(S)