Kaydet (Commit) 83fade2f authored tarafından Thomas Arnhold's avatar Thomas Arnhold

Remove SCO support

üst 92f34f60
...@@ -37,10 +37,6 @@ ...@@ -37,10 +37,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef SCO
#define _IBCS2
#endif
#include <limits.h> #include <limits.h>
#include "cpp.h" #include "cpp.h"
......
...@@ -31,10 +31,6 @@ ...@@ -31,10 +31,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef SCO
# define _IBCS2
#endif
#include <limits.h> #include <limits.h>
#include "cpp.h" #include "cpp.h"
......
...@@ -51,10 +51,6 @@ const sal_uInt32 magic = 0x12345678; ...@@ -51,10 +51,6 @@ const sal_uInt32 magic = 0x12345678;
const sal_uInt16 minorVersion = 0x0000; const sal_uInt16 minorVersion = 0x0000;
const sal_uInt16 majorVersion = 0x0001; const sal_uInt16 majorVersion = 0x0001;
#if defined ( GCC ) && ( defined ( SCO ) )
ORealDynamicLoader* ODynamicLoader<RegistryTypeReader_Api>::m_pLoader = NULL;
#endif
/************************************************************************** /**************************************************************************
class BlopObject class BlopObject
......
...@@ -58,10 +58,6 @@ inline rtl::OString toByteString(rtl_uString const * str) { ...@@ -58,10 +58,6 @@ inline rtl::OString toByteString(rtl_uString const * str) {
static sal_Unicode NULL_WSTRING[1] = { 0 }; static sal_Unicode NULL_WSTRING[1] = { 0 };
#if defined ( GCC ) && ( defined ( SCO ) )
ORealDynamicLoader* ODynamicLoader<RegistryTypeWriter_Api>::m_pLoader = NULL;
#endif
#define BLOP_OFFSET_MAGIC 0 #define BLOP_OFFSET_MAGIC 0
#define BLOP_OFFSET_SIZE (BLOP_OFFSET_MAGIC + sizeof(sal_uInt32)) #define BLOP_OFFSET_SIZE (BLOP_OFFSET_MAGIC + sizeof(sal_uInt32))
#define BLOP_OFFSET_MINOR (BLOP_OFFSET_SIZE + sizeof(sal_uInt32)) #define BLOP_OFFSET_MINOR (BLOP_OFFSET_SIZE + sizeof(sal_uInt32))
......
...@@ -65,10 +65,6 @@ using namespace rtl; ...@@ -65,10 +65,6 @@ using namespace rtl;
using namespace osl; using namespace osl;
using namespace store; using namespace store;
#if defined ( GCC ) && ( defined ( SCO ) )
sal_helper::ORealDynamicLoader* sal_helper::ODynamicLoader<RegistryTypeReader_Api>::m_pLoader = NULL;
#endif
namespace { namespace {
void printString(rtl::OUString const & s) { void printString(rtl::OUString const & s) {
......
...@@ -47,10 +47,6 @@ ...@@ -47,10 +47,6 @@
#include <unistd.h> #include <unistd.h>
#endif #endif
#if defined ( GCC ) && ( defined ( SCO ) )
ORealDynamicLoader* ODynamicLoader<Registry_Api>::m_pLoader = NULL;
#endif
extern "C" { extern "C" {
//********************************************************************* //*********************************************************************
......
...@@ -94,18 +94,6 @@ extern "C" { ...@@ -94,18 +94,6 @@ extern "C" {
#endif #endif
#endif #endif
#ifdef SCO
# include <sys/types.h>
# include <sys/byteorder.h>
# if BYTE_ORDER == LITTLE_ENDIAN
# define _LITTLE_ENDIAN
# elif BYTE_ORDER == BIG_ENDIAN
# define _BIG_ENDIAN
# elif BYTE_ORDER == PDP_ENDIAN
# define _PDP_ENDIAN
# endif
#endif
#ifdef AIX #ifdef AIX
# include <sys/machine.h> # include <sys/machine.h>
# if BYTE_ORDER == LITTLE_ENDIAN # if BYTE_ORDER == LITTLE_ENDIAN
...@@ -153,7 +141,7 @@ extern "C" { ...@@ -153,7 +141,7 @@ extern "C" {
/** Check supported platform. /** Check supported platform.
*/ */
#if !defined(_WIN32) && !defined(_WIN16) && !defined(OS2) && \ #if !defined(_WIN32) && !defined(_WIN16) && !defined(OS2) && \
!defined(LINUX) && !defined(NETBSD) && !defined(SCO) && \ !defined(LINUX) && !defined(NETBSD) && \
!defined(AIX) && !defined(OPENBSD) && \ !defined(AIX) && !defined(OPENBSD) && \
!defined(SOLARIS) && !defined(MACOSX) && !defined(FREEBSD) && \ !defined(SOLARIS) && !defined(MACOSX) && !defined(FREEBSD) && \
!defined(DRAGONFLY) !defined(DRAGONFLY)
......
...@@ -222,37 +222,6 @@ int debug_printf(const char *f, ...); ...@@ -222,37 +222,6 @@ int debug_printf(const char *f, ...);
# define NO_PTHREAD_RTL # define NO_PTHREAD_RTL
#endif #endif
#ifdef SCO
# define AF_IPX -1
# include <strings.h>
# include <pthread.h>
# include <shadow.h>
# include <netdb.h>
# include <sys/un.h>
# include <sys/netinet/tcp.h>
# include <sys/types.h>
# include <sys/byteorder.h>
# include <dlfcn.h>
# if BYTE_ORDER == LITTLE_ENDIAN
# define _LITTLE_ENDIAN
# elif BYTE_ORDER == BIG_ENDIAN
# define _BIG_ENDIAN
# elif BYTE_ORDER == PDP_ENDIAN
# define _PDP_ENDIAN
# endif
# define sched_yield() pthread_yield()
# define pthread_testcancel()
# define NO_PTHREAD_RTL
# define NO_PTHREAD_PRIORITY
extern int pthread_cancel(pthread_t);
extern unsigned int nanosleep(unsigned int);
# define SLEEP_TIMESPEC(timespec) (timespec .tv_sec > 0) ? sleep(timespec .tv_sec), nanosleep(timespec .tv_nsec) : nanosleep(timespec .tv_nsec)
# define PATH_MAX _POSIX_PATH_MAX
# define S_ISSOCK S_ISFIFO
# define PTHREAD_SIGACTION pthread_sigaction
# define STAT_PARENT stat
#endif
#ifdef AIX #ifdef AIX
# define AF_IPX -1 # define AF_IPX -1
# include <strings.h> # include <strings.h>
......
...@@ -187,106 +187,6 @@ struct tm *gmtime_r(const time_t *timep, struct tm *buffer) ...@@ -187,106 +187,6 @@ struct tm *gmtime_r(const time_t *timep, struct tm *buffer)
} }
#endif /* defined NETBSD */ #endif /* defined NETBSD */
#ifdef SCO
#include <pwd.h>
#include <shadow.h>
#include <sys/types.h>
struct spwd *getspnam_r(const char *name, struct spwd* s, char* buffer, int size )
{
struct spwd* res;
pthread_mutex_lock(&getrtl_mutex);
if ( res = getspnam(name) )
{
int nnamp;
nnamp = strlen(res->sp_namp)+1;
if (nnamp+strlen(res->sp_pwdp) < size) {
memcpy(s, res, sizeof(struct spwd));
strcpy(buffer, res->sp_namp);
s->sp_namp = buffer;
buffer += nnamp;
strcpy(buffer, res->sp_pwdp);
s->sp_pwdp = buffer;
res = s;
}
else
res = 0;
}
pthread_mutex_unlock(&getrtl_mutex);
return res;
}
struct passwd *getpwnam_r(const char* name, struct passwd* s, char* buffer, int size )
{
struct passwd* res;
pthread_mutex_lock(&getrtl_mutex);
if ( res = getpwnam(name) )
{
int nname, npasswd, nage;
int ncomment, ngecos, ndir;
nname= strlen(res->pw_name)+1;
npasswd= strlen(res->pw_passwd)+1;
nage= strlen(res->pw_age)+1;
ncomment= strlen(res->pw_comment)+1;
ngecos= strlen(res->pw_gecos)+1;
ndir= strlen(res->pw_dir)+1;
if (nname+npasswd+nage+ncomment+ngecos+ndir
+strlen(res->pw_shell) < size)
{
memcpy(s, res, sizeof(struct passwd));
strcpy(buffer, res->pw_name);
s->pw_name = buffer;
buffer += nname;
strcpy(buffer, res->pw_passwd);
s->pw_passwd = buffer;
buffer += npasswd;
strcpy(buffer, res->pw_age);
s->pw_age = buffer;
buffer += nage;
strcpy(buffer, res->pw_comment);
s->pw_comment = buffer;
buffer += ncomment;
strcpy(buffer, res->pw_gecos);
s->pw_gecos = buffer;
buffer += ngecos;
strcpy(buffer, res->pw_dir);
s->pw_dir = buffer;
buffer += ndir;
strcpy(buffer, res->pw_shell);
s->pw_shell = buffer;
res = s;
}
else
res = 0;
}
pthread_mutex_unlock(&getrtl_mutex);
return res;
}
#endif /* defined SCO */
#if !defined(FREEBSD) || (__FreeBSD_version < 601103) #if !defined(FREEBSD) || (__FreeBSD_version < 601103)
extern int h_errno; extern int h_errno;
......
...@@ -244,37 +244,6 @@ ...@@ -244,37 +244,6 @@
# define IORESOURCE_TRANSFER_BSD # define IORESOURCE_TRANSFER_BSD
#endif #endif
#ifdef SCO
# define AF_IPX -1
# include <strings.h>
# include <pthread.h>
# include <shadow.h>
# include <netdb.h>
# include <sys/un.h>
# include <sys/netinet/tcp.h>
# include <sys/types.h>
# include <sys/byteorder.h>
# include <dlfcn.h>
# if BYTE_ORDER == LITTLE_ENDIAN
# define _LITTLE_ENDIAN
# elif BYTE_ORDER == BIG_ENDIAN
# define _BIG_ENDIAN
# elif BYTE_ORDER == PDP_ENDIAN
# define _PDP_ENDIAN
# endif
# define sched_yield() pthread_yield()
# define pthread_testcancel()
# define NO_PTHREAD_RTL
# define NO_PTHREAD_PRIORITY
extern int pthread_cancel(pthread_t);
extern unsigned int nanosleep(unsigned int);
# define SLEEP_TIMESPEC(timespec) (timespec .tv_sec > 0) ? sleep(timespec .tv_sec), nanosleep(timespec .tv_nsec) : nanosleep(timespec .tv_nsec)
# define PATH_MAX _POSIX_PATH_MAX
# define S_ISSOCK S_ISFIFO
# define PTHREAD_SIGACTION pthread_sigaction
# define STAT_PARENT stat
#endif
#ifdef AIX #ifdef AIX
# define AF_IPX -1 # define AF_IPX -1
# include <strings.h> # include <strings.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment