hdf5/tools/h5jam
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
..
Dependencies
getub.c [svn-r9727] Purpose: 2004-12-29 09:26:20 -05:00
h5jam.c [svn-r9727] Purpose: 2004-12-29 09:26:20 -05:00
h5jamgentest.c [svn-r9746] Purpose: 2005-01-05 11:34:04 -05:00
h5unjam.c [svn-r9727] Purpose: 2004-12-29 09:26:20 -05:00
Makefile.in
tellub.c [svn-r9727] Purpose: 2004-12-29 09:26:20 -05:00
testh5jam.sh.in [svn-r9418] Bug fix (bug 205). 2004-10-13 23:18:11 -05:00