Commit Graph

1191 Commits

Author SHA1 Message Date
Bill Wendling
1fdcafdc89 [svn-r4022] Purpose:
Code Cleanup
Description:
    Changed POSIX function calls to the HD* way of doing things. Checked
    with checkposix and tested on Linux.
Platforms tested:
    Linux
2001-06-19 16:49:01 -05:00
Bill Wendling
09676ded1f [svn-r4021] Purpose:
Remove my fix...
Description:
    Quincey already put a fix up for the bug I fixed before I could put
    up my fix for the bug. So I'm retracting my fix.
2001-06-19 14:01:49 -05:00
Bill Wendling
0b008afcb4 [svn-r4020] Purpose:
Bug Fix
Description:
    On some platforms, long long is printed with the "ll" modifier.
    HDfprintf didn't handle this case.
Solution:
    Added code which checks if there's an "ll" modifier on the template.
    If so, then it uses that as the modifier.
Platforms tested:
    Kelgia and Dangermouse
2001-06-19 13:59:24 -05:00
Quincey Koziol
fd78a6021d [svn-r4019] Purpose:
Bug fix
Description:
    'll' type description wasn't being handled correctly in HDfprintf, causing
    testing failures.
Solution:
    Added tests for 'll' to HDfprintf's type description parsing.
Platforms tested:
    Solaris 2.7 (arabica)
2001-06-19 13:45:42 -05:00
Quincey Koziol
7c8d702003 [svn-r4018] Purpose:
Code cleanup
Description:
    Removed some more warnings during compilation on SGI machines..
Platforms tested:
    Irix64-6.5 (modi4)
2001-06-19 12:35:45 -05:00
Quincey Koziol
fbc0f37dc5 [svn-r4017] Purpose:
Code cleanup
Description:
    Several system header files needed to be included on Linux machines to
    get the prototypes for some of the system calls we are using.
Solution:
    Added a new feature test macro for including the <features.h>
    header on Linux machines, to set up compile macros for system header
    files.
Platforms tested:
    Linux (eirene), FreeBSD 4.3 (hawkwind)
2001-06-19 11:21:35 -05:00
Quincey Koziol
0a063ad481 [svn-r4014] Purpose:
Bug Fix
Description:
    HDfprintf wasn't aware of 'L' type modifier and was passing along the
    '%Ld' verbatim instead of printing a long long integer value.
Solution:
    Added 'L' to the type modifiers checked in HDfprintf
Platforms tested:
    Linux (eirene)
2001-06-19 09:01:09 -05:00
Bill Wendling
52ac5273d5 [svn-r4013] Purpose:
POSIX Removal
Description:
    Removed calls to POSIX functions and replaced them with the HD*
    equivalents.
Solution:
    Did just that. Also had to create two new HD* macros, the
    gettimeofday() and getrusage()
Platforms tested:
    Linux
2001-06-18 18:15:53 -05:00
Quincey Koziol
d41b9fffdf [svn-r4012] Purpose:
Clean up compiler warnings.
Description:
    Just code neatening mostly, some casts, etc.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-06-18 15:22:10 -05:00
Quincey Koziol
fcaf572430 [svn-r4011] Purpose:
Code fix
Description:
    Unresolved references to the image code were left behind when it was removed
    from the library..
Solution:
    Finished taking out the image stuff...
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-06-16 12:08:20 -05:00
Quincey Koziol
7a50d82277 [svn-r4010] Purpose:
Bug Fix
Description:
    uint64_t type was accidentally taken out and was causing tests on DEC
    UNIX to fail.
Solution:
    Brought back uint64_t type.
    Also cleaned up some comments and moved the sec2 specific macros back
    into the sec2 (and log) driver.
Platforms tested:
    DEC UNIX (gondolin)
2001-06-15 23:27:11 -05:00
Pedro Vicente Nunes
4f40cff729 [svn-r4008] remove image and lite 2001-06-15 13:53:49 -05:00
Quincey Koziol
4d9cce57b4 [svn-r4002] Purpose:
Bug fix/code improvement.
Description:
    'all' selections were (ab)using the array reading code and required that
    the internal data transfer buffer size be big enough to hold the an entire
    slab of the data, which was confusing and limiting for users.
Solution:
    Changed 'all' selections to use sequence reading code instead of array
    reading code.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-06-14 15:11:19 -05:00
Quincey Koziol
3627838234 [svn-r3998] Purpose:
Code cleanup
Description:
    float32 & float64 typedefs are not used in HDF5 library and are causing
    conflicts with Kent's h4toh5 library code.
Solution:
    Take the float32 & float64 typedefs out
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-06-12 13:54:04 -05:00
Pedro Vicente Nunes
f5a747cc9f [svn-r3995] no message 2001-06-11 22:30:02 -05:00
Quincey Koziol
4d245ec856 [svn-r3993] Purpose:
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)
2001-06-11 17:35:08 -05:00
Quincey Koziol
bea931d73c [svn-r3983] Purpose:
Code cleanups
Description:
    Fixed a small number of warnings and also took out the H5private.h
    header from H5Ppublic.h
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-06-11 14:53:30 -05:00
Pedro Vicente Nunes
d9348f3763 [svn-r3981] no message 2001-06-11 10:22:28 -05:00
Pedro Vicente Nunes
0aa301010a [svn-r3980] property list modification for image and palette 2001-06-09 00:05:30 -05:00
Pedro Vicente Nunes
30772152e2 [svn-r3977] image 2001-06-08 22:54:37 -05:00
Pedro Vicente Nunes
73b637bcf3 [svn-r3976] modified lite files 2001-06-08 22:49:38 -05:00
Pedro Vicente Nunes
504bc34f60 [svn-r3974] code warrior port 2001-06-07 11:03:02 -05:00
Pedro Vicente Nunes
c8acfbbc75 [svn-r3972] my first HDF5 library commit 2001-06-06 17:40:32 -05:00
Pedro Vicente Nunes
0cab1628f5 [svn-r3971] my first hdf5 library contribution 2001-06-06 17:19:52 -05:00
Pedro Vicente Nunes
bdac44941a [svn-r3970] my first hdf5 library contribution 2001-06-06 16:14:06 -05:00
Quincey Koziol
df707fb967 [svn-r3963] Purpose:
Small code addition
Description:
    Addition logging of seeks during read operations (writes were already
    logging seeks).  Also added a few asserts to check memory allocations...
Platforms tested:
    Solaris 2.6 (baldric)
2001-06-05 18:02:03 -05:00
Albert Cheng
88b91373d6 [svn-r3955] Purpose:
Bug fix
Description:
    This file is not C++ friendly/compliant because the protocols
    are not bracketed by the #ifdef __cplusplus macro.  This was
    discovered by a user attempting to use C++ with enable-parallel.
Solution:
    Though we are not supporting C++ in parallel mode yet, it is
    simple to add the macro bracket.  It would help if C++ is supported
    in the future.
Platforms tested:
    modi4 (64,n32) and eirene (mpich).
2001-06-01 11:18:01 -05:00
Bill Wendling
1c61d72cf1 [svn-r3946] Purpose:
Code Simplification
Description:
    H5Pget_class() was being called from the H5.c module. Changed it so
    that it calls H5P_get_class() instead. Also, the H5Pget_class() and
    H5P_get_class() functions were identical. Changed so that
    H5Pget_class() calls H5P_get_class().
Platforms tested:
    Linux
2001-05-29 10:53:25 -05:00
Albert Cheng
5d1278c077 [svn-r3939] Snapshot version 1.5 release 6
(Somehow snapshot did not commit these files in the last release.)
2001-05-24 22:15:03 -05:00
HDF Admin
408161748f [svn-r3925] Snapshot version 1.5 release 5 2001-05-12 22:34:19 -05:00
Albert Cheng
d3764cd73d [svn-r3916] Purpose:
New feature
Description:
    Added verification of H5_VERS_INFO in H5check_version().
Platforms tested:
    Eirene (linux).
2001-05-12 12:33:27 -05:00
Bill Wendling
09d2a0e719 [svn-r3914] Purpose:
Replace Kludge with Another Kludge
Description:
    The MPI_Get_count function isn't found on most systems. We need to
    replace this with a configure call which checks and defines the macro
    H5_HAVE_MPI_GET_COUNT or something.
Solution:
    If-def'ed out the code for everyone (since H5_HAVE_MPI_GET_COUNT is
    never defined anywhere).
Platforms tested:
    SDSC HP N9000
2001-05-11 17:23:58 -05:00
Albert Cheng
aca9a213a9 [svn-r3911] Purpose:
Cosmetic adjustment
Description:
    Changed Version information from just "HDF5 version ..."
    to "HDF5 library version" since this is really about a
    library implementation.
Platforms tested:
    eirene (used "h5vers -s ..." to see the effect.)
2001-05-11 09:08:27 -05:00
Robb Matzke
67cad00a75 [svn-r3897] ./hdf5/src/H5public.h
Implemented the string version number stuff for Albert.
2001-05-09 16:24:18 Robb Matzke  <matzke@llnl.gov>
	*: Added definition for H5_VERS_INFO, which is a string
	   representation of the hdf5 version number.
2001-05-09 15:34:38 -05:00
Bill Wendling
93129f271e [svn-r3892] Purpose:
Better Mouse Trap^W^WBug Fix
Description:
    Instead of having the large file support stuff be in the
    config/gnu-flags directory, I added it to the configure.in file so
    that it first checks for the syscall ``getdents64()''. If it finds
    it, then it removes the ``-malign-double'' flag if the GCC compiler
    is 2.95.x since this flag doesn't play well with the LFS stuff.
Solution:
    Added test for getdents64(), if found it removes the -malign-double
    flag if the compiler is 2.95.x. This is done in the configure.in
    file. The gnu-flags file is returned to normal. A new field is added
    to the H5config.h.in file because of the getdents64 check.
Platforms tested:
    Linux
2001-05-08 13:42:42 -05:00
HDF Admin
ee5b6b12af [svn-r3889] Snapshot version 1.5 release 4 2001-05-05 22:33:45 -05:00
Quincey Koziol
076efa3382 [svn-r3885] Purpose:
Document bug fix
Description:
    IMPORTANT! IMPORTANT! IMPORTANT!
    A case where metadata in a file could get corrupted in certain unusual
    sitations was detected and fixed.

    In certain circumstances, metadata could get cached in the raw data cache,
    and if that particular piece of metadata was updated on disk while
    incorrectly cached, the new metadata would get overwritten with the stale
    metadata from the raw data cache when it was flushed out.

    Additionally, I've patched up the raw data cache to be smarter about how
    much it caches and how much I/O it triggers, leading to some speedups.

Solution:
    Changed the raw data I/O routines which perform caching to require a
    parameter with the size of the dataset being accessed and limited the
    cache to no more than that many bytes.

Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-05-02 10:04:55 -05:00
Albert Cheng
570a182e6d [svn-r3881] Purpose:
Feature
Description:
    The allocation by alignment (H5Pset_alignment) feature code somehow
    got dropped in some 1.3.x version.
Solution:
    Re-implemented it with "new and improved" algorithm.  It keeps track
    of "wasted" file-fragment in the free-list too.
Platforms tested:
    modi4(parallel).
2001-05-01 14:07:47 -05:00
Bill Wendling
119f3f86f9 [svn-r3877] Purpose:
Update
Description:
    On further discussion with Albert and Quncey, it was decided to keep
    the original "unsignedness" of the nkeys variable.
Solution:
    Changed the type from intn to uintn.
Platforms tested:
    Linux
2001-04-30 17:27:44 -05:00
Bill Wendling
9e9c406eff [svn-r3875] Purpose:
Bug Fix
Description:
    The --enable-static-exec flag was failing on Linux systems. The
    reason: a "long long" type was growing by some obscene amount if you
    just add 1 to it (tis truth!). In one statement, it prints out the
    correct value. Add one to it and print it out in the next statement
    and it gives you a very large number. This would, in turn, cause the
    resulting memcpy to fail...
Solution:
    Changed the variable from "hsize_t" to "intn" which is what the field
    it's getting is typed anyway.
Platforms tested:
    Linux
2001-04-30 14:57:18 -05:00
Quincey Koziol
298276970f [svn-r3832] Purpose:
Bug Fix.
Description:
    Setting a non-zero userblock size was causing raw data caching code to
    break.
Solution:
    Changed from using absolute end-of-address-space offsets in cache size
    calculations to relative offsets.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-04-23 15:04:30 -05:00
Quincey Koziol
e0c96798a5 [svn-r3828] Purpose:
Code cleanup
Description:
    "buf" parameter to H5Awrite was missing 'const' declaration.
Solution:
    Changed from "void *buf" to "const void *buf"
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-04-19 16:48:04 -05:00
MuQun Yang
209dfbd01c [svn-r3799]
Purpose:
     a bug fix
Description:
     forget considering daylight factor for mtime test on windows platform
Solution:
    adding daylight factor in this file
Platforms tested:
    windows 2000, confirmed at eirene
2001-04-11 17:12:22 -05:00
HDF Admin
b32b617837 [svn-r3791] Snapshot version 1.5 release 3 2001-04-07 22:29:24 -05:00
Bill Wendling
5e483d0184 [svn-r3781] Purpose:
Update
Description:
    Changed

        #include <hdf_file.h>

    construct to

        #include "hdf_file.h"

    so that the GNU compiler can more easily pick up the dependencies
    which it places in the .depend and Dependencies files. Also
    regenerated the Dependencies to go along with this.
Platforms tested:
    Linux
2001-04-05 12:29:14 -05:00
HDF Admin
627c7866a1 [svn-r3776] Snapshot version 1.5 release 2 2001-04-04 22:31:40 -05:00
Quincey Koziol
9d597efc99 [svn-r3743] Purpose:
Code cleanup
Description:
    Defined snprintf macro for non-UNIX platform which needed tweak.
Solution:
    Added extra ifdef around snprintf macro to accomodate platform.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-03-31 22:22:48 -05:00
Quincey Koziol
1e38134185 [svn-r3742] Purpose:
Code cleanup
Description:
    ssize_t is not defined on certain (non-UNIX) platforms.
Solution:
    Added steps to configure to generate SIZEOF_SSIZE_T macro and then used
    the new macro to define ssize_t for platforms which don't have it.
Platforms tested:
    FreeBSD 4.3 (hawkwind)
2001-03-31 22:18:01 -05:00
Albert Cheng
6801f8f4c6 [svn-r3741] Purpose:
Improvment
Description:
    H5config.h and H5pubconf.h are generated by configure.  It does
    not have the #ifndef _H5config_H ... #endif guard to prevent
    duplicated definitions if it is included more than once.
    It is messy to try make configure to put in those guards.
Solution:
    HDF5 has set an internal rule that H5public.h includes H5pubconf.h
    and H5private.h includes H5config.h.  Source files should NOT include
    H5config.h or H5pubconf.h directly but include it via H5public.h or
    H5private.h respectively.   The #ifndef ... #endif in the H5public.h
    and H5private.h would prevent repeated definitions from repeated
    include.

    Adjusted H5FDstream.c and H5FDstream.h to follow this rule.
Platforms tested:
    modi4, eirene.
2001-03-31 16:57:04 -05:00
Quincey Koziol
2c97458017 [svn-r3678] Testing commit from Windows CVS client - cleaned up some tabs in this
file.
2001-03-21 09:54:14 -05:00