pwd_openbsd_386.go (34613B)
1 // Code generated by 'ccgo pwd/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 pwd/pwd_openbsd_386.go -pkgname pwd', DO NOT EDIT. 2 3 package pwd 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 BIG_ENDIAN = 4321 // endian.h:45:1: 19 BYTE_ORDER = 1234 // endian.h:47:1: 20 LITTLE_ENDIAN = 1234 // endian.h:44:1: 21 PDP_ENDIAN = 3412 // endian.h:46:1: 22 X_BIG_ENDIAN = 4321 // _endian.h:43:1: 23 X_BYTE_ORDER = 1234 // endian.h:58:1: 24 X_CLOCKID_T_DEFINED_ = 0 // types.h:162:1: 25 X_CLOCK_T_DEFINED_ = 0 // types.h:157:1: 26 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 27 X_ILP32 = 1 // <predefined>:1:1: 28 X_INT16_T_DEFINED_ = 0 // types.h:84:1: 29 X_INT32_T_DEFINED_ = 0 // types.h:94:1: 30 X_INT64_T_DEFINED_ = 0 // types.h:104:1: 31 X_INT8_T_DEFINED_ = 0 // types.h:74:1: 32 X_LITTLE_ENDIAN = 1234 // _endian.h:42:1: 33 X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1: 34 X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1: 35 X_MACHINE__TYPES_H_ = 0 // _types.h:36:1: 36 X_MAX_PAGE_SHIFT = 12 // _types.h:52:1: 37 X_OFF_T_DEFINED_ = 0 // types.h:192:1: 38 X_PASSWORD_EFMT1 = 95 // pwd.h:62:1: 39 X_PASSWORD_LEN = 128 // pwd.h:64:1: 40 X_PASSWORD_NOCHG = 0x04 // pwd.h:71:1: 41 X_PASSWORD_NOEXP = 0x08 // pwd.h:72:1: 42 X_PASSWORD_NOGID = 0x02 // pwd.h:70:1: 43 X_PASSWORD_NOUID = 0x01 // pwd.h:69:1: 44 X_PASSWORD_OMITV7 = 0x02 // pwd.h:76:1: 45 X_PASSWORD_SECUREONLY = 0x01 // pwd.h:75:1: 46 X_PATH_MASTERPASSWD = "/etc/master.passwd" // pwd.h:48:1: 47 X_PATH_MASTERPASSWD_LOCK = "/etc/ptmp" // pwd.h:49:1: 48 X_PATH_MP_DB = "/etc/pwd.db" // pwd.h:51:1: 49 X_PATH_PASSWD = "/etc/passwd" // pwd.h:47:1: 50 X_PATH_PWD_MKDB = "/usr/sbin/pwd_mkdb" // pwd.h:54:1: 51 X_PATH_SMP_DB = "/etc/spwd.db" // pwd.h:52:1: 52 X_PDP_ENDIAN = 3412 // _endian.h:44:1: 53 X_PID_T_DEFINED_ = 0 // types.h:167:1: 54 X_PWD_H_ = 0 // pwd.h:42:1: 55 X_PW_BUF_LEN = 1024 // pwd.h:67:1: 56 X_PW_KEYBYNAME = 49 // pwd.h:56:1: 57 X_PW_KEYBYNUM = 50 // pwd.h:57:1: 58 X_PW_KEYBYUID = 51 // pwd.h:58:1: 59 X_PW_NAME_LEN = 31 // pwd.h:65:1: 60 X_PW_YPTOKEN = "__YP!" // pwd.h:60:1: 61 X_QUAD_HIGHWORD = 1 // _endian.h:95:1: 62 X_QUAD_LOWWORD = 0 // _endian.h:96:1: 63 X_SIZE_T_DEFINED_ = 0 // types.h:172:1: 64 X_SSIZE_T_DEFINED_ = 0 // types.h:177:1: 65 X_STACKALIGNBYTES = 15 // _types.h:49:1: 66 X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1: 67 X_SYS_ENDIAN_H_ = 0 // endian.h:38:1: 68 X_SYS_TYPES_H_ = 0 // types.h:41:1: 69 X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1: 70 X_SYS__TYPES_H_ = 0 // _types.h:35:1: 71 X_TIMER_T_DEFINED_ = 0 // types.h:187:1: 72 X_TIME_T_DEFINED_ = 0 // types.h:182:1: 73 X_UINT16_T_DEFINED_ = 0 // types.h:89:1: 74 X_UINT32_T_DEFINED_ = 0 // types.h:99:1: 75 X_UINT64_T_DEFINED_ = 0 // types.h:109:1: 76 X_UINT8_T_DEFINED_ = 0 // types.h:79:1: 77 I386 = 1 // <predefined>:339:1: 78 Unix = 1 // <predefined>:340:1: 79 ) 80 81 type Ptrdiff_t = int32 /* <builtin>:3:26 */ 82 83 type Size_t = uint32 /* <builtin>:9:23 */ 84 85 type Wchar_t = int32 /* <builtin>:15:24 */ 86 87 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 88 type X__float128 = float64 /* <builtin>:47:21 */ 89 90 // $OpenBSD: pwd.h,v 1.26 2018/09/13 12:31:15 millert Exp $ 91 // $NetBSD: pwd.h,v 1.9 1996/05/15 21:36:45 jtc Exp $ 92 93 // - 94 // Copyright (c) 1989, 1993 95 // The Regents of the University of California. All rights reserved. 96 // (c) UNIX System Laboratories, Inc. 97 // All or some portions of this file are derived from material licensed 98 // to the University of California by American Telephone and Telegraph 99 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 100 // the permission of UNIX System Laboratories, Inc. 101 // Portions Copyright(C) 1995, 1996, Jason Downs. All rights reserved. 102 // 103 // Redistribution and use in source and binary forms, with or without 104 // modification, are permitted provided that the following conditions 105 // are met: 106 // 1. Redistributions of source code must retain the above copyright 107 // notice, this list of conditions and the following disclaimer. 108 // 2. Redistributions in binary form must reproduce the above copyright 109 // notice, this list of conditions and the following disclaimer in the 110 // documentation and/or other materials provided with the distribution. 111 // 3. Neither the name of the University nor the names of its contributors 112 // may be used to endorse or promote products derived from this software 113 // without specific prior written permission. 114 // 115 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 116 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 117 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 118 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 119 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 120 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 121 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 122 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 123 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 124 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 125 // SUCH DAMAGE. 126 // 127 // @(#)pwd.h 8.2 (Berkeley) 1/21/94 128 129 // $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $ 130 // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $ 131 132 // - 133 // Copyright (c) 1982, 1986, 1991, 1993 134 // The Regents of the University of California. All rights reserved. 135 // (c) UNIX System Laboratories, Inc. 136 // All or some portions of this file are derived from material licensed 137 // to the University of California by American Telephone and Telegraph 138 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 139 // the permission of UNIX System Laboratories, Inc. 140 // 141 // Redistribution and use in source and binary forms, with or without 142 // modification, are permitted provided that the following conditions 143 // are met: 144 // 1. Redistributions of source code must retain the above copyright 145 // notice, this list of conditions and the following disclaimer. 146 // 2. Redistributions in binary form must reproduce the above copyright 147 // notice, this list of conditions and the following disclaimer in the 148 // documentation and/or other materials provided with the distribution. 149 // 3. Neither the name of the University nor the names of its contributors 150 // may be used to endorse or promote products derived from this software 151 // without specific prior written permission. 152 // 153 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 154 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 155 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 156 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 157 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 158 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 159 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 160 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 161 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 162 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 163 // SUCH DAMAGE. 164 // 165 // @(#)types.h 8.4 (Berkeley) 1/21/94 166 167 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 168 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 169 170 // Copyright (c) 1991, 1993 171 // The Regents of the University of California. All rights reserved. 172 // 173 // This code is derived from software contributed to Berkeley by 174 // Berkeley Software Design, Inc. 175 // 176 // Redistribution and use in source and binary forms, with or without 177 // modification, are permitted provided that the following conditions 178 // are met: 179 // 1. Redistributions of source code must retain the above copyright 180 // notice, this list of conditions and the following disclaimer. 181 // 2. Redistributions in binary form must reproduce the above copyright 182 // notice, this list of conditions and the following disclaimer in the 183 // documentation and/or other materials provided with the distribution. 184 // 3. Neither the name of the University nor the names of its contributors 185 // may be used to endorse or promote products derived from this software 186 // without specific prior written permission. 187 // 188 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 189 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 190 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 191 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 192 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 193 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 194 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 195 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 196 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 197 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 198 // SUCH DAMAGE. 199 // 200 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 201 202 // $OpenBSD: cdefs.h,v 1.10 2013/03/28 17:30:45 martynas Exp $ 203 204 // Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. 205 // Public domain. 206 207 // Macro to test if we're using a specific version of gcc or later. 208 209 // The __CONCAT macro is used to concatenate parts of symbol names, e.g. 210 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. 211 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces 212 // in between its arguments. Do not use __CONCAT on double-quoted strings, 213 // such as those from the __STRING macro: to concatenate strings just put 214 // them next to each other. 215 216 // GCC1 and some versions of GCC2 declare dead (non-returning) and 217 // pure (no side effects) functions using "volatile" and "const"; 218 // unfortunately, these then cause warnings under "-ansi -pedantic". 219 // GCC >= 2.5 uses the __attribute__((attrs)) style. All of these 220 // work for GNU C++ (modulo a slight glitch in the C++ grammar in 221 // the distribution version of 2.5.5). 222 223 // __returns_twice makes the compiler not assume the function 224 // only returns once. This affects registerisation of variables: 225 // even local variables need to be in memory across such a call. 226 // Example: setjmp() 227 228 // __only_inline makes the compiler only use this function definition 229 // for inlining; references that can't be inlined will be left as 230 // external references instead of generating a local copy. The 231 // matching library should include a simple extern definition for 232 // the function to handle those references. c.f. ctype.h 233 234 // GNU C version 2.96 adds explicit branch prediction so that 235 // the CPU back-end can hint the processor and also so that 236 // code blocks can be reordered such that the predicted path 237 // sees a more linear flow, thus improving cache behavior, etc. 238 // 239 // The following two macros provide us with a way to utilize this 240 // compiler feature. Use __predict_true() if you expect the expression 241 // to evaluate to true, and __predict_false() if you expect the 242 // expression to evaluate to false. 243 // 244 // A few notes about usage: 245 // 246 // * Generally, __predict_false() error condition checks (unless 247 // you have some _strong_ reason to do otherwise, in which case 248 // document it), and/or __predict_true() `no-error' condition 249 // checks, assuming you want to optimize for the no-error case. 250 // 251 // * Other than that, if you don't know the likelihood of a test 252 // succeeding from empirical or other `hard' evidence, don't 253 // make predictions. 254 // 255 // * These are meant to be used in places that are run `a lot'. 256 // It is wasteful to make predictions in code that is run 257 // seldomly (e.g. at subsystem initialization time) as the 258 // basic block reordering that this affects can often generate 259 // larger code. 260 261 // Delete pseudo-keywords wherever they are not available or needed. 262 263 // The __packed macro indicates that a variable or structure members 264 // should have the smallest possible alignment, despite any host CPU 265 // alignment requirements. 266 // 267 // The __aligned(x) macro specifies the minimum alignment of a 268 // variable or structure. 269 // 270 // These macros together are useful for describing the layout and 271 // alignment of messages exchanged with hardware or other systems. 272 273 // "The nice thing about standards is that there are so many to choose from." 274 // There are a number of "feature test macros" specified by (different) 275 // standards that determine which interfaces and types the header files 276 // should expose. 277 // 278 // Because of inconsistencies in these macros, we define our own 279 // set in the private name space that end in _VISIBLE. These are 280 // always defined and so headers can test their values easily. 281 // Things can get tricky when multiple feature macros are defined. 282 // We try to take the union of all the features requested. 283 // 284 // The following macros are guaranteed to have a value after cdefs.h 285 // has been included: 286 // __POSIX_VISIBLE 287 // __XPG_VISIBLE 288 // __ISO_C_VISIBLE 289 // __BSD_VISIBLE 290 291 // X/Open Portability Guides and Single Unix Specifications. 292 // _XOPEN_SOURCE XPG3 293 // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 294 // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 295 // _XOPEN_SOURCE == 500 XPG5 296 // _XOPEN_SOURCE == 520 XPG5v2 297 // _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI 298 // _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI 299 // 300 // The XPG spec implies a specific value for _POSIX_C_SOURCE. 301 302 // POSIX macros, these checks must follow the XOPEN ones above. 303 // 304 // _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE) 305 // _POSIX_C_SOURCE == 1 1003.1-1990 306 // _POSIX_C_SOURCE == 2 1003.2-1992 307 // _POSIX_C_SOURCE == 199309L 1003.1b-1993 308 // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995, 309 // and the omnibus ISO/IEC 9945-1:1996 310 // _POSIX_C_SOURCE == 200112L 1003.1-2001 311 // _POSIX_C_SOURCE == 200809L 1003.1-2008 312 // 313 // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though 314 // this may be overridden by the _ISOC99_SOURCE macro later. 315 316 // _ANSI_SOURCE means to expose ANSI C89 interfaces only. 317 // If the user defines it in addition to one of the POSIX or XOPEN 318 // macros, assume the POSIX/XOPEN macro(s) should take precedence. 319 320 // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus 321 // override any of the other macros since they are non-exclusive. 322 323 // Finally deal with BSD-specific interfaces that are not covered 324 // by any standards. We expose these when none of the POSIX or XPG 325 // macros is defined or if the user explicitly asks for them. 326 327 // Default values. 328 329 // $OpenBSD: endian.h,v 1.25 2014/12/21 04:49:00 guenther Exp $ 330 331 // - 332 // Copyright (c) 1997 Niklas Hallqvist. All rights reserved. 333 // 334 // Redistribution and use in source and binary forms, with or without 335 // modification, are permitted provided that the following conditions 336 // are met: 337 // 1. Redistributions of source code must retain the above copyright 338 // notice, this list of conditions and the following disclaimer. 339 // 2. Redistributions in binary form must reproduce the above copyright 340 // notice, this list of conditions and the following disclaimer in the 341 // documentation and/or other materials provided with the distribution. 342 // 343 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 344 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 345 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 346 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 347 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 348 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 349 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 350 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 351 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 352 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 353 354 // Public definitions for little- and big-endian systems. 355 // This file should be included as <endian.h> in userspace and as 356 // <sys/endian.h> in the kernel. 357 // 358 // System headers that need endian information but that can't or don't 359 // want to export the public names here should include <sys/_endian.h> 360 // and use the internal names: _BYTE_ORDER, _*_ENDIAN, etc. 361 362 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 363 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 364 365 // Copyright (c) 1991, 1993 366 // The Regents of the University of California. All rights reserved. 367 // 368 // This code is derived from software contributed to Berkeley by 369 // Berkeley Software Design, Inc. 370 // 371 // Redistribution and use in source and binary forms, with or without 372 // modification, are permitted provided that the following conditions 373 // are met: 374 // 1. Redistributions of source code must retain the above copyright 375 // notice, this list of conditions and the following disclaimer. 376 // 2. Redistributions in binary form must reproduce the above copyright 377 // notice, this list of conditions and the following disclaimer in the 378 // documentation and/or other materials provided with the distribution. 379 // 3. Neither the name of the University nor the names of its contributors 380 // may be used to endorse or promote products derived from this software 381 // without specific prior written permission. 382 // 383 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 384 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 385 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 386 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 387 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 388 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 389 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 390 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 391 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 392 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 393 // SUCH DAMAGE. 394 // 395 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 396 397 // $OpenBSD: _endian.h,v 1.8 2018/01/11 23:13:37 dlg Exp $ 398 399 // - 400 // Copyright (c) 1997 Niklas Hallqvist. All rights reserved. 401 // 402 // Redistribution and use in source and binary forms, with or without 403 // modification, are permitted provided that the following conditions 404 // are met: 405 // 1. Redistributions of source code must retain the above copyright 406 // notice, this list of conditions and the following disclaimer. 407 // 2. Redistributions in binary form must reproduce the above copyright 408 // notice, this list of conditions and the following disclaimer in the 409 // documentation and/or other materials provided with the distribution. 410 // 411 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 412 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 413 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 414 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 415 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 416 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 417 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 418 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 419 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 420 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 421 422 // Internal endianness macros. This pulls in <machine/endian.h> to 423 // get the correct setting direction for the platform and sets internal 424 // ('__' prefix) macros appropriately. 425 426 // $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $ 427 428 // - 429 // Copyright (c) 1990, 1993 430 // The Regents of the University of California. All rights reserved. 431 // 432 // Redistribution and use in source and binary forms, with or without 433 // modification, are permitted provided that the following conditions 434 // are met: 435 // 1. Redistributions of source code must retain the above copyright 436 // notice, this list of conditions and the following disclaimer. 437 // 2. Redistributions in binary form must reproduce the above copyright 438 // notice, this list of conditions and the following disclaimer in the 439 // documentation and/or other materials provided with the distribution. 440 // 3. Neither the name of the University nor the names of its contributors 441 // may be used to endorse or promote products derived from this software 442 // without specific prior written permission. 443 // 444 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 445 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 446 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 447 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 448 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 449 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 450 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 451 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 452 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 453 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 454 // SUCH DAMAGE. 455 // 456 // @(#)types.h 8.3 (Berkeley) 1/5/94 457 458 // $OpenBSD: _types.h,v 1.23 2018/03/05 01:15:25 deraadt Exp $ 459 460 // - 461 // Copyright (c) 1990, 1993 462 // The Regents of the University of California. All rights reserved. 463 // 464 // Redistribution and use in source and binary forms, with or without 465 // modification, are permitted provided that the following conditions 466 // are met: 467 // 1. Redistributions of source code must retain the above copyright 468 // notice, this list of conditions and the following disclaimer. 469 // 2. Redistributions in binary form must reproduce the above copyright 470 // notice, this list of conditions and the following disclaimer in the 471 // documentation and/or other materials provided with the distribution. 472 // 3. Neither the name of the University nor the names of its contributors 473 // may be used to endorse or promote products derived from this software 474 // without specific prior written permission. 475 // 476 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 477 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 478 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 479 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 480 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 481 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 482 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 483 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 484 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 485 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 486 // SUCH DAMAGE. 487 // 488 // @(#)types.h 8.3 (Berkeley) 1/5/94 489 // @(#)ansi.h 8.2 (Berkeley) 1/4/94 490 491 // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned 492 // value for all data types (int, long, ...). The result is an 493 // unsigned long and must be cast to any desired pointer type. 494 // 495 // _ALIGNED_POINTER is a boolean macro that checks whether an address 496 // is valid to fetch data elements of type t from on this architecture. 497 // This does not reflect the optimal alignment, just the possibility 498 // (within reasonable limits). 499 500 // 7.18.1.1 Exact-width integer types 501 type X__int8_t = int8 /* _types.h:61:22 */ 502 type X__uint8_t = uint8 /* _types.h:62:24 */ 503 type X__int16_t = int16 /* _types.h:63:17 */ 504 type X__uint16_t = uint16 /* _types.h:64:25 */ 505 type X__int32_t = int32 /* _types.h:65:15 */ 506 type X__uint32_t = uint32 /* _types.h:66:23 */ 507 type X__int64_t = int64 /* _types.h:67:20 */ 508 type X__uint64_t = uint64 /* _types.h:68:28 */ 509 510 // 7.18.1.2 Minimum-width integer types 511 type X__int_least8_t = X__int8_t /* _types.h:71:19 */ 512 type X__uint_least8_t = X__uint8_t /* _types.h:72:20 */ 513 type X__int_least16_t = X__int16_t /* _types.h:73:20 */ 514 type X__uint_least16_t = X__uint16_t /* _types.h:74:21 */ 515 type X__int_least32_t = X__int32_t /* _types.h:75:20 */ 516 type X__uint_least32_t = X__uint32_t /* _types.h:76:21 */ 517 type X__int_least64_t = X__int64_t /* _types.h:77:20 */ 518 type X__uint_least64_t = X__uint64_t /* _types.h:78:21 */ 519 520 // 7.18.1.3 Fastest minimum-width integer types 521 type X__int_fast8_t = X__int32_t /* _types.h:81:20 */ 522 type X__uint_fast8_t = X__uint32_t /* _types.h:82:21 */ 523 type X__int_fast16_t = X__int32_t /* _types.h:83:20 */ 524 type X__uint_fast16_t = X__uint32_t /* _types.h:84:21 */ 525 type X__int_fast32_t = X__int32_t /* _types.h:85:20 */ 526 type X__uint_fast32_t = X__uint32_t /* _types.h:86:21 */ 527 type X__int_fast64_t = X__int64_t /* _types.h:87:20 */ 528 type X__uint_fast64_t = X__uint64_t /* _types.h:88:21 */ 529 530 // 7.18.1.4 Integer types capable of holding object pointers 531 type X__intptr_t = int32 /* _types.h:103:16 */ 532 type X__uintptr_t = uint32 /* _types.h:104:24 */ 533 534 // 7.18.1.5 Greatest-width integer types 535 type X__intmax_t = X__int64_t /* _types.h:107:20 */ 536 type X__uintmax_t = X__uint64_t /* _types.h:108:21 */ 537 538 // Register size 539 type X__register_t = int32 /* _types.h:111:16 */ 540 541 // VM system types 542 type X__vaddr_t = uint32 /* _types.h:114:24 */ 543 type X__paddr_t = uint32 /* _types.h:115:24 */ 544 type X__vsize_t = uint32 /* _types.h:116:24 */ 545 type X__psize_t = uint32 /* _types.h:117:24 */ 546 547 // Standard system types 548 type X__double_t = float64 /* _types.h:120:22 */ 549 type X__float_t = float64 /* _types.h:121:22 */ 550 type X__ptrdiff_t = int32 /* _types.h:122:16 */ 551 type X__size_t = uint32 /* _types.h:123:24 */ 552 type X__ssize_t = int32 /* _types.h:124:16 */ 553 type X__va_list = X__builtin_va_list /* _types.h:126:27 */ 554 555 // Wide character support types 556 type X__wchar_t = int32 /* _types.h:133:15 */ 557 type X__wint_t = int32 /* _types.h:135:15 */ 558 type X__rune_t = int32 /* _types.h:136:15 */ 559 type X__wctrans_t = uintptr /* _types.h:137:14 */ 560 type X__wctype_t = uintptr /* _types.h:138:14 */ 561 562 type X__blkcnt_t = X__int64_t /* _types.h:39:19 */ // blocks allocated for file 563 type X__blksize_t = X__int32_t /* _types.h:40:19 */ // optimal blocksize for I/O 564 type X__clock_t = X__int64_t /* _types.h:41:19 */ // ticks in CLOCKS_PER_SEC 565 type X__clockid_t = X__int32_t /* _types.h:42:19 */ // CLOCK_* identifiers 566 type X__cpuid_t = uint32 /* _types.h:43:23 */ // CPU id 567 type X__dev_t = X__int32_t /* _types.h:44:19 */ // device number 568 type X__fixpt_t = X__uint32_t /* _types.h:45:20 */ // fixed point number 569 type X__fsblkcnt_t = X__uint64_t /* _types.h:46:20 */ // file system block count 570 type X__fsfilcnt_t = X__uint64_t /* _types.h:47:20 */ // file system file count 571 type X__gid_t = X__uint32_t /* _types.h:48:20 */ // group id 572 type X__id_t = X__uint32_t /* _types.h:49:20 */ // may contain pid, uid or gid 573 type X__in_addr_t = X__uint32_t /* _types.h:50:20 */ // base type for internet address 574 type X__in_port_t = X__uint16_t /* _types.h:51:20 */ // IP port type 575 type X__ino_t = X__uint64_t /* _types.h:52:20 */ // inode number 576 type X__key_t = int32 /* _types.h:53:15 */ // IPC key (for Sys V IPC) 577 type X__mode_t = X__uint32_t /* _types.h:54:20 */ // permissions 578 type X__nlink_t = X__uint32_t /* _types.h:55:20 */ // link count 579 type X__off_t = X__int64_t /* _types.h:56:19 */ // file offset or size 580 type X__pid_t = X__int32_t /* _types.h:57:19 */ // process id 581 type X__rlim_t = X__uint64_t /* _types.h:58:20 */ // resource limit 582 type X__sa_family_t = X__uint8_t /* _types.h:59:19 */ // sockaddr address family type 583 type X__segsz_t = X__int32_t /* _types.h:60:19 */ // segment size 584 type X__socklen_t = X__uint32_t /* _types.h:61:20 */ // length type for network syscalls 585 type X__suseconds_t = int32 /* _types.h:62:15 */ // microseconds (signed) 586 type X__time_t = X__int64_t /* _types.h:63:19 */ // epoch time 587 type X__timer_t = X__int32_t /* _types.h:64:19 */ // POSIX timer identifiers 588 type X__uid_t = X__uint32_t /* _types.h:65:20 */ // user id 589 type X__useconds_t = X__uint32_t /* _types.h:66:20 */ // microseconds 590 591 // mbstate_t is an opaque object to keep conversion state, during multibyte 592 // stream conversions. The content must not be referenced by user programs. 593 type X__mbstate_t = struct { 594 F__ccgo_pad1 [0]uint32 595 F__mbstate8 [128]int8 596 } /* _types.h:75:3 */ 597 598 // Tell sys/endian.h we have MD variants of the swap macros. 599 600 // Note that these macros evaluate their arguments several times. 601 602 // Public names 603 604 // These are specified to be function-like macros to match the spec 605 606 // POSIX names 607 608 // original BSD names 609 610 // these were exposed here before 611 612 // ancient stuff 613 614 type U_char = uint8 /* types.h:51:23 */ 615 type U_short = uint16 /* types.h:52:24 */ 616 type U_int = uint32 /* types.h:53:22 */ 617 type U_long = uint32 /* types.h:54:23 */ 618 619 type Unchar = uint8 /* types.h:56:23 */ // Sys V compatibility 620 type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility 621 type Uint = uint32 /* types.h:58:22 */ // Sys V compatibility 622 type Ulong = uint32 /* types.h:59:23 */ // Sys V compatibility 623 624 type Cpuid_t = X__cpuid_t /* types.h:61:19 */ // CPU id 625 type Register_t = X__register_t /* types.h:62:22 */ // register-sized type 626 627 // XXX The exact-width bit types should only be exposed if __BSD_VISIBLE 628 // but the rest of the includes are not ready for that yet. 629 630 type Int8_t = X__int8_t /* types.h:75:19 */ 631 632 type Uint8_t = X__uint8_t /* types.h:80:20 */ 633 634 type Int16_t = X__int16_t /* types.h:85:20 */ 635 636 type Uint16_t = X__uint16_t /* types.h:90:21 */ 637 638 type Int32_t = X__int32_t /* types.h:95:20 */ 639 640 type Uint32_t = X__uint32_t /* types.h:100:21 */ 641 642 type Int64_t = X__int64_t /* types.h:105:20 */ 643 644 type Uint64_t = X__uint64_t /* types.h:110:21 */ 645 646 // BSD-style unsigned bits types 647 type U_int8_t = X__uint8_t /* types.h:114:19 */ 648 type U_int16_t = X__uint16_t /* types.h:115:20 */ 649 type U_int32_t = X__uint32_t /* types.h:116:20 */ 650 type U_int64_t = X__uint64_t /* types.h:117:20 */ 651 652 // quads, deprecated in favor of 64 bit int types 653 type Quad_t = X__int64_t /* types.h:120:19 */ 654 type U_quad_t = X__uint64_t /* types.h:121:20 */ 655 656 // VM system types 657 type Vaddr_t = X__vaddr_t /* types.h:125:19 */ 658 type Paddr_t = X__paddr_t /* types.h:126:19 */ 659 type Vsize_t = X__vsize_t /* types.h:127:19 */ 660 type Psize_t = X__psize_t /* types.h:128:19 */ 661 662 // Standard system types 663 type Blkcnt_t = X__blkcnt_t /* types.h:132:20 */ // blocks allocated for file 664 type Blksize_t = X__blksize_t /* types.h:133:21 */ // optimal blocksize for I/O 665 type Caddr_t = uintptr /* types.h:134:14 */ // core address 666 type Daddr32_t = X__int32_t /* types.h:135:19 */ // 32-bit disk address 667 type Daddr_t = X__int64_t /* types.h:136:19 */ // 64-bit disk address 668 type Dev_t = X__dev_t /* types.h:137:18 */ // device number 669 type Fixpt_t = X__fixpt_t /* types.h:138:19 */ // fixed point number 670 type Gid_t = X__gid_t /* types.h:139:18 */ // group id 671 type Id_t = X__id_t /* types.h:140:17 */ // may contain pid, uid or gid 672 type Ino_t = X__ino_t /* types.h:141:18 */ // inode number 673 type Key_t = X__key_t /* types.h:142:18 */ // IPC key (for Sys V IPC) 674 type Mode_t = X__mode_t /* types.h:143:18 */ // permissions 675 type Nlink_t = X__nlink_t /* types.h:144:19 */ // link count 676 type Rlim_t = X__rlim_t /* types.h:145:18 */ // resource limit 677 type Segsz_t = X__segsz_t /* types.h:146:19 */ // segment size 678 type Uid_t = X__uid_t /* types.h:147:18 */ // user id 679 type Useconds_t = X__useconds_t /* types.h:148:22 */ // microseconds 680 type Suseconds_t = X__suseconds_t /* types.h:149:23 */ // microseconds (signed) 681 type Fsblkcnt_t = X__fsblkcnt_t /* types.h:150:22 */ // file system block count 682 type Fsfilcnt_t = X__fsfilcnt_t /* types.h:151:22 */ // file system file count 683 684 // The following types may be defined in multiple header files. 685 type Clock_t = X__clock_t /* types.h:158:19 */ 686 687 type Clockid_t = X__clockid_t /* types.h:163:21 */ 688 689 type Pid_t = X__pid_t /* types.h:168:18 */ 690 691 type Ssize_t = X__ssize_t /* types.h:178:19 */ 692 693 type Time_t = X__time_t /* types.h:183:18 */ 694 695 type Timer_t = X__timer_t /* types.h:188:19 */ 696 697 type Off_t = X__off_t /* types.h:193:18 */ 698 699 // Major, minor numbers, dev_t's. 700 701 // Should be MAXLOGNAME - 1 702 703 // Flags for pw_mkdb(3) 704 705 type Passwd = struct { 706 Fpw_name uintptr 707 Fpw_passwd uintptr 708 Fpw_uid Uid_t 709 Fpw_gid Gid_t 710 Fpw_change Time_t 711 Fpw_class uintptr 712 Fpw_gecos uintptr 713 Fpw_dir uintptr 714 Fpw_shell uintptr 715 Fpw_expire Time_t 716 } /* pwd.h:80:1 */ 717 718 var _ int8 /* gen.c:2:13: */