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