summaryrefslogtreecommitdiffstats
path: root/src/H5P.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r5579] Purpose:Bill Wendling2002-06-101-11/+13
| | | | | | | | | | | | | | Copyright Fix Description: Switched the copyright statements from the old, bad version to the new version we got from the lawyers. Note: not every file was changed. There are some files which have copyrights not to NCSA (see the Stream VFD and some of the GIF conversion modules didn't have copyrights, so I didn't know if they were from others or from us). I left those alone. If others think they should be changed, please feel free to do so. Platforms tested: Linux
* [svn-r5565] Purpose:Quincey Koziol2002-06-101-1/+1
| | | | | | | | | | | | | | Code cleanup Description: Forgot to remove the code setting the small data block size from the metadata block size setting routine. Solution: Took it out. Platforms tested: FreeBSD 4.5 (sleipnir)
* [svn-r5564] Purpose:Quincey Koziol2002-06-101-2/+83
| | | | | | | | | | | New Feature Description: Add H5P[set|get]_small_data_block_size API function, per our discussions at last week's HDF5 meeting. Platforms tested: FreeBSD 4.5 (sleipnir)
* [svn-r5535] Purpose:Quincey Koziol2002-06-051-1/+3
| | | | | | | | | | | | | | | | | New feature. Description: Added a "small data" block allocation mechanism to the library, similar to the mechanism used for allocating metadata currently. See the RFC for more details: http://hdf.ncsa.uiuc.edu/RFC/SmallData/SmallData.html This reduces the number of I/O operations which hit the disk for my test program from 19 to 15 (i.e. from 393 to 15, overall). Platforms tested: Solaris 2.7 (arabica) w/FORTRAN and FreeBSD 4.5 (sleipnir) w/C++
* [svn-r5326] MuQun Yang2002-05-021-1/+1
| | | | | | | | | | | Purpose: code clean-up Description: Many warnings are generated on windows due to seemingly large-size data type converting to small-size data type, 1.5 branch has been cleaned up, make 1.4 catch up with 1.5. Solution: If meeting with the break-up of the current tests on other platforms, will resume the previous one Platforms tested: windows 2000, linux 2.2.18
* [svn-r5314] Purpose:Quincey Koziol2002-05-011-1/+1
| | | | | | | | | | Code cleanup Description: Cleanup some warnings from gcc 3.1 Platforms tested: FreeBSD 4.5 (sleipnir)
* [svn-r5274] Purpose:Albert Cheng2002-04-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Migrate from configure macros of XYZ_ABC to H5_XYZ_ABC Description: configure generates many macros definitions on the fly and were stored in src/H5config.h which is included by H5public.h. But other software that uses hdf5 may also run their own configure. There can be a clash in macro name space. We decided awhile ago to prepend all generated macros with "H5_" to avoid conflicts. The process has started and this commit completes it (at least attempt to). Solution: Many macros symbols (e.g. SIZEOF_xxx and HAVE_xxx were changed to H5_SIZEOF_xxx and H5_HAVE_xxx). Then H5private.h no longer includes H5config.h. This cuts H5config.h away from HDF5 source code. Pending issues: The macro definitions (more like redefinitions) of potential keywords: const, off_t, size_t, and inline are not totally solved yet. The module of fortran and pablo are to be resolved in a different commit. Platforms tested: eirene (parallel), arabica (solaris 7 --enable-fortran, --enable-cxx)
* [svn-r4761] Purpose:Albert Cheng2001-12-311-1/+0
| | | | | | | | | | | | | | | | | | | | | Removing the DPSS (gridstorage) driver source code. (same as the v1.5) Description: The DPSS (using Grid-Storage) driver is retired. Removed the configure option with-gridstorage from configure.in. Cvs remove the following files ./src/H5FDdpss.c ./src/H5FDdpss.h ./test/dpss_read.c ./test/dpss_write.c Regenerated Dependencies files (some had to be hand-edited since 'make depend' did not cover them.) Removed reference to DPSS Virtual file driver from H5F.c. Platforms tested: modi4 (Parallel; -with-gass=...) eirene (pthread safe) arabica (fortran, cxx).
* [svn-r4360] Purpose:Quincey Koziol2001-08-151-52/+52
| | | | | | | | | | | | | | | | | | | | | | | | Code cleanup (sorta) Description: When the first versions of the HDF5 library were designed, I remembered vividly the difficulties of porting code from a 32-bit platform to a 16-bit platform and asked that people use intn & uintn instead of int & unsigned int, respectively. However, in hindsight, this was overkill and unnecessary since we weren't going to be porting the HDF5 library to 16-bit architectures. Currently, the extra uintn & intn typedefs are causing problems for users who'd like to include both the HDF5 and HDF4 header files in one source module (like Kent's h4toh5 library). (Merged from the same changes to development branch) Solution: Changed the uintn & intn's to unsigned and int's respectively. Platforms tested: FreeBSD 4.4 (hawkwind)
* [svn-r4309] Purpose:Quincey Koziol2001-08-021-1/+1
| | | | | | | | | | | | Bug fix Description: H5FD_fapl_copy is being called in H5Pset_driver when copying a dataset transfer property list instead of H5FD_dxpl_copy and could potentially cause problems if the file driver information was different. Solution: Changed call to H5FD_dxpl_copy() Platforms tested: FreeBSD 4.3 (hawkwind)
* [svn-r4287] Purpose:hdf5-1_4_2Quincey Koziol2001-07-311-2/+3
| | | | | | | | | | | Bug Fix Description: H5Pset_driver had a resource leak which was dropping dataset transfer IDs when switching drivers. Solution: Decrement dataset transfer ID reference count properly Platforms tested: IRIX64 6.5 (modi4)
* [svn-r4285] Purpose:Quincey Koziol2001-07-311-1/+1
| | | | | | | | | | | | Bug Fix Description: Header file is using incorrect macro for detecting parallel I/O when backward compability is turned on. Solution: Fix header files to define prototypes for parallel I/O property list functions when compiled with v1.2 backward compatibility turned on. Platforms tested: Eyeballed... (Elena will be testing shortly)
* [svn-r3994] Purpose:Quincey Koziol2001-06-111-1/+1
| | | | | | | | | | | | | Bug fix for Pablo integration Description: Several API functions were using FUNC_ENTER, without using FUNC_LEAVE, HRETURN or HRETURN_ERROR to leave the function. (Using "plain" 'return' statements instead). Solution: Changed return statements to FUNC_LEAVE, HRETURN or HRETURN_ERROR, as appropriate. Platforms tested: FreeBSD 4.3 (hawkwind)
* [svn-r3934] Purpose:Bill Wendling2001-05-151-21/+21
| | | | | | | | | | | | | | | | Code Update Description: Ported change from the 1.5 branch to the 1.4 branch where all HDF5 include files are in quotes instead of angle brackets: #include "hdf5_file.h" instead of #include <hdf5_file.h> Platforms tested: Linux
* [svn-r3676] Purpose:Albert Cheng2001-03-201-4/+0
| | | | | | | | | | | | | Bug fix (sort of) Description: The RCSID string in H5public.h was causing the C++ code problem as it was included multiple times and C++ did not like multiple definitions of the same static variable. Solution: Since we don't really make use of the RCSID strings as we have not installed it in all source files, we decided to remove it. Platforms tested: eirene (linux), modi4 (IRIX64-64) both serial and parallel modes.
* [svn-r3319] Purpose:HDF Rational2001-01-221-1/+5
| | | | | | | | | | | Bug Fix Description: Generic property code was leaking memory when removing a property from a property list class in certain situations. Solution: Remove property correctly from class in all situations. Platforms tested: Solaris 2.7 (arabica)
* [svn-r3268] Purpose:Quincey Koziol2001-01-111-4/+4
| | | | | | | | | | | Code cleanup for C++ Description: 'xor' is a keyword in C++, causing problems compiling the library with a C++ compiler. Solution: Change variables and structure fields from 'xor' to 'xor_val' Platforms tested: FreeBSD 4.2 (hawkwind)
* [svn-r3258] Snapshot version 1.4 release 0 (beta3-snap0)HDF Admin2001-01-101-2/+2
|
* [svn-r3252] Purpose:Quincey Koziol2001-01-091-7/+7
| | | | | | | | | | | | | Code cleanup. Description: Fixed _lots_ (I mean _tons_) of warnings spit out by the gcc with the extra warnings. Including a few show-stoppers for compression on IRIX machines. Solution: Changed lots of variables' types to more sensible and consistent types, more range-checking, more variable typecasts, etc. Platforms tested: FreeBSD 4.2 (hawkwind), IRIX64-64 (modi4)
* [svn-r3162] Purpose:Quincey Koziol2000-12-201-4/+0
| | | | | | | | | | | | | Bug Fix Description: If the library was compiled with 'NDEBUG' defined, but the user's program (the fortran API in this case) was compiled with 'NDEBUG' not defined, the IDs returned from the library would appear to be incorrect. Solution: Removed 'ifndef NDEBUG' from around "H5I_TEMPLAX_MAX" definition and error checking. Platforms tested: Linux 2.2 (eirene) & FreeBSD 4.2 (hawkwind)
* [svn-r3133] Purpose:Quincey Koziol2000-12-141-1/+3
| | | | | | | | | Bug fix Description: Set the background buffer type to different values for compound vs. vlen & array datatypes. Platforms tested: Cray J90 (killeen)
* [svn-r3010] Purpose:Quincey Koziol2000-11-281-9/+53
| | | | | | | | | | | | | | Bug fix Description: When the v1.2 compatibility code was turned on, internal functions in the library were getting confused. Solution: Separated guts of H5Pget_driver call into an API function (the definition of which depends on the compatibility switch) and an internal function which always behaves like the v1.3/4 function. Replaced API function calls in the library code with the internal function. Platforms tested: FreeBSD 4.2 (hawkwind)
* [svn-r3008] Purpose:Quincey Koziol2000-11-281-2/+2
| | | | | | | | | | | | | | Code cleanup Description: Several places in the code were using -2 as a default value for various features. However, when a default value is returned from a function that is supposed to return negative on failure, it was causing confusion and extra work for users to check for the special value. Solution: Replaced hard-coded -2 values in the code with symbolic names, then changed symbolic names to 0 instead of -2. Platforms tested: FreeBSD 4.2 (hawkwind)
* [svn-r3006] Purpose:Albert Cheng2000-11-281-2/+5
| | | | | | | | | | Bug fix Description: Fixed some typo that cause compiling errors in parallel mode. Also added a default case in the H5Pget_xfer code to catch potential future added data transfer mode. Platforms tested: IRIX64-64, parallel.
* [svn-r3005] Purpose:Quincey Koziol2000-11-271-26/+829
| | | | | | | | Backward compatibility code Description: Add in code to allow the library to emulate the v1.2 API and behavior. Platforms tested: FreeBSD 4.2 (hawkwind)
* [svn-r2954] Purpose:Quincey Koziol2000-11-161-55/+159
| | | | | | | | Code checkpoint Description: More generic property coding. Platforms tested: FreeBSD 4.1.1 (hawkwind)
* [svn-r2928] Purpose:Bill Wendling2000-11-151-2/+2
| | | | | | | | | | | Buglet fix Description: Get rid of compiler warnings. The HGOTO_RETURN was returning NULL when it should have returned FAIL. Solution: Swapped the two. Platforms tested: Linux
* [svn-r2911] Purpose:Quincey Koziol2000-11-151-6/+286
| | | | | | | | | | | | | Bug fix and code checkpoint Description: HP's compilers didn't seem to like comparing function pointers with '<' & '>', so I've changed how the function pointers are compared to aviod those operations. This should fix last night's daily test failures on opus and sangamon. Also, more code development for generic property lists. Platforms tested: FreeBSD 4.1.1 (hawkwind)
* [svn-r2909] Purpose:Quincey Koziol2000-11-151-18/+217
| | | | | | | | Code checkpoint Description: More generic property functionality added and debugged. Platforms tested: FreeBSD 4.1.1 (hawkwind)
* [svn-r2899] Purpose:Quincey Koziol2000-11-141-1/+399
| | | | | | | | Code development Description: Incrementally adding various generic property features. Platforms tested: FreeBSD 4.1.1 (hawkwind)
* [svn-r2892] Purpose:Quincey Koziol2000-11-141-33/+216
| | | | | | | | | Code development Description: Increment bug fixes and some new API functions to generic property list code. Platforms tested: FreeBSD 4.1.1 (hawkwind)
* [svn-r2874] Purpose:Quincey Koziol2000-11-131-13/+17
| | | | | | | | API cleanup Description: Tweaked some parts of the generic properties API to reduce warnings. Platforms tested: FreeBSD 4.1.1 (hawkwind) & SGI O2K (modi4)
* [svn-r2871] Purpose:Quincey Koziol2000-11-121-59/+350
| | | | | | | | | Code updates Description: Finished fleshing out code for generic properties, although they are not used anywhere in the library yet. Platforms tested: FreeBSD 4.1.1 (hawkwind)
* [svn-r2868] Purpose:Quincey Koziol2000-11-111-23/+46
| | | | | | | | | | Bug Fix Description: Generic property lists were leaking memory. Solution: Tied them into the regular cleanup code called at the library's termination Platforms tested: Solaris 2.6 (baldric) & FreeBSD 4.1.1 (hawkwind)
* [svn-r2859] ./hdf5/src/H5P.cRobb Matzke2000-11-101-2/+2
| | | | | | | | * 2000-11-10 Robb Matzke <matzke@llnl.gov> (H5P_copy) Changed `class' to `cls'. * 2000-11-10 Robb Matzke <matzke@llnl.gov> (H5P_close) Changed `class' to `cls'.
* [svn-r2652] Purpose:Quincey Koziol2000-10-101-18/+19
| | | | | | | | | | | | | | | Maintainance & performance enhancements Description: Re-arranged header files to protect private symbols better. Changed optimized regular hyperslab I/O to compute the offsets more efficiently from previous method of using matrix operations. Added sequential I/O operations at a more abstract level (at the same level as H5F_arr_read/write), to support the optimized hyperslab I/O. Platforms tested: Solaris 2.6 (baldric) & FreeBSD 4.1.1 (hawkwind)
* [svn-r2600] Purpose:Quincey Koziol2000-09-261-0/+84
| | | | | | | | | | | Implemented new feature Description: Added data sieve buffering code to raw I/O data path. This is enabled for all the VFL drivers except the mpio & core drivers. Also added two new API functions to control the sieve buffer size: H5Pset_sieve_buf_size() and H5Pget_sieve_buf_size(). Platforms tested: Solaris 2.6 (i.e. baldric)
* [svn-r2579] Purpose:Quincey Koziol2000-09-191-11/+12
| | | | | | Clean up small compiler warnings and add missing function prototypes. Platforms tested: FreeBSD 4.1
* [svn-r2519] Snapshot version 1.3 release 29Albert Cheng2000-09-061-0/+2
|
* [svn-r2509] Change code so that heap_size wasn't zero.Quincey Koziol2000-09-061-4/+2
|
* [svn-r2508] Purpose:Albert Cheng2000-09-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug fixes Description: All tests were core=dumping in IRIX64. The bug is in Generic property list creation in which malloc asked for 2*64-1 bytes due to coding bug. The object creation failed but the return code was not checked. Program eventually crashed. Solution: H5F.c: Check the return code from new file object creation and flag error accordingly. H5FL.c: H5FL_arr_free is a replacement for H5MM_xfree which accepts null value as a legal argument value. H5FL_arr_free assert on it. Since other parts of the code have been passing null value to H5MM_xfree, H5FL_arr_free must accept it too until all the calling routines are changed to not pass Null. H5P.c: some routine passes in 0 as the hashsize value which is uintn. The expression (hashsize-1) underflows to the largest unsigned int for some machines. Thus the calloc failed. Cast hashsize to unsigned int first (this assumes hashsize stays within the signed int data range. H5Smpio.c: Added the extra parameter because the H5FD_write has been redefined. Platforms tested: IRIX64 -64 and -n32
* [svn-r2493] Added a set/get pair of property modifiers to allows users to ↵Quincey Koziol2000-08-311-0/+82
| | | | | | | set/query the metadata allocation size for file access property lists. These are new API functions and should be documented for the next release.
* [svn-r2464] HGOTO_ERROR was returning NULL instead of FAIL. This was causing ↵Bill Wendling2000-08-041-14/+13
| | | | | | compiler warnings about "implicit cast of pointer to integer" things....
* [svn-r2444] Checkpoint the Generic Property implementation. It's not active ↵Quincey Koziol2000-07-251-321/+2451
| | | | | | yet, but it's close. This shouldn't interfere with other development work. (I think.. :-)
* [svn-r2262] * 2000-05-18Robb Matzke2000-05-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ** src/H5Tconv.c ** src/H5Tpkg.h ** src/H5Tpublic.h The H5T_conv_struct_opt() function had a design flaw -- it didn't keep information about the stride to use to step through the temporary/background-value buffer and thus nested invocations would clobber each other's temp buffers. This was fixed by splitting the `stride' argument into `buf_stride' and `bkg_stride' arguments for all the conversion functions. THIS IS AN API CHANGE, but users will get a compiler warning when they pass their conversion function pointer to H5Tregister(). ** src/H5T.c ** src/H5Tprivate.h Added a bkg_stride argument to the H5T_convert() definition in order to fix a bug related to the optimized compound datatype conversion function. ** src/H5T.c ** src/H5A.c ** src/H5D.c ** src/H5Ofill.c ** src/H5P.c Added bkg_stride=0 argument to the H5T_convert() calls. ** test/dtypes.c Added a test for the H5T_conv_struct_opt() bug fixed above. ** src/H5FL.c The H5FL_term() function should return non-zero even when it couldn't free all the free lists do to their being used by some other package. When that other package terminates it will return non-zero, causing H5FL_term() to be called again. This fixes some of the `infinite loop closing library' messages. ** tools/pdb2hdf Uses print_version() instead of doing that itself. ** src/H5Ppublic.h Renamed H5Pget_gc_reference() declaration to make it match the definition. ** src/H5FDlog.c Added API tracing macros. Removed `const' qualifier from a `char*' member of a struct which was allocated on the heap. ** src/H5TB.c Added curly braces to a couple deeply-nested `if' statements to make them clearer and to shut up the increadibly stupid and just plain incorrect gcc warning about ambiguous `else'. ** test/titerate.c Removed incomplete initialization in favor of memset() for one auto variable to stop compiler warnings. ** tools/Depencencies Regenerated to remove references to h5dumputil.c
* [svn-r2259] Elena Pourmal2000-05-171-4/+4
| | | | Fixed a typo in the H5Pget_gc_references function name (was H5Pget_gc_reference).
* [svn-r2172] Fixed a few typos in FUNC_ENTER macros and return types that ↵Quincey Koziol2000-04-211-10/+10
| | | | Binh-Minh found.
* [svn-r2162] Various small fixes to address SGI compiler warnings.Quincey Koziol2000-04-191-5/+1
|
* [svn-r2151] Modified H5_term_library to not reported errors when ↵Quincey Koziol2000-04-151-240/+211
| | | | | | | | H5Eset_auto(NULL,NULL) has turned off error reporting in the library. Also, changed the way property lists are managed and closed so that they can be automatically closed when the library terminates.
* [svn-r2073] Added free-list code to the library and took out the older ↵Quincey Koziol2000-04-041-140/+176
| | | | | | | "temporary buffer" code, since the functionality was superceded. See the followup document for details on the free-list code.