1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins 2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

187
cde/include/EUSCompat.h Normal file
View file

@ -0,0 +1,187 @@
/*
*+SNOTICE
*
* $TOG: EUSCompat.h /main/4 1998/04/03 17:11:57 mgreess $
*
* RESTRICTED CONFIDENTIAL INFORMATION:
*
* The information in this document is subject to special
* restrictions in a confidential disclosure agreement bertween
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
* document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
* Sun's specific written approval. This documment and all copies
* and derivative works thereof must be returned or destroyed at
* Sun's request.
*
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
*
*+ENOTICE
*/
#ifndef _EUSCOMPAT_H
#define _EUSCOMPAT_H
#ifdef __cplusplus
extern "C" {
#endif
#if defined(SunOS)
#if (RELMAJOR==5)
#if (RELMINOR<2)
#define STRCASECMP_NOT_DEFINED
#endif /* RELMINOR */
#endif /* RELMAJOR */
#endif
/*
** System V R4 based systems define the stuff we need in
** sys/types.h. Include that and then we are done.
*/
#if defined(HPUX) || defined(linux) || defined(SunOS) || defined(UNIX_SV) || defined(USL) || defined(__uxp__)
#include <sys/types.h>
#endif
#if defined(sun) && defined(_XOPEN_SOURCE)
#ifndef B_TRUE
#define B_TRUE _B_TRUE
#endif
#ifndef B_FALSE
#define B_FALSE _B_FALSE
#endif
#endif /* sun && _XOPEN_SOURCE */
/*
** HPUX defines most of what we need, if we set the right
** include options before including the system files.
*/
#if defined(HPUX)
#ifndef _INCLUDE_POSIX_SOURCE
#define _INCLUDE_POSIX_SOURCE
#endif
#ifndef _INCLUDE_XOPEN_SOURCE
#define _INCLUDE_XOPEN_SOURCE
#endif
#ifndef _INCLUDE_AES_SOURCE
#define _INCLUDE_AES_SOURCE
#endif
#ifndef _INCLUDE_HPUX_SOURCE
#define _INCLUDE_HPUX_SOURCE
#endif
#ifndef hpV4
typedef unsigned long ulong_t;
#endif /* hpV4 */
typedef unsigned char uchar_t;
typedef enum {B_FALSE, B_TRUE} boolean_t;
#define _SC_PAGESIZE _SC_PAGE_SIZE
#ifndef MAXPATHLEN
#include <sys/param.h>
#endif
#define MAXNAMELEN 256
#endif /* HPUX */
#if defined(linux)
typedef enum {B_FALSE, B_TRUE} boolean_t;
#define MAXNAMELEN 256
#define iconv_t int
#define iconv_open(a, b) ((iconv_t) -1)
#define iconv(a, b, c, d, e) ((size_t) 0)
#define iconv_close(a) (0)
#endif /* linux */
/*
** AIX, like HPUX defines most of what we need.
*/
#if defined(AIX)
#ifndef KERNEL
#define KERNEL
#endif
#ifndef _BSD_INCLUDES
#define _BSD_INCLUDES
#endif
#include <sys/types.h>
#define _SC_PAGESIZE _SC_PAGE_SIZE
#define vfork fork
#ifndef MAXPATHLEN
#include <sys/param.h>
#endif
#define MAXNAMELEN 256
#ifndef _POWER
typedef enum {B_FALSE, B_TRUE} boolean_t;
#else /* _POWER */
#ifndef B_FALSE
#define B_FALSE 0
#endif
#ifndef B_TRUE
#define B_TRUE 1
#endif
#endif /* _POWER */
#undef BIG_ENDIAN
#endif /* AIX */
#if defined(USL) || defined(__uxp__)
#include <sys/param.h>
#define STRCASECMP_NOT_DEFINED
#if !defined(S_ISLNK)
#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
#endif
#endif
/*
* A bug in Solaris 2.1 and the GNU compilers, these are not defined.
*/
#ifdef STRCASECMP_NOT_DEFINED
extern int strcasecmp(const char *, const char *);
extern int strncasecmp(const char *, const char *, size_t);
#endif
/*
**
*/
#if defined(__osf__)
#define vfork fork
#include <sys/types.h>
#ifndef MAXPATHLEN
#include <sys/param.h>
#endif
#ifndef MAXNAMELEN
#define MAXNAMELEN 256
#endif
typedef enum {B_FALSE, B_TRUE} boolean_t;
#undef BIG_ENDIAN
#endif /* __osf__ */
#ifdef __cplusplus
}
#endif
#endif

14
cde/include/Imakefile Normal file
View file

@ -0,0 +1,14 @@
XCOMM $TOG: Imakefile /main/4 1997/07/09 10:03:24 samborn $
#define PassCDebugFlags /**/
HEADERS = hpversion.h EUSCompat.h
all::
BuildIncludes($(HEADERS),.,.)
InstallMultipleFlags($(HEADERS),$(INCDIR),$(INSTINCFLAGS))
depend::
clean::

33
cde/include/hpversion.h Normal file
View file

@ -0,0 +1,33 @@
/* $XConsortium: hpversion.h /main/5 1996/08/30 15:22:49 drk $ */
/* -*-C-*-
****************************************************************
*/
/* The following macro should be invoked once by each of the X11 components
to provide standard revision information. */
#ifndef lint
#define version_tag(FILE_VERSION) \
static char _hp_merge_version[] = "@(#)" FILE_VERSION;
#else /* lint */
#define version_tag(FILE_VERSION)
#endif /* lint */
/* Any revision information other than the standard 'hpversion' macro shoud
be conditionally compiled using the VERBOSE_REV_INFO constant so that it
can be excluded for official X11 releases. To set VERBOSE_REV_INFO, comment
out one of the following 2 blocks. */
/* This block turns on VERBOSE_REV_INFO */
/*
#ifndef lint
#define VERBOSE_REV_INFO 1
#else
#ifdef VERBOSE_REV_INFO
#undef VERBOSE_REV_INFO
#endif
#endif
*/
/* This block turns off VERBOSE_REV_INFO */
#ifdef VERBOSE_REV_INFO
#undef VERBOSE_REV_INFO
#endif