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