2004-01-08 16:00 UTC-0500 David G. Holm <dholm@jsd-llc.com>CVS: ----------------------------------------------------------------------
This commit is contained in:
@@ -8,6 +8,12 @@
|
||||
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
|
||||
2004-01-08 16:00 UTC-0500 David G. Holm <dholm@jsd-llc.com>
|
||||
* utils/hbpp/hbpp.c
|
||||
! Never include malloc.h, because: 1) It been obsoleted by stdlib.h
|
||||
in Standard C; and 2) The use of malloc.h is forbidden in GCC 3.x
|
||||
(I missed this one somehow during my earlier cleanup on 2003-12-10).
|
||||
|
||||
2003-12-25 19:40 UTC-0800 Luis Krause Mantilla <lkrausem /*at*/ shaw /*dot*/ ca>
|
||||
* include/hbapifs.ch
|
||||
* source/rtl/direct.c
|
||||
|
||||
@@ -1490,6 +1490,15 @@ void hb_fsCommit( FHANDLE hFileHandle )
|
||||
/* faster - flushes data buffers only, without updating directory info
|
||||
*/
|
||||
s_uiErrorLast = ( fdatasync( hFileHandle ) < -1 ) ? FS_ERROR : 0;
|
||||
if( s_uiErrorLast == EINVAL || s_uiErrorLast == ENOSYS )
|
||||
{
|
||||
/* Either fdatasync is not supported in this POSIX implementation or
|
||||
this implementation does not support synchronised I/O for this file,
|
||||
so use the slower method that flushes all file data buffers and i-node
|
||||
info for this file.
|
||||
*/
|
||||
s_uiErrorLast = ( fsync( hFileHandle ) < -1 ) ? FS_ERROR : 0;
|
||||
}
|
||||
#else
|
||||
/* slower - flushes all file data buffers and i-node info
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user