From 3db0817ead0a625e2aeee98fe9b4d87749db4955 Mon Sep 17 00:00:00 2001
From: Jens-Heiner Rechtien
Date: Mon, 19 Jun 2006 12:42:10 +0000
Subject: INTEGRATION: CWS warnings01 (1.2.8); FILE REMOVED 2005/10/13 13:24:28
sb 1.2.8.1: #i53898# Removed code for obsolete platforms.
---
tools/source/fsys/os2.hxx | 125 ----------------------------------------------
1 file changed, 125 deletions(-)
delete mode 100644 tools/source/fsys/os2.hxx
(limited to 'tools')
diff --git a/tools/source/fsys/os2.hxx b/tools/source/fsys/os2.hxx
deleted file mode 100644
index f599695ebb7b..000000000000
--- a/tools/source/fsys/os2.hxx
+++ /dev/null
@@ -1,125 +0,0 @@
-/*************************************************************************
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: os2.hxx,v $
- *
- * $Revision: 1.2 $
- *
- * last change: $Author: rt $ $Date: 2005-09-09 14:17:26 $
- *
- * The Contents of this file are made available subject to
- * the terms of GNU Lesser General Public License Version 2.1.
- *
- *
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2005 by Sun Microsystems, Inc.
- * 901 San Antonio Road, Palo Alto, CA 94303, USA
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- *
- ************************************************************************/
-
-#ifndef _os2_hxx
-#define _os2_hxx
-
-#include
-
-#include
-#include
-#include
-#include
-
-#define INCL_DOSEXCEPTIONS
-#define INCL_DOSFILEMGR
-#define INCL_DOSPROCESS
-#define INCL_DOSDEVICES
-#define INCL_DOSERRORS
-#define INCL_DOSMISC
-#define INCL_DOSNLS /* National Language Support values */
-#include
-
-#include
-
-#define FSYS_UNIX FALSE
-
-#define DOS_DIRECT 16
-#define setdrive(n,a) dos_setdrive(n,a)
-#define GETDRIVE(n) dos_getdrive(&n)
-
-#define _mkdir(p) DosCreateDir( (PSZ)p, 0 )
-#define _rmdir(p) DosDeleteDir( (PSZ)p )
-#define _unlink(p) DosForceDelete( (PSZ)p )
-#define _chdir chdir
-#define _getcwd getcwd
-#define _access access
-
-const char* TempDirImpl( char *pBuf );
-String ToLowerImpl( const String& );
-
-inline char *getcwd(char *p, ULONG nLen )
-{
- return DosQueryCurrentDir( 0, (PBYTE)p, &nLen ) ? p : 0;
-}
-
-#define dirent _FILEFINDBUF3
-#define d_name achName
-#define d_type attrFile
-#define d_size cbFile
-#define d_attr attrFile
-#define d_date fdateLastWrite
-#define d_time ftimeLastWrite
-
-typedef struct
-{
- HDIR aDirHdl;
- FILEFINDBUF3 aDirEnt;
- char *p;
-} DIR;
-
-#define DEFSTYLE FSYS_STYLE_OS2
-#define MKDIR( p ) mkdir( (unsigned char*) p )
-#define CMP_LOWER(aString) ToLowerImpl(aString)
-
-#define START_DRV 'a'
-
-inline BOOL DRIVE_EXISTS( char c )
-{
- ULONG nCur, nMap;
- APIRET nRet = DosQueryCurrentDisk( &nCur, &nMap );
- return ( nMap & 1 << (c - 'a') ) != 0;
-}
-
-#include
-#include
-
-inline Time MsDos2Time( FTIME aTime )
-{
- return Time( aTime.hours, aTime.minutes, 2*aTime.twosecs );
-}
-
-inline Date MsDos2Date( FDATE aDate )
-{
- return Date( aDate.day, aDate.month, aDate.year );
-}
-
-Time MsDos2Time( const time_t *pTimeT );
-
-Date MsDos2Date( const time_t *pTimeT );
-
-#define FSysFailOnErrorImpl()
-
-#endif
--
cgit