summaryrefslogtreecommitdiffstats
path: root/test/external.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix several spelling/grammar issues (#3621)jhendersonHDF2023-10-031-1/+1
|
* Strip HD prefix from string/char C API calls (#3540)Dana Robinson2023-09-151-21/+21
| | | | | | | | | | | | | | | | | | | | | * Strip HD prefix from string/char C API calls * HD(f)(put|get)(s|c) * HDstr* * HDv*printf * HD(s)(print|scan)f * HDperror But NOT: * HDstrcase* * HDvasprintf * HDstrtok_r * HDstrndup As those are not C99 and have portability work-around implementations. They will be handled later. * Fix th5_system.c screwup
* Consistent initialization of hid_t in the tests (#3521)Scot Breitenfeld2023-09-081-113/+113
|
* Convert hbool_t --> bool in test (#3494)Dana Robinson2023-09-051-10/+10
|
* Remove HD from HDmem* calls (#3211)Dana Robinson2023-06-291-9/+9
|
* Remove programmer/date from comments (#3210)Dana Robinson2023-06-291-54/+0
| | | | * Removes Programmer: and Date: fields * Fixes a few Modifications: fields leftover from previous work
* Remove HD from C std lib file ops (#3206)Dana Robinson2023-06-291-2/+2
| | | | | | | | | * HDfclose * HDferror * HDfeof * HDfflush * HDfopen * HDfread * HDfwrite
* Remove HD from memory allocate/free calls (#3195)Dana Robinson2023-06-281-3/+3
| | | | | | * HDcalloc * HDfree * HDmalloc * HDrealloc
* Rename HD(f)printf() to (f)printf() (#3194)Dana Robinson2023-06-281-9/+9
|
* Many clang -Wextra-semi-stmt fixes (#2537)Sean McBride2023-06-161-23/+23
| | | | | * Adds semicolons to function-like macros * Adds a do..while(0) loop to some macros * Removes semicolons when inappropriate, especially H5E_TRY_BEGIN/END
* Update copyright headers (#2184)Larry Knox2022-11-011-1/+0
| | | | | * Updated source file copyright headers to remove "Copyright by the Board of Trustees of the University of Illinois", which is kept in the top-level COPYING file.
* Develop clang 13 format (#1933)Allen Byrne2022-07-261-1/+1
| | | | | * Update format source to clang 13 * More format changes
* h5test.h testing macros get enclosed in do..while loops (#1721)Dana Robinson2022-05-041-172/+172
| | | | | | | * h5test.h testing macros get enclosed in do..while loops * Adds missed macro in hl C++ code * Fixes macro in Windows code
* Fix JNI bug, fix warnings noticed in MSVC CI, be modern & portable (#1480)David Young2022-03-101-4/+3
|
* Snprintf2 (#1399)Sean McBride2022-01-281-2/+2
| | | | | | | | | | | | | * Replaced many uses of sprintf with safer snprintf Many very straightforward, but in a few cases added a length parameter to some private functions, because buffer length was otherwise unknowable. * Removed unnecessary use of static on small buffers This improves thread safety. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Fixed Spelling Errors (#1166)Scot Breitenfeld2021-12-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixed missed closing of a dataset * fixed missed closing of a dataset * fixed typo in error return * Committing clang-format changes * minor edits * code format * Committing clang-format changes * code format * minor edit * switched from using MPI_count, to actual bytes written for H5FD_mpio_debug rw debugging * Committing clang-format changes * changed size_i in printf to reflect the I/O. * Committing clang-format changes * Fixed seg fault with xlf on BE with -qintsize=8 * fixed error function string * spelling corrections via codespell, added new spell check github actions * Committing clang-format changes * misc * misc * misc * misc * misc * misc * misc * misc * misc * misc * misc * misc * misc * misc * Committing clang-format changes * misc * misc * misc * misc * misc * misc * Committing clang-format changes * misc * work around for https://github.com/codespell-project/codespell/issues/2137 * misc * added missing file * misc * misc. * misc * switch to using Codespell with GitHub Actions * misc. * misc. * fixed more sp errors * Fix new typos found by codespell. * fixed proceed with precede * fixed variable in fortran test * fixed minnum * updated spelling list Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
* Update clang config (#473)Quincey Koziol2021-03-171-10/+40
| | | | | | | * Update clang config to put H5E_BEGIN_TRY / H5E_END_TRY on separate lines, empty C++ methods on separate lines, understand that ALL_MEMBERS / UNIQUE_MEMBERS are foreach macros, and properly skip the 'config' directory in the find command without emiting a warning * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451)Sean McBride2021-03-101-1/+1
| | | | | | | | | * Fixed all clang-tidy bugprone-suspicious-string-compare warnings This change was generated entirely by clang-tidy itself. * Reformat code with clang v10.0.1. Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
* Various clang tidy warning fixes (#448)Sean McBride2021-03-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * Fixed clang-tidy bugprone-reserved-identifier warnings * Fixed clang-tidy bugprone-assert-side-effect warnings * Fixed clang-tidy bugprone-copy-constructor-init warning * Fixed clang-tidy readability-redundant-preprocessor warning For error_test.c the removed code was already dead, because it was in the else of an `#if H5_USE_16_API` block. Based on H5Location.h, I think p_get_ref_obj_type was meant to be in `#ifndef DOXYGEN_SHOULD_SKIP_THIS` and an `#endif` was missing. Similarly, in the header, getObjTypeByIdx is only in H5_NO_DEPRECATED_SYMBOLS, not DOXYGEN_SHOULD_SKIP_THIS. * Fixed clang-tidy readability-redundant-string-init warnings * Fixed some clang-tidy performance-type-promotion-in-math-fn warnings * Fixed clang-tidy performance-unnecessary-value-param warnings * Reformat source with clang v10.0.1. Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
* Update license url (#332)Larry Knox2021-02-171-1/+1
| | | | | | * Modify temporary rpath for testing in java example scripts. * Update URL in source file Copyright headers for web copy of COPYING file - src and test directories.
* HD prefix updates in src/ and test/Dana Robinson2020-10-241-2/+2
| | | | | | | Adds missing HD prefixes to API calls in src and test. Adds some extra processing to bin/checkposix to keep the noise levels down when running the script (not comprehensive).
* Clang-format of source filesAllen Byrne2020-09-301-445/+490
|
* Pre-format fixes for warnings as errorsAllen Byrne2020-09-291-24/+18
|
* Removes staff email addresses from the repositoryDana Robinson2020-08-071-1/+1
| | | | Removes redundant C library headers from hl library
* Trim trailing whitespaceQuincey Koziol2020-04-201-1/+1
|
* Move function-scope macro definition to file-scope.Jacob Smith2019-09-301-5/+6
|
* Refactor external file addition loop to static function.Jacob Smith2019-09-291-18/+57
|
* fix declaring variable in for statementJacob Smith2019-09-281-9/+10
|
* Merge branch 'develop' of ↵Jacob Smith2019-09-231-13/+13
|\ | | | | | | https://bitbucket.hdfgroup.org/scm/~jake.smith/hdf5 into bugfix/repack_external_storage
| * Add HD prefix to testsAllen Byrne2019-08-151-7/+7
| |
| * Fix conflicting types for reset_raw_data_files() parameter in ↵Larry Knox2019-08-011-6/+6
| | | | | | | | | | | | external_common.c changed from int to hbool_t. Change 0 and 1 to FALSE and TRUE in calls to reset_raw_data_files().
* | Change print calls to HD-wrapped.Jacob Smith2019-09-231-3/+2
| | | | | | | | Minor formatting tweaks (inc. regressions and in-file style-matching).
* | Merge branch 'develop' of ↵Jacob Smith2019-07-221-0/+1
|\ \ | |/ | | | | https://bitbucket.hdfgroup.org/scm/~jake.smith/hdf5 into bugfix/repack_external_storage
| * Add support for GCC9, update warnhist script, and clean up warnings.Quincey Koziol2019-07-031-1/+2
| |
* | Minor formatting adjustments.Jacob Smith2019-07-221-74/+47
| |
* | Some minor reformatting.Jacob Smith2019-05-241-193/+241
|/ | | | Replace tabs with spaces.
* Changing file names to avoid possible conflicts during parallel test.Songyu Lu2019-04-221-6/+6
|
* Left out this file in previous commit.Songyu Lu2019-04-091-11/+10
|
* This commit basically has the following changes:Songyu Lu2019-04-041-230/+1
| | | | | | 1. restored the datatype, dataspace, and LCPL of the dataset for VOL connector back to the properties. 2. splitted external.c and vds.c because they called HDsetenv in the program, instead using shell scripts to set the environment variables. 3. changed H5CX_get_vds_prefix and H5CX_get_ext_file_prefix to use H5P_peek instead of H5P_get.
* Rework of the POSIX file open permissions and macros to clean upDana Robinson2017-04-281-4/+4
| | | | | | HDopen() calls. Also fixed a minor const warning in the core VFD.
* Changed the Windows POSIX open() file permissions to be correctDana Robinson2017-04-281-4/+4
| | | | according to MSDN. Partial fix for HDFFV-9630.
* Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to ↵Larry Knox2017-04-251-6/+4
| | | | | | | | | | hdf5_1_10 * commit '54957d37f5aa73912763dbb6e308555e863c43f4': Commit copyright header change for src/H5PLpkg.c which was added after running script to make changes. Add new files in release_docs to MANIFEST. Cimmit changes to Makefile.in(s) and H5PL.c that resulted from running autogen.sh. Merge pull request #407 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10_1 to hdf5_1_10_1 Change copyright headers to replace url referring to file to be removed and replace it with new url for COPYING file.
* [svn-r29698] Switched true and false to TRUE and FALSE in a function inDana Robinson2016-04-141-2/+2
| | | | | | | test/external.c. Tested on: 64-bit Ubuntu 15.10 w/ gcc 5.2.1 autotools serial (external test only)
* [svn-r29421] Fix for HDFFV-9516.Dana Robinson2016-03-151-7/+110
| | | | | | | | Corrects a problem where H5Dget_access_plist() returns a dapl that does not contain all dapl fields. Tested on: 64-bit Ubuntu 15.10 w/ gcc 5.2.1 autotools serial
* [svn-r29182] Re-commit of HDFFV-8740 fix, which adds the ability to configureDana Robinson2016-02-221-171/+732
| | | | | | | | | | | | external dataset storage path behavior. This check-in fixes a bug in the original check-in where the external path stored in the file struct was not copied on reopen causing subsequent dataset operations to fail. Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 autotools serial w/ fortran and C++ autotools parallel (MPICH 3.1.4) w/ fortran
* [svn-r29119] Converted HDoff_t to off_t in test/external.c.Dana Robinson2016-02-151-116/+114
| | | | | | | Fixes Windows errors. Tested on: 64-bit Ubuntu 15.10 w/ gcc 5.2.1 64-bit Windows 10 w/ VS2015
* [svn-r29084] Revert of:Dana Robinson2016-02-111-649/+90
| | | | | | | | | | | | | | | r29069 and 72 (gheap cleanup) r29041 and 43 (HDFFV-8740 external storage) These cause problems in the daily tests. They will be re-introduced when their respective problems have been addressed. Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 autotools serial (check-vfd) w/ Fortran and C++ autotools parallel w/ Fortran CMake serial
* [svn-r29043] Fixes to make relative external storage work on Windows. Part ↵Dana Robinson2016-02-041-3/+3
| | | | | | | | | of HDFFV-8740. - Fixed typo in Wsetenv(). - Changed HDoff_t back to off_t in test/external.c. The function signature is off_t so the types must match or you can get conversion errors. Tested on 64-bit Windows 10 w/ VS 2015
* [svn-r29041] Patch from Steffen Kiess that allows a relative path to be ↵Dana Robinson2016-02-041-88/+647
| | | | | | | | | | | specified for external dataset files set via H5Pset_external(). Resolves HDFFV-8740 Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 autotools serial
* [svn-r29035] Removed external links test from external storage test.Dana Robinson2016-02-021-104/+0
| | | | | | | | This test is duplicated more comprehensively in the links.c file so there is no need to copy it over. Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 serial autotools