vfs: check userland buffers before reading them.
[haiku.git] / headers / private / libroot / locale / PosixCtype.h
blobf89425777fdaa43714b2d4b6206c05b2d23de550
1 /*
2 * Copyright 2010, Oliver Tappe, zooey@hirschkaefer.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _POSIX_CTYPE_H
6 #define _POSIX_CTYPE_H
9 namespace BPrivate {
10 namespace Libroot {
14 * The following arrays have 384 elements where the elements at index -128..-2
15 * mirror the elements at index 128..255 (to protect against invocations of
16 * ctype macros with negative character values).
17 * The element at index -1 is a dummy element containing the neutral/identity
18 * value used when the array is accessed as in 'isblank(EOF)' (i.e. with
19 * index -1).
21 extern const unsigned short gPosixClassInfo[384];
22 extern const int gPosixToLowerMap[384];
23 extern const int gPosixToUpperMap[384];
26 } // namespace Libroot
27 } // namespace BPrivate
30 #endif // _POSIX_CTYPE_H