github.com/afumu/libc@v0.0.6/time/time_freebsd_amd64.go (about)

     1  // Code generated by 'ccgo time/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 time/time_freebsd_amd64.go -pkgname time', DO NOT EDIT.
     2  
     3  package time
     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  	CLK_TCK                  = 128 // time.h:56:1:
    19  	CLOCKS_PER_SEC           = 128 // time.h:60:1:
    20  	CLOCK_BOOTTIME           = 5   // _clock_id.h:92:1:
    21  	CLOCK_MONOTONIC          = 4   // _clock_id.h:67:1:
    22  	CLOCK_MONOTONIC_COARSE   = 12  // _clock_id.h:94:1:
    23  	CLOCK_MONOTONIC_FAST     = 12  // _clock_id.h:79:1:
    24  	CLOCK_MONOTONIC_PRECISE  = 11  // _clock_id.h:78:1:
    25  	CLOCK_PROCESS_CPUTIME_ID = 15  // _clock_id.h:85:1:
    26  	CLOCK_PROF               = 2   // _clock_id.h:64:1:
    27  	CLOCK_REALTIME           = 0   // _clock_id.h:60:1:
    28  	CLOCK_REALTIME_COARSE    = 10  // _clock_id.h:93:1:
    29  	CLOCK_REALTIME_FAST      = 10  // _clock_id.h:77:1:
    30  	CLOCK_REALTIME_PRECISE   = 9   // _clock_id.h:76:1:
    31  	CLOCK_SECOND             = 13  // _clock_id.h:80:1:
    32  	CLOCK_THREAD_CPUTIME_ID  = 14  // _clock_id.h:84:1:
    33  	CLOCK_UPTIME             = 5   // _clock_id.h:74:1:
    34  	CLOCK_UPTIME_FAST        = 8   // _clock_id.h:68:1:
    35  	CLOCK_UPTIME_PRECISE     = 7   // _clock_id.h:75:1:
    36  	CLOCK_VIRTUAL            = 1   // _clock_id.h:63:1:
    37  	TIMER_ABSTIME            = 0x1 // _clock_id.h:101:1:
    38  	TIMER_RELTIME            = 0x0 // _clock_id.h:98:1:
    39  	TIME_UTC                 = 1   // time.h:188:1:
    40  	X_CLOCKID_T_DECLARED     = 0   // time.h:83:1:
    41  	X_CLOCK_T_DECLARED       = 0   // time.h:64:1:
    42  	X_FILE_OFFSET_BITS       = 64  // <builtin>:25:1:
    43  	X_LOCALE_T_DEFINED       = 0   // _time.h:34:1:
    44  	X_LP64                   = 1   // <predefined>:1:1:
    45  	X_MACHINE__LIMITS_H_     = 0   // _limits.h:36:1:
    46  	X_MACHINE__TYPES_H_      = 0   // _types.h:42:1:
    47  	X_Nonnull                = 0   // cdefs.h:790:1:
    48  	X_Null_unspecified       = 0   // cdefs.h:792:1:
    49  	X_Nullable               = 0   // cdefs.h:791:1:
    50  	X_PID_T_DECLARED         = 0   // time.h:97:1:
    51  	X_SIZE_T_DECLARED        = 0   // time.h:74:1:
    52  	X_SYS_CDEFS_H_           = 0   // cdefs.h:39:1:
    53  	X_SYS_SYS__CLOCK_ID_H    = 0   // _clock_id.h:40:1:
    54  	X_SYS_TIMESPEC_H_        = 0   // timespec.h:37:1:
    55  	X_SYS__TIMESPEC_H_       = 0   // _timespec.h:37:1:
    56  	X_SYS__TYPES_H_          = 0   // _types.h:32:1:
    57  	X_TIMER_T_DECLARED       = 0   // time.h:88:1:
    58  	X_TIME_H_                = 0   // time.h:44:1:
    59  	X_TIME_T_DECLARED        = 0   // time.h:69:1:
    60  	X_XLOCALE_LOCALE1_H      = 0   // _time.h:44:1:
    61  	Unix                     = 1   // <predefined>:340:1:
    62  )
    63  
    64  type Ptrdiff_t = int64 /* <builtin>:3:26 */
    65  
    66  type Size_t = uint64 /* <builtin>:9:23 */
    67  
    68  type Wchar_t = int32 /* <builtin>:15:24 */
    69  
    70  type X__int128_t = struct {
    71  	Flo int64
    72  	Fhi int64
    73  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    74  type X__uint128_t = struct {
    75  	Flo uint64
    76  	Fhi uint64
    77  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    78  
    79  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    80  type X__float128 = float64        /* <builtin>:47:21 */
    81  
    82  // -
    83  // SPDX-License-Identifier: BSD-3-Clause
    84  //
    85  // Copyright (c) 1989, 1993
    86  //	The Regents of the University of California.  All rights reserved.
    87  // (c) UNIX System Laboratories, Inc.
    88  // All or some portions of this file are derived from material licensed
    89  // to the University of California by American Telephone and Telegraph
    90  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
    91  // the permission of UNIX System Laboratories, Inc.
    92  //
    93  // Redistribution and use in source and binary forms, with or without
    94  // modification, are permitted provided that the following conditions
    95  // are met:
    96  // 1. Redistributions of source code must retain the above copyright
    97  //    notice, this list of conditions and the following disclaimer.
    98  // 2. Redistributions in binary form must reproduce the above copyright
    99  //    notice, this list of conditions and the following disclaimer in the
   100  //    documentation and/or other materials provided with the distribution.
   101  // 3. Neither the name of the University nor the names of its contributors
   102  //    may be used to endorse or promote products derived from this software
   103  //    without specific prior written permission.
   104  //
   105  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   106  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   107  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   108  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   109  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   110  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   111  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   112  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   113  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   114  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   115  // SUCH DAMAGE.
   116  //
   117  //	@(#)time.h	8.3 (Berkeley) 1/21/94
   118  
   119  // $FreeBSD$
   120  
   121  // -
   122  // SPDX-License-Identifier: BSD-3-Clause
   123  //
   124  // Copyright (c) 1991, 1993
   125  //	The Regents of the University of California.  All rights reserved.
   126  //
   127  // This code is derived from software contributed to Berkeley by
   128  // Berkeley Software Design, Inc.
   129  //
   130  // Redistribution and use in source and binary forms, with or without
   131  // modification, are permitted provided that the following conditions
   132  // are met:
   133  // 1. Redistributions of source code must retain the above copyright
   134  //    notice, this list of conditions and the following disclaimer.
   135  // 2. Redistributions in binary form must reproduce the above copyright
   136  //    notice, this list of conditions and the following disclaimer in the
   137  //    documentation and/or other materials provided with the distribution.
   138  // 3. Neither the name of the University nor the names of its contributors
   139  //    may be used to endorse or promote products derived from this software
   140  //    without specific prior written permission.
   141  //
   142  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   143  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   144  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   145  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   146  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   147  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   148  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   149  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   150  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   151  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   152  // SUCH DAMAGE.
   153  //
   154  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   155  // $FreeBSD$
   156  
   157  // Testing against Clang-specific extensions.
   158  
   159  // This code has been put in place to help reduce the addition of
   160  // compiler specific defines in FreeBSD code.  It helps to aid in
   161  // having a compiler-agnostic source tree.
   162  
   163  // Compiler memory barriers, specific to gcc and clang.
   164  
   165  // XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
   166  
   167  // Macro to test if we're using a specific version of gcc or later.
   168  
   169  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
   170  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
   171  // The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
   172  // mode -- there must be no spaces between its arguments, and for nested
   173  // __CONCAT's, all the __CONCAT's must be at the left.  __CONCAT can also
   174  // concatenate double-quoted strings produced by the __STRING macro, but
   175  // this only works with ANSI C.
   176  //
   177  // __XSTRING is like __STRING, but it expands any macros in its argument
   178  // first.  It is only available with ANSI C.
   179  
   180  // Compiler-dependent macros to help declare dead (non-returning) and
   181  // pure (no side effects) functions, and unused variables.  They are
   182  // null except for versions of gcc that are known to support the features
   183  // properly (old versions of gcc-2 supported the dead and pure features
   184  // in a different (wrong) way).  If we do not provide an implementation
   185  // for a given compiler, let the compile fail if it is told to use
   186  // a feature that we cannot live without.
   187  
   188  // Keywords added in C11.
   189  
   190  // Emulation of C11 _Generic().  Unlike the previously defined C11
   191  // keywords, it is not possible to implement this using exactly the same
   192  // syntax.  Therefore implement something similar under the name
   193  // __generic().  Unlike _Generic(), this macro can only distinguish
   194  // between a single type, so it requires nested invocations to
   195  // distinguish multiple cases.
   196  
   197  // C99 Static array indices in function parameter declarations.  Syntax such as:
   198  // void bar(int myArray[static 10]);
   199  // is allowed in C99 but not in C++.  Define __min_size appropriately so
   200  // headers using it can be compiled in either language.  Use like this:
   201  // void bar(int myArray[__min_size(10)]);
   202  
   203  // XXX: should use `#if __STDC_VERSION__ < 199901'.
   204  
   205  // C++11 exposes a load of C99 stuff
   206  
   207  // GCC 2.95 provides `__restrict' as an extension to C90 to support the
   208  // C99-specific `restrict' type qualifier.  We happen to use `__restrict' as
   209  // a way to define the `restrict' type qualifier without disturbing older
   210  // software that is unaware of C99 keywords.
   211  
   212  // GNU C version 2.96 adds explicit branch prediction so that
   213  // the CPU back-end can hint the processor and also so that
   214  // code blocks can be reordered such that the predicted path
   215  // sees a more linear flow, thus improving cache behavior, etc.
   216  //
   217  // The following two macros provide us with a way to utilize this
   218  // compiler feature.  Use __predict_true() if you expect the expression
   219  // to evaluate to true, and __predict_false() if you expect the
   220  // expression to evaluate to false.
   221  //
   222  // A few notes about usage:
   223  //
   224  //	* Generally, __predict_false() error condition checks (unless
   225  //	  you have some _strong_ reason to do otherwise, in which case
   226  //	  document it), and/or __predict_true() `no-error' condition
   227  //	  checks, assuming you want to optimize for the no-error case.
   228  //
   229  //	* Other than that, if you don't know the likelihood of a test
   230  //	  succeeding from empirical or other `hard' evidence, don't
   231  //	  make predictions.
   232  //
   233  //	* These are meant to be used in places that are run `a lot'.
   234  //	  It is wasteful to make predictions in code that is run
   235  //	  seldomly (e.g. at subsystem initialization time) as the
   236  //	  basic block reordering that this affects can often generate
   237  //	  larger code.
   238  
   239  // We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
   240  // require it.
   241  
   242  // Given the pointer x to the member m of the struct s, return
   243  // a pointer to the containing structure.  When using GCC, we first
   244  // assign pointer x to a local variable, to check that its type is
   245  // compatible with member m.
   246  
   247  // Compiler-dependent macros to declare that functions take printf-like
   248  // or scanf-like arguments.  They are null except for versions of gcc
   249  // that are known to support the features properly (old versions of gcc-2
   250  // didn't permit keeping the keywords out of the application namespace).
   251  
   252  // Compiler-dependent macros that rely on FreeBSD-specific extensions.
   253  
   254  // Embed the rcs id of a source file in the resulting library.  Note that in
   255  // more recent ELF binutils, we use .ident allowing the ID to be stripped.
   256  // Usage:
   257  //	__FBSDID("$FreeBSD$");
   258  
   259  // -
   260  // The following definitions are an extension of the behavior originally
   261  // implemented in <sys/_posix.h>, but with a different level of granularity.
   262  // POSIX.1 requires that the macros we test be defined before any standard
   263  // header file is included.
   264  //
   265  // Here's a quick run-down of the versions:
   266  //  defined(_POSIX_SOURCE)		1003.1-1988
   267  //  _POSIX_C_SOURCE == 1		1003.1-1990
   268  //  _POSIX_C_SOURCE == 2		1003.2-1992 C Language Binding Option
   269  //  _POSIX_C_SOURCE == 199309		1003.1b-1993
   270  //  _POSIX_C_SOURCE == 199506		1003.1c-1995, 1003.1i-1995,
   271  //					and the omnibus ISO/IEC 9945-1: 1996
   272  //  _POSIX_C_SOURCE == 200112		1003.1-2001
   273  //  _POSIX_C_SOURCE == 200809		1003.1-2008
   274  //
   275  // In addition, the X/Open Portability Guide, which is now the Single UNIX
   276  // Specification, defines a feature-test macro which indicates the version of
   277  // that specification, and which subsumes _POSIX_C_SOURCE.
   278  //
   279  // Our macros begin with two underscores to avoid namespace screwage.
   280  
   281  // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
   282  
   283  // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
   284  
   285  // Deal with various X/Open Portability Guides and Single UNIX Spec.
   286  
   287  // Deal with all versions of POSIX.  The ordering relative to the tests above is
   288  // important.
   289  // -
   290  // Deal with _ANSI_SOURCE:
   291  // If it is defined, and no other compilation environment is explicitly
   292  // requested, then define our internal feature-test macros to zero.  This
   293  // makes no difference to the preprocessor (undefined symbols in preprocessing
   294  // expressions are defined to have value zero), but makes it more convenient for
   295  // a test program to print out the values.
   296  //
   297  // If a program mistakenly defines _ANSI_SOURCE and some other macro such as
   298  // _POSIX_C_SOURCE, we will assume that it wants the broader compilation
   299  // environment (and in fact we will never get here).
   300  
   301  // User override __EXT1_VISIBLE
   302  
   303  // Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
   304  // translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
   305  
   306  // Nullability qualifiers: currently only supported by Clang.
   307  
   308  // Type Safety Checking
   309  //
   310  // Clang provides additional attributes to enable checking type safety
   311  // properties that cannot be enforced by the C type system.
   312  
   313  // Lock annotations.
   314  //
   315  // Clang provides support for doing basic thread-safety tests at
   316  // compile-time, by marking which locks will/should be held when
   317  // entering/leaving a functions.
   318  //
   319  // Furthermore, it is also possible to annotate variables and structure
   320  // members to enforce that they are only accessed when certain locks are
   321  // held.
   322  
   323  // Structure implements a lock.
   324  
   325  // Function acquires an exclusive or shared lock.
   326  
   327  // Function attempts to acquire an exclusive or shared lock.
   328  
   329  // Function releases a lock.
   330  
   331  // Function asserts that an exclusive or shared lock is held.
   332  
   333  // Function requires that an exclusive or shared lock is or is not held.
   334  
   335  // Function should not be analyzed.
   336  
   337  // Function or variable should not be sanitized, e.g., by AddressSanitizer.
   338  // GCC has the nosanitize attribute, but as a function attribute only, and
   339  // warns on use as a variable attribute.
   340  
   341  // Guard variables and structure members by lock.
   342  
   343  // Alignment builtins for better type checking and improved code generation.
   344  // Provide fallback versions for other compilers (GCC/Clang < 10):
   345  
   346  // -
   347  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   348  //
   349  // Copyright (c) 2003 Marcel Moolenaar
   350  // All rights reserved.
   351  //
   352  // Redistribution and use in source and binary forms, with or without
   353  // modification, are permitted provided that the following conditions
   354  // are met:
   355  //
   356  // 1. Redistributions of source code must retain the above copyright
   357  //    notice, this list of conditions and the following disclaimer.
   358  // 2. Redistributions in binary form must reproduce the above copyright
   359  //    notice, this list of conditions and the following disclaimer in the
   360  //    documentation and/or other materials provided with the distribution.
   361  //
   362  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   363  // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   364  // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   365  // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   366  // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   367  // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   368  // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   369  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   370  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   371  // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   372  //
   373  // $FreeBSD$
   374  
   375  // -
   376  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   377  //
   378  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   379  // All rights reserved.
   380  //
   381  // Redistribution and use in source and binary forms, with or without
   382  // modification, are permitted provided that the following conditions
   383  // are met:
   384  // 1. Redistributions of source code must retain the above copyright
   385  //    notice, this list of conditions and the following disclaimer.
   386  // 2. Redistributions in binary form must reproduce the above copyright
   387  //    notice, this list of conditions and the following disclaimer in the
   388  //    documentation and/or other materials provided with the distribution.
   389  //
   390  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   391  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   392  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   393  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   394  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   395  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   396  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   397  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   398  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   399  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   400  // SUCH DAMAGE.
   401  //
   402  // $FreeBSD$
   403  
   404  // -
   405  // SPDX-License-Identifier: BSD-3-Clause
   406  //
   407  // Copyright (c) 1991, 1993
   408  //	The Regents of the University of California.  All rights reserved.
   409  //
   410  // This code is derived from software contributed to Berkeley by
   411  // Berkeley Software Design, Inc.
   412  //
   413  // Redistribution and use in source and binary forms, with or without
   414  // modification, are permitted provided that the following conditions
   415  // are met:
   416  // 1. Redistributions of source code must retain the above copyright
   417  //    notice, this list of conditions and the following disclaimer.
   418  // 2. Redistributions in binary form must reproduce the above copyright
   419  //    notice, this list of conditions and the following disclaimer in the
   420  //    documentation and/or other materials provided with the distribution.
   421  // 3. Neither the name of the University nor the names of its contributors
   422  //    may be used to endorse or promote products derived from this software
   423  //    without specific prior written permission.
   424  //
   425  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   426  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   427  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   428  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   429  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   430  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   431  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   432  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   433  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   434  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   435  // SUCH DAMAGE.
   436  //
   437  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   438  // $FreeBSD$
   439  
   440  // -
   441  // This file is in the public domain.
   442  // $FreeBSD$
   443  
   444  // -
   445  // SPDX-License-Identifier: BSD-4-Clause
   446  //
   447  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   448  // Copyright (c) 1990, 1993
   449  //	The Regents of the University of California.  All rights reserved.
   450  //
   451  // Redistribution and use in source and binary forms, with or without
   452  // modification, are permitted provided that the following conditions
   453  // are met:
   454  // 1. Redistributions of source code must retain the above copyright
   455  //    notice, this list of conditions and the following disclaimer.
   456  // 2. Redistributions in binary form must reproduce the above copyright
   457  //    notice, this list of conditions and the following disclaimer in the
   458  //    documentation and/or other materials provided with the distribution.
   459  // 3. All advertising materials mentioning features or use of this software
   460  //    must display the following acknowledgement:
   461  //	This product includes software developed by the University of
   462  //	California, Berkeley and its contributors.
   463  // 4. Neither the name of the University nor the names of its contributors
   464  //    may be used to endorse or promote products derived from this software
   465  //    without specific prior written permission.
   466  //
   467  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   468  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   469  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   470  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   471  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   472  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   473  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   474  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   475  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   476  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   477  // SUCH DAMAGE.
   478  //
   479  //	From: @(#)ansi.h	8.2 (Berkeley) 1/4/94
   480  //	From: @(#)types.h	8.3 (Berkeley) 1/5/94
   481  // $FreeBSD$
   482  
   483  // -
   484  // This file is in the public domain.
   485  // $FreeBSD$
   486  
   487  // -
   488  // SPDX-License-Identifier: BSD-3-Clause
   489  //
   490  // Copyright (c) 1988, 1993
   491  //	The Regents of the University of California.  All rights reserved.
   492  //
   493  // Redistribution and use in source and binary forms, with or without
   494  // modification, are permitted provided that the following conditions
   495  // are met:
   496  // 1. Redistributions of source code must retain the above copyright
   497  //    notice, this list of conditions and the following disclaimer.
   498  // 2. Redistributions in binary form must reproduce the above copyright
   499  //    notice, this list of conditions and the following disclaimer in the
   500  //    documentation and/or other materials provided with the distribution.
   501  // 3. Neither the name of the University nor the names of its contributors
   502  //    may be used to endorse or promote products derived from this software
   503  //    without specific prior written permission.
   504  //
   505  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   506  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   507  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   508  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   509  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   510  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   511  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   512  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   513  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   514  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   515  // SUCH DAMAGE.
   516  //
   517  //	@(#)limits.h	8.3 (Berkeley) 1/4/94
   518  // $FreeBSD$
   519  
   520  // According to ANSI (section 2.2.4.2), the values below must be usable by
   521  // #if preprocessing directives.  Additionally, the expression must have the
   522  // same type as would an expression that is an object of the corresponding
   523  // type converted according to the integral promotions.  The subtraction for
   524  // INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
   525  // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
   526  
   527  // max value for an unsigned long long
   528  
   529  // Quads and longs are the same on the amd64.  Ensure they stay in sync.
   530  
   531  // Minimum signal stack size.
   532  
   533  // Basic types upon which most other types are built.
   534  type X__int8_t = int8     /* _types.h:55:22 */
   535  type X__uint8_t = uint8   /* _types.h:56:24 */
   536  type X__int16_t = int16   /* _types.h:57:17 */
   537  type X__uint16_t = uint16 /* _types.h:58:25 */
   538  type X__int32_t = int32   /* _types.h:59:15 */
   539  type X__uint32_t = uint32 /* _types.h:60:23 */
   540  type X__int64_t = int64   /* _types.h:62:16 */
   541  type X__uint64_t = uint64 /* _types.h:63:24 */
   542  
   543  // Standard type definitions.
   544  type X__clock_t = X__int32_t         /* _types.h:75:19 */ // clock()...
   545  type X__critical_t = X__int64_t      /* _types.h:76:19 */
   546  type X__double_t = float64           /* _types.h:78:17 */
   547  type X__float_t = float32            /* _types.h:79:16 */
   548  type X__intfptr_t = X__int64_t       /* _types.h:81:19 */
   549  type X__intptr_t = X__int64_t        /* _types.h:82:19 */
   550  type X__intmax_t = X__int64_t        /* _types.h:93:19 */
   551  type X__int_fast8_t = X__int32_t     /* _types.h:94:19 */
   552  type X__int_fast16_t = X__int32_t    /* _types.h:95:19 */
   553  type X__int_fast32_t = X__int32_t    /* _types.h:96:19 */
   554  type X__int_fast64_t = X__int64_t    /* _types.h:97:19 */
   555  type X__int_least8_t = X__int8_t     /* _types.h:98:18 */
   556  type X__int_least16_t = X__int16_t   /* _types.h:99:19 */
   557  type X__int_least32_t = X__int32_t   /* _types.h:100:19 */
   558  type X__int_least64_t = X__int64_t   /* _types.h:101:19 */
   559  type X__ptrdiff_t = X__int64_t       /* _types.h:103:19 */ // ptr1 - ptr2
   560  type X__register_t = X__int64_t      /* _types.h:104:19 */
   561  type X__segsz_t = X__int64_t         /* _types.h:105:19 */ // segment size (in pages)
   562  type X__size_t = X__uint64_t         /* _types.h:106:20 */ // sizeof()
   563  type X__ssize_t = X__int64_t         /* _types.h:107:19 */ // byte count or error
   564  type X__time_t = X__int64_t          /* _types.h:108:19 */ // time()...
   565  type X__uintfptr_t = X__uint64_t     /* _types.h:109:20 */
   566  type X__uintptr_t = X__uint64_t      /* _types.h:110:20 */
   567  type X__uintmax_t = X__uint64_t      /* _types.h:121:20 */
   568  type X__uint_fast8_t = X__uint32_t   /* _types.h:122:20 */
   569  type X__uint_fast16_t = X__uint32_t  /* _types.h:123:20 */
   570  type X__uint_fast32_t = X__uint32_t  /* _types.h:124:20 */
   571  type X__uint_fast64_t = X__uint64_t  /* _types.h:125:20 */
   572  type X__uint_least8_t = X__uint8_t   /* _types.h:126:19 */
   573  type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
   574  type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
   575  type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
   576  type X__u_register_t = X__uint64_t   /* _types.h:131:20 */
   577  type X__vm_offset_t = X__uint64_t    /* _types.h:132:20 */
   578  type X__vm_paddr_t = X__uint64_t     /* _types.h:133:20 */
   579  type X__vm_size_t = X__uint64_t      /* _types.h:134:20 */
   580  type X___wchar_t = int32             /* _types.h:141:14 */
   581  
   582  // Standard type definitions.
   583  type X__blksize_t = X__int32_t   /* _types.h:40:19 */ // file block size
   584  type X__blkcnt_t = X__int64_t    /* _types.h:41:19 */ // file block count
   585  type X__clockid_t = X__int32_t   /* _types.h:42:19 */ // clock_gettime()...
   586  type X__fflags_t = X__uint32_t   /* _types.h:43:20 */ // file flags
   587  type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
   588  type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
   589  type X__gid_t = X__uint32_t      /* _types.h:46:20 */
   590  type X__id_t = X__int64_t        /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
   591  type X__ino_t = X__uint64_t      /* _types.h:48:20 */ // inode number
   592  type X__key_t = int64            /* _types.h:49:15 */ // IPC key (for Sys V IPC)
   593  type X__lwpid_t = X__int32_t     /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
   594  type X__mode_t = X__uint16_t     /* _types.h:51:20 */ // permissions
   595  type X__accmode_t = int32        /* _types.h:52:14 */ // access permissions
   596  type X__nl_item = int32          /* _types.h:53:14 */
   597  type X__nlink_t = X__uint64_t    /* _types.h:54:20 */ // link count
   598  type X__off_t = X__int64_t       /* _types.h:55:19 */ // file offset
   599  type X__off64_t = X__int64_t     /* _types.h:56:19 */ // file offset (alias)
   600  type X__pid_t = X__int32_t       /* _types.h:57:19 */ // process [group]
   601  type X__rlim_t = X__int64_t      /* _types.h:58:19 */ // resource limit - intentionally
   602  // signed, because of legacy code
   603  // that uses -1 for RLIM_INFINITY
   604  type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
   605  type X__socklen_t = X__uint32_t  /* _types.h:62:20 */
   606  type X__suseconds_t = int64      /* _types.h:63:15 */ // microseconds (signed)
   607  type X__timer_t = uintptr        /* _types.h:64:24 */ // timer_gettime()...
   608  type X__mqd_t = uintptr          /* _types.h:65:21 */ // mq_open()...
   609  type X__uid_t = X__uint32_t      /* _types.h:66:20 */
   610  type X__useconds_t = uint32      /* _types.h:67:22 */ // microseconds (unsigned)
   611  type X__cpuwhich_t = int32       /* _types.h:68:14 */ // which parameter for cpuset.
   612  type X__cpulevel_t = int32       /* _types.h:69:14 */ // level parameter for cpuset.
   613  type X__cpusetid_t = int32       /* _types.h:70:14 */ // cpuset identifier.
   614  type X__daddr_t = X__int64_t     /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
   615  
   616  // Unusual type definitions.
   617  // rune_t is declared to be an “int” instead of the more natural
   618  // “unsigned long” or “long”.  Two things are happening here.  It is not
   619  // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
   620  // it looks like 10646 will be a 31 bit standard.  This means that if your
   621  // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
   622  // chosen over a long is that the is*() and to*() routines take ints (says
   623  // ANSI C), but they use __ct_rune_t instead of int.
   624  //
   625  // NOTE: rune_t is not covered by ANSI nor other standards, and should not
   626  // be instantiated outside of lib/libc/locale.  Use wchar_t.  wint_t and
   627  // rune_t must be the same type.  Also, wint_t should be able to hold all
   628  // members of the largest character set plus one extra value (WEOF), and
   629  // must be at least 16 bits.
   630  type X__ct_rune_t = int32     /* _types.h:91:14 */ // arg type for ctype funcs
   631  type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
   632  type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
   633  
   634  // Clang already provides these types as built-ins, but only in C++ mode.
   635  type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
   636  type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
   637  // In C++11, char16_t and char32_t are built-in types.
   638  
   639  type X__max_align_t = struct {
   640  	F__max_align1 int64
   641  	F__max_align2 float64
   642  } /* _types.h:111:3 */
   643  
   644  type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
   645  
   646  type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
   647  
   648  // mbstate_t is an opaque object to keep conversion state during multibyte
   649  // stream conversions.
   650  type X__mbstate_t = struct {
   651  	F__ccgo_pad1 [0]uint64
   652  	F__mbstate8  [128]int8
   653  } /* _types.h:124:3 */
   654  
   655  type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
   656  
   657  // Types for varargs. These are all provided by builtin types these
   658  // days, so centralize their definition.
   659  type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
   660  type X__gnuc_va_list = X__va_list    /* _types.h:140:20 */ // compatibility w/GNU headers
   661  
   662  // When the following macro is defined, the system uses 64-bit inode numbers.
   663  // Programs can use this to avoid including <sys/param.h>, with its associated
   664  // namespace pollution.
   665  
   666  // -
   667  // SPDX-License-Identifier: BSD-3-Clause
   668  //
   669  // Copyright (c) 1989, 1993
   670  //	The Regents of the University of California.  All rights reserved.
   671  // (c) UNIX System Laboratories, Inc.
   672  // All or some portions of this file are derived from material licensed
   673  // to the University of California by American Telephone and Telegraph
   674  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   675  // the permission of UNIX System Laboratories, Inc.
   676  //
   677  // Redistribution and use in source and binary forms, with or without
   678  // modification, are permitted provided that the following conditions
   679  // are met:
   680  // 1. Redistributions of source code must retain the above copyright
   681  //    notice, this list of conditions and the following disclaimer.
   682  // 2. Redistributions in binary form must reproduce the above copyright
   683  //    notice, this list of conditions and the following disclaimer in the
   684  //    documentation and/or other materials provided with the distribution.
   685  // 3. Neither the name of the University nor the names of its contributors
   686  //    may be used to endorse or promote products derived from this software
   687  //    without specific prior written permission.
   688  //
   689  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   690  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   691  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   692  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   693  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   694  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   695  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   696  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   697  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   698  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   699  // SUCH DAMAGE.
   700  //
   701  //	@(#)time.h	8.3 (Berkeley) 1/21/94
   702  
   703  // These macros are shared between time.h and sys/time.h.
   704  
   705  // Note: The values shown below as a comment for the __POSIX_VISIBLE values are
   706  // the ones FreeBSD traditionally used based on our reading of the POSIX
   707  // standards. However, glibc uses 199309 for all of them, even those many were
   708  // not defined there. To remain bug compatible with glibc means more software
   709  // that relied on the glibc behavior will compile easily on FreeBSD.
   710  //
   711  // Also, CLOCK_UPTIME_FAST is improperly visible temporarily for the lang/pocl
   712  // port until it can be updated properly. It incorrectly assumes that this was a
   713  // standard value. It will be moved back to the __BSD_VISIBLE section once the
   714  // issue is corrected.
   715  
   716  // FreeBSD-specific clocks.
   717  
   718  // Linux compatible names.
   719  
   720  // Frequency of the clock ticks reported by times().  Deprecated - use
   721  // sysconf(_SC_CLK_TCK) instead.  (Removed in 1003.1-2001.)
   722  
   723  // Frequency of the clock ticks reported by clock().
   724  
   725  type Clock_t = X__clock_t /* time.h:63:19 */
   726  
   727  type Time_t = X__time_t /* time.h:68:18 */
   728  
   729  // New in POSIX 1003.1b-1993.
   730  type Clockid_t = X__clockid_t /* time.h:82:21 */
   731  
   732  type Timer_t = X__timer_t /* time.h:87:19 */
   733  
   734  // -
   735  // SPDX-License-Identifier: BSD-3-Clause
   736  //
   737  // Copyright (c) 1982, 1986, 1993
   738  //	The Regents of the University of California.  All rights reserved.
   739  //
   740  // Redistribution and use in source and binary forms, with or without
   741  // modification, are permitted provided that the following conditions
   742  // are met:
   743  // 1. Redistributions of source code must retain the above copyright
   744  //    notice, this list of conditions and the following disclaimer.
   745  // 2. Redistributions in binary form must reproduce the above copyright
   746  //    notice, this list of conditions and the following disclaimer in the
   747  //    documentation and/or other materials provided with the distribution.
   748  // 3. Neither the name of the University nor the names of its contributors
   749  //    may be used to endorse or promote products derived from this software
   750  //    without specific prior written permission.
   751  //
   752  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   753  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   754  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   755  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   756  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   757  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   758  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   759  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   760  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   761  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   762  // SUCH DAMAGE.
   763  //
   764  //	@(#)time.h	8.5 (Berkeley) 5/4/95
   765  // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
   766  //	$FreeBSD$
   767  
   768  // -
   769  // SPDX-License-Identifier: BSD-3-Clause
   770  //
   771  // Copyright (c) 1991, 1993
   772  //	The Regents of the University of California.  All rights reserved.
   773  //
   774  // This code is derived from software contributed to Berkeley by
   775  // Berkeley Software Design, Inc.
   776  //
   777  // Redistribution and use in source and binary forms, with or without
   778  // modification, are permitted provided that the following conditions
   779  // are met:
   780  // 1. Redistributions of source code must retain the above copyright
   781  //    notice, this list of conditions and the following disclaimer.
   782  // 2. Redistributions in binary form must reproduce the above copyright
   783  //    notice, this list of conditions and the following disclaimer in the
   784  //    documentation and/or other materials provided with the distribution.
   785  // 3. Neither the name of the University nor the names of its contributors
   786  //    may be used to endorse or promote products derived from this software
   787  //    without specific prior written permission.
   788  //
   789  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   790  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   791  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   792  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   793  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   794  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   795  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   796  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   797  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   798  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   799  // SUCH DAMAGE.
   800  //
   801  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   802  // $FreeBSD$
   803  
   804  // -
   805  // SPDX-License-Identifier: BSD-3-Clause
   806  //
   807  // Copyright (c) 1982, 1986, 1993
   808  //	The Regents of the University of California.  All rights reserved.
   809  //
   810  // Redistribution and use in source and binary forms, with or without
   811  // modification, are permitted provided that the following conditions
   812  // are met:
   813  // 1. Redistributions of source code must retain the above copyright
   814  //    notice, this list of conditions and the following disclaimer.
   815  // 2. Redistributions in binary form must reproduce the above copyright
   816  //    notice, this list of conditions and the following disclaimer in the
   817  //    documentation and/or other materials provided with the distribution.
   818  // 3. Neither the name of the University nor the names of its contributors
   819  //    may be used to endorse or promote products derived from this software
   820  //    without specific prior written permission.
   821  //
   822  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   823  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   824  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   825  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   826  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   827  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   828  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   829  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   830  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   831  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   832  // SUCH DAMAGE.
   833  //
   834  //	@(#)time.h	8.5 (Berkeley) 5/4/95
   835  // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
   836  //	$FreeBSD$
   837  
   838  // -
   839  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   840  //
   841  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   842  // All rights reserved.
   843  //
   844  // Redistribution and use in source and binary forms, with or without
   845  // modification, are permitted provided that the following conditions
   846  // are met:
   847  // 1. Redistributions of source code must retain the above copyright
   848  //    notice, this list of conditions and the following disclaimer.
   849  // 2. Redistributions in binary form must reproduce the above copyright
   850  //    notice, this list of conditions and the following disclaimer in the
   851  //    documentation and/or other materials provided with the distribution.
   852  //
   853  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   854  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   855  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   856  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   857  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   858  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   859  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   860  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   861  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   862  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   863  // SUCH DAMAGE.
   864  //
   865  // $FreeBSD$
   866  
   867  type Timespec = struct {
   868  	Ftv_sec  Time_t
   869  	Ftv_nsec int64
   870  } /* _timespec.h:46:1 */
   871  
   872  // Structure defined by POSIX.1b to be like a itimerval, but with
   873  // timespecs. Used in the timer_*() system calls.
   874  type Itimerspec = struct {
   875  	Fit_interval struct {
   876  		Ftv_sec  Time_t
   877  		Ftv_nsec int64
   878  	}
   879  	Fit_value struct {
   880  		Ftv_sec  Time_t
   881  		Ftv_nsec int64
   882  	}
   883  } /* timespec.h:60:1 */
   884  
   885  type Pid_t = X__pid_t /* time.h:96:18 */
   886  
   887  type Tm = struct {
   888  	Ftm_sec      int32
   889  	Ftm_min      int32
   890  	Ftm_hour     int32
   891  	Ftm_mday     int32
   892  	Ftm_mon      int32
   893  	Ftm_year     int32
   894  	Ftm_wday     int32
   895  	Ftm_yday     int32
   896  	Ftm_isdst    int32
   897  	F__ccgo_pad1 [4]byte
   898  	Ftm_gmtoff   int64
   899  	Ftm_zone     uintptr
   900  } /* time.h:101:1 */
   901  
   902  // -
   903  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   904  //
   905  // Copyright (c) 2011, 2012 The FreeBSD Foundation
   906  //
   907  // This software was developed by David Chisnall under sponsorship from
   908  // the FreeBSD Foundation.
   909  //
   910  // Redistribution and use in source and binary forms, with or without
   911  // modification, are permitted provided that the following conditions
   912  // are met:
   913  // 1. Redistributions of source code must retain the above copyright
   914  //    notice, this list of conditions and the following disclaimer.
   915  // 2. Redistributions in binary form must reproduce the above copyright
   916  //    notice, this list of conditions and the following disclaimer in the
   917  //    documentation and/or other materials provided with the distribution.
   918  //
   919  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   920  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   921  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   922  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   923  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   924  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   925  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   926  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   927  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   928  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   929  // SUCH DAMAGE.
   930  //
   931  // $FreeBSD$
   932  
   933  type Locale_t = uintptr /* _time.h:35:25 */
   934  
   935  var _ int8 /* gen.c:2:13: */