2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
26 * $TOG: EUSCompat.h /main/4 1998/04/03 17:11:57 mgreess $
28 * RESTRICTED CONFIDENTIAL INFORMATION:
30 * The information in this document is subject to special
31 * restrictions in a confidential disclosure agreement bertween
32 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
33 * document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
34 * Sun's specific written approval. This documment and all copies
35 * and derivative works thereof must be returned or destroyed at
38 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
53 #define STRCASECMP_NOT_DEFINED
59 ** System V R4 based systems define the stuff we need in
60 ** sys/types.h. Include that and then we are done.
62 #if defined(HPUX) || defined(linux) || defined(SunOS) || defined(UNIX_SV) || defined(USL) || defined(__uxp__)
63 #include <sys/types.h>
66 #if defined(sun) && defined(_XOPEN_SOURCE)
68 #define B_TRUE _B_TRUE
71 #define B_FALSE _B_FALSE
73 #endif /* sun && _XOPEN_SOURCE */
76 ** HPUX defines most of what we need, if we set the right
77 ** include options before including the system files.
81 #ifndef _INCLUDE_POSIX_SOURCE
82 #define _INCLUDE_POSIX_SOURCE
85 #ifndef _INCLUDE_XOPEN_SOURCE
86 #define _INCLUDE_XOPEN_SOURCE
89 #ifndef _INCLUDE_AES_SOURCE
90 #define _INCLUDE_AES_SOURCE
93 #ifndef _INCLUDE_HPUX_SOURCE
94 #define _INCLUDE_HPUX_SOURCE
98 typedef unsigned long ulong_t;
100 typedef unsigned char uchar_t;
101 typedef enum {B_FALSE, B_TRUE} boolean_t;
103 #define _SC_PAGESIZE _SC_PAGE_SIZE
106 #include <sys/param.h>
109 #define MAXNAMELEN 256
114 typedef enum {B_FALSE, B_TRUE} boolean_t;
115 #define MAXNAMELEN 256
118 #define iconv_open(a, b) ((iconv_t) -1)
119 #define iconv(a, b, c, d, e) ((size_t) 0)
120 #define iconv_close(a) (0)
125 ** AIX, like HPUX defines most of what we need.
133 #ifndef _BSD_INCLUDES
134 #define _BSD_INCLUDES
137 #include <sys/types.h>
139 #define _SC_PAGESIZE _SC_PAGE_SIZE
143 #include <sys/param.h>
146 #define MAXNAMELEN 256
149 typedef enum {B_FALSE, B_TRUE} boolean_t;
163 #if defined(USL) || defined(__uxp__)
165 #include <sys/param.h>
167 #define STRCASECMP_NOT_DEFINED
168 #if !defined(S_ISLNK)
169 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
174 * A bug in Solaris 2.1 and the GNU compilers, these are not defined.
176 #ifdef STRCASECMP_NOT_DEFINED
177 extern int strcasecmp(const char *, const char *);
178 extern int strncasecmp(const char *, const char *, size_t);
188 #include <sys/types.h>
191 #include <sys/param.h>
195 #define MAXNAMELEN 256
198 typedef enum {B_FALSE, B_TRUE} boolean_t;