2009-06-16 12:09:03 +00:00
|
|
|
diff -up pegasus/mak/config-linux.mak.sparc pegasus/mak/config-linux.mak
|
2012-10-09 09:22:20 +00:00
|
|
|
--- pegasus/mak/config-linux.mak.sparc 2012-10-08 12:25:24.910661094 +0200
|
|
|
|
+++ pegasus/mak/config-linux.mak 2012-10-08 12:28:07.613507858 +0200
|
|
|
|
@@ -166,6 +166,9 @@ ifndef PEGASUS_ARCH_LIB
|
|
|
|
ifeq ($(PEGASUS_PLATFORM),LINUX_X86_64_CLANG)
|
2009-02-02 19:34:17 +00:00
|
|
|
PEGASUS_ARCH_LIB = lib64
|
|
|
|
endif
|
2012-10-09 09:22:20 +00:00
|
|
|
+ ifeq ($(PEGASUS_PLATFORM),LINUX_SPARC64_GNU)
|
|
|
|
+ PEGASUS_ARCH_LIB = lib64
|
|
|
|
+ endif
|
|
|
|
PEGASUS_ARCH_LIB = lib
|
2009-02-02 19:34:17 +00:00
|
|
|
endif
|
|
|
|
DEFINES += -DPEGASUS_ARCH_LIB=\"$(PEGASUS_ARCH_LIB)\"
|
2009-06-16 12:09:03 +00:00
|
|
|
diff -up pegasus/mak/platform_LINUX_SPARC64_GNU.mak.sparc pegasus/mak/platform_LINUX_SPARC64_GNU.mak
|
2012-10-09 09:22:20 +00:00
|
|
|
--- pegasus/mak/platform_LINUX_SPARC64_GNU.mak.sparc 2012-10-08 12:29:27.198953706 +0200
|
|
|
|
+++ pegasus/mak/platform_LINUX_SPARC64_GNU.mak 2012-10-08 12:33:08.735161475 +0200
|
2009-02-02 19:34:17 +00:00
|
|
|
@@ -0,0 +1,36 @@
|
|
|
|
+#//%2006////////////////////////////////////////////////////////////////////////
|
|
|
|
+#//
|
|
|
|
+#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
|
|
|
+#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
|
|
|
+#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+#// IBM Corp.; EMC Corporation, The Open Group.
|
|
|
|
+#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+#// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+#// EMC Corporation; Symantec Corporation; The Open Group.
|
|
|
|
+#//
|
|
|
|
+#// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
+#// of this software and associated documentation files (the "Software"), to
|
|
|
|
+#// deal in the Software without restriction, including without limitation the
|
|
|
|
+#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
+#// sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
+#// furnished to do so, subject to the following conditions:
|
|
|
|
+#//
|
|
|
|
+#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
|
|
|
+#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
|
|
|
+#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
|
|
+#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
|
|
+#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
|
|
+#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
|
|
+#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
|
+#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
+#//
|
|
|
|
+#//==============================================================================
|
|
|
|
+# Platform Configuration for Linux on PPC
|
|
|
|
+# If you have generic Linux config options, please place them in config-linux.mak
|
|
|
|
+
|
|
|
|
+include $(ROOT)/mak/config-linux.mak
|
|
|
|
+
|
|
|
|
+ARCHITECTURE = sparc
|
2009-06-16 12:09:03 +00:00
|
|
|
diff -up pegasus/mak/platform_LINUX_SPARCV9_GNU.mak.sparc pegasus/mak/platform_LINUX_SPARCV9_GNU.mak
|
2012-10-09 09:22:20 +00:00
|
|
|
--- pegasus/mak/platform_LINUX_SPARCV9_GNU.mak.sparc 2012-10-08 12:33:49.424379019 +0200
|
|
|
|
+++ pegasus/mak/platform_LINUX_SPARCV9_GNU.mak 2012-10-08 12:30:54.670435787 +0200
|
2009-02-02 19:34:17 +00:00
|
|
|
@@ -0,0 +1,36 @@
|
|
|
|
+#//%2006////////////////////////////////////////////////////////////////////////
|
|
|
|
+#//
|
|
|
|
+#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
|
|
|
+#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
|
|
|
+#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+#// IBM Corp.; EMC Corporation, The Open Group.
|
|
|
|
+#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+#// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+#// EMC Corporation; Symantec Corporation; The Open Group.
|
|
|
|
+#//
|
|
|
|
+#// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
+#// of this software and associated documentation files (the "Software"), to
|
|
|
|
+#// deal in the Software without restriction, including without limitation the
|
|
|
|
+#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
+#// sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
+#// furnished to do so, subject to the following conditions:
|
|
|
|
+#//
|
|
|
|
+#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
|
|
|
+#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
|
|
|
+#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
|
|
+#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
|
|
+#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
|
|
+#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
|
|
+#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
|
+#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
+#//
|
|
|
|
+#//==============================================================================
|
|
|
|
+# Platform Configuration for Linux on PPC
|
|
|
|
+# If you have generic Linux config options, please place them in config-linux.mak
|
|
|
|
+
|
|
|
|
+include $(ROOT)/mak/config-linux.mak
|
|
|
|
+
|
|
|
|
+ARCHITECTURE = sparc
|
2009-06-16 12:09:03 +00:00
|
|
|
diff -up pegasus/mak/SDKMakefile.sparc pegasus/mak/SDKMakefile
|
2012-10-09 09:22:20 +00:00
|
|
|
--- pegasus/mak/SDKMakefile.sparc 2012-10-08 12:31:17.904562644 +0200
|
|
|
|
+++ pegasus/mak/SDKMakefile 2012-10-08 12:37:29.392538539 +0200
|
|
|
|
@@ -501,6 +501,18 @@ ifeq ($(RUNTIME_PLATFORM_TEST_NEEDED), t
|
2009-02-02 19:34:17 +00:00
|
|
|
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
2009-06-16 12:09:03 +00:00
|
|
|
@$(ECHO-E) " endif" \
|
|
|
|
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
+ @$(ECHO-E) " ifeq (\044(shell uname -i),sparc)" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
+ @$(ECHO-E) " PEGASUS_PLATFORM = LINUX_SPARCV9_GNU" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
+ @$(ECHO-E) " endif" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
+ @$(ECHO-E) " ifeq (\044(shell uname -i),sparc64)" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
+ @$(ECHO-E) " PEGASUS_PLATFORM = LINUX_SPARC64_GNU" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
+ @$(ECHO-E) " endif" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
else
|
|
|
|
$(error This SDK has been defined to include the following \
|
|
|
|
platforms: $(PACKAGED_PLATFORM_FILES). \
|
2012-10-09 09:22:20 +00:00
|
|
|
@@ -577,7 +589,18 @@ ifeq ($(RUNTIME_PLATFORM_TEST_NEEDED), t
|
2009-06-16 12:09:03 +00:00
|
|
|
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
@$(ECHO-E) "endif" \
|
|
|
|
>> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
2012-10-09 09:22:20 +00:00
|
|
|
-
|
2009-06-16 12:09:03 +00:00
|
|
|
+ @$(ECHO-E) "ifeq (\044(PEGASUS_PLATFORM),LINUX_SPARCV9_GNU)" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
+ @$(ECHO-E) " PEGASUS_ARCH_LIB = lib" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
+ @$(ECHO-E) "endif" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
+ @$(ECHO-E) "ifeq (\044(PEGASUS_PLATFORM),LINUX_SPARC64_GNU)" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
+ @$(ECHO-E) " PEGASUS_ARCH_LIB = lib64" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
+ @$(ECHO-E) "endif" \
|
|
|
|
+ >> $(PEGASUS_STAGING_DIR)$(PEGASUS_SAMPLES_DIR)/mak/config.mak
|
|
|
|
else
|
|
|
|
$(error This SDK has been defined to include the following \
|
|
|
|
platforms: $(PACKAGED_PLATFORM_FILES). \
|
|
|
|
diff -up pegasus/src/Pegasus/Common/Config.h.sparc pegasus/src/Pegasus/Common/Config.h
|
2012-10-09 09:22:20 +00:00
|
|
|
--- pegasus/src/Pegasus/Common/Config.h.sparc 2012-10-08 12:38:08.351741449 +0200
|
|
|
|
+++ pegasus/src/Pegasus/Common/Config.h 2012-10-08 12:38:53.697976948 +0200
|
|
|
|
@@ -82,6 +82,10 @@
|
2009-02-02 19:34:17 +00:00
|
|
|
# include <Pegasus/Common/Platform_LINUX_PPC64_GNU.h>
|
2012-10-09 09:22:20 +00:00
|
|
|
#elif defined (PEGASUS_PLATFORM_LINUX_PPC_E500_GNU)
|
|
|
|
# include <Pegasus/Common/Platform_LINUX_PPC_E500_GNU.h>
|
2009-02-02 19:34:17 +00:00
|
|
|
+#elif defined (PEGASUS_PLATFORM_LINUX_SPARCV9_GNU)
|
|
|
|
+# include <Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h>
|
|
|
|
+#elif defined (PEGASUS_PLATFORM_LINUX_SPARC64_GNU)
|
|
|
|
+# include <Pegasus/Common/Platform_LINUX_SPARC64_GNU.h>
|
|
|
|
#elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES_GNU)
|
|
|
|
# include <Pegasus/Common/Platform_LINUX_ZSERIES_GNU.h>
|
|
|
|
#elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES64_GNU)
|
2009-06-16 12:09:03 +00:00
|
|
|
diff -up pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h.sparc pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h
|
2012-10-09 09:22:20 +00:00
|
|
|
--- pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h.sparc 2012-10-08 12:39:25.331140743 +0200
|
|
|
|
+++ pegasus/src/Pegasus/Common/Platform_LINUX_SPARC64_GNU.h 2012-10-08 12:40:32.353486723 +0200
|
2009-02-02 19:34:17 +00:00
|
|
|
@@ -0,0 +1,93 @@
|
|
|
|
+/*
|
|
|
|
+//%2006////////////////////////////////////////////////////////////////////////
|
|
|
|
+//
|
|
|
|
+// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
|
|
|
+// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
|
|
|
+// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+// IBM Corp.; EMC Corporation, The Open Group.
|
|
|
|
+// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+// EMC Corporation; Symantec Corporation; The Open Group.
|
|
|
|
+//
|
|
|
|
+// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
+// of this software and associated documentation files (the "Software"), to
|
|
|
|
+// deal in the Software without restriction, including without limitation the
|
|
|
|
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
+// sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
+// furnished to do so, subject to the following conditions:
|
|
|
|
+//
|
|
|
|
+// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
|
|
|
+// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
|
|
|
+// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
|
|
+// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
|
|
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
|
|
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
|
|
+// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
|
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
+//
|
|
|
|
+//==============================================================================
|
|
|
|
+//
|
|
|
|
+//%/////////////////////////////////////////////////////////////////////////////
|
|
|
|
+*/
|
|
|
|
+
|
|
|
|
+#ifndef Pegasus_Platform_LINUX_SPARC64_GNU_h
|
|
|
|
+#define Pegasus_Platform_LINUX_SPARC64_GNU_h
|
|
|
|
+
|
|
|
|
+#include <stddef.h>
|
|
|
|
+
|
|
|
|
+#define PEGASUS_OS_TYPE_UNIX
|
|
|
|
+
|
|
|
|
+#ifndef PEGASUS_PLATFORM_LINUX_GENERIC_GNU
|
|
|
|
+#define PEGASUS_PLATFORM_LINUX_GENERIC_GNU
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#define PEGASUS_OS_LINUX
|
|
|
|
+
|
|
|
|
+#define PEGASUS_POINTER_64BIT
|
|
|
|
+
|
|
|
|
+#define PEGASUS_COMPILER_GNU
|
|
|
|
+
|
|
|
|
+#define PEGASUS_UINT64 unsigned long long
|
|
|
|
+
|
|
|
|
+#define PEGASUS_SINT64 long long
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAVE_NAMESPACES
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAVE_FOR_SCOPE
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
|
|
|
|
+
|
|
|
|
+#ifndef _GNU_SOURCE
|
|
|
|
+#define _GNU_SOURCE
|
|
|
|
+#endif
|
|
|
|
+#ifndef _REENTRANT
|
|
|
|
+#define _REENTRANT
|
|
|
|
+#endif
|
|
|
|
+#define _THREAD_SAFE
|
|
|
|
+#include <features.h>
|
|
|
|
+#include <stdio.h>
|
|
|
|
+#include <stdlib.h>
|
|
|
|
+#include <sys/param.h> /* For MAXHOSTNAMELEN */
|
|
|
|
+#include <limits.h> /* _POSIX_HOST_NAME_MAX */
|
|
|
|
+
|
|
|
|
+#if (__GNUC__ >= 4)
|
|
|
|
+# define PEGASUS_EXPORT __attribute__ ((visibility("default")))
|
|
|
|
+# define PEGASUS_IMPORT __attribute__ ((visibility("default")))
|
|
|
|
+# define PEGASUS_HIDDEN_LINKAGE __attribute__((visibility("hidden")))
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAVE_PTHREADS
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAVE_NANOSLEEP
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAS_SIGNALS
|
|
|
|
+
|
|
|
|
+/* getifaddrs() avilable in gcc version >= 3.4 */
|
|
|
|
+#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4))
|
|
|
|
+# define PEGASUS_HAS_GETIFADDRS
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#endif /* Pegasus_Platform_LINUX_SPARC64_GNU_h */
|
2009-06-16 12:09:03 +00:00
|
|
|
diff -up pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h.sparc pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h
|
2012-10-09 09:22:20 +00:00
|
|
|
--- pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h.sparc 2012-10-08 12:40:43.042541758 +0200
|
|
|
|
+++ pegasus/src/Pegasus/Common/Platform_LINUX_SPARCV9_GNU.h 2012-10-08 12:41:51.297892618 +0200
|
2009-02-02 19:34:17 +00:00
|
|
|
@@ -0,0 +1,93 @@
|
|
|
|
+/*
|
|
|
|
+//%2006////////////////////////////////////////////////////////////////////////
|
|
|
|
+//
|
|
|
|
+// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
|
|
|
+// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
|
|
|
+// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+// IBM Corp.; EMC Corporation, The Open Group.
|
|
|
|
+// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+// EMC Corporation; Symantec Corporation; The Open Group.
|
|
|
|
+//
|
|
|
|
+// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
+// of this software and associated documentation files (the "Software"), to
|
|
|
|
+// deal in the Software without restriction, including without limitation the
|
|
|
|
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
+// sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
+// furnished to do so, subject to the following conditions:
|
|
|
|
+//
|
|
|
|
+// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
|
|
|
+// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
|
|
|
+// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
|
|
+// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
|
|
+// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
|
|
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
|
|
+// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
|
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
+//
|
|
|
|
+//==============================================================================
|
|
|
|
+//
|
|
|
|
+//%/////////////////////////////////////////////////////////////////////////////
|
|
|
|
+*/
|
|
|
|
+
|
|
|
|
+#ifndef Pegasus_Platform_LINUX_SPARCV9_GNU_h
|
|
|
|
+#define Pegasus_Platform_LINUX_SPARCV9_GNU_h
|
|
|
|
+
|
|
|
|
+#include <stddef.h>
|
|
|
|
+
|
|
|
|
+#define PEGASUS_OS_TYPE_UNIX
|
|
|
|
+
|
|
|
|
+#ifndef PEGASUS_PLATFORM_LINUX_GENERIC_GNU
|
|
|
|
+#define PEGASUS_PLATFORM_LINUX_GENERIC_GNU
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#define PEGASUS_OS_LINUX
|
|
|
|
+
|
|
|
|
+#define PEGASUS_ARCHITECTURE_SPARC
|
|
|
|
+
|
|
|
|
+#define PEGASUS_COMPILER_GNU
|
|
|
|
+
|
|
|
|
+#define PEGASUS_UINT64 unsigned long long
|
|
|
|
+
|
|
|
|
+#define PEGASUS_SINT64 long long
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAVE_NAMESPACES
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAVE_FOR_SCOPE
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
|
|
|
|
+
|
|
|
|
+#ifndef _GNU_SOURCE
|
|
|
|
+#define _GNU_SOURCE
|
|
|
|
+#endif
|
|
|
|
+#ifndef _REENTRANT
|
|
|
|
+#define _REENTRANT
|
|
|
|
+#endif
|
|
|
|
+#define _THREAD_SAFE
|
|
|
|
+#include <features.h>
|
|
|
|
+#include <stdio.h>
|
|
|
|
+#include <stdlib.h>
|
|
|
|
+#include <sys/param.h> /* For MAXHOSTNAMELEN */
|
|
|
|
+#include <limits.h> /* _POSIX_HOST_NAME_MAX */
|
|
|
|
+
|
|
|
|
+#if (__GNUC__ >= 4)
|
|
|
|
+# define PEGASUS_EXPORT __attribute__ ((visibility("default")))
|
|
|
|
+# define PEGASUS_IMPORT __attribute__ ((visibility("default")))
|
|
|
|
+# define PEGASUS_HIDDEN_LINKAGE __attribute__((visibility("hidden")))
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAVE_PTHREADS
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAVE_NANOSLEEP
|
|
|
|
+
|
|
|
|
+#define PEGASUS_HAS_SIGNALS
|
|
|
|
+
|
|
|
|
+/* getifaddrs() avilable in gcc version >= 3.4 */
|
|
|
|
+#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4))
|
|
|
|
+# define PEGASUS_HAS_GETIFADDRS
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#endif /* Pegasus_Platform_LINUX_SPARCV9_GNU_h */
|
2009-06-16 12:09:03 +00:00
|
|
|
diff -up pegasus/src/SDK/samples/mak/LINUX_SPARC64_GNU.mak.sparc pegasus/src/SDK/samples/mak/LINUX_SPARC64_GNU.mak
|
2012-10-09 09:22:20 +00:00
|
|
|
--- pegasus/src/SDK/samples/mak/LINUX_SPARC64_GNU.mak.sparc 2012-10-08 12:42:23.140055774 +0200
|
|
|
|
+++ pegasus/src/SDK/samples/mak/LINUX_SPARC64_GNU.mak 2012-10-08 12:42:54.003213719 +0200
|
2009-02-02 19:34:17 +00:00
|
|
|
@@ -0,0 +1,55 @@
|
|
|
|
+#//%2006////////////////////////////////////////////////////////////////////////
|
|
|
|
+#//
|
|
|
|
+#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
|
|
|
+#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
|
|
|
+#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+#// IBM Corp.; EMC Corporation, The Open Group.
|
|
|
|
+#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+#// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+#// EMC Corporation; Symantec Corporation; The Open Group.
|
|
|
|
+#//
|
|
|
|
+#// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
+#// of this software and associated documentation files (the "Software"), to
|
|
|
|
+#// deal in the Software without restriction, including without limitation the
|
|
|
|
+#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
+#// sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
+#// furnished to do so, subject to the following conditions:
|
|
|
|
+#//
|
|
|
|
+#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
|
|
|
+#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
|
|
|
+#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
|
|
+#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
|
|
+#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
|
|
+#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
|
|
+#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
|
+#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
+#//
|
|
|
|
+#//==============================================================================
|
|
|
|
+
|
|
|
|
+ECHO = echo
|
|
|
|
+MKDIRHIER = mkdir -p
|
|
|
|
+RM = rm -f
|
|
|
|
+TOUCH = touch
|
|
|
|
+
|
|
|
|
+COMPILE_CXX_COMMAND = g++
|
|
|
|
+COMPILE_C_COMMAND = gcc
|
|
|
|
+LIBRARY_LINK_COMMAND = $(COMPILE_CXX_COMMAND) -shared
|
|
|
|
+PROGRAM_LINK_COMMAND = $(COMPILE_CXX_COMMAND)
|
|
|
|
+
|
|
|
|
+SYS_LIBS = -ldl -lpthread -lcrypt
|
|
|
|
+
|
|
|
|
+OBJ_SUFFIX=.o
|
|
|
|
+
|
|
|
|
+DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM)
|
|
|
|
+PROGRAM_COMPILE_OPTIONS = -O2 -W -Wall -Wno-unused -D_GNU_SOURCE \
|
|
|
|
+ -DTHREAD_SAFE -D_REENTRANT -fPIC
|
|
|
|
+LIBRARY_COMPILE_OPTIONS = $(PROGRAM_COMPILE_OPTIONS)
|
|
|
|
+
|
|
|
|
+PROGRAM_LINK_OPTIONS = -Xlinker -rpath -Xlinker $(PEGASUS_DEST_LIB_DIR)
|
|
|
|
+LIBRARY_LINK_OPTIONS = $(PROGRAM_LINK_OPTIONS)
|
|
|
|
+LINK_OUT = -o
|
|
|
|
+SYM_LINK_LIB = $(PEGASUS_PROVIDER_LIB_DIR)/lib$(LIBRARY)
|
|
|
|
+PLATFORM_LIB_SUFFIX = so
|
2009-06-16 12:09:03 +00:00
|
|
|
diff -up pegasus/src/SDK/samples/mak/LINUX_SPARCV9_GNU.mak.sparc pegasus/src/SDK/samples/mak/LINUX_SPARCV9_GNU.mak
|
2012-10-09 09:22:20 +00:00
|
|
|
--- pegasus/src/SDK/samples/mak/LINUX_SPARCV9_GNU.mak.sparc 2012-10-08 12:43:12.451308189 +0200
|
|
|
|
+++ pegasus/src/SDK/samples/mak/LINUX_SPARCV9_GNU.mak 2012-10-08 12:43:44.962474061 +0200
|
2009-02-02 19:34:17 +00:00
|
|
|
@@ -0,0 +1,55 @@
|
|
|
|
+#//%2006////////////////////////////////////////////////////////////////////////
|
|
|
|
+#//
|
|
|
|
+#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
|
|
|
|
+#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
|
|
|
|
+#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+#// IBM Corp.; EMC Corporation, The Open Group.
|
|
|
|
+#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
|
|
|
|
+#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+#// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
|
|
|
+#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
|
|
|
|
+#// EMC Corporation; Symantec Corporation; The Open Group.
|
|
|
|
+#//
|
|
|
|
+#// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
+#// of this software and associated documentation files (the "Software"), to
|
|
|
|
+#// deal in the Software without restriction, including without limitation the
|
|
|
|
+#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
+#// sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
+#// furnished to do so, subject to the following conditions:
|
|
|
|
+#//
|
|
|
|
+#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
|
|
|
+#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
|
|
|
|
+#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
|
|
+#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
|
|
+#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
|
|
+#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
|
|
+#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
|
+#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
+#//
|
|
|
|
+#//==============================================================================
|
|
|
|
+
|
|
|
|
+ECHO = echo
|
|
|
|
+MKDIRHIER = mkdir -p
|
|
|
|
+RM = rm -f
|
|
|
|
+TOUCH = touch
|
|
|
|
+
|
|
|
|
+COMPILE_CXX_COMMAND = g++
|
|
|
|
+COMPILE_C_COMMAND = gcc
|
|
|
|
+LIBRARY_LINK_COMMAND = $(COMPILE_CXX_COMMAND) -shared
|
|
|
|
+PROGRAM_LINK_COMMAND = $(COMPILE_CXX_COMMAND)
|
|
|
|
+
|
|
|
|
+SYS_LIBS = -ldl -lpthread -lcrypt
|
|
|
|
+
|
|
|
|
+OBJ_SUFFIX=.o
|
|
|
|
+
|
|
|
|
+DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM)
|
|
|
|
+PROGRAM_COMPILE_OPTIONS = -O2 -W -Wall -Wno-unused -D_GNU_SOURCE \
|
|
|
|
+ -DTHREAD_SAFE -D_REENTRANT -fPIC
|
|
|
|
+LIBRARY_COMPILE_OPTIONS = $(PROGRAM_COMPILE_OPTIONS)
|
|
|
|
+
|
|
|
|
+PROGRAM_LINK_OPTIONS = -Xlinker -rpath -Xlinker $(PEGASUS_DEST_LIB_DIR)
|
|
|
|
+LIBRARY_LINK_OPTIONS = $(PROGRAM_LINK_OPTIONS)
|
|
|
|
+LINK_OUT = -o
|
|
|
|
+SYM_LINK_LIB = $(PEGASUS_PROVIDER_LIB_DIR)/lib$(LIBRARY)
|
|
|
|
+PLATFORM_LIB_SUFFIX = so
|