time_openbsd_amd64.go (23758B)
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_openbsd_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 = 100 // time.h:68:1: 19 CLOCKS_PER_SEC = 100 // time.h:71:1: 20 CLOCK_BOOTTIME = 6 // _time.h:40:1: 21 CLOCK_MONOTONIC = 3 // _time.h:37:1: 22 CLOCK_PROCESS_CPUTIME_ID = 2 // _time.h:36:1: 23 CLOCK_REALTIME = 0 // _time.h:35:1: 24 CLOCK_THREAD_CPUTIME_ID = 4 // _time.h:38:1: 25 CLOCK_UPTIME = 5 // _time.h:39:1: 26 TIMER_ABSTIME = 0x1 // _time.h:62:1: 27 TIMER_RELTIME = 0x0 // _time.h:61:1: 28 TIME_UTC = 1 // time.h:179:1: 29 X_CLOCKID_T_DEFINED_ = 0 // time.h:87:1: 30 X_CLOCK_T_DEFINED_ = 0 // time.h:49:1: 31 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 32 X_LOCALE_T_DEFINED_ = 0 // time.h:106:1: 33 X_LP64 = 1 // <predefined>:1:1: 34 X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1: 35 X_MACHINE__TYPES_H_ = 0 // _types.h:36:1: 36 X_MAX_PAGE_SHIFT = 12 // _types.h:52:1: 37 X_PID_T_DEFINED_ = 0 // time.h:99:1: 38 X_RET_PROTECTOR = 1 // <predefined>:2:1: 39 X_SIZE_T_DEFINED_ = 0 // time.h:59:1: 40 X_STACKALIGNBYTES = 15 // _types.h:49:1: 41 X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1: 42 X_SYS__TIME_H_ = 0 // _time.h:33:1: 43 X_SYS__TYPES_H_ = 0 // _types.h:35:1: 44 X_TIMER_T_DEFINED_ = 0 // time.h:92:1: 45 X_TIMESPEC_DECLARED = 0 // time.h:75:1: 46 X_TIME_H_ = 0 // time.h:42:1: 47 X_TIME_T_DEFINED_ = 0 // time.h:54:1: 48 Unix = 1 // <predefined>:344:1: 49 ) 50 51 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 52 53 type Size_t = uint64 /* <builtin>:9:23 */ 54 55 type Wchar_t = int32 /* <builtin>:15:24 */ 56 57 type X__int128_t = struct { 58 Flo int64 59 Fhi int64 60 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 61 type X__uint128_t = struct { 62 Flo uint64 63 Fhi uint64 64 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 65 66 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 67 type X__float128 = float64 /* <builtin>:47:21 */ 68 69 // $OpenBSD: time.h,v 1.31 2018/10/30 16:28:42 guenther Exp $ 70 // $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ 71 72 // Copyright (c) 1989 The Regents of the University of California. 73 // All rights reserved. 74 // 75 // (c) UNIX System Laboratories, Inc. 76 // All or some portions of this file are derived from material licensed 77 // to the University of California by American Telephone and Telegraph 78 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 79 // the permission of UNIX System Laboratories, Inc. 80 // 81 // Redistribution and use in source and binary forms, with or without 82 // modification, are permitted provided that the following conditions 83 // are met: 84 // 1. Redistributions of source code must retain the above copyright 85 // notice, this list of conditions and the following disclaimer. 86 // 2. Redistributions in binary form must reproduce the above copyright 87 // notice, this list of conditions and the following disclaimer in the 88 // documentation and/or other materials provided with the distribution. 89 // 3. Neither the name of the University nor the names of its contributors 90 // may be used to endorse or promote products derived from this software 91 // without specific prior written permission. 92 // 93 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 94 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 95 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 96 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 97 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 98 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 99 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 100 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 101 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 102 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 103 // SUCH DAMAGE. 104 // 105 // @(#)time.h 5.12 (Berkeley) 3/9/91 106 107 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 108 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 109 110 // Copyright (c) 1991, 1993 111 // The Regents of the University of California. All rights reserved. 112 // 113 // This code is derived from software contributed to Berkeley by 114 // Berkeley Software Design, Inc. 115 // 116 // Redistribution and use in source and binary forms, with or without 117 // modification, are permitted provided that the following conditions 118 // are met: 119 // 1. Redistributions of source code must retain the above copyright 120 // notice, this list of conditions and the following disclaimer. 121 // 2. Redistributions in binary form must reproduce the above copyright 122 // notice, this list of conditions and the following disclaimer in the 123 // documentation and/or other materials provided with the distribution. 124 // 3. Neither the name of the University nor the names of its contributors 125 // may be used to endorse or promote products derived from this software 126 // without specific prior written permission. 127 // 128 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 129 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 130 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 131 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 132 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 133 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 134 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 135 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 136 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 137 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 138 // SUCH DAMAGE. 139 // 140 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 141 142 // $OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $ 143 144 // Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. 145 // Public domain. 146 147 // Macro to test if we're using a specific version of gcc or later. 148 149 // The __CONCAT macro is used to concatenate parts of symbol names, e.g. 150 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. 151 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces 152 // in between its arguments. Do not use __CONCAT on double-quoted strings, 153 // such as those from the __STRING macro: to concatenate strings just put 154 // them next to each other. 155 156 // GCC1 and some versions of GCC2 declare dead (non-returning) and 157 // pure (no side effects) functions using "volatile" and "const"; 158 // unfortunately, these then cause warnings under "-ansi -pedantic". 159 // GCC >= 2.5 uses the __attribute__((attrs)) style. All of these 160 // work for GNU C++ (modulo a slight glitch in the C++ grammar in 161 // the distribution version of 2.5.5). 162 163 // __returns_twice makes the compiler not assume the function 164 // only returns once. This affects registerisation of variables: 165 // even local variables need to be in memory across such a call. 166 // Example: setjmp() 167 168 // __only_inline makes the compiler only use this function definition 169 // for inlining; references that can't be inlined will be left as 170 // external references instead of generating a local copy. The 171 // matching library should include a simple extern definition for 172 // the function to handle those references. c.f. ctype.h 173 174 // GNU C version 2.96 adds explicit branch prediction so that 175 // the CPU back-end can hint the processor and also so that 176 // code blocks can be reordered such that the predicted path 177 // sees a more linear flow, thus improving cache behavior, etc. 178 // 179 // The following two macros provide us with a way to utilize this 180 // compiler feature. Use __predict_true() if you expect the expression 181 // to evaluate to true, and __predict_false() if you expect the 182 // expression to evaluate to false. 183 // 184 // A few notes about usage: 185 // 186 // * Generally, __predict_false() error condition checks (unless 187 // you have some _strong_ reason to do otherwise, in which case 188 // document it), and/or __predict_true() `no-error' condition 189 // checks, assuming you want to optimize for the no-error case. 190 // 191 // * Other than that, if you don't know the likelihood of a test 192 // succeeding from empirical or other `hard' evidence, don't 193 // make predictions. 194 // 195 // * These are meant to be used in places that are run `a lot'. 196 // It is wasteful to make predictions in code that is run 197 // seldomly (e.g. at subsystem initialization time) as the 198 // basic block reordering that this affects can often generate 199 // larger code. 200 201 // Delete pseudo-keywords wherever they are not available or needed. 202 203 // The __packed macro indicates that a variable or structure members 204 // should have the smallest possible alignment, despite any host CPU 205 // alignment requirements. 206 // 207 // The __aligned(x) macro specifies the minimum alignment of a 208 // variable or structure. 209 // 210 // These macros together are useful for describing the layout and 211 // alignment of messages exchanged with hardware or other systems. 212 213 // "The nice thing about standards is that there are so many to choose from." 214 // There are a number of "feature test macros" specified by (different) 215 // standards that determine which interfaces and types the header files 216 // should expose. 217 // 218 // Because of inconsistencies in these macros, we define our own 219 // set in the private name space that end in _VISIBLE. These are 220 // always defined and so headers can test their values easily. 221 // Things can get tricky when multiple feature macros are defined. 222 // We try to take the union of all the features requested. 223 // 224 // The following macros are guaranteed to have a value after cdefs.h 225 // has been included: 226 // __POSIX_VISIBLE 227 // __XPG_VISIBLE 228 // __ISO_C_VISIBLE 229 // __BSD_VISIBLE 230 231 // X/Open Portability Guides and Single Unix Specifications. 232 // _XOPEN_SOURCE XPG3 233 // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 234 // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 235 // _XOPEN_SOURCE == 500 XPG5 236 // _XOPEN_SOURCE == 520 XPG5v2 237 // _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI 238 // _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI 239 // 240 // The XPG spec implies a specific value for _POSIX_C_SOURCE. 241 242 // POSIX macros, these checks must follow the XOPEN ones above. 243 // 244 // _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE) 245 // _POSIX_C_SOURCE == 1 1003.1-1990 246 // _POSIX_C_SOURCE == 2 1003.2-1992 247 // _POSIX_C_SOURCE == 199309L 1003.1b-1993 248 // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995, 249 // and the omnibus ISO/IEC 9945-1:1996 250 // _POSIX_C_SOURCE == 200112L 1003.1-2001 251 // _POSIX_C_SOURCE == 200809L 1003.1-2008 252 // 253 // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though 254 // this may be overridden by the _ISOC99_SOURCE macro later. 255 256 // _ANSI_SOURCE means to expose ANSI C89 interfaces only. 257 // If the user defines it in addition to one of the POSIX or XOPEN 258 // macros, assume the POSIX/XOPEN macro(s) should take precedence. 259 260 // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus 261 // override any of the other macros since they are non-exclusive. 262 263 // Finally deal with BSD-specific interfaces that are not covered 264 // by any standards. We expose these when none of the POSIX or XPG 265 // macros is defined or if the user explicitly asks for them. 266 267 // Default values. 268 269 // $OpenBSD: _null.h,v 1.2 2016/09/09 22:07:58 millert Exp $ 270 271 // Written by Todd C. Miller, September 9, 2016 272 // Public domain. 273 274 // $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $ 275 276 // - 277 // Copyright (c) 1990, 1993 278 // The Regents of the University of California. All rights reserved. 279 // 280 // Redistribution and use in source and binary forms, with or without 281 // modification, are permitted provided that the following conditions 282 // are met: 283 // 1. Redistributions of source code must retain the above copyright 284 // notice, this list of conditions and the following disclaimer. 285 // 2. Redistributions in binary form must reproduce the above copyright 286 // notice, this list of conditions and the following disclaimer in the 287 // documentation and/or other materials provided with the distribution. 288 // 3. Neither the name of the University nor the names of its contributors 289 // may be used to endorse or promote products derived from this software 290 // without specific prior written permission. 291 // 292 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 293 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 294 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 295 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 296 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 297 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 298 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 299 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 300 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 301 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 302 // SUCH DAMAGE. 303 // 304 // @(#)types.h 8.3 (Berkeley) 1/5/94 305 306 // $OpenBSD: _types.h,v 1.17 2018/03/05 01:15:25 deraadt Exp $ 307 308 // - 309 // Copyright (c) 1990, 1993 310 // The Regents of the University of California. All rights reserved. 311 // 312 // Redistribution and use in source and binary forms, with or without 313 // modification, are permitted provided that the following conditions 314 // are met: 315 // 1. Redistributions of source code must retain the above copyright 316 // notice, this list of conditions and the following disclaimer. 317 // 2. Redistributions in binary form must reproduce the above copyright 318 // notice, this list of conditions and the following disclaimer in the 319 // documentation and/or other materials provided with the distribution. 320 // 3. Neither the name of the University nor the names of its contributors 321 // may be used to endorse or promote products derived from this software 322 // without specific prior written permission. 323 // 324 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 325 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 326 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 327 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 328 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 329 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 330 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 331 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 332 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 333 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 334 // SUCH DAMAGE. 335 // 336 // @(#)types.h 8.3 (Berkeley) 1/5/94 337 // @(#)ansi.h 8.2 (Berkeley) 1/4/94 338 339 // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned 340 // value for all data types (int, long, ...). The result is an 341 // unsigned long and must be cast to any desired pointer type. 342 // 343 // _ALIGNED_POINTER is a boolean macro that checks whether an address 344 // is valid to fetch data elements of type t from on this architecture. 345 // This does not reflect the optimal alignment, just the possibility 346 // (within reasonable limits). 347 348 // 7.18.1.1 Exact-width integer types 349 type X__int8_t = int8 /* _types.h:61:22 */ 350 type X__uint8_t = uint8 /* _types.h:62:24 */ 351 type X__int16_t = int16 /* _types.h:63:17 */ 352 type X__uint16_t = uint16 /* _types.h:64:25 */ 353 type X__int32_t = int32 /* _types.h:65:15 */ 354 type X__uint32_t = uint32 /* _types.h:66:23 */ 355 type X__int64_t = int64 /* _types.h:67:20 */ 356 type X__uint64_t = uint64 /* _types.h:68:28 */ 357 358 // 7.18.1.2 Minimum-width integer types 359 type X__int_least8_t = X__int8_t /* _types.h:71:19 */ 360 type X__uint_least8_t = X__uint8_t /* _types.h:72:20 */ 361 type X__int_least16_t = X__int16_t /* _types.h:73:20 */ 362 type X__uint_least16_t = X__uint16_t /* _types.h:74:21 */ 363 type X__int_least32_t = X__int32_t /* _types.h:75:20 */ 364 type X__uint_least32_t = X__uint32_t /* _types.h:76:21 */ 365 type X__int_least64_t = X__int64_t /* _types.h:77:20 */ 366 type X__uint_least64_t = X__uint64_t /* _types.h:78:21 */ 367 368 // 7.18.1.3 Fastest minimum-width integer types 369 type X__int_fast8_t = X__int32_t /* _types.h:81:20 */ 370 type X__uint_fast8_t = X__uint32_t /* _types.h:82:21 */ 371 type X__int_fast16_t = X__int32_t /* _types.h:83:20 */ 372 type X__uint_fast16_t = X__uint32_t /* _types.h:84:21 */ 373 type X__int_fast32_t = X__int32_t /* _types.h:85:20 */ 374 type X__uint_fast32_t = X__uint32_t /* _types.h:86:21 */ 375 type X__int_fast64_t = X__int64_t /* _types.h:87:20 */ 376 type X__uint_fast64_t = X__uint64_t /* _types.h:88:21 */ 377 378 // 7.18.1.4 Integer types capable of holding object pointers 379 type X__intptr_t = int64 /* _types.h:103:16 */ 380 type X__uintptr_t = uint64 /* _types.h:104:24 */ 381 382 // 7.18.1.5 Greatest-width integer types 383 type X__intmax_t = X__int64_t /* _types.h:107:20 */ 384 type X__uintmax_t = X__uint64_t /* _types.h:108:21 */ 385 386 // Register size 387 type X__register_t = int64 /* _types.h:111:16 */ 388 389 // VM system types 390 type X__vaddr_t = uint64 /* _types.h:114:24 */ 391 type X__paddr_t = uint64 /* _types.h:115:24 */ 392 type X__vsize_t = uint64 /* _types.h:116:24 */ 393 type X__psize_t = uint64 /* _types.h:117:24 */ 394 395 // Standard system types 396 type X__double_t = float64 /* _types.h:120:18 */ 397 type X__float_t = float32 /* _types.h:121:17 */ 398 type X__ptrdiff_t = int64 /* _types.h:122:16 */ 399 type X__size_t = uint64 /* _types.h:123:24 */ 400 type X__ssize_t = int64 /* _types.h:124:16 */ 401 type X__va_list = X__builtin_va_list /* _types.h:126:27 */ 402 403 // Wide character support types 404 type X__wchar_t = int32 /* _types.h:133:15 */ 405 type X__wint_t = int32 /* _types.h:135:15 */ 406 type X__rune_t = int32 /* _types.h:136:15 */ 407 type X__wctrans_t = uintptr /* _types.h:137:14 */ 408 type X__wctype_t = uintptr /* _types.h:138:14 */ 409 410 type X__blkcnt_t = X__int64_t /* _types.h:39:19 */ // blocks allocated for file 411 type X__blksize_t = X__int32_t /* _types.h:40:19 */ // optimal blocksize for I/O 412 type X__clock_t = X__int64_t /* _types.h:41:19 */ // ticks in CLOCKS_PER_SEC 413 type X__clockid_t = X__int32_t /* _types.h:42:19 */ // CLOCK_* identifiers 414 type X__cpuid_t = uint64 /* _types.h:43:23 */ // CPU id 415 type X__dev_t = X__int32_t /* _types.h:44:19 */ // device number 416 type X__fixpt_t = X__uint32_t /* _types.h:45:20 */ // fixed point number 417 type X__fsblkcnt_t = X__uint64_t /* _types.h:46:20 */ // file system block count 418 type X__fsfilcnt_t = X__uint64_t /* _types.h:47:20 */ // file system file count 419 type X__gid_t = X__uint32_t /* _types.h:48:20 */ // group id 420 type X__id_t = X__uint32_t /* _types.h:49:20 */ // may contain pid, uid or gid 421 type X__in_addr_t = X__uint32_t /* _types.h:50:20 */ // base type for internet address 422 type X__in_port_t = X__uint16_t /* _types.h:51:20 */ // IP port type 423 type X__ino_t = X__uint64_t /* _types.h:52:20 */ // inode number 424 type X__key_t = int64 /* _types.h:53:15 */ // IPC key (for Sys V IPC) 425 type X__mode_t = X__uint32_t /* _types.h:54:20 */ // permissions 426 type X__nlink_t = X__uint32_t /* _types.h:55:20 */ // link count 427 type X__off_t = X__int64_t /* _types.h:56:19 */ // file offset or size 428 type X__pid_t = X__int32_t /* _types.h:57:19 */ // process id 429 type X__rlim_t = X__uint64_t /* _types.h:58:20 */ // resource limit 430 type X__sa_family_t = X__uint8_t /* _types.h:59:19 */ // sockaddr address family type 431 type X__segsz_t = X__int32_t /* _types.h:60:19 */ // segment size 432 type X__socklen_t = X__uint32_t /* _types.h:61:20 */ // length type for network syscalls 433 type X__suseconds_t = int64 /* _types.h:62:15 */ // microseconds (signed) 434 type X__time_t = X__int64_t /* _types.h:63:19 */ // epoch time 435 type X__timer_t = X__int32_t /* _types.h:64:19 */ // POSIX timer identifiers 436 type X__uid_t = X__uint32_t /* _types.h:65:20 */ // user id 437 type X__useconds_t = X__uint32_t /* _types.h:66:20 */ // microseconds 438 439 // mbstate_t is an opaque object to keep conversion state, during multibyte 440 // stream conversions. The content must not be referenced by user programs. 441 type X__mbstate_t = struct { 442 F__ccgo_pad1 [0]uint64 443 F__mbstate8 [128]int8 444 } /* _types.h:75:3 */ 445 446 type Clock_t = X__clock_t /* time.h:50:19 */ 447 448 type Time_t = X__time_t /* time.h:55:18 */ 449 450 // Frequency of the clock ticks reported by times(). Deprecated - use 451 // sysconf(_SC_CLK_TCK) instead. (Removed in 1003.1-2001.) 452 453 type Timespec = struct { 454 Ftv_sec Time_t 455 Ftv_nsec int64 456 } /* time.h:76:1 */ 457 458 // $OpenBSD: _time.h,v 1.9 2017/12/18 05:51:53 cheloha Exp $ 459 460 // Copyright (c) 1982, 1986, 1993 461 // The Regents of the University of California. All rights reserved. 462 // 463 // Redistribution and use in source and binary forms, with or without 464 // modification, are permitted provided that the following conditions 465 // are met: 466 // 1. Redistributions of source code must retain the above copyright 467 // notice, this list of conditions and the following disclaimer. 468 // 2. Redistributions in binary form must reproduce the above copyright 469 // notice, this list of conditions and the following disclaimer in the 470 // documentation and/or other materials provided with the distribution. 471 // 3. Neither the name of the University nor the names of its contributors 472 // may be used to endorse or promote products derived from this software 473 // without specific prior written permission. 474 // 475 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 476 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 477 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 478 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 479 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 480 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 481 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 482 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 483 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 484 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 485 // SUCH DAMAGE. 486 487 // Per-process and per-thread clocks encode the PID or TID into the 488 // high bits, with the type in the bottom bits 489 490 // Structure defined by POSIX 1003.1b to be like a itimerval, 491 // but with timespecs. Used in the timer_*() system calls. 492 type Itimerspec = struct { 493 Fit_interval struct { 494 Ftv_sec Time_t 495 Ftv_nsec int64 496 } 497 Fit_value struct { 498 Ftv_sec Time_t 499 Ftv_nsec int64 500 } 501 } /* _time.h:56:1 */ 502 503 type Clockid_t = X__clockid_t /* time.h:88:21 */ 504 505 type Timer_t = X__timer_t /* time.h:93:19 */ 506 507 type Pid_t = X__pid_t /* time.h:100:18 */ 508 509 type Locale_t = uintptr /* time.h:107:14 */ 510 511 type Tm = struct { 512 Ftm_sec int32 513 Ftm_min int32 514 Ftm_hour int32 515 Ftm_mday int32 516 Ftm_mon int32 517 Ftm_year int32 518 Ftm_wday int32 519 Ftm_yday int32 520 Ftm_isdst int32 521 F__ccgo_pad1 [4]byte 522 Ftm_gmtoff int64 523 Ftm_zone uintptr 524 } /* time.h:111:1 */ 525 526 var _ int8 /* gen.c:2:13: */