4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
27 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
29 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
30 * Use is subject to license terms.
36 #include <iso/ctype_iso.h>
39 * Allow global visibility for symbols defined in
40 * C++ "std" namespace in <iso/ctype_iso.h>.
42 #if __cplusplus >= 199711L
56 #if (__cplusplus >= 201103L) || defined(_STDC_C99) || defined(_XPG6) || \
57 !defined(_STRICT_SYMBOLS)
66 #if defined(__EXTENSIONS__) || \
67 ((!defined(_STRICT_STDC) && !defined(_POSIX_C_SOURCE)) || \
68 defined(_XOPEN_SOURCE))
70 extern int isascii(int);
71 extern int toascii(int);
72 extern int _tolower(int);
73 extern int _toupper(int);
75 #endif /* defined(__EXTENSIONS__) || ((!defined(_STRICT_STDC) ... */
79 #if defined(__EXTENSIONS__) || \
80 ((!defined(_STRICT_STDC) && !defined(_POSIX_C_SOURCE)) || \
81 defined(_XOPEN_SOURCE)) || defined(__XPG4_CHAR_CLASS__)
82 #define isascii(c) (!(((int)(c)) & ~0177))
83 #define toascii(c) (((int)(c)) & 0177)
84 #define _toupper(c) (toupper(c))
85 #define _tolower(c) (tolower(c))
87 #endif /* defined(__EXTENSIONS__) || ((!defined(_STRICT_STDC) ... */
89 #endif /* !defined(__lint) */
91 #if defined(_XPG7) || !defined(_STRICT_SYMBOLS)
95 typedef struct _locale
*locale_t
;
98 extern int isalnum_l(int, locale_t
);
99 extern int isalpha_l(int, locale_t
);
100 extern int isblank_l(int, locale_t
);
101 extern int iscntrl_l(int, locale_t
);
102 extern int isdigit_l(int, locale_t
);
103 extern int isgraph_l(int, locale_t
);
104 extern int islower_l(int, locale_t
);
105 extern int isprint_l(int, locale_t
);
106 extern int ispunct_l(int, locale_t
);
107 extern int isspace_l(int, locale_t
);
108 extern int isupper_l(int, locale_t
);
109 extern int isxdigit_l(int, locale_t
);
110 extern int tolower_l(int, locale_t
);
111 extern int toupper_l(int, locale_t
);
113 #endif /* defined(_XPG7) || !defined(_STRICT_SYMBOLS) */
119 #endif /* _CTYPE_H */