version 1.20, 2004/03/31 19:09:11
|
version 1.39.12.1, 2008/09/09 23:00:29
|
|
|
//%2003//////////////////////////////////////////////////////////////////////// |
/* |
|
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L. P., IBM Corp., The Open Group, Tivoli Systems. |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; | // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
// IBM Corp.; EMC Corporation, The Open Group. | // 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 | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) |
|
// |
|
// Modified By: Mike Day (mdday@us.ibm.com) |
|
// Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
|
// Bapu Patil (bapu_patil@hp.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
|
*/ |
| |
#ifndef Pegasus_Platform_LINUX_IX86_GNU_h | #ifndef Pegasus_Platform_LINUX_IX86_GNU_h |
#define Pegasus_Platform_LINUX_IX86_GNU_h | #define Pegasus_Platform_LINUX_IX86_GNU_h |
| |
|
#ifdef __cplusplus |
#include <cstddef> | #include <cstddef> |
|
#endif |
| |
#define PEGASUS_OS_TYPE_UNIX | #define PEGASUS_OS_TYPE_UNIX |
| |
|
|
| |
#define PEGASUS_HAVE_NAMESPACES | #define PEGASUS_HAVE_NAMESPACES |
| |
#define PEGASUS_HAVE_EXPLICIT |
|
|
|
#define PEGASUS_HAVE_MUTABLE |
|
|
|
#define PEGASUS_HAVE_FOR_SCOPE | #define PEGASUS_HAVE_FOR_SCOPE |
| |
// #define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION |
#define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION |
| |
#ifndef _GNU_SOURCE | #ifndef _GNU_SOURCE |
#define _GNU_SOURCE | #define _GNU_SOURCE |
|
|
#include <features.h> | #include <features.h> |
#include <stdio.h> | #include <stdio.h> |
#include <stdlib.h> | #include <stdlib.h> |
#include <sys/param.h> // For MAXHOSTNAMELEN |
#include <sys/param.h> /* For MAXHOSTNAMELEN */ |
#ifndef min |
#include <limits.h> /* _POSIX_HOST_NAME_MAX */ |
#define min(a,b) (((a)<(b))?(a):(b)) |
|
|
#if (__GNUC__ >= 4) |
|
# define PEGASUS_EXPORT __attribute__ ((visibility("default"))) |
|
# define PEGASUS_IMPORT __attribute__ ((visibility("default"))) |
|
# define PEGASUS_HIDDEN_LINKAGE __attribute__((visibility("hidden"))) |
#endif | #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 |
|
|
|
/* use POSIX read-write locks on this platform */ |
|
#define PEGASUS_USE_POSIX_RWLOCK |
|
|
#endif /* Pegasus_Platform_LINUX_IX86_GNU_h */ | #endif /* Pegasus_Platform_LINUX_IX86_GNU_h */ |