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