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