diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-08-30 15:35:30 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-08-30 15:35:30 (GMT) |
commit | cfc376080860337f8f7a6716ed50e9d123eb7176 (patch) | |
tree | 2271108962dfe22f1d39980f900e6d48d27ee07d /testpar | |
parent | 4f3950a8826a102d56cde7b57729552742af1b80 (diff) | |
download | hdf5-cfc376080860337f8f7a6716ed50e9d123eb7176.zip hdf5-cfc376080860337f8f7a6716ed50e9d123eb7176.tar.gz hdf5-cfc376080860337f8f7a6716ed50e9d123eb7176.tar.bz2 |
[svn-r21334] HDFFV-7687: add HD macro prefrix to functions and use h5_stat_t where necessary
reviewed
Diffstat (limited to 'testpar')
-rw-r--r-- | testpar/t_chunk_alloc.c | 4 | ||||
-rw-r--r-- | testpar/t_mpi.c | 4 | ||||
-rw-r--r-- | testpar/testphdf5.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/testpar/t_chunk_alloc.c b/testpar/t_chunk_alloc.c index bb13d4e..e8a6ca4 100644 --- a/testpar/t_chunk_alloc.c +++ b/testpar/t_chunk_alloc.c @@ -37,7 +37,7 @@ get_filesize(const char *filename) MPI_File fd; MPI_Offset filesize; #ifndef H5_HAVE_MPI_GET_SIZE - struct stat stat_buf; + h5_stat_t stat_buf; #endif #ifdef H5_HAVE_MPI_GET_SIZE @@ -54,7 +54,7 @@ get_filesize(const char *filename) /* Some systems (only SGI Altix Propack 4 so far) doesn't return correct * file size for MPI_File_get_size. Use stat instead. */ - if((mpierr=stat(filename, &stat_buf))<0) + if((mpierr=HDstat(filename, &stat_buf))<0) VRFY((mpierr == MPI_SUCCESS), ""); /* Hopefully this casting is safe */ diff --git a/testpar/t_mpi.c b/testpar/t_mpi.c index cf2cb35..6cba5af 100644 --- a/testpar/t_mpi.c +++ b/testpar/t_mpi.c @@ -206,7 +206,7 @@ test_mpio_gb_file(char *filename) MPI_Offset mpi_off; MPI_Offset mpi_off_old; MPI_Status mpi_stat; - struct stat stat_buf; + h5_stat_t stat_buf; int is_signed, sizeof_mpi_offset; nerrs = 0; @@ -395,7 +395,7 @@ test_mpio_gb_file(char *filename) mrc = MPI_File_get_size(fh, &size); VRFY((mrc==MPI_SUCCESS), ""); - mrc=stat(filename, &stat_buf); + mrc=HDstat(filename, &stat_buf); VRFY((mrc==0), ""); /* Hopefully this casting is safe */ diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c index 8b24f87..07568d4 100644 --- a/testpar/testphdf5.c +++ b/testpar/testphdf5.c @@ -81,7 +81,7 @@ void pause_proc(void) MPI_Get_processor_name(mpi_name, &mpi_namelen); if (MAINPROCESS) - while ((stat(greenlight, &statbuf) == -1) && loops < maxloop){ + while ((HDstat(greenlight, &statbuf) == -1) && loops < maxloop){ if (!loops++){ printf("Proc %d (%*s, %d): to debug, attach %d\n", mpi_rank, mpi_namelen, mpi_name, pid, pid); |