2011-08-02 13:17 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/src/rtl/fserr.c
    ! moved HB_TRACE() message - it was overwritting OS error code.

  * harbour/src/rtl/filesys.c
    ! removed dup2() function call left by mistake during some modifications
This commit is contained in:
Przemyslaw Czerpak
2011-08-02 11:17:25 +00:00
parent 64b9209085
commit b29dab6a6d
3 changed files with 13 additions and 3 deletions

View File

@@ -16,6 +16,13 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-08-02 13:17 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/fserr.c
! moved HB_TRACE() message - it was overwritting OS error code.
* harbour/src/rtl/filesys.c
! removed dup2() function call left by mistake during some modifications
2011-08-02 00:11 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/common/hbprintf.c
+ added very basic support for '%ls' in hb_snprintf()

View File

@@ -716,7 +716,6 @@ HB_FHANDLE hb_fsPOpen( const char * pFilename, const char * pMode )
HB_FAILURE_RETRY( iResult, dup2( hPipeHandle[ 0 ], 0 ) );
HB_FAILURE_RETRY( iResult, dup2( hNullHandle, 1 ) );
HB_FAILURE_RETRY( iResult, dup2( hNullHandle, 2 ) );
dup2( hNullHandle, 2 );
}
iMaxFD = sysconf( _SC_OPEN_MAX );
if( iMaxFD < 3 )

View File

@@ -195,8 +195,6 @@ void hb_fsSetIOError( HB_BOOL fResult, HB_USHORT uiOperation )
HB_ERRCODE uiOsErrorLast, uiErrorLast;
PHB_IOERRORS pIOErrors;
HB_TRACE(HB_TR_DEBUG, ("hb_fsSetIOError(%d,%hu)", fResult, uiOperation));
/* TODO: implement it */
HB_SYMBOL_UNUSED( uiOperation );
@@ -214,6 +212,12 @@ void hb_fsSetIOError( HB_BOOL fResult, HB_USHORT uiOperation )
uiErrorLast = hb_errnoToDosError( iErrCode );
#endif
}
/* HB_TRACE() message is intentionally here to not overwrite
* OS error code processed above.
*/
HB_TRACE(HB_TR_DEBUG, ("hb_fsSetIOError(%d,%hu)", fResult, uiOperation));
pIOErrors = hb_stackIOErrors();
pIOErrors->uiOsErrorLast = uiOsErrorLast;
pIOErrors->uiErrorLast = uiErrorLast;