1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2015 Garrett D'Amore <garrett@damore.org>
  14 #
  15 
  16 #
  17 # Definitions found in locale.h
  18 #
  19 
  20 #
  21 # Types.
  22 #
  23 type |  locale_t        | locale.h | -ALL SUSv4+
  24 type |  struct lconv    | locale.h | ALL
  25 
  26 #
  27 # Values.
  28 #
  29 value | LC_CTYPE                | int           | locale.h | ALL
  30 value | LC_COLLATE              | int           | locale.h | ALL
  31 value | LC_TIME                 | int           | locale.h | ALL
  32 value | LC_NUMERIC              | int           | locale.h | ALL
  33 value | LC_MONETARY             | int           | locale.h | ALL
  34 value | LC_MESSAGES             | int           | locale.h | ALL
  35 value | LC_GLOBAL_LOCALE        | locale_t      | locale.h | -ALL SUSv4+
  36 value | NULL                    | void *        | locale.h | ALL
  37 
  38 #
  39 # Functions
  40 #
  41 func |  duplocale                                                       |\
  42         locale_t                                                        |\
  43         locale_t                                                        |\
  44         locale.h | -ALL SUSv4+
  45 
  46 func |  newlocale                                                       |\
  47         locale_t                                                        |\
  48         int; const char *; locale_t                                     |\
  49         locale.h | -ALL SUSv4+
  50 
  51 func |  freelocale                                                      |\
  52         void                                                            |\
  53         locale_t                                                        |\
  54         locale.h | -ALL SUSv4+
  55 
  56 func |  localeconv                                                      |\
  57         struct lconv *                                                  |\
  58         void                                                            |\
  59         locale.h | ALL
  60 
  61 func |  setlocale                                                       |\
  62         char *                                                          |\
  63         int; const char *                                               |\
  64         locale.h | ALL