Commit Graph

2349 Commits

Author SHA1 Message Date
Thomas Radke
9c93282d1b [svn-r2749]
Purpose:
    Set compiler flag to force BSD compliance.
Description:
    In order to set a socket descriptor into non-blocking mode
    via ioctl(2) the Stream driver uses the FIONBIO constant.
    Under Solaris this is defined only when compiled as BSD code.
    I hope this doesn't break anything.
Platforms tested:
    Solaris 5.7
2000-10-28 14:07:32 -05:00
Thomas Radke
66bd4aac55 [svn-r2748]
Purpose:
    Detect whether the system has the netinet/tcp.h header file.
Description:
    The Stream VFD uses setsockopt(2) to set TCP_NODELAY on an opened
    socket. This constant is defined normally in netinet/tcp.h
    except for GNU cc under Windows where this header doesn't exist.
    This template header file just contains the
      #undef HAVE_NETINET_TCP_H
Platforms tested:
    Windows NT, GNU cc
2000-10-28 14:02:06 -05:00
Thomas Radke
a79dc754b8 [svn-r2747]
Purpose:
    Detect whether the system has the netinet/tcp.h header file.
Description:
    The Stream VFD uses setsockopt(2) to set TCP_NODELAY on an opened
    socket. This constant is defined normally in netinet/tcp.h
    except for GNU cc under Windows where this header doesn't exist.
Platforms tested:
    Windows NT, GNU cc
2000-10-28 13:59:32 -05:00
Thomas Radke
f39c5d7985 [svn-r2746]
Purpose:
    Port to Windows platform
    Bug fix
Description:
    The Stream VFD is ported to Windows now.
    Also fixed a bug where an application terminated when it got a SIGPIPE
    due to sending/receiving on a closed socket.
Solution:
    The socket stuff is treated different under Windows when using
    the MS compilers to build HDF5. They define their own socket datatype
    and have closesocket() instead of close(2) to close sockets.
    Also there are different header files for all the socket stuff.

    So I introduced my own socket decriptor datatype in H5FDstream.h
    which should be used to pass in external sockets. This datatype
    is mapped to either 'int' (UNIX-type sockets) or 'SOCKET' (Windows).
    In the code the error code checking was adapted according to the
    socket datatype used. Also, for Windows you have to call a routine
    to initialize the Socket layer before using it.

    As a kind of bug fix, the process signal mask is now set to ignore
    SIGPIPE signals which otherwise cause the application to terminate.
    The driver read/write routines catch this and return an error code.

Platforms tested:
    Windows NT, both with MS Visual C++ compiler and with GNU cc

    It is interesting that when compiling with GNU cc under Windows
    it is possible to use both Windows and UNIX-type sockets (either
    one or the other). So I check for GNU cc and go for UNIX sockets
    if possible.
2000-10-28 13:51:03 -05:00
Bill Wendling
78365de55f [svn-r2745] Purpose:
Bug fix...I hope
Description:
	For some reason, libtool wasn't generating a .lai library file in
	the .libs directory. It needs this to install things, apparently.
Solution:
	Major hack! I force a ln to the "real" one libtools wants.
Platforms tested:
	Modi4
2000-10-27 16:54:54 -05:00
Quincey Koziol
592f0fc876 [svn-r2744] Purpose:
Bug fix
Description:
    Forgot to decrement the number of objects in the group when removing
    each one...
Solution:
    Decrement the ID count when successfully removing each object from a
    group.
Platforms tested:
    None yet.
2000-10-27 15:00:02 -05:00
Quincey Koziol
246b9fff37 [svn-r2743] Purpose:
Bug fix
Description:
    Fixed a very subtle bug that was corrupting the objects in a group when
    H5I_clear_group was called and not all the objects in the group were able
    to be cleared.
Solution:
    Track whether an object as been deleted from each hash location's linked
    list and only destroy the list when all the objects on the list are
    actually removed.
Platforms tested:
    None yet.
2000-10-27 14:56:44 -05:00
Bill Wendling
c8ac881942 [svn-r2742] Forgot some < and >'s. 2000-10-27 11:00:29 -05:00
Bill Wendling
c5509bd820 [svn-r2741] Purpose:
Added ThreadSafe.html document to MANIFEST.
2000-10-27 10:59:34 -05:00
Bill Wendling
4dee0b2ace [svn-r2740] Purpose:
Documentation of TS Library
Description:
	This is the document Chee Wai wrote up about the thread safe
	version of the HDF5 library. I just put it in HTML format and
	checked it in...
Platforms tested:
	Netscrape
2000-10-27 10:58:29 -05:00
Elena Pourmal
9fe247782e [svn-r2739]
Purpose:
    Maintenancece.
Description:
    F90 APIs would not compile anymore for || version..
Solution:
    Replaced old functions h5pset(get)_mpio, h5set(get)_xfer with
    ones h5pset(get)_fapl_m and h5pset(get)_dxpl_mpio_f

Platforms tested:
    O2K.
2000-10-26 16:45:53 -05:00
Bill Wendling
bf78260a06 [svn-r2738] Purpose:
Bug Fix
Description:
	People need to type in the full-path to the
	attribute/dataset/etc. and weren't being told to do so by the
	"usage" statement.
Solution:
	Added an example and changed <names> to <path> to be more
	explicit...
2000-10-25 14:25:55 -05:00
Bill Wendling
47c0884e1f [svn-r2737] Purpose:
Feature
Description:
	Allow dumping of variable length records. This is a first-time
	stab at this. It doesn't break any tests on my Linux box and it
	does output the variable length data, but it might look ugly (it
	doesn't handle new-lines as of yet)...I'm open to suggestions on
	what should be done next, what new features to add/remove...
Platforms tested:
	Linux
2000-10-25 14:07:05 -05:00
Quincey Koziol
057cbbf96c [svn-r2736] Purpose:
Code optimization
Description:
    Minor tweaks throughout the optimized regular hyperslab code to increase
    speed.  This set of improvements increase the benchmark time from taking
    ~5.46 seconds to ~4.50 seconds, or around a 20% further speedup.
Platforms tested:
    Solaris 2.6 (baldric)
2000-10-25 13:54:24 -05:00
Albert Cheng
a224c0b56d [svn-r2735] Purpose:
Bug fix
Description:
    Recent changes to H5FD_read() added a new argument of type of
    data to be written but the MPIO file driver call to H5FD_read()
    was not updated.  Also, the prototype of H5FD_read() in H5Fprivate.h
    was "screened out", thus the compiler could not detect the inconsistency.
    With the mismatched arguments, MPIO failed badly.
Solution:
    Update the H5FD_read() call with the new parameter.  Since the
    call is used by H5Dread call so far, it is hardcoded to use
    H5FD_MEM_DRAW as the value.  If the call is used besides for
    H5Dread, this parameter needs to be better defined.
    (Still need to fix the prototype being blocked off.)
Platforms tested:
    O2K -64 parallel.
2000-10-25 00:54:05 -05:00
Albert Cheng
25886a7bba [svn-r2734] updated. 2000-10-24 17:09:46 -05:00
Albert Cheng
136fbe5335 [svn-r2733] Purpose:
New tests
Description:
    Added a new test file (tsaf.h5) for h5dump and h5ls.  The test file was
    created by lib SAF team.  This file used to cause previous version
    of hdf5 tools to core dump.
    tsaf.ddl is the expected output from h5dump.
Platforms tested:
    IRIX64 -64, linux
2000-10-24 17:07:09 -05:00
Albert Cheng
2f3e8498cb [svn-r2732] Purpose:
New tests
Description:
    Added a new test file (tsaf.h5) for h5dump and h5ls.  The test file was
    created by lib SAF team.  This file used to cause previous version
    of hdf5 tools to core dump.
Platforms tested:
    IRIX64 -64, linux
2000-10-24 17:06:39 -05:00
Bill Wendling
22feb1e946 [svn-r2731] Purpose:
Bug Fix
Description:
	make distclean left *.{o,lo,h5} files in the directory.
Solution:
	Added them to the DISTCLEAN macro.
2000-10-24 16:15:17 -05:00
Elena Pourmal
7e1be524fa [svn-r2730]
Purpose:
    Bug fix.
Description:
    fortranlib_test.f90 had a typo in the format string. Would not compile on O2K.
    Test did not check the length of the attribute name.
Solution:
    Fixed format strings.
    Added more code to test returned attribute name length.
Platforms tested:
    O2K, Linux
2000-10-24 15:56:04 -05:00
Elena Pourmal
ac1c247452 [svn-r2729]
Purpose:
    Bug fix
Description:
    Attribute test failed on O2K. h5aget_name_f function could not
    return correct attribute name.
Solution:
    size function parameter had wrong datatype in F90 subroutine.
    Fixed it to be of INTEGER(SIZE_T) type.
Platforms tested:
    O2K, Linux
2000-10-24 15:52:00 -05:00
Bill Wendling
5b442958f8 [svn-r2728] Purpose:
Bug Fix
Description:
	Getting messages while compiling the || fortran stuff that it
	didn't have a rule to make "H5Pf_parallel.c".
Solution:
	The quotes were confusing it. I placed the text in another macro
	to fix this.
Platforms tested:
	Modi4
2000-10-24 15:04:25 -05:00
Raymond Lu
81ca5616ba [svn-r2727]
Purpose:
    This file describes the experiencing of OpenMP with hdf5.
Description:
    All detailed description is in the file.
Solution:
    [details about the changes, algorithm, etc...]
    [Please as detail as you can since your own explanation is
    better than others guessing it from the code.]
Platforms tested:
    Everything was done on modi4.
2000-10-24 14:24:22 -05:00
Albert Cheng
3c1dc022c6 [svn-r2726] Updated.
Platforms tested:
    eirene via bin/chkmanifest
2000-10-24 14:01:25 -05:00
Albert Cheng
493f90f74a [svn-r2725] Purpose:
Bug fix.
Description:
    Could not find the pre-created file for the H5S_MAX_RANK test
    when --srcdir option is used.  testhdf5 was looking for it
    in the currect directory only.
Solution:
    Make use of the value of the environment variable srcdir that
    is passed to the tests.  Compose the real location of the testfile
    in order to open it even from a remote build directory.
Platforms tested:
    Modi4, arabica, eirene
2000-10-24 13:58:31 -05:00
Albert Cheng
810d2979cc [svn-r2724] Purpose:
new feature
Description:
    h5ls was not tested
Solution:
    Added a test script, testh5ls.sh, to give h5ls some tests.
    Since the output from h5ls is sometime machine dependent (e.g.,
    Datatypes), can not compare them with expected output.  For now,
    run it against various hdf5 binary files.  If it exits with 0,
    consider it passes.
Platforms tested:
    IRIX64, eirene, arabica.
2000-10-24 13:31:49 -05:00
Albert Cheng
7b7a34b33d [svn-r2723] Purpose:
tidy it up
Description:
    Change the variable names so that it looks more generic.  Plan to
    make it a generic script test template.
Platforms tested:
    IRIX64-64, linux, solaris 2.7
2000-10-24 13:28:54 -05:00
Quincey Koziol
6aa0dd1620 [svn-r2722] Purpose:
Feature symmetry
Description:
    A while ago I needed to get the 'type' of data being accessed during writes
    to the VFL driver, so I put in code to get the information down there.
    Albert asked for the same information during reads, so I've added that in.
Tested:
    FreeBSD 4.1.1 (hawkwind)
2000-10-24 13:18:09 -05:00
Quincey Koziol
ad0bc26604 [svn-r2721] Purpose:
Feature symmetry
Description:
    A while ago I needed to get the 'type' of data being accessed during writes
    to the VFL driver, so I put in code to get the information down there.
    Albert asked for the same information during reads, so I've added that in.
Tested:
    Netscape
2000-10-24 13:17:24 -05:00
Quincey Koziol
3bb2d5fca2 [svn-r2720] Purpose:
Update release notes for VFL updates.
2000-10-24 13:15:44 -05:00
Bill Wendling
af17e1ee3f [svn-r2719] Purpose:
Bug fix
Description:
	During a `reconfigure', it wasn't traversing the
	subdirectories...
Solution:
	Added a loop to the reconfigure logic to do just that.
Platforms tested:
	NOT tested...
2000-10-23 17:58:09 -05:00
Quincey Koziol
51ba7ad48c [svn-r2717] Purpose:
Change test files for increased maximum dimension constant.

Description:
    space_overflow.c - added some simple error checking.

    th5s.c - corrected test case for maximem dimensions to use correct file
        and actually test what is supposed to be tested... :-)

    th5s.h5 - regenerated with increased dimensions.

Platforms Tested:
    FreeBSD 4.1.1 (hawkwind)
    Solaris 2.5 (baldric)
2000-10-20 15:57:56 -05:00
Quincey Koziol
904ade0c86 [svn-r2716] Purpose:
Increase constant for H5S_MAX_RANK from 31 -> 32
Description:
    To better align the HDF5 library's maximum dimenions with HDF4 and netCDF,
    the maximum number of dimensions has been increased to 32.
Platforms Tested:
    FreeBSD 4.1.1 (hawkwind)
    Solaris 2.5 (baldric)
2000-10-20 15:55:12 -05:00
Quincey Koziol
1f53e2708c [svn-r2715] Purpose:
Document changing the maximum number of dimensions from 31 -> 32
2000-10-20 15:53:39 -05:00
Elena Pourmal
00ca91129d [svn-r2714]
Purpose:
    Added more Fortran tests
Description:
    tH5A.f90 - attribute interface test
    tH5I.f90 - identifier interface test
Solution:
    Two new files were added to test H5A and H5I interfaces.
Platforms tested:
    Solaris 2.7, Linux
2000-10-20 15:51:49 -05:00
Elena Pourmal
b1c8d95cdd [svn-r2713]
Purpose:
    H5Aff.f90: Bug fix
Description:
    Character string was not passed correctly from the user's application
    to the write/read subroutines when buffer was decalred as assumed-shape
    array.
Solution:
    Declared date buffer to be assumed-size array.
Platforms tested:
    Solaris 2.7, Linux

Purpose:
    H5fortran_flags.f90: Bug fix

Description:
    Fortran H5I_* types had incorrect values.
Solution:
    Fixed.
Platforms tested:
    Solaris 2.7, Linux
2000-10-20 15:49:32 -05:00
Quincey Koziol
79d1d8258f [svn-r2711] Purpose:
Bug fix.
Description:
    When the maximum number of elements in a fixed size, free-list managed array
    was allocated, the free-list code was writing off the end of the array.
Solution:
    Changed definition of free-list managed arrays to allocate correct space for
    the array.
Platforms tested:
    Solaris 2.5 (baldric) w/Purify
2000-10-20 15:34:16 -05:00
Albert Cheng
b3e4cd6e97 [svn-r2710] Purpose:
Features, kind of.
Description:
    Separated the MPI features test into its own independent
    program so that it can be tested on its own without too
    much HDF5 stuff involved.
    Added automatic removal of temporary test files after
    the tests completed.
    Reduced the size of the dataset dimensions to avoid tripping
    the SGI MPI problems of running out of internal mpi type entries.
Platforms tested:
    O2K -64
2000-10-20 01:19:21 -05:00
Quincey Koziol
114ac60d1b [svn-r2708] Purpose:
Add test case for contiguous hyperslabs.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-10-19 15:53:07 -05:00
Quincey Koziol
25f38a9bd4 [svn-r2707] Purpose:
Optimization for parallel I/O
Description:
    When contiugous hyperslabs are defined (i.e. with the block=stride), the
    library was only aggregating the hyperslabs together for the fastest
    changing dimension.
Solution:
    Add some extra code to detect when contiguous hyperslabs span more than one
    row and output the entire contiguous section at once.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-10-19 15:52:29 -05:00
Bill Wendling
f93882b90a [svn-r2706] Purpose:
Bug Fix
Description:
	the line:

#include <hdf5.h>

	needed to be escaped to be seen in the browser.
Solution:
	Changed to:
#include &lt;hdf5.h&gt;
Platforms tested:
	Seen in Netscrape
2000-10-19 14:10:14 -05:00
Bill Wendling
de64fa4685 [svn-r2704] Purpose:
Bug Fix
Description:
	Sed was complaining about "filename expected" when trying to
	generate the .in files. The problem stemmed from the script sed
	was generating in the conftest.s1 file. It needed the DEPEND
	filename which wasn't being set.
Solution:
	Fixed so that we check if DEPEND is zero before trying to set if
	(if not using a GNU make program) instead of testing if DEPEND
	has a value in it...I copied this incorrectly from the main
	library's configure.in file...my bad.
Platforms tested:
	T3E
2000-10-19 12:55:13 -05:00
Frank Baker
ebc3e8a26e [svn-r2703] Purpose:
Adding new document links
Description:
    Adding links to TechNotes/VFL.html and TechNotes/VFLfunc.html,
    the new virtual file layer documents.
Platforms tested:
    IE 5
2000-10-19 12:47:37 -05:00
Quincey Koziol
4ba8f63b57 [svn-r2702] Purpose:
Code cleanup
Description:
    There's been a compiler warning about modifying a 'const' object in the
    H5T_copy routine for several years now, which a few users have reported.
Solution:
    Removed call to sort the old datatype (the const object) and changed the
    code to work with unsorted datatypes.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-10-19 12:41:30 -05:00
Frank Baker
76443fe477 [svn-r2701] Purpose:
Adding new document
Description:
    Adding VFLfunc.html, a list of VFL functions, to HDF5 Technical Notes.
Platforms tested:
    IE 5
2000-10-19 12:20:40 -05:00
Frank Baker
82725e62af [svn-r2700] Description:
Adding .../doc/html/TechNotes/VFLfunc.html
2000-10-19 12:17:47 -05:00
Quincey Koziol
95445613ca [svn-r2699] Purpose:
Bug fix
Description:
    "Time" datatypes (H5T_UNIX_D*) were not being stored and retrieved in
    the datatype object header message correctly.
Solution:
    Store endian-ness and precision in the datatype object header message and
    added test to continue to track them working correctly.

    This fixes bug #512.

Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-10-19 11:42:33 -05:00
Frank Baker
e5c6170754 [svn-r2698] Description:
Adding .../doc/html/TechNotes/VFL.html
2000-10-18 17:45:32 -05:00
Frank Baker
af464b49c3 [svn-r2697] Purpose:
Adding new document
Description:
    Adding VFL.html (Virtual File Layer) to HDF5 Technical Notes.
    August 1999 version.  Will be updated for R1.4 by developer.
Platforms tested:
    IE 5
2000-10-18 17:43:50 -05:00
Bill Wendling
a2e49651af [svn-r2696] Purpose:
Bug Fix
Description:
	On some platforms, if you don't have . in your PATH, it won't
	find the test program it's supposed to run.
Solution:
	Changed instead to ./$$test so that it picks up the program in
	the current directory.
Platforms tested:
	Opus and Linux
2000-10-18 11:47:04 -05:00