void XcleanUp( where_parm where ) { TinyClose( fileHandle ); fileHandle = TINY_HANDLE_NULL; TinyDelete( fullName ); fullName = NULL; }
trap_retval ReqFile_erase( void ) { tiny_ret_t rc; file_erase_ret *ret; ret = GetOutPtr( 0 ); rc = TinyDelete( (char *)GetInPtr( sizeof( file_erase_req ) ) ); ret->err = TINY_ERROR( rc ) ? TINY_INFO( rc ) : 0; return( sizeof( *ret ) ); }
error_idx LocalErase( const char *name ) { tiny_ret_t ret; ret = TinyDelete( name ); if( TINY_ERROR( ret ) ) { return( StashErrCode( TINY_INFO( ret ), OP_LOCAL ) ); } return( 0 ); }
void QDelete( char *name ) /*******************************/ { tiny_ret_t h; if( name == NULL ) return; h = TinyDelete( name ); if( TINY_ERROR( h ) ) { if( TINY_INFO( h ) != 2 ) { /* file not found is OK */ LnkMsg( ERR+MSG_IO_PROBLEM, "12", name, QErrMsg( TINY_INFO( h ) ) ); } } }
static void cleanUp( void ) { switch( isWhere ) { case ON_DISK: TinyClose( fileHandle ); TinyDelete( fullName ); break; #ifndef NOXMS case IN_XMS: memGiveBack( &GiveBackXMSBlock ); break; #endif #ifndef NOEMS case IN_EMS: memGiveBack( &GiveBackEMSBlock ); break; #endif } } /* cleanUp */
static void Cleanup( void ) { TinyDelete( ChkFile ); }