diff options
author | Francois Tigeot <ftigeot@wolfpond.org> | 2011-04-16 09:08:29 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-04-18 16:59:48 +0200 |
commit | 35e1b53c7e6176315257cae9434ec4364262282c (patch) | |
tree | 32c349e5d26d2e4475af8ae260bdc29ca4dd17f3 /sal/rtl | |
parent | be6061a954b5f55b20d0e58aa12b425b6505f56e (diff) |
Remove OS/2 support.
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/source/alloc_arena.c | 28 | ||||
-rw-r--r-- | sal/rtl/source/alloc_cache.c | 11 | ||||
-rw-r--r-- | sal/rtl/source/alloc_impl.h | 2 | ||||
-rw-r--r-- | sal/rtl/source/macro.hxx | 2 | ||||
-rw-r--r-- | sal/rtl/source/makefile.mk | 4 |
5 files changed, 6 insertions, 41 deletions
diff --git a/sal/rtl/source/alloc_arena.c b/sal/rtl/source/alloc_arena.c index 888166e06a0d..b06366427f33 100644 --- a/sal/rtl/source/alloc_arena.c +++ b/sal/rtl/source/alloc_arena.c @@ -37,13 +37,6 @@ #include <string.h> #include <stdio.h> -#ifdef OS2 -#undef OSL_TRACE -#define OSL_TRACE 1 ? ((void)0) : _OSL_GLOBAL osl_trace -#define INCL_DOS -#include <os2.h> -#endif - /* ================================================================= * * * arena internals. @@ -1162,7 +1155,7 @@ SAL_CALL rtl_arena_free ( #if defined(SAL_UNX) #include <sys/mman.h> -#elif defined(SAL_W32) || defined(SAL_OS2) +#elif defined(SAL_W32) #define MAP_FAILED 0 #endif /* SAL_UNX || SAL_W32 */ @@ -1198,18 +1191,7 @@ SAL_CALL rtl_machdep_alloc ( addr = mmap (NULL, (size_t)(size), PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); #elif defined(SAL_W32) addr = VirtualAlloc (NULL, (SIZE_T)(size), MEM_COMMIT, PAGE_READWRITE); -#elif defined(SAL_OS2) - { - APIRET rc; - addr = 0; - // Use DosAlloc* to get a 4KB page aligned address. - rc = DosAllocMem( &addr, size, PAG_COMMIT | PAG_READ | PAG_WRITE | OBJ_ANY); - if (rc) { - fprintf( stderr, "sal3::DosAllocMem failed rc=%d\n", rc); - addr = 0; - } - } -#endif /* (SAL_UNX || SAL_W32 || SAL_OS2) */ +#endif /* (SAL_UNX || SAL_W32) */ if (addr != MAP_FAILED) { @@ -1242,8 +1224,6 @@ SAL_CALL rtl_machdep_free ( (void) munmap(pAddr, nSize); #elif defined(SAL_W32) (void) VirtualFree ((LPVOID)(pAddr), (SIZE_T)(0), MEM_RELEASE); -#elif defined(SAL_OS2) - (void) DosFreeMem( pAddr); #endif /* (SAL_UNX || SAL_W32) */ } @@ -1262,10 +1242,6 @@ rtl_machdep_pagesize (void) SYSTEM_INFO info; GetSystemInfo (&info); return ((sal_Size)(info.dwPageSize)); -#elif defined(SAL_OS2) - ULONG ulPageSize; - DosQuerySysInfo(QSV_PAGE_SIZE, QSV_PAGE_SIZE, &ulPageSize, sizeof(ULONG)); - return ((sal_Size)ulPageSize); #endif /* (SAL_UNX || SAL_W32) */ } diff --git a/sal/rtl/source/alloc_cache.c b/sal/rtl/source/alloc_cache.c index bb655ffee80c..91786ade6436 100644 --- a/sal/rtl/source/alloc_cache.c +++ b/sal/rtl/source/alloc_cache.c @@ -41,11 +41,6 @@ #include <stdio.h> #endif -#ifdef OS2 -#undef OSL_TRACE -#define OSL_TRACE 1 ? ((void)0) : _OSL_GLOBAL osl_trace -#endif - /* ================================================================= * * * cache internals. @@ -60,7 +55,7 @@ struct rtl_cache_list_st rtl_memory_lock_type m_lock; rtl_cache_type m_cache_head; -#if defined(SAL_UNX) || defined(SAL_OS2) +#if defined(SAL_UNX) pthread_t m_update_thread; pthread_cond_t m_update_cond; #elif defined(SAL_W32) @@ -1376,7 +1371,7 @@ rtl_cache_wsupdate_fini (void); /* ================================================================= */ -#if defined(SAL_UNX) || defined(SAL_OS2) +#if defined(SAL_UNX) #include <sys/time.h> @@ -1542,7 +1537,7 @@ rtl_cache_wsupdate ( /** rtl_cache_wsupdate_all() * */ -#if defined(SAL_UNX) || defined(SAL_OS2) +#if defined(SAL_UNX) static void * #elif defined(SAL_W32) static DWORD WINAPI diff --git a/sal/rtl/source/alloc_impl.h b/sal/rtl/source/alloc_impl.h index 18073926399f..a226f0607d9c 100644 --- a/sal/rtl/source/alloc_impl.h +++ b/sal/rtl/source/alloc_impl.h @@ -197,7 +197,7 @@ lowbit(sal_Size n) /** rtl_memory_lock_type * (platform dependent) */ -#if defined(SAL_UNX) || defined(SAL_OS2) +#if defined(SAL_UNX) #include <unistd.h> #include <pthread.h> diff --git a/sal/rtl/source/macro.hxx b/sal/rtl/source/macro.hxx index 822fdd1ef2d5..6983b073d11f 100644 --- a/sal/rtl/source/macro.hxx +++ b/sal/rtl/source/macro.hxx @@ -35,8 +35,6 @@ #if defined WIN32 #define THIS_OS "Windows" -#elif defined OS2 -#define THIS_OS "OS2" #elif defined SOLARIS #define THIS_OS "Solaris" #elif defined LINUX diff --git a/sal/rtl/source/makefile.mk b/sal/rtl/source/makefile.mk index 9c3921ddb30f..a378b1087c1c 100644 --- a/sal/rtl/source/makefile.mk +++ b/sal/rtl/source/makefile.mk @@ -36,10 +36,6 @@ PROJECTPCH4DLL=TRUE PROJECTPCH=cont_pch PROJECTPCHSOURCE=cont_pch -.IF "$(GUI)" == "OS2" -STL_OS2_BUILDING=1 -.ENDIF - TARGETTYPE=CUI # --- Settings ----------------------------------------------------- |