hdf5/tools
Xuan Bai 4707b280f8 [svn-r9746] Purpose:
Bug fix.

Description:
creat(name, (mode_t)0777) is used to create a new file.  However, creat() is not available in Visual Studio.

Solution:
Use a Win32 macro so _creat() will be used on Windows and creat() will be used on Unix.

	#ifdef WIN32
	fd = _creat(name, _S_IREAD | _S_IWRITE);
	#else /* WIN32 */
	fd = creat(name,(mode_t)0777);
	#endif /* WIN32 */

(Note: At first, I tried to define HDcreat() as _creat() for WIN32 and creat() for other platforms in H5private.h.  But _creat() and creat() use different parameters for file permission settings.  So, I added the WIN32 macro in h5jamgentest.c.)

Platforms tested:
Heping (Linux)
Visual C++ 6.0 on Windows XP/2000.
.NET on Windows XP.
(Tested with SZIP-with-encoder and SZIP-without-encoder).

Misc. update:
2005-01-05 11:34:04 -05:00
..
gifconv [svn-r8983] Purpose: 2004-08-02 09:06:07 -05:00
h5diff [svn-r8983] Purpose: 2004-08-02 09:06:07 -05:00
h5dump [svn-r9727] Purpose: 2004-12-29 09:26:20 -05:00
h5import [svn-r8983] Purpose: 2004-08-02 09:06:07 -05:00
h5jam [svn-r9746] Purpose: 2005-01-05 11:34:04 -05:00
h5ls [svn-r9727] Purpose: 2004-12-29 09:26:20 -05:00
h5repack [svn-r9727] Purpose: 2004-12-29 09:26:20 -05:00
lib [svn-r9727] Purpose: 2004-12-29 09:26:20 -05:00
misc [svn-r9727] Purpose: 2004-12-29 09:26:20 -05:00
testfiles [svn-r9727] Purpose: 2004-12-29 09:26:20 -05:00
Dependencies [svn-r3492] Purpose: 2001-02-22 17:01:58 -05:00
Makefile.in [svn-r9019] Purpose: 2004-08-05 10:10:39 -05:00