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