Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _LINUX_CTYPE_H
     20 #define _LINUX_CTYPE_H
     21 #define _U 0x01
     22 #define _L 0x02
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define _D 0x04
     25 #define _C 0x08
     26 #define _P 0x10
     27 #define _S 0x20
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define _X 0x40
     30 #define _SP 0x80
     31 #define __ismask(x) (_ctype[(int)(unsigned char)(x)])
     32 #define isalnum(c) ((__ismask(c)&(_U|_L|_D)) != 0)
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define isalpha(c) ((__ismask(c)&(_U|_L)) != 0)
     35 #define iscntrl(c) ((__ismask(c)&(_C)) != 0)
     36 #define isdigit(c) ((__ismask(c)&(_D)) != 0)
     37 #define isgraph(c) ((__ismask(c)&(_P|_U|_L|_D)) != 0)
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define islower(c) ((__ismask(c)&(_L)) != 0)
     40 #define isprint(c) ((__ismask(c)&(_P|_U|_L|_D|_SP)) != 0)
     41 #define ispunct(c) ((__ismask(c)&(_P)) != 0)
     42 #define isspace(c) ((__ismask(c)&(_S)) != 0)
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define isupper(c) ((__ismask(c)&(_U)) != 0)
     45 #define isxdigit(c) ((__ismask(c)&(_D|_X)) != 0)
     46 #define isascii(c) (((unsigned char)(c))<=0x7f)
     47 #define toascii(c) (((unsigned char)(c))&0x7f)
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define tolower(c) __tolower(c)
     50 #define toupper(c) __toupper(c)
     51 #endif
     52