summaryrefslogtreecommitdiffstats
path: root/src/H5E.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r11742] Purpose: Minor correction.Raymond Lu2005-11-181-2/+4
| | | | | | | | | Description: H5Eset_auto_stack() and H5Eset_auto() used FUNC_ENTER_API. It would clear the error stack from the previous API call. It's better to use FUNC_ENTER_API_NOCLEAR to avoid clearing the stack. Platforms tested: fuss - simple change.
* [svn-r11738] Purpose:James Laird2005-11-181-1/+1
| | | | | | | | | | | | | | | | | | | Configure feature Description: Added 'make trace' target. Solution: Added tracing to 1.7. This was done automatically in 1.6, but left out of 1.7 until now (oops!). Tracing in 1.7 only happens manually, when the user types 'make trace.' Tracing automatically requires more framework than it's worth. I also fixed a couple of tracing bugs and ran trace. Platforms tested: mir, sleipnir, modi4 Misc. update:
* [svn-r11733] Purpose:Quincey Koziol2005-11-161-0/+8
| | | | | | | | | | | | | | | | | | Code cleanup Description: Added some comments about the thread-specific memory for the error and function stacks. Changed H5close() to not use the function stack (since it causes it to be re-enabled after shutting it down) Changed thread-safe semaphore code to not use dynamicly allocated memory. Platforms tested: FreeBSD 4.11 (sleipnir) Linux 2.4 Too minor to require h5committest
* [svn-r11245] Purpose:Quincey Koziol2005-08-131-148/+148
| | | | | | | | | | | | | | | | | | | | Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
* [svn-r11228] Purpose:Quincey Koziol2005-08-101-0/+4
| | | | | | | | | | | Code cleanup Description: Add a check for the correct type of ID for H5Eclose_stack() Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
* [svn-r11107] Purpose:Quincey Koziol2005-07-221-8/+18
| | | | | | | | | | | | | Optimization Description: Switch some internal error API data structures over to using H5FL* routines for memory management (instead of malloc/free), in order to reduce abuse of operating system's memory allocation code. Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
* [svn-r11088] Purpose:MuQun Yang2005-07-191-0/+4
| | | | | | | | | | | | | | | | | | support thread-safe on windows Description: pthread on windows won't return a numeric value from pthread_safe. An error message applying on linux won't apply on windows, Print some other message. Solution: Platforms tested: windows xp, too minor to test at other platforms. Misc. update:
* [svn-r10847] Purpose: Bug fixRaymond Lu2005-06-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Description: See details from Bug #213. Family member file size wasn't saved anywhere in file. When family file is opened, the first member size determine the member size. Solution: This is the fourth step of checkin. A test suit is added for h5repart, including a program to generate the test files, a script file to run h5repart, and a program to verify repartitioned files can be opened by the library. There's a change from the first step of checkin. Family name template is no longer saved in the superblock because different pathname can make the name different. In the third step of checkin, h5repart has been modified. If h5repart is used to change the size of family member file, the new size(actual member size) is saved in the superblock. In the second step of checkin, multi driver is checked against the driver name saved in superblock. Wrong driver will result in a failure with an error message indicating multi driver should be used. This change includes split driver because it's a special case for multi driver. In the first step of checkin. Family member size and name template(unused at this stage) are saved in file superblock. When file is reopened,the size passed in thrin superblock. A different size will trigger a failure with an error message indicating the right size. Wrong driver to open family file will cause a failure, too. Platforms tested: h5committest and fuss. Misc. update: MANIFEST
* [svn-r10749] Purpose:Quincey Koziol2005-05-171-64/+33
| | | | | | | | | | | | | | | Code cleanup Description: Convert H5Eget_num from 'size_t' to 'ssize_t' to allow for correct error reporting (eventually). Also, convert a bunch of static routines from "FUNC_ENTER_NOAPI" to "FUNC_ENTER_NOAPI_NOINIT" or "FUNC_ENTER_NOAPI_NOINIT_NOFUNC" Platforms tested: FreeBSD 4.11 (sleipnir) w/pthreads Too minor to require h5committest
* [svn-r10746] Purpose: Minor correctionRaymond Lu2005-05-161-7/+13
| | | | | | | | | Description: H5Eget_num used to return an INT type. That's not consistent with the parameter of H5Epop. Solution: Changed it to SIZE_T type. Platforms tested: fuss - very simple change.
* [svn-r10736] Purpose:Quincey Koziol2005-05-071-2/+2
| | | | | | | | | | | Code cleanup Description: Clean up some compiler warnings Platforms tested: FreeBSD 4.11 (sleipnir) h5committest
* [svn-r10705] Purpose:Quincey Koziol2005-04-301-0/+2
| | | | | | | | | | | Code cleanup Description: Clean up a few compiler warnings of various sorts... Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
* [svn-r9865] Purpose:Quincey Koziol2005-01-241-5/+9
| | | | | | | | | | | | Bug fix Description: Catch another way that vsnprintf() can fail (this time on the HP) and deal with that. Platforms tested: HP/UX 11.x (kelgia) Doesn't affect other platforms
* [svn-r9861] Purpose:Quincey Koziol2005-01-241-1/+17
| | | | | | | | | | | | | | | | | | | | Bug fix Description: Add detect vasprintf() routine and use it instead of vsnprintf() when formatting error descriptions if it's available. Added configure test to detect "broken" vsnprintf() implementations which don't return the correct number of character for strings that are too long to fit into the buffer provided (currently a problem on the SGIs and probably the HP). Re-wrote error formatting code in H5Epush_stack() to handle broken vsnprintf() implementations, etc. Platforms tested: IRIX64 6.5 (modi4) h5committest
* [svn-r9857] Purpose: MaintenanceElena Pourmal2005-01-221-3/+0
| | | | | | | | | | | | | | Description: Removed PABLO from the source Solution: Platforms tested: arabica with 64-bit, copper with parallel, heping with GNU C and C++ and PGI fortran (but I disabled hl, there is some weird problem only on heping: F9XMODFLAG is not propagated to the Makefile files Misc. update:
* [svn-r9837] Purpose:Quincey Koziol2005-01-191-0/+7
| | | | | | | | | | | | | | | Bug fix Description: Calling HDvsnprintf() several times (should be twice) is incorrect without calling va_end() and va_start() again. Solution: Call va_end() and va_start() before calling HDvsnprintf() again. Platforms tested: Linux 2.4/x86_64 (mir) Too minor to require h5committest
* [svn-r9825] Purpose:Quincey Koziol2005-01-141-2/+20
| | | | | | | | | | | | Bug fix Description: Fix possible overrun in error description string by allocating large enough string on the fly. Platforms tested: FreeBSD 4.10 (sleipnir) Too minor to require h5committest
* [svn-r9780] Purpose:Quincey Koziol2005-01-081-1/+1
| | | | | | | | | | | | Bug fix Description: Print the thread ID in a little more portable of a fashion, disallowing negative thread IDs. Platforms tested: Linux 2.4 (heping) w/threadsafe Too Minor to require h5committest
* [svn-r9727] Purpose:Quincey Koziol2004-12-291-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug Fix/Code Cleanup/Doc Cleanup/Optimization/Branch Sync :-) Description: Generally speaking, this is the "signed->unsigned" change to selections. However, in the process of merging code back, things got stickier and stickier until I ended up doing a big "sync the two branches up" operation. So... I brought back all the "infrastructure" fixes from the development branch to the release branch (which I think were actually making some improvement in performance) as well as fixed several bugs which had been fixed in one branch, but not the other. I've also tagged the repository before making this checkin with the label "before_signed_unsigned_changes". Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel & fphdf5 FreeBSD 4.10 (sleipnir) w/threadsafe FreeBSD 4.10 (sleipnir) w/backward compatibility Solaris 2.7 (arabica) w/"purify options" Solaris 2.8 (sol) w/FORTRAN & C++ AIX 5.x (copper) w/parallel & FORTRAN IRIX64 6.5 (modi4) w/FORTRAN Linux 2.4 (heping) w/FORTRAN & C++ Misc. update:
* [svn-r9243] Snapshot version 1.7 release 37HDF Admin2004-09-121-1/+1
|
* [svn-r9234] Purpose:Quincey Koziol2004-09-091-18/+76
| | | | | | | | | | | | | | | | | | | | | | | Code cleanup Description: Tweak recent "forward compatibility" changes to the H5E* API (which allowed for the old H5E API functions to remain unchanged) by allowing for the error stack callback function (H5E_auto_t) to also remain unchanged from the 1.6 branch. This required changing the H5E{get|set}_auto routines to have the old style H5E_auto_t type (which didn't have a stack ID parameter) and the new H5E{get|set}_auto_stack routines to have a newer "H5E_auto_stack_t" type (which has a stack ID parameter). This should make the H5E API changes as forwardly compatible as possible. One side-affect of this change was that it was impossible to determine if the current auto error callback was the old style (H5E_auto_t) or the new style (H5E_auto_stack_t) of callback, so a new API function (H5Eauto_is_stack) was adde to query this. Platforms tested: FreeBSD 4.10 (sleipnir) IRIX64 6.5 (modi4) h5committest
* [svn-r9183] Purpose: New featureRaymond Lu2004-09-011-121/+81
| | | | | | | | | | | | Description: Restore 6 old error API functions back to the library to be backward compatible with v1.6. They are H5Epush, H5Eprint, H5Ewalk, H5Eclear, H5Eset_auto, H5Eget_auto. These functions do not have error stack as parameter. Solution: Internally, these functions use default error stack. Platforms tested: h5committest and fuss. Misc. update: RELEASE.txt
* [svn-r8791] Purpose: Rewrote metadata cache (H5AC.c, etc.) to improve ↵John Mainzer2004-07-021-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | performance. Description: Replaced the old metadata cache with a cache with a modified LRU replacement policy. This should improve the hit rate. Solution: Since we want to flush cache entries in increasing address order, I used the threaded binary B-tree code to store the cache entries. There is a fair bit of overhead here, so we may want to consider other options. While the code is designed to allow the support of other replacement algorithms, at present, only a modified version of LRU is supported. The modified LRU algorithm requires that a user selectable portion of the cache entries be clean. The clean entries are evicted first when writes are not permitted. If the pool of clean entries is used up, the cache grows beyond its user specified maximum size. The cache can also exceed its maximum size if the combined size of the protected (or locked) entries exceeds the maximum size of the cache. Platforms tested: eirene (serial, parallel, fp), h5committested Misc. update:
* [svn-r8731] Purpose:Quincey Koziol2004-06-231-7/+5
| | | | | | | | | | | | | | | Code cleanup & minor optimization Description: Re-work the way interface initialization routines are specified in the library to avoid the overhead of checking for them in routines where there is no interface initialization routine. This cleans up warnings with gcc 3.4, reduces the library binary size a bit (about 2-3%) and should speedup the library's execution slightly. Platforms tested: FreeBSD 4.10 (sleipnir) w/gcc34 h5committest
* [svn-r8707] Changed the way HDF5 handles hid_t's and added API functions to ↵James Laird2004-06-181-9/+9
| | | | allow users to register IDs and ID types at runtime.
* [svn-r8383] Purpose:Quincey Koziol2004-04-181-3/+3
| | | | | | | | | | | | | Code cleanup Description: Clean up lots of warnings based on those reported from the SGI compilers as well as gcc. Platforms tested: SGI O3900, IRIX64 6.5 (Cheryl's SGI machine) FreeBSD 4.9 (sleipnir) w/ & w/o parallel h5committest
* [svn-r8287] Purpose:Quincey Koziol2004-03-301-1/+1
| | | | | | | | | | | | | | Bug fix/code cleanup Description: Copy Robb's feature in SSlib that checks that the name of the function used in the FUNC_ENTER macro is actually the name of function. Fixed a bunch of typos & copy-n-pasto's for functions with incorrect names. Platforms tested: FreeBSD 4.9 (sleipnir) w/parallel too minor to require h5committest
* [svn-r7920] Purpose:Quincey Koziol2003-12-101-2/+2
| | | | | | | | | | | Bug fix Description: Correct a couple of minor problems with 1.6 compat mode. Platforms tested: FreeBSD 4.9 (sleipnir) not tested in h5committest
* [svn-r7917] Purpose:Quincey Koziol2003-12-061-6/+6
| | | | | | | | | | | | | | | | | | | Code cleanup Description: Clean up compiler warnings, especially the 'FUNC' variable not used which comes out in production mode. Solution: Had to add a new FUNC_ENTER_NOAPI_NOINIT_NOFUNC macro for those non-API functions which don't need the 'FUNC' variable defined. (This will be _so_ much easier when C99 is standard on all our supposed platforms, since it has a __FUNC__ macro... ) Platforms tested: FreeBSD 4.9 (sleipnir) too minor for h5committest (although there were lots of files changed, the change was minor in each one)
* [svn-r7829] Purpose:Quincey Koziol2003-11-081-2/+2
| | | | | | | | | | | | | | | | | Bug fix & code cleanup Description: Allowing the library to call malloc with a size of 0 bytes causes problems for some users, so we check for allocations of 0 bytes and disallow them now. Cleaned up some code which could call malloc with 0 size. Changed some code calling HDmalloc directly to call H5MM_malloc(), which allows us to check for 0 sized allocations. Platforms tested: FreeBSD 4.9 (sleipnir) too minor to require h5committest
* [svn-r7626] Purpose:Quincey Koziol2003-10-141-0/+2
| | | | | | | | Update dependencies and tracing information Platforms tested: Linux 2.4 (verbena) w/FORTRAN too minor for h5committest
* [svn-r7605] Snapshot version 1.7 release 6HDF Admin2003-10-121-2/+2
|
* [svn-r7527] Purpose:Quincey Koziol2003-09-301-6/+32
| | | | | | | | | | | | Code cleanup Description: Clean up a few loose ends and warnings for the 1.6 compatibility changes to the error API. Platforms tested: FreeBSD 4.9 (sleipnir) too minor to require h5committest
* [svn-r7526] Purpose:Quincey Koziol2003-09-301-0/+1
| | | | | | | | | | Fix typo in comment. Description: Looks like a cut & paste error. Platforms tested: None - just comment fixup
* [svn-r7519] Purpose:Raymond Lu2003-09-291-3/+6
| | | | | | | Description: add backward compatibility for thread safety. Platforms tested: RH 8(fuss)
* [svn-r7507] *** empty log message ***Raymond Lu2003-09-241-15/+377
|
* [svn-r7381] Purpose:Quincey Koziol2003-08-181-3/+3
| | | | | | | | | | | Code cleanup Description: Various cleanups resulting from running lint tool over H5F.c source module Platforms tested: FreeBSD 4.8 (sleipnir) too minor to require h5committest
* [svn-r7375] Purpose:Quincey Koziol2003-08-151-2/+5
| | | | | | | | | | | | | | Clean up Pablo masks Description: H5E.c - Moved Pablo mask definition above include files, so it affects inline functions properly. H5FDstream.c - Added Pablo mask definition to address daily build failures. Platforms tested: FreeBSD 4.8 (sleipnir) too minor for h5committest
* [svn-r7364] Purpose:Quincey Koziol2003-08-141-141/+141
| | | | | | | | | | | Code cleanup Description: Ran lint over code & cleaned up warnings. Platforms tested: FreeBSD 4.8 (sleipnir) too small of changes to require h5committest
* [svn-r7355] Purpose:Quincey Koziol2003-08-131-787/+6
| | | | | | | | | | | | | | | | | | | | | | Code cleanup, etc. Description: Previously (in versions prior to 1.7), there were two locations to modify when an error was added to the library. Now, with the new error API, there were four. Solution: Created a single text file (src/H5err.txt) and a perl script (bin/make_err) which uses the text file to automatically create header files that are included in appropriate places in the library. This means that there is only one file (src/H5err.txt) which needs to be modified when a new error code is added to the library. The automatically generated headers depend on this file and the makefiles will take care of running the perl script to regenerate them when the text file changes, so no user action is required when a new error is added. Platforms tested: h5committested
* [svn-r7347] Purpose:Quincey Koziol2003-08-121-311/+745
| | | | | | | | | | | | | | | | Code cleanup & bug fix Description: Clean up code, adding error checking where appropriate Fix a number of routines which were clearing the default error stack before checking some information about that stack. Set the version # of the library correctly when it is registered. Platforms tested: FreeBSD 4.8 (sleipnir) h5committested
* [svn-r7298] Purpose:Quincey Koziol2003-08-081-482/+810
| | | | | | | | | | | | | Code cleanup & bug fix Description: Refactor code to clean up Corrected several bugs, including problems with library termination and thread-safete, etc. Platforms tested: h5committested
* [svn-r7265] *** empty log message ***Raymond Lu2003-07-261-1030/+269
|
* [svn-r7263] Purpose: bug fix for C++ caused by new error apiRaymond Lu2003-07-251-1/+1
| | | | | | | Description: one variable was left out from checkin yesterday Platforms tested: RH 8 with C++
* [svn-r7262] Purpose: Bug fix for C++ caused by new error API.Raymond Lu2003-07-251-126/+258
| | | | Platforms tested: h5committested
* [svn-r7256] Purpose: gradual checkin for error apiRaymond Lu2003-07-231-40/+231
| | | | Platforms tested: RH 8(simple checkin)
* [svn-r7244] Purpose: gradual checkin for error APIRaymond Lu2003-07-221-46/+202
| | | | Platforms tested: h5committest
* [svn-r7241] Purpose: Gradual checkin for error APIRaymond Lu2003-07-181-27/+560
| | | | | | Platforms tested: h5committest, RH 8 Misc. update:
* [svn-r7228] Purpose: Gradual checkin for error APIRaymond Lu2003-07-151-1/+297
| | | | Platforms tested: RH 8
* [svn-r7226] Purpose: Bug fix for error API.Raymond Lu2003-07-151-3/+183
| | | | | | | Description: gradual checkin Platforms tested: platinum, baldric