summaryrefslogtreecommitdiffstats
path: root/src/H5system.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge of HDFFV-10845, 10529 from developAllen Byrne2019-07-271-55/+448
|
* HDFFV-10307 Add HDtupper() call for Windows driveAllen Byrne2017-12-201-2/+2
|
* Change copyright headers to replace url referring to file to belrknox2017-05-161-6/+4
| | | | removed and replace it with new url for COPYING file.
* Merge/port changes from develop back to 1.8 for tools and cmakeAllen Byrne2017-03-291-1/+2
|
* [svn-r29702] Merged r29182 and 29183 from the trunk.Dana Robinson2016-04-151-10/+119
| | | | | | | | | Fixes HDFFV-8740 (external file storage relative path fix). Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 serial autotools w/ C++ & Fortran parallel autotools (MPICH 3.1.4) w/ Fortran serial CMake
* [svn-r27685] Merge of r27572 from trunkDana Robinson2015-09-061-60/+2
| | | | | | | | | | Remove all VMS-specific code from the library. The exception is the VMS floating-point tests since those are special as VMS floats are odd. Those files will be considered separately. Fixes HDFFV-9495 Tested on: h5committest
* [svn-r24728] Description:Quincey Koziol2014-02-211-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring r24726 & r24727 from trunk to 1.8 branch: Description: Revert some earlier usage of strncpy, which was incorrect. Bring Coverity changes from branch back to trunk: r20821: Use HDstrncpy. --gh (Fixed already, with strdup) r20822: (Not merged, incorrect use of HDstrncpy()) r20823: (Not merged, incorrect use of HDstrncpy()) r20824: Maintenance: Bug fix: addressed CID 666. Value stored at *expression_len should be used in the call to HD5packFstring to avoid overflow (and unnecessary arithmetic calculation and casting) r20825: Issue 642: Added check for error and handler with print to stderr and exit. r20826: Undo revision 20818, as that issue has already been fixed in the 1.8 branch and trunk (but not coverity branch) r20827: (Not merged, incorrect use of HDstrncpy()) r20828: Use HDstrncpy. --gh (Corrected use of strncpy()) r20829: Check return of H5Lget_val(print_udata->fid, path, targbuf, linfo->u.val_size + 1, H5P_DEFAULT) and if error set trgbuf[0] to 0. Check if H5Lunpack_elink_val(targbuf, linfo->u.val_size, NULL, &filename, &objname) was successful and allow print. Otherwise filename and objname are not created. (init those to NULL) r20830: resolved coverity issues 939, 940, 941, 944, and 947. all were complaints about use of sprintf, and in all cases, the buffers used were large enough for all eventualities. Resolved issue by replacing calls to sprintf with calls to snprintf. r20831: Maintenance: Addressed CID 852 Replaced sprintf with snprintf r20832: Purpose: Fix valgrind issues with hl/examples/ex_image2 Description: Modified hl/examples/ex_image2 to free global "gbuf" before exit. Tested on: Mac OSX/64 10.9.1 (amaon) w/C++, FORTRAN & Threadsafety (too minor to require h5committest)
* [svn-r23891] Description:Quincey Koziol2013-07-121-60/+93
| | | | | | | | | | | | | | | | Merge r23889 from trunk to 1.8 branch: Merge changes from Coverity branch to trunk: r20768: Switch to snprintf, HDstrncat, HDstrncpy to address coverity issue 832. r20812: Use HDstrncpy. --gh Tested on: Mac OSX/64 10.8.4 (amazon) w/debug Linux/32 2.4 (jam) w/debug
* [svn-r23869] HDFFV-8302: replace (v)snprintf with _(v)snprintf for windows. ↵Allen Byrne2013-07-081-0/+24
| | | | | | | | Merge from trunk along with other windows functions and HD prefix corrections. HDFFV-8394: Add cmake code to package examples Tested: local linux
* [svn-r23868] bring r 23862 from trunk:Mohamad Chaarawi2013-07-081-1/+2
| | | | | Change printfs in perform output and h5dump to prevent overflow. This fixes: https://jira.hdfgroup.uiuc.edu/browse/HDFFV-8450
* [svn-r23719] Description:Quincey Koziol2013-05-291-2/+2
| | | | | | | | | | | | Bring r23713 and r23717 from trunk to 1.8 branch: Clean up warnings, switch library code to use Standard C/POSIX wrapper macros, remove internal calls to API routines, update checkapi and checkposix scripts. Tested on: Mac OSX/64 10.8.3 (amazon) w/C++ & FORTRAN Big-Endian Linux/64 (ostrich)
* [svn-r23321] Description:Quincey Koziol2013-02-271-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge r23313 from trunk to 1.8 branch: Bring changes from Coverity branch to the trunk: r20612: Changed string functions to versions with string length to fix coverity issues 922, 942 and 943. r20614: Use HDsnprintf. --gh r20675: Fix for coverity #1714 due to the fix for #810. Use HDfree() instead of H5MM_xfree(). r20678: Repaired coverity issue #598 -- failure to check return value from a call to fstat(), or to tidy up in the event of failure. r20679: Use HDstrncpy. --gh r20681: Use HDstrncat and HDstrncpy. --gh Tested on: Mac OSX/64 10.8.2 (amazon) w/debug, C++ & FORTRAN (too minor to require h5committest)
* [svn-r23220] Description:Quincey Koziol2013-02-021-259/+267
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring r23219 from trunk to 1.8 branch: Bring reviewed changes from Coverity branch back to trunk (QK & JK): r20457: Coverity issue 691: return of H5duo could be negative. Fixed by using STDOUT_FILENO and redesign parse_command_line and main to cleanup file allocations. The output_file var is null when using stdout. In cleanup do not close output_file if NULL. r20510: Initialize ufid = -1 and predicate HDclose call on ufid != -1 r20511: Purpose: Fix coverity issue 1715 Description: Free "file" and nested data on failure in H5FD_core_open. r20512: Initialize ifid = -1 and predicate HDclose call on ifid != -1 r20514: Initialize h5fid = -1 and predicate HDclose call on h5fid != -1 r20516: Added else branch to the if (ret_value < 0) check. r20522: Addressed coverity issues 930-933, 850, 836, 835, 1307. All minor potential buffer overwrite bugs, or coverity errors. Fixed by replacing strcpy and sprintf with strncpy and snprintf. r20523: fixed coverity issues 68, 1120, 1116i r20524: Check H5Z_SZIP->encoder_present < 1 assuming 0 represents absence. r20601: Purpose: Fix coverity issues 1703-1705 Description: Modified the cleanup code in test_free in accum.c to reset allocated buffers to NULL after they are freed, and modified the error cleanup code to check if these buffers are NULL before freeing them. Also fixed some unrelated warnings in accum.c. r20602: Use HDsnprintf and HDstrncat r20603: Purpose: Fix coverity issues 808-809 Description: Modified test_core in vfd.c to check the returns from malloc, and keep track of whether points and check are allocated by setting them to NULL when they are not. Added code to free points and check on error if they are not NULL. Also fixed unrelated warnings in vfd.c. r20604: Use HDstrncpy. r20605: Use HDstrncpy and HDstrncat. r20606: Purpose: Fix coverity issue 807 Description: Modified long_compact in stab.c to keep track of whether objname is allocated by setting it to NULL when it is not. Added code to free objname on error if it is not NULL. r20607: Changed string function calls to use versions that specify the string length to fix coverity issues 832 and 839. Tested on: Mac OSX/64 10.8.2 (amazon) (Too minor to require h5committest)
* [svn-r22451] Brought cmake configuration / configure changes from Trunk.Allen Byrne2012-06-111-3/+3
| | | | Tested jam, local linux
* [svn-r21925] Description:Quincey Koziol2012-02-101-1/+1
| | | | | | | | | | | | | | Bring r21919-21924 from trunk to 1.8 branch: cleanup FUNC_ENTER macros, etc. Also removed Subversion mergeinfo tags from a few directories and files. These are artifacts from non-root merges using pre-1.6 Subversion clients. (This should fix the problem of unchanged directories looking "changed" during checkins.) Tested on: Mac OSX/64 10.7.3 (amazon) w/debug & production (daily tested on trunk)
* [svn-r21376] JIRA-HDFFV-2748: Relplace WIN32 macros in source. New ↵Allen Byrne2011-09-121-346/+367
| | | | | | | | H5_HAVE_WIN32_API and H5_HAVE_VISUAL_STUDIO defines only need to be set on windows. Autotools configure is not affected. Trunk passed for a week and cmake branch has been in place > 3 weeks. Tested: local linux
* [svn-r20500] Merge of 20499 from trunk to fix Windows H5_HAVE_GETTIMEOFDAY ↵Dana Robinson2011-04-141-5/+16
| | | | | | issues (HDFFV-5931). Tested on: Windows
* [svn-r20313] Change incorrect use of "struct stat" to use "h5_stat_t". Allen Byrne2011-03-241-2/+2
| | | | | | | Also removed includes from top of file - they are included with proper config checks in h5private.h. Changed name of Windows only gettimeofday function to avoid a define loop according to VS2008 Tested: local linux, windows
* [svn-r18617] Description:Quincey Koziol2010-04-221-16/+19
| | | | | | | | | | Bring r18616 from trunk to 1.8 branch: Clean up compiler warnings. Tested on: Mac OS X/32 10.6.3 (amazon) w/debug (too minor to require h5committest)
* [svn-r18198] Description:Quincey Koziol2010-01-301-2/+2
| | | | | | | | | Trim trailing whitespace from source code files, with following command: find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.f90" \) -print |xargs -n 1 sed -i "" 's/[[:blank:]]*$//' Tested on: None - eyeballed only
* [svn-r17941] Description:Quincey Koziol2009-12-011-40/+49
| | | | | | | | | | | | Bring r17939 from trunk to 1.8 branch: Handle external links from symlinked files by adding another check to look for "child" files for links from the actual location of the "parent" file, instead of from the location of the symlink. Tested on: FreeBSD/32 6.3 (duty) (h5committested on trunk)
* [svn-r17036] Updated perf_serial test to work on windows. Bring back from trunk.Allen Byrne2009-06-111-0/+46
| | | | | Tested: Windows
* [svn-r16314] Added support for OpenVMS pathname for external link.Raymond Lu2009-01-141-3/+25
| | | | Tested on OpenVMS and jam.
* [svn-r15766] Modifications for bug #1247 so that the user can specify the driverVailin Choi2008-10-031-1/+4
| | | | | | | | | | | | to use when opening the external linked target file. 1. Two new public routines are added to H5Plapl.c as well as "del/copy/close" callbacks for the property itself. 2. Modify H5L_extern_traverse() to use the fapl set via H5Pset_elink_fapl() and retrieve via H5Pget_elink_fapl(). 3. Add 3 tests to links.c to verify H5Pset/get_elink_fapl(). Also fix the compiler warning for the "if condition" in H5_build_extpath() of H5system.c.
* [svn-r15629] Description:Quincey Koziol2008-09-161-5/+5
| | | | | | | | | | | | | Remove trailing whitespace from C/C++ source files, with the following script: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Tested on: Mac OS X/32 10.5.5 (amazon) No need for h5committest, just whitespace changes...
* [svn-r15212] Description:Quincey Koziol2008-06-131-4/+4
| | | | | | | | | | | Bring back revision 15211 from trunk: Update the gcc flags for version 4.3 Clean up warnings Tested on: Mac OS X/32 10.5.3 (amazon)
* [svn-r14791] Add handling for external link:Vailin Choi2008-04-021-0/+98
| | | | | | | 1. src/H5F.c, src/H5system.c: formulate path for mainfile 2. src/H5Lexternal.c: add search for target file 3. configure.in: add H5_HAVE_WINDOW_PATH 4. test/links.c: add tests for external link
* [svn-r13442] H5system.c file didn't include H5MMprivate.h; that caused ↵Elena Pourmal2007-03-021-1/+2
| | | | | | | | | warnings on VMS; fixed tfilter.cpp compilation failed on VMS; fixed by casting filter_bogus to (H5Z_func_t) Platforms tested: kagiso, VMS server
* [svn-r13434] Used const char * instead of char pointer for HDremove_all ↵Elena Pourmal2007-02-281-1/+1
| | | | | | | | | function that is used on VMS. This should fix C++ compilation failures on VMS. Platforms tested: kagiso, VMS is stilll going on.
* [svn-r13253] Updated all C and C++ style source code files with the THG ↵Albert Cheng2007-02-071-2/+3
| | | | | | | | | copyright notice. Tested platform: Kagiso only since it is only a comment block change. If it works in one machine, it should work in all, I hope. Still need to check the parallel build on copper.
* [svn-r12648] Description:Elena Pourmal2006-09-051-1/+2
| | | | | | | | | | | | | | This is VMS problem only. H5Dremove_all function was modified to use HDremove. Since HDremove is defined as HDremove_all in H5private.h, function became recursive causing all kinds of resource problems. Solution: Use "remove" instead. Platforms tested: VMS server
* [svn-r12605] Description:Quincey Koziol2006-08-211-0/+578
Break out a bunch of the misc. routines that were in src/H5.c into more specific modules. Add optimized fletcher32 checksum routine, for checksumming metadata as well as raw data. Tested On: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2) Will test further after checkin...