github.com/afumu/libc@v0.0.6/locale/locale_netbsd_amd64.go (about)

     1  // Code generated by 'ccgo locale/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o locale/locale_netbsd_amd64.go -pkgname locale', DO NOT EDIT.
     2  
     3  package locale
     4  
     5  import (
     6  	"math"
     7  	"reflect"
     8  	"sync/atomic"
     9  	"unsafe"
    10  )
    11  
    12  var _ = math.Pi
    13  var _ reflect.Kind
    14  var _ atomic.Value
    15  var _ unsafe.Pointer
    16  
    17  const (
    18  	LC_ALL             = 0  // locale.h:68:1:
    19  	LC_COLLATE         = 1  // locale.h:69:1:
    20  	LC_CTYPE           = 2  // locale.h:70:1:
    21  	LC_MESSAGES        = 6  // locale.h:74:1:
    22  	LC_MONETARY        = 3  // locale.h:71:1:
    23  	LC_NUMERIC         = 4  // locale.h:72:1:
    24  	LC_TIME            = 5  // locale.h:73:1:
    25  	X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
    26  	X_LC_LAST          = 7  // locale.h:76:1:
    27  	X_LOCALE_H_        = 0  // locale.h:35:1:
    28  	X_LP64             = 1  // <predefined>:268:1:
    29  	X_NETBSD_SOURCE    = 1  // featuretest.h:70:1:
    30  	X_SYS_CDEFS_ELF_H_ = 0  // cdefs_elf.h:31:1:
    31  	X_SYS_CDEFS_H_     = 0  // cdefs.h:37:1:
    32  	X_SYS_NULL_H_      = 0  // null.h:9:1:
    33  	X_X86_64_CDEFS_H_  = 0  // cdefs.h:4:1:
    34  )
    35  
    36  type Ptrdiff_t = int64 /* <builtin>:3:26 */
    37  
    38  type Size_t = uint64 /* <builtin>:9:23 */
    39  
    40  type Wchar_t = int32 /* <builtin>:15:24 */
    41  
    42  type X__int128_t = struct {
    43  	Flo int64
    44  	Fhi int64
    45  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    46  type X__uint128_t = struct {
    47  	Flo uint64
    48  	Fhi uint64
    49  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    50  
    51  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    52  type X__float128 = float64        /* <builtin>:47:21 */
    53  
    54  //	$NetBSD: locale.h,v 1.28 2016/04/29 16:26:48 joerg Exp $
    55  
    56  // Copyright (c) 1991, 1993
    57  //	The Regents of the University of California.  All rights reserved.
    58  //
    59  // Redistribution and use in source and binary forms, with or without
    60  // modification, are permitted provided that the following conditions
    61  // are met:
    62  // 1. Redistributions of source code must retain the above copyright
    63  //    notice, this list of conditions and the following disclaimer.
    64  // 2. Redistributions in binary form must reproduce the above copyright
    65  //    notice, this list of conditions and the following disclaimer in the
    66  //    documentation and/or other materials provided with the distribution.
    67  // 3. Neither the name of the University nor the names of its contributors
    68  //    may be used to endorse or promote products derived from this software
    69  //    without specific prior written permission.
    70  //
    71  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    72  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    73  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    74  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    75  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    76  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    77  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    78  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    79  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    80  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    81  // SUCH DAMAGE.
    82  //
    83  //	@(#)locale.h	8.1 (Berkeley) 6/2/93
    84  
    85  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
    86  
    87  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
    88  // Public domain.
    89  //
    90  // NOTE: Do not protect this header against multiple inclusion.  Doing
    91  // so can have subtle side-effects due to header file inclusion order
    92  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
    93  // protect each CPP macro that we want to supply.
    94  
    95  // Feature-test macros are defined by several standards, and allow an
    96  // application to specify what symbols they want the system headers to
    97  // expose, and hence what standard they want them to conform to.
    98  // There are two classes of feature-test macros.  The first class
    99  // specify complete standards, and if one of these is defined, header
   100  // files will try to conform to the relevant standard.  They are:
   101  //
   102  // ANSI macros:
   103  // _ANSI_SOURCE			ANSI C89
   104  //
   105  // POSIX macros:
   106  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   107  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   108  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   109  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   110  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   111  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   112  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   113  //
   114  // X/Open macros:
   115  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   116  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   117  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   118  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   119  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   120  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   121  //
   122  // NetBSD macros:
   123  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   124  //
   125  // If more than one of these "major" feature-test macros is defined,
   126  // then the set of facilities provided (and namespace used) is the
   127  // union of that specified by the relevant standards, and in case of
   128  // conflict, the earlier standard in the above list has precedence (so
   129  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   130  // of rename() that's used is the POSIX one).  If none of the "major"
   131  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   132  //
   133  // There are also "minor" feature-test macros, which enable extra
   134  // functionality in addition to some base standard.  They should be
   135  // defined along with one of the "major" macros.  The "minor" macros
   136  // are:
   137  //
   138  // _REENTRANT
   139  // _ISOC99_SOURCE
   140  // _ISOC11_SOURCE
   141  // _LARGEFILE_SOURCE		Large File Support
   142  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   143  
   144  type Lconv = struct {
   145  	Fdecimal_point      uintptr
   146  	Fthousands_sep      uintptr
   147  	Fgrouping           uintptr
   148  	Fint_curr_symbol    uintptr
   149  	Fcurrency_symbol    uintptr
   150  	Fmon_decimal_point  uintptr
   151  	Fmon_thousands_sep  uintptr
   152  	Fmon_grouping       uintptr
   153  	Fpositive_sign      uintptr
   154  	Fnegative_sign      uintptr
   155  	Fint_frac_digits    int8
   156  	Ffrac_digits        int8
   157  	Fp_cs_precedes      int8
   158  	Fp_sep_by_space     int8
   159  	Fn_cs_precedes      int8
   160  	Fn_sep_by_space     int8
   161  	Fp_sign_posn        int8
   162  	Fn_sign_posn        int8
   163  	Fint_p_cs_precedes  int8
   164  	Fint_n_cs_precedes  int8
   165  	Fint_p_sep_by_space int8
   166  	Fint_n_sep_by_space int8
   167  	Fint_p_sign_posn    int8
   168  	Fint_n_sign_posn    int8
   169  	F__ccgo_pad1        [2]byte
   170  } /* locale.h:39:1 */
   171  
   172  // return true if value 'a' fits in type 't'
   173  
   174  type Locale_t = uintptr /* locale.h:83:25 */
   175  
   176  var _ int8 /* gen.c:2:13: */