diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2016-11-26 18:11:08 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2016-11-26 18:11:08 (GMT) |
commit | 2c3d02e6e5771c05e666d4ccf4a77915d0bf1e50 (patch) | |
tree | 8601a4262c1c82836046810039d9d7b2e218adf6 /src/H5private.h | |
parent | a8d1aff23568c0f64fa16cfbb37d7741bb922a60 (diff) | |
parent | fff898558e3c828070abe81b4147bd959ed37ccb (diff) | |
download | hdf5-2c3d02e6e5771c05e666d4ccf4a77915d0bf1e50.zip hdf5-2c3d02e6e5771c05e666d4ccf4a77915d0bf1e50.tar.gz hdf5-2c3d02e6e5771c05e666d4ccf4a77915d0bf1e50.tar.bz2 |
Merge branch 'develop' into eoc_valgrind_bugfix
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h index 4c40965..47f6d78 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -813,7 +813,8 @@ H5_DLL H5_ATTR_CONST int Nflock(int fd, int operation); /* NOTE: flock(2) is not present on all POSIX systems. * If it is not present, we try a flock() equivalent based on * fcntl(2), then fall back to a function that always fails if - * it is not present at all. + * it is not present at all (Windows uses a separate Wflock() + * function). */ #if defined(H5_HAVE_FLOCK) #define HDflock(F,L) flock(F,L) @@ -1114,6 +1115,9 @@ typedef off_t h5_stat_size_t; #ifndef HDmodf #define HDmodf(X,Y) modf(X,Y) #endif /* HDmodf */ +#ifndef HDnanosleep + #define HDnanosleep(N, O) nanosleep(N, O) +#endif /* HDnanosleep */ #ifndef HDopen #ifdef _O_BINARY #define HDopen(S,F,M) open(S,F|_O_BINARY,M) @@ -2597,6 +2601,8 @@ H5_DLL uint32_t H5_hash_string(const char *str); /* Time related routines */ H5_DLL time_t H5_make_time(struct tm *tm); +H5_DLL void H5_nanosleep(uint64_t nanosec); +H5_DLL double H5_get_time(void); /* Functions for building paths, etc. */ H5_DLL herr_t H5_build_extpath(const char *name, char **extpath /*out*/); |