1 # 1 "../common/pkgerr.c" 2 # 1 "<built-in>" 3 # 1 "<command-line>" 4 # 1 "../common/pkgerr.c" 5 /* 6 * CDDL HEADER START 7 * 8 * The contents of this file are subject to the terms of the 9 * Common Development and Distribution License (the "License"). 10 * You may not use this file except in compliance with the License. 11 * 12 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13 * or http://www.opensolaris.org/os/licensing. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * 17 * When distributing Covered Code, include this CDDL HEADER in each 18 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19 * If applicable, add the following below this CDDL HEADER, with the 20 * fields enclosed by brackets "[]" replaced with your own identifying 21 * information: Portions Copyright [yyyy] [name of copyright owner] 22 * 23 * CDDL HEADER END 24 */ 25 26 /* 27 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 28 * Use is subject to license terms. 29 */ 30 31 32 /* 33 * Module: pkgerr.c 34 * Description: 35 * Module for handling error messages that come from libpkg libraries. 36 */ 37 38 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1 39 /* 40 * CDDL HEADER START 41 * 42 * The contents of this file are subject to the terms of the 43 * Common Development and Distribution License (the "License"). 44 * You may not use this file except in compliance with the License. 45 * 46 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 47 * or http://www.opensolaris.org/os/licensing. 48 * See the License for the specific language governing permissions 49 * and limitations under the License. 50 * 51 * When distributing Covered Code, include this CDDL HEADER in each 52 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 53 * If applicable, add the following below this CDDL HEADER, with the 54 * fields enclosed by brackets "[]" replaced with your own identifying 55 * information: Portions Copyright [yyyy] [name of copyright owner] 56 * 57 * CDDL HEADER END 58 */ 59 60 /* 61 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 62 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 63 */ 64 65 /* Copyright (c) 1988 AT&T */ 66 /* All Rights Reserved */ 67 68 /* 69 * User-visible pieces of the ANSI C standard I/O package. 70 */ 71 72 73 74 75 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 76 /* 77 * CDDL HEADER START 78 * 79 * The contents of this file are subject to the terms of the 80 * Common Development and Distribution License (the "License"). 81 * You may not use this file except in compliance with the License. 82 * 83 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 84 * or http://www.opensolaris.org/os/licensing. 85 * See the License for the specific language governing permissions 86 * and limitations under the License. 87 * 88 * When distributing Covered Code, include this CDDL HEADER in each 89 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 90 * If applicable, add the following below this CDDL HEADER, with the 91 * fields enclosed by brackets "[]" replaced with your own identifying 92 * information: Portions Copyright [yyyy] [name of copyright owner] 93 * 94 * CDDL HEADER END 95 */ 96 97 /* 98 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 99 * Copyright 2016 Joyent, Inc. 100 * 101 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 102 * Use is subject to license terms. 103 */ 104 105 106 107 108 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/ccompile.h" 1 109 /* 110 * CDDL HEADER START 111 * 112 * The contents of this file are subject to the terms of the 113 * Common Development and Distribution License, Version 1.0 only 114 * (the "License"). You may not use this file except in compliance 115 * with the License. 116 * 117 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 118 * or http://www.opensolaris.org/os/licensing. 119 * See the License for the specific language governing permissions 120 * and limitations under the License. 121 * 122 * When distributing Covered Code, include this CDDL HEADER in each 123 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 124 * If applicable, add the following below this CDDL HEADER, with the 125 * fields enclosed by brackets "[]" replaced with your own identifying 126 * information: Portions Copyright [yyyy] [name of copyright owner] 127 * 128 * CDDL HEADER END 129 */ 130 /* 131 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 132 * Use is subject to license terms. 133 */ 134 /* 135 * Copyright 2015 EveryCity Ltd. All rights reserved. 136 */ 137 138 139 140 141 /* 142 * This file contains definitions designed to enable different compilers 143 * to be used harmoniously on Solaris systems. 144 */ 145 146 147 148 149 150 /* 151 * Allow for version tests for compiler bugs and features. 152 */ 153 # 54 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/ccompile.h" 154 /* 155 * analogous to lint's PRINTFLIKEn 156 */ 157 158 159 160 161 162 /* 163 * Handle the kernel printf routines that can take '%b' too 164 */ 165 # 78 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/ccompile.h" 166 /* 167 * This one's pretty obvious -- the function never returns 168 */ 169 170 171 /* 172 * The function is 'extern inline' and expects GNU C89 behaviour, not C99 173 * behaviour. 174 * 175 * Should only be used on 'extern inline' definitions for GCC. 176 */ 177 178 179 180 181 182 183 /* 184 * The function has control flow such that it may return multiple times (in 185 * the manner of setjmp or vfork) 186 */ 187 188 189 190 191 192 193 /* 194 * This is an appropriate label for functions that do not 195 * modify their arguments, e.g. strlen() 196 */ 197 198 199 /* 200 * This is a stronger form of __pure__. Can be used for functions 201 * that do not modify their arguments and don't depend on global 202 * memory. 203 */ 204 205 206 207 208 /* 209 * This attribute, attached to a variable, means that the variable is meant to 210 * be possibly unused. GCC will not produce a warning for this variable. 211 */ 212 # 138 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/ccompile.h" 213 /* 214 * Shorthand versions for readability 215 */ 216 # 34 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 2 217 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 218 /* 219 * CDDL HEADER START 220 * 221 * The contents of this file are subject to the terms of the 222 * Common Development and Distribution License (the "License"). 223 * You may not use this file except in compliance with the License. 224 * 225 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 226 * or http://www.opensolaris.org/os/licensing. 227 * See the License for the specific language governing permissions 228 * and limitations under the License. 229 * 230 * 231 * When distributing Covered Code, include this CDDL HEADER in each 232 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 233 * If applicable, add the following below this CDDL HEADER, with the 234 * fields enclosed by brackets "[]" replaced with your own identifying 235 * information: Portions Copyright [yyyy] [name of copyright owner] 236 * 237 * CDDL HEADER END 238 */ 239 240 /* 241 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 242 * Use is subject to license terms. 243 * Copyright 2016 Joyent, Inc. 244 */ 245 246 247 248 249 /* 250 * This header file serves to group a set of well known defines and to 251 * set these for each instruction set architecture. These defines may 252 * be divided into two groups; characteristics of the processor and 253 * implementation choices for Solaris on a processor. 254 * 255 * Processor Characteristics: 256 * 257 * _LITTLE_ENDIAN / _BIG_ENDIAN: 258 * The natural byte order of the processor. A pointer to an int points 259 * to the least/most significant byte of that int. 260 * 261 * _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: 262 * The processor specific direction of stack growth. A push onto the 263 * stack increases/decreases the stack pointer, so it stores data at 264 * successively higher/lower addresses. (Stackless machines ignored 265 * without regrets). 266 * 267 * _LONG_LONG_HTOL / _LONG_LONG_LTOH: 268 * A pointer to a long long points to the most/least significant long 269 * within that long long. 270 * 271 * _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: 272 * The C compiler assigns bit fields from the high/low to the low/high end 273 * of an int (most to least significant vs. least to most significant). 274 * 275 * _IEEE_754: 276 * The processor (or supported implementations of the processor) 277 * supports the ieee-754 floating point standard. No other floating 278 * point standards are supported (or significant). Any other supported 279 * floating point formats are expected to be cased on the ISA processor 280 * symbol. 281 * 282 * _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: 283 * The C Compiler implements objects of type `char' as `unsigned' or 284 * `signed' respectively. This is really an implementation choice of 285 * the compiler writer, but it is specified in the ABI and tends to 286 * be uniform across compilers for an instruction set architecture. 287 * Hence, it has the properties of a processor characteristic. 288 * 289 * _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / 290 * _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / 291 * _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: 292 * The ABI defines alignment requirements of each of the primitive 293 * object types. Some, if not all, may be hardware requirements as 294 * well. The values are expressed in "byte-alignment" units. 295 * 296 * _MAX_ALIGNMENT: 297 * The most stringent alignment requirement as specified by the ABI. 298 * Equal to the maximum of all the above _XXX_ALIGNMENT values. 299 * 300 * _MAX_ALIGNMENT_TYPE: 301 * The name of the C type that has the value descried in _MAX_ALIGNMENT. 302 * 303 * _ALIGNMENT_REQUIRED: 304 * True or false (1 or 0) whether or not the hardware requires the ABI 305 * alignment. 306 * 307 * _LONG_LONG_ALIGNMENT_32 308 * The 32-bit ABI supported by a 64-bit kernel may have different 309 * alignment requirements for primitive object types. The value of this 310 * identifier is expressed in "byte-alignment" units. 311 * 312 * _HAVE_CPUID_INSN 313 * This indicates that the architecture supports the 'cpuid' 314 * instruction as defined by Intel. (Intel allows other vendors 315 * to extend the instruction for their own purposes.) 316 * 317 * 318 * Implementation Choices: 319 * 320 * _ILP32 / _LP64: 321 * This specifies the compiler data type implementation as specified in 322 * the relevant ABI. The choice between these is strongly influenced 323 * by the underlying hardware, but is not absolutely tied to it. 324 * Currently only two data type models are supported: 325 * 326 * _ILP32: 327 * Int/Long/Pointer are 32 bits. This is the historical UNIX 328 * and Solaris implementation. Due to its historical standing, 329 * this is the default case. 330 * 331 * _LP64: 332 * Long/Pointer are 64 bits, Int is 32 bits. This is the chosen 333 * implementation for 64-bit ABIs such as SPARC V9. 334 * 335 * _I32LPx: 336 * A compilation environment where 'int' is 32-bit, and 337 * longs and pointers are simply the same size. 338 * 339 * In all cases, Char is 8 bits and Short is 16 bits. 340 * 341 * _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: 342 * This specifies the form of the disk VTOC (or label): 343 * 344 * _SUNOS_VTOC_8: 345 * This is a VTOC form which is upwardly compatible with the 346 * SunOS 4.x disk label and allows 8 partitions per disk. 347 * 348 * _SUNOS_VTOC_16: 349 * In this format the incore vtoc image matches the ondisk 350 * version. It allows 16 slices per disk, and is not 351 * compatible with the SunOS 4.x disk label. 352 * 353 * Note that these are not the only two VTOC forms possible and 354 * additional forms may be added. One possible form would be the 355 * SVr4 VTOC form. The symbol for that is reserved now, although 356 * it is not implemented. 357 * 358 * _SVR4_VTOC_16: 359 * This VTOC form is compatible with the System V Release 4 360 * VTOC (as implemented on the SVr4 Intel and 3b ports) with 361 * 16 partitions per disk. 362 * 363 * 364 * _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR 365 * This describes the type of addresses used by system DMA: 366 * 367 * _DMA_USES_PHYSADDR: 368 * This type of DMA, used in the x86 implementation, 369 * requires physical addresses for DMA buffers. The 24-bit 370 * addresses used by some legacy boards is the source of the 371 * "low-memory" (<16MB) requirement for some devices using DMA. 372 * 373 * _DMA_USES_VIRTADDR: 374 * This method of DMA allows the use of virtual addresses for 375 * DMA transfers. 376 * 377 * _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT 378 * This indicates the presence/absence of an fdisk table. 379 * 380 * _FIRMWARE_NEEDS_FDISK 381 * The fdisk table is required by system firmware. If present, 382 * it allows a disk to be subdivided into multiple fdisk 383 * partitions, each of which is equivalent to a separate, 384 * virtual disk. This enables the co-existence of multiple 385 * operating systems on a shared hard disk. 386 * 387 * _NO_FDISK_PRESENT 388 * If the fdisk table is absent, it is assumed that the entire 389 * media is allocated for a single operating system. 390 * 391 * _HAVE_TEM_FIRMWARE 392 * Defined if this architecture has the (fallback) option of 393 * using prom_* calls for doing I/O if a suitable kernel driver 394 * is not available to do it. 395 * 396 * _DONT_USE_1275_GENERIC_NAMES 397 * Controls whether or not device tree node names should 398 * comply with the IEEE 1275 "Generic Names" Recommended 399 * Practice. With _DONT_USE_GENERIC_NAMES, device-specific 400 * names identifying the particular device will be used. 401 * 402 * __i386_COMPAT 403 * This indicates whether the i386 ABI is supported as a *non-native* 404 * mode for the platform. When this symbol is defined: 405 * - 32-bit xstat-style system calls are enabled 406 * - 32-bit xmknod-style system calls are enabled 407 * - 32-bit system calls use i386 sizes -and- alignments 408 * 409 * Note that this is NOT defined for the i386 native environment! 410 * 411 * __x86 412 * This is ONLY a synonym for defined(__i386) || defined(__amd64) 413 * which is useful only insofar as these two architectures share 414 * common attributes. Analogous to __sparc. 415 * 416 * _PSM_MODULES 417 * This indicates whether or not the implementation uses PSM 418 * modules for processor support, reading /etc/mach from inside 419 * the kernel to extract a list. 420 * 421 * _RTC_CONFIG 422 * This indicates whether or not the implementation uses /etc/rtc_config 423 * to configure the real-time clock in the kernel. 424 * 425 * _UNIX_KRTLD 426 * This indicates that the implementation uses a dynamically 427 * linked unix + krtld to form the core kernel image at boot 428 * time, or (in the absence of this symbol) a prelinked kernel image. 429 * 430 * _OBP 431 * This indicates the firmware interface is OBP. 432 * 433 * _SOFT_HOSTID 434 * This indicates that the implementation obtains the hostid 435 * from the file /etc/hostid, rather than from hardware. 436 */ 437 438 439 440 441 442 /* 443 * The following set of definitions characterize Solaris on AMD's 444 * 64-bit systems. 445 */ 446 # 305 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 447 /* 448 * Define the appropriate "processor characteristics" 449 */ 450 # 333 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 451 /* 452 * Define the appropriate "implementation choices". 453 */ 454 # 351 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 455 /* 456 * The following set of definitions characterize the Solaris on SPARC systems. 457 * 458 * The symbol __sparc indicates any of the SPARC family of processor 459 * architectures. This includes SPARC V7, SPARC V8 and SPARC V9. 460 * 461 * The symbol __sparcv8 indicates the 32-bit SPARC V8 architecture as defined 462 * by Version 8 of the SPARC Architecture Manual. (SPARC V7 is close enough 463 * to SPARC V8 for the former to be subsumed into the latter definition.) 464 * 465 * The symbol __sparcv9 indicates the 64-bit SPARC V9 architecture as defined 466 * by Version 9 of the SPARC Architecture Manual. 467 * 468 * The symbols __sparcv8 and __sparcv9 are mutually exclusive, and are only 469 * relevant when the symbol __sparc is defined. 470 */ 471 /* 472 * XXX Due to the existence of 5110166, "defined(__sparcv9)" needs to be added 473 * to support backwards builds. This workaround should be removed in s10_71. 474 */ 475 # 35 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 2 476 477 478 479 480 481 /* 482 * Values of _POSIX_C_SOURCE 483 * 484 * undefined not a POSIX compilation 485 * 1 POSIX.1-1990 compilation 486 * 2 POSIX.2-1992 compilation 487 * 199309L POSIX.1b-1993 compilation (Real Time) 488 * 199506L POSIX.1c-1995 compilation (POSIX Threads) 489 * 200112L POSIX.1-2001 compilation (Austin Group Revision) 490 * 200809L POSIX.1-2008 compilation 491 */ 492 493 494 495 496 /* 497 * The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, 498 * and _STDC_C99 are Sun implementation specific macros created in order to 499 * compress common standards specified feature test macros for easier reading. 500 * These macros should not be used by the application developer as 501 * unexpected results may occur. Instead, the user should reference 502 * standards(5) for correct usage of the standards feature test macros. 503 * 504 * __XOPEN_OR_POSIX Used in cases where a symbol is defined by both 505 * X/Open or POSIX or in the negative, when neither 506 * X/Open or POSIX defines a symbol. 507 * 508 * _STRICT_STDC __STDC__ is specified by the C Standards and defined 509 * by the compiler. For Sun compilers the value of 510 * __STDC__ is either 1, 0, or not defined based on the 511 * compilation mode (see cc(1)). When the value of 512 * __STDC__ is 1 and in the absence of any other feature 513 * test macros, the namespace available to the application 514 * is limited to only those symbols defined by the C 515 * Standard. _STRICT_STDC provides a more readable means 516 * of identifying symbols defined by the standard, or in 517 * the negative, symbols that are extensions to the C 518 * Standard. See additional comments for GNU C differences. 519 * 520 * _STDC_C99 __STDC_VERSION__ is specified by the C standards and 521 * defined by the compiler and indicates the version of 522 * the C standard. A value of 199901L indicates a 523 * compiler that complies with ISO/IEC 9899:1999, other- 524 * wise known as the C99 standard. 525 * 526 * _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ 527 * is 201112L indicating a compiler that compiles with 528 * ISO/IEXC 9899:2011, otherwise known as the C11 standard. 529 * 530 * _STRICT_SYMBOLS Used in cases where symbol visibility is restricted 531 * by the standards, and the user has not explicitly 532 * relaxed the strictness via __EXTENSIONS__. 533 */ 534 535 536 537 538 539 /* 540 * ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC 541 * 99899:2011 specify the following predefined macro name: 542 * 543 * __STDC__ The integer constant 1, intended to indicate a conforming 544 * implementation. 545 * 546 * Furthermore, a strictly conforming program shall use only those features 547 * of the language and library specified in these standards. A conforming 548 * implementation shall accept any strictly conforming program. 549 * 550 * Based on these requirements, Sun's C compiler defines __STDC__ to 1 for 551 * strictly conforming environments and __STDC__ to 0 for environments that 552 * use ANSI C semantics but allow extensions to the C standard. For non-ANSI 553 * C semantics, Sun's C compiler does not define __STDC__. 554 * 555 * The GNU C project interpretation is that __STDC__ should always be defined 556 * to 1 for compilation modes that accept ANSI C syntax regardless of whether 557 * or not extensions to the C standard are used. Violations of conforming 558 * behavior are conditionally flagged as warnings via the use of the 559 * -pedantic option. In addition to defining __STDC__ to 1, the GNU C 560 * compiler also defines __STRICT_ANSI__ as a means of specifying strictly 561 * conforming environments using the -ansi or -std=<standard> options. 562 * 563 * In the absence of any other compiler options, Sun and GNU set the value 564 * of __STDC__ as follows when using the following options: 565 * 566 * Value of __STDC__ __STRICT_ANSI__ 567 * 568 * cc -Xa (default) 0 undefined 569 * cc -Xt (transitional) 0 undefined 570 * cc -Xc (strictly conforming) 1 undefined 571 * cc -Xs (K&R C) undefined undefined 572 * 573 * gcc (default) 1 undefined 574 * gcc -ansi, -std={c89, c99,...) 1 defined 575 * gcc -traditional (K&R) undefined undefined 576 * 577 * The default compilation modes for Sun C compilers versus GNU C compilers 578 * results in a differing value for __STDC__ which results in a more 579 * restricted namespace when using Sun compilers. To allow both GNU and Sun 580 * interpretations to peacefully co-exist, we use the following Sun 581 * implementation _STRICT_STDC_ macro: 582 */ 583 # 150 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 584 /* 585 * Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 586 */ 587 # 162 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 588 /* 589 * Use strict symbol visibility. 590 */ 591 592 593 594 595 596 /* 597 * Large file interfaces: 598 * 599 * _LARGEFILE_SOURCE 600 * 1 large file-related additions to POSIX 601 * interfaces requested (fseeko, etc.) 602 * _LARGEFILE64_SOURCE 603 * 1 transitional large-file-related interfaces 604 * requested (seek64, stat64, etc.) 605 * 606 * The corresponding announcement macros are respectively: 607 * _LFS_LARGEFILE 608 * _LFS64_LARGEFILE 609 * (These are set in <unistd.h>.) 610 * 611 * Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as 612 * well. 613 * 614 * The large file interfaces are made visible regardless of the initial values 615 * of the feature test macros under certain circumstances: 616 * - If no explicit standards-conforming environment is requested (neither 617 * of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of 618 * __STDC__ does not imply standards conformance). 619 * - Extended system interfaces are explicitly requested (__EXTENSIONS__ 620 * is defined). 621 * - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is 622 * defined). (Note that this dependency is an artifact of the current 623 * kernel implementation and may change in future releases.) 624 */ 625 # 210 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 626 /* 627 * Large file compilation environment control: 628 * 629 * The setting of _FILE_OFFSET_BITS controls the size of various file-related 630 * types and governs the mapping between file-related source function symbol 631 * names and the corresponding binary entry points. 632 * 633 * In the 32-bit environment, the default value is 32; if not set, set it to 634 * the default here, to simplify tests in other headers. 635 * 636 * In the 64-bit compilation environment, the only value allowed is 64. 637 */ 638 # 238 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 639 /* 640 * Use of _XOPEN_SOURCE 641 * 642 * The following X/Open specifications are supported: 643 * 644 * X/Open Portability Guide, Issue 3 (XPG3) 645 * X/Open CAE Specification, Issue 4 (XPG4) 646 * X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) 647 * X/Open CAE Specification, Issue 5 (XPG5) 648 * Open Group Technical Standard, Issue 6 (XPG6), also referred to as 649 * IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. 650 * Open Group Technical Standard, Issue 7 (XPG7), also referred to as 651 * IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. 652 * 653 * XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). 654 * XPG5 is also referred to as UNIX 98 or the Single Unix Specification, 655 * Version 2 (SUSv2) 656 * XPG6 is the result of a merge of the X/Open and POSIX specifications 657 * and as such is also referred to as IEEE Std. 1003.1-2001 in 658 * addition to UNIX 03 and SUSv3. 659 * XPG7 is also referred to as UNIX 08 and SUSv4. 660 * 661 * When writing a conforming X/Open application, as per the specification 662 * requirements, the appropriate feature test macros must be defined at 663 * compile time. These are as follows. For more info, see standards(5). 664 * 665 * Feature Test Macro Specification 666 * ------------------------------------------------ ------------- 667 * _XOPEN_SOURCE XPG3 668 * _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 669 * _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 670 * _XOPEN_SOURCE = 500 XPG5 671 * _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 672 * _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 673 * 674 * In order to simplify the guards within the headers, the following 675 * implementation private test macros have been created. Applications 676 * must NOT use these private test macros as unexpected results will 677 * occur. 678 * 679 * Note that in general, the use of these private macros is cumulative. 680 * For example, the use of _XPG3 with no other restrictions on the X/Open 681 * namespace will make the symbols visible for XPG3 through XPG6 682 * compilation environments. The use of _XPG4_2 with no other X/Open 683 * namespace restrictions indicates that the symbols were introduced in 684 * XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation 685 * environments, but not for XPG3 or XPG4 compilation environments. 686 * 687 * _XPG3 X/Open Portability Guide, Issue 3 (XPG3) 688 * _XPG4 X/Open CAE Specification, Issue 4 (XPG4) 689 * _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) 690 * _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) 691 * _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) 692 * _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) 693 */ 694 695 /* X/Open Portability Guide, Issue 3 */ 696 # 341 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 697 /* 698 * _XOPEN_VERSION is defined by the X/Open specifications and is not 699 * normally defined by the application, except in the case of an XPG4 700 * application. On the implementation side, _XOPEN_VERSION defined with 701 * the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined 702 * with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. 703 * _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) 704 * application and with a value of 600 indicates an XPG6 (UNIX 03) 705 * application and with a value of 700 indicates an XPG7 (UNIX 08). 706 * The appropriate version is determined by the use of the 707 * feature test macros described earlier. The value of _XOPEN_VERSION 708 * defaults to 3 otherwise indicating support for XPG3 applications. 709 */ 710 # 368 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 711 /* 712 * ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly 713 * conforming environments. ISO 9899:1999 says it does. 714 * 715 * The presence of _LONGLONG_TYPE says "long long exists" which is therefore 716 * defined in all but strictly conforming environments that disallow it. 717 */ 718 # 388 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 719 /* 720 * The following macro defines a value for the ISO C99 restrict 721 * keyword so that _RESTRICT_KYWD resolves to "restrict" if 722 * an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) 723 * if any other compiler is used. This allows for the use of single 724 * prototype declarations regardless of compiler version. 725 */ 726 # 410 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 727 /* 728 * The following macro defines a value for the ISO C11 _Noreturn 729 * keyword so that _NORETURN_KYWD resolves to "_Noreturn" if 730 * an ISO C11 compiler is used and "" (null string) if any other 731 * compiler is used. This allows for the use of single prototype 732 * declarations regardless of compiler version. 733 */ 734 735 736 737 738 739 740 741 /* 742 * The following macro indicates header support for the ANSI C++ 743 * standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. 744 */ 745 746 747 /* 748 * The following macro indicates header support for the C99 standard, 749 * ISO/IEC 9899:1999, Programming Languages - C. 750 */ 751 752 753 /* 754 * The following macro indicates header support for the C99 standard, 755 * ISO/IEC 9899:2011, Programming Languages - C. 756 */ 757 758 759 /* 760 * The following macro indicates header support for DTrace. The value is an 761 * integer that corresponds to the major version number for DTrace. 762 */ 763 # 38 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 2 764 765 766 767 768 769 /* 770 * Do all of our 'redefine_extname' processing before 771 * declarations of the associated functions are seen. 772 * This is necessary to keep gcc happy. 773 */ 774 775 776 /* large file compilation environment setup */ 777 778 779 # 52 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 780 #pragma redefine_extname fopen fopen64 781 # 52 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 782 783 784 # 53 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 785 #pragma redefine_extname freopen freopen64 786 # 53 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 787 788 789 # 54 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 790 #pragma redefine_extname tmpfile tmpfile64 791 # 54 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 792 793 794 # 55 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 795 #pragma redefine_extname fgetpos fgetpos64 796 # 55 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 797 798 799 # 56 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 800 #pragma redefine_extname fsetpos fsetpos64 801 # 56 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 802 803 804 805 # 58 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 806 #pragma redefine_extname fseeko fseeko64 807 # 58 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 808 809 810 # 59 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 811 #pragma redefine_extname ftello ftello64 812 # 59 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 813 814 815 816 817 /* In the LP64 compilation environment, all APIs are already large file */ 818 # 82 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 819 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 1 820 /* 821 * CDDL HEADER START 822 * 823 * The contents of this file are subject to the terms of the 824 * Common Development and Distribution License, Version 1.0 only 825 * (the "License"). You may not use this file except in compliance 826 * with the License. 827 * 828 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 829 * or http://www.opensolaris.org/os/licensing. 830 * See the License for the specific language governing permissions 831 * and limitations under the License. 832 * 833 * When distributing Covered Code, include this CDDL HEADER in each 834 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 835 * If applicable, add the following below this CDDL HEADER, with the 836 * fields enclosed by brackets "[]" replaced with your own identifying 837 * information: Portions Copyright [yyyy] [name of copyright owner] 838 * 839 * CDDL HEADER END 840 */ 841 /* 842 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 843 * Copyright 2014 PALO, Richard. 844 * 845 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 846 * Use is subject to license terms. 847 */ 848 849 /* Copyright (c) 1988 AT&T */ 850 /* All Rights Reserved */ 851 852 /* 853 * An application should not include this header directly. Instead it 854 * should be included only through the inclusion of other Sun headers. 855 * 856 * The contents of this header is limited to identifiers specified in the 857 * C Standard. Any new identifiers specified in future amendments to the 858 * C Standard must be placed in this header. If these new identifiers 859 * are required to also be in the C++ Standard "std" namespace, then for 860 * anything other than macro definitions, corresponding "using" directives 861 * must also be added to <stdio.h>. 862 */ 863 864 /* 865 * User-visible pieces of the ANSI C standard I/O package. 866 */ 867 868 869 870 871 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 872 /* 873 * CDDL HEADER START 874 * 875 * The contents of this file are subject to the terms of the 876 * Common Development and Distribution License (the "License"). 877 * You may not use this file except in compliance with the License. 878 * 879 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 880 * or http://www.opensolaris.org/os/licensing. 881 * See the License for the specific language governing permissions 882 * and limitations under the License. 883 * 884 * When distributing Covered Code, include this CDDL HEADER in each 885 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 886 * If applicable, add the following below this CDDL HEADER, with the 887 * fields enclosed by brackets "[]" replaced with your own identifying 888 * information: Portions Copyright [yyyy] [name of copyright owner] 889 * 890 * CDDL HEADER END 891 */ 892 893 /* 894 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 895 * Copyright 2016 Joyent, Inc. 896 * 897 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 898 * Use is subject to license terms. 899 */ 900 # 53 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 2 901 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 902 /* 903 * This file and its contents are supplied under the terms of the 904 * Common Development and Distribution License ("CDDL"), version 1.0. 905 * You may only use this file in accordance with the terms of version 906 * 1.0 of the CDDL. 907 * 908 * A full copy of the text of the CDDL should have accompanied this 909 * source. A copy of the CDDL is also available via the Internet at 910 * http://www.illumos.org/license/CDDL. 911 */ 912 913 /* 914 * Copyright 2014-2016 PALO, Richard. 915 */ 916 # 54 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 2 917 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/va_list.h" 1 918 /* 919 * CDDL HEADER START 920 * 921 * The contents of this file are subject to the terms of the 922 * Common Development and Distribution License, Version 1.0 only 923 * (the "License"). You may not use this file except in compliance 924 * with the License. 925 * 926 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 927 * or http://www.opensolaris.org/os/licensing. 928 * See the License for the specific language governing permissions 929 * and limitations under the License. 930 * 931 * When distributing Covered Code, include this CDDL HEADER in each 932 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 933 * If applicable, add the following below this CDDL HEADER, with the 934 * fields enclosed by brackets "[]" replaced with your own identifying 935 * information: Portions Copyright [yyyy] [name of copyright owner] 936 * 937 * CDDL HEADER END 938 */ 939 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 940 /* All Rights Reserved */ 941 942 943 /* 944 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 945 * 946 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 947 * Use is subject to license terms. 948 */ 949 950 951 952 953 /* 954 * An application should not include this header directly. Instead it 955 * should be included only through the inclusion of other Sun headers. 956 * 957 * The purpose of this header is to provide the type definitions for 958 * the va_list argument used by a number of printf and printf like 959 * functions. The headers that define these various function prototypes 960 * #include this header directly. These include but are not necessarily 961 * limited to <stdio.h>, <stdio_iso.h>, <wchar_iso.h>, <strlog.h> and 962 * <syslog.h>. The type definitions included in this header are for 963 * the benefit of consumers of va_list. 964 * 965 * Any application that accepts variable argument lists must as documented, 966 * include either <varargs.h> or the preferred <stdarg.h>. Doing so will 967 * pull in the appropriate compiler protocols defined in <sys/va_impl.h> 968 * which is in turn is included by <varargs.h> and <stdarg.h>. See comments 969 * in <sys/va_impl.h> for more detailed information regarding implementation 970 * and compiler specific protocols. 971 */ 972 973 /* 974 * The common definitions exported by this header or compilers using 975 * this header are: 976 * 977 * the identifier __builtin_va_alist for the variable list pseudo parameter 978 * the type __va_alist_type for the variable list pseudo parameter 979 * the type __va_list defining the type of the variable list iterator 980 * 981 * The feature macros (e.g. __BUILTIN_VA_STRUCT) and compiler macros 982 * (__GNUC__) and processor macros (e.g. __amd64) are intended to be 983 * defined by the compilation system, not the user of the system. 984 */ 985 986 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 987 /* 988 * CDDL HEADER START 989 * 990 * The contents of this file are subject to the terms of the 991 * Common Development and Distribution License (the "License"). 992 * You may not use this file except in compliance with the License. 993 * 994 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 995 * or http://www.opensolaris.org/os/licensing. 996 * See the License for the specific language governing permissions 997 * and limitations under the License. 998 * 999 * 1000 * When distributing Covered Code, include this CDDL HEADER in each 1001 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1002 * If applicable, add the following below this CDDL HEADER, with the 1003 * fields enclosed by brackets "[]" replaced with your own identifying 1004 * information: Portions Copyright [yyyy] [name of copyright owner] 1005 * 1006 * CDDL HEADER END 1007 */ 1008 1009 /* 1010 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 1011 * Use is subject to license terms. 1012 * Copyright 2016 Joyent, Inc. 1013 */ 1014 # 70 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/va_list.h" 2 1015 # 108 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/va_list.h" 1016 typedef __builtin_va_list __gnuc_va_list; 1017 /* 1018 * XX64 This seems unnecessary .. but is needed because vcmn_err is 1019 * defined with __va_list instead of plain old va_list. 1020 * Perhaps that should be fixed! 1021 */ 1022 typedef __builtin_va_list __va_list; 1023 # 55 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 2 1024 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio_tag.h" 1 1025 /* 1026 * CDDL HEADER START 1027 * 1028 * The contents of this file are subject to the terms of the 1029 * Common Development and Distribution License, Version 1.0 only 1030 * (the "License"). You may not use this file except in compliance 1031 * with the License. 1032 * 1033 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1034 * or http://www.opensolaris.org/os/licensing. 1035 * See the License for the specific language governing permissions 1036 * and limitations under the License. 1037 * 1038 * When distributing Covered Code, include this CDDL HEADER in each 1039 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1040 * If applicable, add the following below this CDDL HEADER, with the 1041 * fields enclosed by brackets "[]" replaced with your own identifying 1042 * information: Portions Copyright [yyyy] [name of copyright owner] 1043 * 1044 * CDDL HEADER END 1045 */ 1046 /* 1047 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 1048 * Use is subject to license terms. 1049 */ 1050 1051 1052 1053 1054 #pragma ident "%Z%%M% %I% %E% SMI" 1055 # 42 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio_tag.h" 1056 typedef struct __FILE __FILE; 1057 # 56 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 2 1058 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio_impl.h" 1 1059 /* 1060 * CDDL HEADER START 1061 * 1062 * The contents of this file are subject to the terms of the 1063 * Common Development and Distribution License (the "License"). 1064 * You may not use this file except in compliance with the License. 1065 * 1066 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1067 * or http://www.opensolaris.org/os/licensing. 1068 * See the License for the specific language governing permissions 1069 * and limitations under the License. 1070 * 1071 * When distributing Covered Code, include this CDDL HEADER in each 1072 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1073 * If applicable, add the following below this CDDL HEADER, with the 1074 * fields enclosed by brackets "[]" replaced with your own identifying 1075 * information: Portions Copyright [yyyy] [name of copyright owner] 1076 * 1077 * CDDL HEADER END 1078 */ 1079 1080 /* 1081 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 1082 * Use is subject to license terms. 1083 */ 1084 1085 1086 1087 1088 #pragma ident "%Z%%M% %I% %E% SMI" 1089 1090 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 1091 /* 1092 * CDDL HEADER START 1093 * 1094 * The contents of this file are subject to the terms of the 1095 * Common Development and Distribution License (the "License"). 1096 * You may not use this file except in compliance with the License. 1097 * 1098 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1099 * or http://www.opensolaris.org/os/licensing. 1100 * See the License for the specific language governing permissions 1101 * and limitations under the License. 1102 * 1103 * 1104 * When distributing Covered Code, include this CDDL HEADER in each 1105 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1106 * If applicable, add the following below this CDDL HEADER, with the 1107 * fields enclosed by brackets "[]" replaced with your own identifying 1108 * information: Portions Copyright [yyyy] [name of copyright owner] 1109 * 1110 * CDDL HEADER END 1111 */ 1112 1113 /* 1114 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 1115 * Use is subject to license terms. 1116 * Copyright 2016 Joyent, Inc. 1117 */ 1118 # 33 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio_impl.h" 2 1119 # 50 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio_impl.h" 1120 struct __FILE /* needs to be binary-compatible with old versions */ 1121 { 1122 1123 1124 1125 1126 int _cnt; /* number of available characters in buffer */ 1127 unsigned char *_ptr; /* next character from/to here in buffer */ 1128 1129 unsigned char *_base; /* the buffer */ 1130 unsigned char _flag; /* the state of the stream */ 1131 unsigned char _magic; /* Old home of the file descriptor */ 1132 /* Only fileno(3C) can retrieve the value now */ 1133 unsigned __orientation:2; /* the orientation of the stream */ 1134 unsigned __ionolock:1; /* turn off implicit locking */ 1135 unsigned __seekable:1; /* is file seekable? */ 1136 unsigned __extendedfd:1; /* enable extended FILE */ 1137 unsigned __xf_nocheck:1; /* no extended FILE runtime check */ 1138 unsigned __filler:10; 1139 }; 1140 # 57 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 2 1141 1142 /* 1143 * If feature test macros are set that enable interfaces that use types 1144 * defined in <sys/types.h>, get those types by doing the include. 1145 * 1146 * Note that in asking for the interfaces associated with this feature test 1147 * macro one also asks for definitions of the POSIX types. 1148 */ 1149 1150 1151 1152 1153 1154 1155 /* 1156 * The following typedefs are adopted from ones in <sys/types.h> (with leading 1157 * underscores added to avoid polluting the ANSI C name space). See the 1158 * commentary there for further explanation. 1159 */ 1160 1161 typedef long long __longlong_t; 1162 # 93 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 1163 typedef __FILE FILE; 1164 1165 1166 1167 1168 1169 1170 1171 typedef unsigned int size_t; /* (historical version) */ 1172 1173 1174 1175 1176 1177 1178 typedef __longlong_t fpos_t; 1179 # 117 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 1180 /* 1181 * The value of _NFILE is defined in the Processor Specific ABI. The value 1182 * is chosen for historical reasons rather than for truly processor related 1183 * attribute. Note that the SPARC Processor Specific ABI uses the common 1184 * UNIX historical value of 20 so it is allowed to fall through. 1185 */ 1186 # 156 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 1187 extern __FILE __iob[60]; 1188 # 191 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 1189 extern int remove(const char *); 1190 extern int rename(const char *, const char *); 1191 extern FILE *tmpfile(void); 1192 extern char *tmpnam(char *); 1193 extern int fclose(FILE *); 1194 extern int fflush(FILE *); 1195 extern FILE *fopen(const char *, const char *); 1196 extern FILE *freopen(const char *, 1197 const char *, FILE *); 1198 extern void setbuf(FILE *, char *); 1199 extern int setvbuf(FILE *, char *, int, 1200 size_t); 1201 /* PRINTFLIKE2 */ 1202 extern int fprintf(FILE *, const char *, ...); 1203 /* SCANFLIKE2 */ 1204 extern int fscanf(FILE *, const char *, ...); 1205 /* PRINTFLIKE1 */ 1206 extern int printf(const char *, ...); 1207 /* SCANFLIKE1 */ 1208 extern int scanf(const char *, ...); 1209 /* PRINTFLIKE2 */ 1210 extern int sprintf(char *, const char *, ...); 1211 /* SCANFLIKE2 */ 1212 extern int sscanf(const char *, 1213 const char *, ...); 1214 extern int vfprintf(FILE *, const char *, 1215 __va_list); 1216 extern int vprintf(const char *, __va_list); 1217 extern int vsprintf(char *, const char *, 1218 __va_list); 1219 extern int fgetc(FILE *); 1220 extern char *fgets(char *, int, FILE *); 1221 extern int fputc(int, FILE *); 1222 extern int fputs(const char *, FILE *); 1223 1224 1225 extern int getc(FILE *); 1226 extern int putc(int, FILE *); 1227 1228 1229 1230 extern int getchar(void); 1231 extern int putchar(int); 1232 1233 1234 /* 1235 * ISO/IEC C11 removed gets from the standard library. Therefore if a strict C11 1236 * environment has been requested, we remove it. 1237 */ 1238 1239 extern char *gets(char *); 1240 1241 extern int puts(const char *); 1242 extern int ungetc(int, FILE *); 1243 extern size_t fread(void *, size_t, size_t, 1244 FILE *); 1245 extern size_t fwrite(const void *, size_t, size_t, 1246 FILE *); 1247 1248 extern int fgetpos(FILE *, fpos_t *); 1249 extern int fsetpos(FILE *, const fpos_t *); 1250 1251 extern int fseek(FILE *, long, int); 1252 extern long ftell(FILE *); 1253 extern void rewind(FILE *); 1254 1255 1256 extern void clearerr(FILE *); 1257 extern int feof(FILE *); 1258 extern int ferror(FILE *); 1259 1260 extern void perror(const char *); 1261 1262 1263 extern int __filbuf(FILE *); 1264 extern int __flsbuf(int, FILE *); 1265 # 83 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 2 1266 1267 /* 1268 * If feature test macros are set that enable interfaces that use types 1269 * defined in <sys/types.h>, get those types by doing the include. 1270 * 1271 * Note that in asking for the interfaces associated with this feature test 1272 * macro one also asks for definitions of the POSIX types. 1273 */ 1274 1275 /* 1276 * Allow global visibility for symbols defined in 1277 * C++ "std" namespace in <iso/stdio_iso.h>. 1278 */ 1279 # 147 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1280 /* 1281 * This header needs to be included here because it relies on the global 1282 * visibility of FILE and size_t in the C++ environment. 1283 */ 1284 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_c99.h" 1 1285 /* 1286 * CDDL HEADER START 1287 * 1288 * The contents of this file are subject to the terms of the 1289 * Common Development and Distribution License, Version 1.0 only 1290 * (the "License"). You may not use this file except in compliance 1291 * with the License. 1292 * 1293 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1294 * or http://www.opensolaris.org/os/licensing. 1295 * See the License for the specific language governing permissions 1296 * and limitations under the License. 1297 * 1298 * When distributing Covered Code, include this CDDL HEADER in each 1299 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1300 * If applicable, add the following below this CDDL HEADER, with the 1301 * fields enclosed by brackets "[]" replaced with your own identifying 1302 * information: Portions Copyright [yyyy] [name of copyright owner] 1303 * 1304 * CDDL HEADER END 1305 */ 1306 /* 1307 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 1308 * 1309 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 1310 * Use is subject to license terms. 1311 */ 1312 1313 /* 1314 * An application should not include this header directly. Instead it 1315 * should be included only through the inclusion of other Sun headers. 1316 * 1317 * The contents of this header is limited to identifiers specified in 1318 * the C99 standard and in conflict with the C++ implementation of the 1319 * standard header. The C++ standard may adopt the C99 standard at 1320 * which point it is expected that the symbols included here will 1321 * become part of the C++ std namespace. 1322 */ 1323 # 47 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_c99.h" 1324 /* 1325 * The following have been added as a result of the ISO/IEC 9899:1999 1326 * standard. For a strictly conforming C application, visibility is 1327 * contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h). 1328 * For non-strictly conforming C applications, there are no restrictions 1329 * on the C namespace. 1330 */ 1331 # 74 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_c99.h" 1332 extern int vfscanf(FILE *, const char *, __va_list); 1333 extern int vscanf(const char *, __va_list); 1334 extern int vsscanf(const char *, const char *, 1335 __va_list); 1336 1337 1338 1339 1340 extern int snprintf(char *, size_t, const char *, 1341 ...); 1342 extern int vsnprintf(char *, size_t, const char *, 1343 __va_list); 1344 # 152 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 2 1345 # 163 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1346 typedef __longlong_t off_t; 1347 1348 1349 1350 1351 1352 typedef __longlong_t off64_t; 1353 # 179 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1354 typedef __longlong_t fpos64_t; 1355 1356 1357 1358 /* 1359 * XPG4 requires that va_list be defined in <stdio.h> "as described in 1360 * <stdarg.h>". ANSI-C and POSIX require that the namespace of <stdio.h> 1361 * not be polluted with this name. 1362 */ 1363 # 198 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1364 /* Marked LEGACY in SUSv2 and removed in SUSv3 */ 1365 # 213 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1366 extern unsigned char _sibuf[], _sobuf[]; 1367 1368 1369 /* large file compilation environment setup */ 1370 # 237 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1371 extern unsigned char *_bufendtab[]; 1372 extern FILE *_lastbuf; 1373 1374 1375 /* In the LP64 compilation environment, all APIs are already large file */ 1376 # 261 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1377 typedef int ssize_t; /* (historical version) */ 1378 1379 1380 1381 1382 1383 1384 extern char *tmpnam_r(char *); 1385 1386 1387 1388 1389 extern int fcloseall(void); 1390 extern void setbuffer(FILE *, char *, size_t); 1391 extern int setlinebuf(FILE *); 1392 /* PRINTFLIKE2 */ 1393 extern int asprintf(char **, const char *, ...); 1394 /* PRINTFLIKE2 */ 1395 extern int vasprintf(char **, const char *, __va_list); 1396 1397 1398 1399 1400 /* || defined(_XPG7) */ 1401 extern ssize_t getdelim(char **, size_t *, 1402 int, FILE *); 1403 extern ssize_t getline(char **, size_t *, 1404 FILE *); 1405 1406 1407 /* 1408 * The following are known to POSIX and XOPEN, but not to ANSI-C. 1409 */ 1410 1411 1412 1413 extern FILE *fdopen(int, const char *); 1414 extern char *ctermid(char *); 1415 extern int fileno(FILE *); 1416 1417 1418 1419 /* 1420 * The following are known to POSIX.1c, but not to ANSI-C or XOPEN. 1421 */ 1422 # 318 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1423 /* 1424 * The following are known to XOPEN, but not to ANSI-C or POSIX. 1425 */ 1426 1427 1428 extern FILE *popen(const char *, const char *); 1429 extern char *tempnam(const char *, const char *); 1430 extern int pclose(FILE *); 1431 1432 extern int getsubopt(char **, char *const *, char **); 1433 1434 1435 /* Marked LEGACY in SUSv2 and removed in SUSv3 */ 1436 1437 extern char *cuserid(char *); 1438 extern int getopt(int, char *const *, const char *); 1439 extern char *optarg; 1440 extern int optind, opterr, optopt; 1441 extern int getw(FILE *); 1442 extern int putw(int, FILE *); 1443 1444 1445 1446 1447 /* 1448 * The following are defined as part of the Large File Summit interfaces. 1449 */ 1450 1451 extern int fseeko(FILE *, off_t, int); 1452 extern off_t ftello(FILE *); 1453 1454 1455 /* 1456 * The following are defined as part of the transitional Large File Summit 1457 * interfaces. 1458 */ 1459 1460 1461 extern FILE *fopen64(const char *, const char *); 1462 extern FILE *freopen64(const char *, const char *, FILE *); 1463 extern FILE *tmpfile64(void); 1464 extern int fgetpos64(FILE *, fpos64_t *); 1465 extern int fsetpos64(FILE *, const fpos64_t *); 1466 extern int fseeko64(FILE *, off64_t, int); 1467 extern off64_t ftello64(FILE *); 1468 1469 1470 /* 1471 * XPG7 symbols 1472 */ 1473 1474 extern FILE *fmemopen(void *, size_t, 1475 const char *); 1476 extern FILE *open_memstream(char **, size_t *); 1477 # 35 "../common/pkgerr.c" 2 1478 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/string.h" 1 1479 /* 1480 * CDDL HEADER START 1481 * 1482 * The contents of this file are subject to the terms of the 1483 * Common Development and Distribution License (the "License"). 1484 * You may not use this file except in compliance with the License. 1485 * 1486 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1487 * or http://www.opensolaris.org/os/licensing. 1488 * See the License for the specific language governing permissions 1489 * and limitations under the License. 1490 * 1491 * When distributing Covered Code, include this CDDL HEADER in each 1492 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1493 * If applicable, add the following below this CDDL HEADER, with the 1494 * fields enclosed by brackets "[]" replaced with your own identifying 1495 * information: Portions Copyright [yyyy] [name of copyright owner] 1496 * 1497 * CDDL HEADER END 1498 */ 1499 1500 /* 1501 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 1502 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 1503 */ 1504 1505 /* Copyright (c) 1988 AT&T */ 1506 /* All Rights Reserved */ 1507 1508 1509 1510 1511 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/string_iso.h" 1 1512 /* 1513 * CDDL HEADER START 1514 * 1515 * The contents of this file are subject to the terms of the 1516 * Common Development and Distribution License, Version 1.0 only 1517 * (the "License"). You may not use this file except in compliance 1518 * with the License. 1519 * 1520 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1521 * or http://www.opensolaris.org/os/licensing. 1522 * See the License for the specific language governing permissions 1523 * and limitations under the License. 1524 * 1525 * When distributing Covered Code, include this CDDL HEADER in each 1526 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1527 * If applicable, add the following below this CDDL HEADER, with the 1528 * fields enclosed by brackets "[]" replaced with your own identifying 1529 * information: Portions Copyright [yyyy] [name of copyright owner] 1530 * 1531 * CDDL HEADER END 1532 */ 1533 /* Copyright (c) 1988 AT&T */ 1534 /* All Rights Reserved */ 1535 1536 1537 /* 1538 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 1539 * Copyright 2014 PALO, Richard. 1540 * 1541 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 1542 * Use is subject to license terms. 1543 */ 1544 1545 /* 1546 * An application should not include this header directly. Instead it 1547 * should be included only through the inclusion of other Sun headers. 1548 * 1549 * The contents of this header is limited to identifiers specified in the 1550 * C Standard. Any new identifiers specified in future amendments to the 1551 * C Standard must be placed in this header. If these new identifiers 1552 * are required to also be in the C++ Standard "std" namespace, then for 1553 * anything other than macro definitions, corresponding "using" directives 1554 * must also be added to <string.h>. 1555 */ 1556 1557 1558 1559 1560 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 1561 /* 1562 * CDDL HEADER START 1563 * 1564 * The contents of this file are subject to the terms of the 1565 * Common Development and Distribution License (the "License"). 1566 * You may not use this file except in compliance with the License. 1567 * 1568 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1569 * or http://www.opensolaris.org/os/licensing. 1570 * See the License for the specific language governing permissions 1571 * and limitations under the License. 1572 * 1573 * When distributing Covered Code, include this CDDL HEADER in each 1574 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1575 * If applicable, add the following below this CDDL HEADER, with the 1576 * fields enclosed by brackets "[]" replaced with your own identifying 1577 * information: Portions Copyright [yyyy] [name of copyright owner] 1578 * 1579 * CDDL HEADER END 1580 */ 1581 1582 /* 1583 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 1584 * Copyright 2016 Joyent, Inc. 1585 * 1586 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 1587 * Use is subject to license terms. 1588 */ 1589 # 50 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/string_iso.h" 2 1590 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 1591 /* 1592 * This file and its contents are supplied under the terms of the 1593 * Common Development and Distribution License ("CDDL"), version 1.0. 1594 * You may only use this file in accordance with the terms of version 1595 * 1.0 of the CDDL. 1596 * 1597 * A full copy of the text of the CDDL should have accompanied this 1598 * source. A copy of the CDDL is also available via the Internet at 1599 * http://www.illumos.org/license/CDDL. 1600 */ 1601 1602 /* 1603 * Copyright 2014-2016 PALO, Richard. 1604 */ 1605 # 51 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/string_iso.h" 2 1606 # 69 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/string_iso.h" 1607 extern int memcmp(const void *, const void *, size_t); 1608 extern void *memcpy(void *, const void *, size_t); 1609 extern void *memmove(void *, const void *, size_t); 1610 extern void *memset(void *, int, size_t); 1611 extern char *strcat(char *, const char *); 1612 extern int strcmp(const char *, const char *); 1613 extern char *strcpy(char *, const char *); 1614 extern int strcoll(const char *, const char *); 1615 extern size_t strcspn(const char *, const char *); 1616 extern char *strerror(int); 1617 extern size_t strlen(const char *); 1618 extern char *strncat(char *, const char *, size_t); 1619 extern int strncmp(const char *, const char *, size_t); 1620 extern char *strncpy(char *, const char *, size_t); 1621 extern size_t strspn(const char *, const char *); 1622 extern char *strtok(char *, const char *); 1623 extern size_t strxfrm(char *, const char *, size_t); 1624 1625 /* 1626 * The C++ Standard (ISO/IEC 14882:1998) specifies that each of the 1627 * function signatures for the following functions be replaced by 1628 * two declarations, both of which have the same behavior. 1629 */ 1630 # 139 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/string_iso.h" 1631 extern void *memchr(const void *, int, size_t); 1632 extern char *strchr(const char *, int); 1633 extern char *strpbrk(const char *, const char *); 1634 extern char *strrchr(const char *, int); 1635 extern char *strstr(const char *, const char *); 1636 # 34 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/string.h" 2 1637 1638 /* 1639 * Allow global visibility for symbols defined in 1640 * C++ "std" namespace in <iso/string_iso.h>. 1641 */ 1642 # 72 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/string.h" 1643 extern int strerror_r(int, char *, size_t); 1644 1645 1646 1647 1648 1649 extern char *strtok_r(char *, const char *, 1650 char **); 1651 1652 1653 1654 1655 extern void *memccpy(void *, const void *, 1656 int, size_t); 1657 1658 1659 1660 1661 extern char *stpcpy(char *, const char *); 1662 extern char *stpncpy(char *, const char *, size_t); 1663 extern char *strndup(const char *, size_t); 1664 extern size_t strnlen(const char *, size_t); 1665 extern char *strsignal(int); 1666 1667 1668 1669 typedef struct _locale *locale_t; 1670 1671 1672 extern int strcoll_l(const char *, const char *, locale_t); 1673 extern size_t strxfrm_l(char *, const char *, 1674 size_t, locale_t); 1675 extern int strcasecmp_l(const char *, const char *, locale_t); 1676 extern int strncasecmp_l(const char *, const char *, size_t, locale_t); 1677 extern char *strerror_l(int, locale_t); 1678 1679 1680 1681 1682 1683 /* Note that some of these are also declared in strings.h for XPG4_2+ */ 1684 extern void explicit_bzero(void *, size_t); 1685 extern int uucopy(const void *, void *, size_t); 1686 extern int uucopystr(const void *, void *, size_t); 1687 extern int ffs(int); 1688 extern int ffsl(long); 1689 extern int ffsll(long long); 1690 extern int fls(int); 1691 extern int flsl(long); 1692 extern int flsll(long long); 1693 extern void *memmem(const void *, size_t, const void *, size_t); 1694 extern char *strcasestr(const char *, const char *); 1695 extern char *strnstr(const char *, const char *, size_t); 1696 extern size_t strlcpy(char *, const char *, size_t); 1697 extern size_t strlcat(char *, const char *, size_t); 1698 extern char *strsep(char **stringp, const char *delim); 1699 extern char *strchrnul(const char *, int); 1700 extern char *strcasestr_l(const char *, const char *, locale_t); 1701 extern int strcasecmp(const char *, const char *); 1702 extern int strncasecmp(const char *, const char *, size_t); 1703 1704 1705 1706 1707 1708 extern char *strdup(const char *); 1709 1710 1711 1712 1713 1714 1715 /* 1716 * gcc provides this inlining facility but Studio C does not. 1717 * We should use it exclusively once Studio C also provides it. 1718 */ 1719 extern void *__builtin_alloca(size_t); 1720 # 36 "../common/pkgerr.c" 2 1721 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 1 1722 /* 1723 * CDDL HEADER START 1724 * 1725 * The contents of this file are subject to the terms of the 1726 * Common Development and Distribution License (the "License"). 1727 * You may not use this file except in compliance with the License. 1728 * 1729 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1730 * or http://www.opensolaris.org/os/licensing. 1731 * See the License for the specific language governing permissions 1732 * and limitations under the License. 1733 * 1734 * When distributing Covered Code, include this CDDL HEADER in each 1735 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1736 * If applicable, add the following below this CDDL HEADER, with the 1737 * fields enclosed by brackets "[]" replaced with your own identifying 1738 * information: Portions Copyright [yyyy] [name of copyright owner] 1739 * 1740 * CDDL HEADER END 1741 */ 1742 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 1743 /* All Rights Reserved */ 1744 1745 1746 /* 1747 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 1748 * Use is subject to license terms. 1749 * 1750 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 1751 * Copyright 2016 Joyent, Inc. 1752 */ 1753 1754 1755 1756 1757 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 1758 /* 1759 * CDDL HEADER START 1760 * 1761 * The contents of this file are subject to the terms of the 1762 * Common Development and Distribution License (the "License"). 1763 * You may not use this file except in compliance with the License. 1764 * 1765 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1766 * or http://www.opensolaris.org/os/licensing. 1767 * See the License for the specific language governing permissions 1768 * and limitations under the License. 1769 * 1770 * When distributing Covered Code, include this CDDL HEADER in each 1771 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1772 * If applicable, add the following below this CDDL HEADER, with the 1773 * fields enclosed by brackets "[]" replaced with your own identifying 1774 * information: Portions Copyright [yyyy] [name of copyright owner] 1775 * 1776 * CDDL HEADER END 1777 */ 1778 1779 /* 1780 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 1781 * Copyright 2016 Joyent, Inc. 1782 * 1783 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 1784 * Use is subject to license terms. 1785 */ 1786 # 37 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2 1787 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 1788 /* 1789 * CDDL HEADER START 1790 * 1791 * The contents of this file are subject to the terms of the 1792 * Common Development and Distribution License (the "License"). 1793 * You may not use this file except in compliance with the License. 1794 * 1795 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1796 * or http://www.opensolaris.org/os/licensing. 1797 * See the License for the specific language governing permissions 1798 * and limitations under the License. 1799 * 1800 * 1801 * When distributing Covered Code, include this CDDL HEADER in each 1802 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1803 * If applicable, add the following below this CDDL HEADER, with the 1804 * fields enclosed by brackets "[]" replaced with your own identifying 1805 * information: Portions Copyright [yyyy] [name of copyright owner] 1806 * 1807 * CDDL HEADER END 1808 */ 1809 1810 /* 1811 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 1812 * Use is subject to license terms. 1813 * Copyright 2016 Joyent, Inc. 1814 */ 1815 # 38 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2 1816 1817 /* 1818 * Machine dependent definitions moved to <sys/machtypes.h>. 1819 */ 1820 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/machtypes.h" 1 1821 /* 1822 * CDDL HEADER START 1823 * 1824 * The contents of this file are subject to the terms of the 1825 * Common Development and Distribution License, Version 1.0 only 1826 * (the "License"). You may not use this file except in compliance 1827 * with the License. 1828 * 1829 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1830 * or http://www.opensolaris.org/os/licensing. 1831 * See the License for the specific language governing permissions 1832 * and limitations under the License. 1833 * 1834 * When distributing Covered Code, include this CDDL HEADER in each 1835 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1836 * If applicable, add the following below this CDDL HEADER, with the 1837 * fields enclosed by brackets "[]" replaced with your own identifying 1838 * information: Portions Copyright [yyyy] [name of copyright owner] 1839 * 1840 * CDDL HEADER END 1841 */ 1842 /* 1843 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 1844 * Use is subject to license terms. 1845 */ 1846 1847 1848 1849 1850 #pragma ident "%Z%%M% %I% %E% SMI" 1851 1852 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 1853 /* 1854 * CDDL HEADER START 1855 * 1856 * The contents of this file are subject to the terms of the 1857 * Common Development and Distribution License (the "License"). 1858 * You may not use this file except in compliance with the License. 1859 * 1860 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1861 * or http://www.opensolaris.org/os/licensing. 1862 * See the License for the specific language governing permissions 1863 * and limitations under the License. 1864 * 1865 * When distributing Covered Code, include this CDDL HEADER in each 1866 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1867 * If applicable, add the following below this CDDL HEADER, with the 1868 * fields enclosed by brackets "[]" replaced with your own identifying 1869 * information: Portions Copyright [yyyy] [name of copyright owner] 1870 * 1871 * CDDL HEADER END 1872 */ 1873 1874 /* 1875 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 1876 * Copyright 2016 Joyent, Inc. 1877 * 1878 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 1879 * Use is subject to license terms. 1880 */ 1881 # 33 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/machtypes.h" 2 1882 1883 1884 1885 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/ia32/sys/machtypes.h" 1 1886 /* 1887 * CDDL HEADER START 1888 * 1889 * The contents of this file are subject to the terms of the 1890 * Common Development and Distribution License (the "License"). 1891 * You may not use this file except in compliance with the License. 1892 * 1893 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1894 * or http://www.opensolaris.org/os/licensing. 1895 * See the License for the specific language governing permissions 1896 * and limitations under the License. 1897 * 1898 * When distributing Covered Code, include this CDDL HEADER in each 1899 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1900 * If applicable, add the following below this CDDL HEADER, with the 1901 * fields enclosed by brackets "[]" replaced with your own identifying 1902 * information: Portions Copyright [yyyy] [name of copyright owner] 1903 * 1904 * CDDL HEADER END 1905 */ 1906 /* 1907 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 1908 * Use is subject to license terms. 1909 */ 1910 1911 1912 1913 1914 #pragma ident "%Z%%M% %I% %E% SMI" 1915 1916 1917 1918 1919 1920 /* 1921 * Machine dependent types: 1922 * 1923 * intel ia32 Version 1924 */ 1925 # 61 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/ia32/sys/machtypes.h" 1926 typedef struct _label_t { long val[6]; } label_t; 1927 1928 1929 1930 typedef unsigned char lock_t; /* lock work for busy wait */ 1931 # 37 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/machtypes.h" 2 1932 # 43 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2 1933 1934 /* 1935 * Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C 1936 * committee's working draft for the revision of the current ISO C standard, 1937 * ISO/IEC 9899:1990 Programming language - C. These are not currently 1938 * required by any standard but constitute a useful, general purpose set 1939 * of type definitions which is namespace clean with respect to all standards. 1940 */ 1941 1942 1943 1944 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_types.h" 1 1945 /* 1946 * CDDL HEADER START 1947 * 1948 * The contents of this file are subject to the terms of the 1949 * Common Development and Distribution License, Version 1.0 only 1950 * (the "License"). You may not use this file except in compliance 1951 * with the License. 1952 * 1953 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1954 * or http://www.opensolaris.org/os/licensing. 1955 * See the License for the specific language governing permissions 1956 * and limitations under the License. 1957 * 1958 * When distributing Covered Code, include this CDDL HEADER in each 1959 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1960 * If applicable, add the following below this CDDL HEADER, with the 1961 * fields enclosed by brackets "[]" replaced with your own identifying 1962 * information: Portions Copyright [yyyy] [name of copyright owner] 1963 * 1964 * CDDL HEADER END 1965 */ 1966 /* 1967 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 1968 * 1969 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 1970 * Use is subject to license terms. 1971 */ 1972 1973 1974 1975 1976 /* 1977 * This file, <sys/int_types.h>, is part of the Sun Microsystems implementation 1978 * of <inttypes.h> defined in the ISO C standard, ISO/IEC 9899:1999 1979 * Programming language - C. 1980 * 1981 * Programs/Modules should not directly include this file. Access to the 1982 * types defined in this file should be through the inclusion of one of the 1983 * following files: 1984 * 1985 * <sys/types.h> Provides only the "_t" types defined in this 1986 * file which is a subset of the contents of 1987 * <inttypes.h>. (This can be appropriate for 1988 * all programs/modules except those claiming 1989 * ANSI-C conformance.) 1990 * 1991 * <sys/inttypes.h> Provides the Kernel and Driver appropriate 1992 * components of <inttypes.h>. 1993 * 1994 * <inttypes.h> For use by applications. 1995 * 1996 * See these files for more details. 1997 */ 1998 1999 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 2000 /* 2001 * CDDL HEADER START 2002 * 2003 * The contents of this file are subject to the terms of the 2004 * Common Development and Distribution License (the "License"). 2005 * You may not use this file except in compliance with the License. 2006 * 2007 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2008 * or http://www.opensolaris.org/os/licensing. 2009 * See the License for the specific language governing permissions 2010 * and limitations under the License. 2011 * 2012 * When distributing Covered Code, include this CDDL HEADER in each 2013 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2014 * If applicable, add the following below this CDDL HEADER, with the 2015 * fields enclosed by brackets "[]" replaced with your own identifying 2016 * information: Portions Copyright [yyyy] [name of copyright owner] 2017 * 2018 * CDDL HEADER END 2019 */ 2020 2021 /* 2022 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 2023 * Copyright 2016 Joyent, Inc. 2024 * 2025 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2026 * Use is subject to license terms. 2027 */ 2028 # 56 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_types.h" 2 2029 2030 2031 2032 2033 2034 /* 2035 * Basic / Extended integer types 2036 * 2037 * The following defines the basic fixed-size integer types. 2038 * 2039 * Implementations are free to typedef them to Standard C integer types or 2040 * extensions that they support. If an implementation does not support one 2041 * of the particular integer data types below, then it should not define the 2042 * typedefs and macros corresponding to that data type. Note that int8_t 2043 * is not defined in -Xs mode on ISAs for which the ABI specifies "char" 2044 * as an unsigned entity because there is no way to define an eight bit 2045 * signed integral. 2046 */ 2047 2048 typedef char int8_t; 2049 2050 2051 2052 typedef short int16_t; 2053 typedef int int32_t; 2054 2055 2056 2057 2058 2059 2060 typedef long long int64_t; 2061 2062 2063 2064 typedef unsigned char uint8_t; 2065 typedef unsigned short uint16_t; 2066 typedef unsigned int uint32_t; 2067 2068 2069 2070 2071 typedef unsigned long long uint64_t; 2072 2073 2074 2075 /* 2076 * intmax_t and uintmax_t are to be the longest (in number of bits) signed 2077 * and unsigned integer types supported by the implementation. 2078 */ 2079 2080 typedef int64_t intmax_t; 2081 typedef uint64_t uintmax_t; 2082 2083 2084 2085 2086 2087 /* 2088 * intptr_t and uintptr_t are signed and unsigned integer types large enough 2089 * to hold any data pointer; that is, data pointers can be assigned into or 2090 * from these integer types without losing precision. 2091 */ 2092 2093 2094 2095 2096 typedef int intptr_t; 2097 typedef unsigned int uintptr_t; 2098 2099 2100 /* 2101 * The following define the fastest integer types that can hold the 2102 * specified number of bits. 2103 */ 2104 2105 typedef char int_fast8_t; 2106 2107 2108 2109 typedef int int_fast16_t; 2110 typedef int int_fast32_t; 2111 2112 2113 2114 2115 typedef long long int_fast64_t; 2116 2117 2118 2119 typedef unsigned char uint_fast8_t; 2120 typedef unsigned int uint_fast16_t; 2121 typedef unsigned int uint_fast32_t; 2122 2123 2124 2125 2126 typedef unsigned long long uint_fast64_t; 2127 2128 2129 2130 /* 2131 * The following define the smallest integer types that can hold the 2132 * specified number of bits. 2133 */ 2134 2135 typedef char int_least8_t; 2136 2137 2138 2139 typedef short int_least16_t; 2140 typedef int int_least32_t; 2141 2142 2143 2144 2145 typedef long long int_least64_t; 2146 2147 2148 2149 /* 2150 * If these are changed, please update char16_t and char32_t in head/uchar.h. 2151 */ 2152 typedef unsigned char uint_least8_t; 2153 typedef unsigned short uint_least16_t; 2154 typedef unsigned int uint_least32_t; 2155 2156 2157 2158 2159 typedef unsigned long long uint_least64_t; 2160 # 55 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2 2161 # 65 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2162 /* 2163 * Strictly conforming ANSI C environments prior to the 1999 2164 * revision of the C Standard (ISO/IEC 9899:1999) do not have 2165 * the long long data type. 2166 */ 2167 2168 typedef long long longlong_t; 2169 typedef unsigned long long u_longlong_t; 2170 # 85 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2171 /* 2172 * These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had 2173 * to use them instead of int32_t and uint32_t because DEC had 2174 * shipped 64-bit wide. 2175 */ 2176 2177 2178 2179 2180 typedef long t_scalar_t; /* historical versions */ 2181 typedef unsigned long t_uscalar_t; 2182 2183 2184 /* 2185 * POSIX Extensions 2186 */ 2187 typedef unsigned char uchar_t; 2188 typedef unsigned short ushort_t; 2189 typedef unsigned int uint_t; 2190 typedef unsigned long ulong_t; 2191 2192 typedef char *caddr_t; /* ?<core address> type */ 2193 typedef long daddr_t; /* <disk address> type */ 2194 typedef short cnt_t; /* ?<count> type */ 2195 2196 2197 2198 2199 2200 2201 typedef int ptrdiff_t; /* (historical version) */ 2202 2203 2204 2205 /* 2206 * VM-related types 2207 */ 2208 typedef ulong_t pfn_t; /* page frame number */ 2209 typedef ulong_t pgcnt_t; /* number of pages */ 2210 typedef long spgcnt_t; /* signed number of pages */ 2211 2212 typedef uchar_t use_t; /* use count for swap. */ 2213 typedef short sysid_t; 2214 typedef short index_t; 2215 typedef void *timeout_id_t; /* opaque handle from timeout(9F) */ 2216 typedef void *bufcall_id_t; /* opaque handle from bufcall(9F) */ 2217 2218 /* 2219 * The size of off_t and related types depends on the setting of 2220 * _FILE_OFFSET_BITS. (Note that other system headers define other types 2221 * related to those defined here.) 2222 * 2223 * If _LARGEFILE64_SOURCE is defined, variants of these types that are 2224 * explicitly 64 bits wide become available. 2225 */ 2226 # 165 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2227 typedef u_longlong_t ino_t; /* expanded inode type */ 2228 typedef longlong_t blkcnt_t; /* count of file blocks */ 2229 typedef u_longlong_t fsblkcnt_t; /* count of file system blocks */ 2230 typedef u_longlong_t fsfilcnt_t; /* count of files */ 2231 # 178 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2232 typedef u_longlong_t ino64_t; /* expanded inode type */ 2233 typedef longlong_t blkcnt64_t; /* count of file blocks */ 2234 typedef u_longlong_t fsblkcnt64_t; /* count of file system blocks */ 2235 typedef u_longlong_t fsfilcnt64_t; /* count of files */ 2236 2237 2238 2239 2240 2241 2242 typedef long blksize_t; /* used for block sizes */ 2243 2244 2245 2246 2247 2248 typedef enum { B_FALSE, B_TRUE } boolean_t; 2249 # 205 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2250 /* 2251 * The {u,}pad64_t types can be used in structures such that those structures 2252 * may be accessed by code produced by compilation environments which don't 2253 * support a 64 bit integral datatype. The intention is not to allow 2254 * use of these fields in such environments, but to maintain the alignment 2255 * and offsets of the structure. 2256 * 2257 * Similar comments for {u,}pad128_t. 2258 * 2259 * Note that these types do NOT generate any stronger alignment constraints 2260 * than those available in the underlying ABI. See <sys/isa_defs.h> 2261 */ 2262 2263 typedef int64_t pad64_t; 2264 typedef uint64_t upad64_t; 2265 # 232 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2266 typedef union { 2267 long double _q; 2268 int32_t _l[4]; 2269 } pad128_t; 2270 2271 typedef union { 2272 long double _q; 2273 uint32_t _l[4]; 2274 } upad128_t; 2275 2276 typedef longlong_t offset_t; 2277 typedef u_longlong_t u_offset_t; 2278 typedef u_longlong_t len_t; 2279 typedef u_longlong_t diskaddr_t; 2280 2281 2282 2283 2284 /* 2285 * Definitions remaining from previous partial support for 64-bit file 2286 * offsets. This partial support for devices greater than 2gb requires 2287 * compiler support for long long. 2288 */ 2289 2290 typedef union { 2291 offset_t _f; /* Full 64 bit offset value */ 2292 struct { 2293 int32_t _l; /* lower 32 bits of offset value */ 2294 int32_t _u; /* upper 32 bits of offset value */ 2295 } _p; 2296 } lloff_t; 2297 # 276 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2298 typedef union { 2299 longlong_t _f; /* Full 64 bit disk address value */ 2300 struct { 2301 int32_t _l; /* lower 32 bits of disk address value */ 2302 int32_t _u; /* upper 32 bits of disk address value */ 2303 } _p; 2304 } lldaddr_t; 2305 # 295 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2306 typedef uint_t k_fltset_t; /* kernel fault set type */ 2307 2308 /* 2309 * The following type is for various kinds of identifiers. The 2310 * actual type must be the same for all since some system calls 2311 * (such as sigsend) take arguments that may be any of these 2312 * types. The enumeration type idtype_t defined in sys/procset.h 2313 * is used to indicate what type of id is being specified -- 2314 * a process id, process group id, session id, scheduling class id, 2315 * user id, group id, project id, task id or zone id. 2316 */ 2317 2318 2319 2320 typedef long id_t; /* (historical version) */ 2321 2322 2323 typedef id_t lgrp_id_t; /* lgroup ID */ 2324 2325 /* 2326 * Type useconds_t is an unsigned integral type capable of storing 2327 * values at least in the range of zero to 1,000,000. 2328 */ 2329 typedef uint_t useconds_t; /* Time, in microseconds */ 2330 2331 2332 2333 typedef long suseconds_t; /* signed # of microseconds */ 2334 2335 2336 /* 2337 * Typedefs for dev_t components. 2338 */ 2339 2340 2341 2342 2343 typedef ulong_t major_t; /* (historical version) */ 2344 typedef ulong_t minor_t; /* (historical version) */ 2345 2346 2347 /* 2348 * The data type of a thread priority. 2349 */ 2350 typedef short pri_t; 2351 2352 /* 2353 * The data type for a CPU flags field. (Can be extended to larger unsigned 2354 * types, if needed, limited by ability to update atomically.) 2355 */ 2356 typedef ushort_t cpu_flag_t; 2357 2358 /* 2359 * For compatibility reasons the following typedefs (prefixed o_) 2360 * can't grow regardless of the EFT definition. Although, 2361 * applications should not explicitly use these typedefs 2362 * they may be included via a system header definition. 2363 * WARNING: These typedefs may be removed in a future 2364 * release. 2365 * ex. the definitions in s5inode.h (now obsoleted) 2366 * remained small to preserve compatibility 2367 * in the S5 file system type. 2368 */ 2369 typedef ushort_t o_mode_t; /* old file attribute type */ 2370 typedef short o_dev_t; /* old device type */ 2371 typedef ushort_t o_uid_t; /* old UID type */ 2372 typedef o_uid_t o_gid_t; /* old GID type */ 2373 typedef short o_nlink_t; /* old file link type */ 2374 typedef short o_pid_t; /* old process id type */ 2375 typedef ushort_t o_ino_t; /* old inode type */ 2376 2377 2378 /* 2379 * POSIX and XOPEN Declarations 2380 */ 2381 typedef int key_t; /* IPC key type */ 2382 2383 2384 2385 typedef ulong_t mode_t; /* (historical version) */ 2386 2387 2388 2389 2390 typedef unsigned int uid_t; /* UID type */ 2391 2392 2393 typedef uid_t gid_t; /* GID type */ 2394 2395 typedef uint32_t datalink_id_t; 2396 typedef uint32_t vrid_t; 2397 2398 typedef id_t taskid_t; 2399 typedef id_t projid_t; 2400 typedef id_t poolid_t; 2401 typedef id_t zoneid_t; 2402 typedef id_t ctid_t; 2403 2404 /* 2405 * POSIX definitions are same as defined in thread.h and synch.h. 2406 * Any changes made to here should be reflected in corresponding 2407 * files as described in comments. 2408 */ 2409 typedef uint_t pthread_t; /* = thread_t in thread.h */ 2410 typedef uint_t pthread_key_t; /* = thread_key_t in thread.h */ 2411 2412 /* "Magic numbers" tagging synchronization object types */ 2413 2414 2415 2416 2417 2418 typedef struct _pthread_mutex { /* = mutex_t in synch.h */ 2419 struct { 2420 uint16_t __pthread_mutex_flag1; 2421 uint8_t __pthread_mutex_flag2; 2422 uint8_t __pthread_mutex_ceiling; 2423 uint16_t __pthread_mutex_type; 2424 uint16_t __pthread_mutex_magic; 2425 } __pthread_mutex_flags; 2426 union { 2427 struct { 2428 uint8_t __pthread_mutex_pad[8]; 2429 } __pthread_mutex_lock64; 2430 struct { 2431 uint32_t __pthread_ownerpid; 2432 uint32_t __pthread_lockword; 2433 } __pthread_mutex_lock32; 2434 upad64_t __pthread_mutex_owner64; 2435 } __pthread_mutex_lock; 2436 upad64_t __pthread_mutex_data; 2437 } pthread_mutex_t; 2438 2439 typedef struct _pthread_cond { /* = cond_t in synch.h */ 2440 struct { 2441 uint8_t __pthread_cond_flag[4]; 2442 uint16_t __pthread_cond_type; 2443 uint16_t __pthread_cond_magic; 2444 } __pthread_cond_flags; 2445 upad64_t __pthread_cond_data; 2446 } pthread_cond_t; 2447 2448 /* 2449 * UNIX 98 Extension 2450 */ 2451 typedef struct _pthread_rwlock { /* = rwlock_t in synch.h */ 2452 int32_t __pthread_rwlock_readers; 2453 uint16_t __pthread_rwlock_type; 2454 uint16_t __pthread_rwlock_magic; 2455 pthread_mutex_t __pthread_rwlock_mutex; 2456 pthread_cond_t __pthread_rwlock_readercv; 2457 pthread_cond_t __pthread_rwlock_writercv; 2458 } pthread_rwlock_t; 2459 2460 /* 2461 * SUSV3 2462 */ 2463 typedef struct { 2464 uint32_t __pthread_barrier_count; 2465 uint32_t __pthread_barrier_current; 2466 upad64_t __pthread_barrier_cycle; 2467 upad64_t __pthread_barrier_reserved; 2468 pthread_mutex_t __pthread_barrier_lock; 2469 pthread_cond_t __pthread_barrier_cond; 2470 } pthread_barrier_t; 2471 2472 typedef pthread_mutex_t pthread_spinlock_t; 2473 2474 /* 2475 * attributes for threads, dynamically allocated by library 2476 */ 2477 typedef struct _pthread_attr { 2478 void *__pthread_attrp; 2479 } pthread_attr_t; 2480 2481 /* 2482 * attributes for mutex, dynamically allocated by library 2483 */ 2484 typedef struct _pthread_mutexattr { 2485 void *__pthread_mutexattrp; 2486 } pthread_mutexattr_t; 2487 2488 /* 2489 * attributes for cond, dynamically allocated by library 2490 */ 2491 typedef struct _pthread_condattr { 2492 void *__pthread_condattrp; 2493 } pthread_condattr_t; 2494 2495 /* 2496 * pthread_once 2497 */ 2498 typedef struct _once { 2499 upad64_t __pthread_once_pad[4]; 2500 } pthread_once_t; 2501 2502 /* 2503 * UNIX 98 Extensions 2504 * attributes for rwlock, dynamically allocated by library 2505 */ 2506 typedef struct _pthread_rwlockattr { 2507 void *__pthread_rwlockattrp; 2508 } pthread_rwlockattr_t; 2509 2510 /* 2511 * SUSV3 2512 * attributes for pthread_barrier_t, dynamically allocated by library 2513 */ 2514 typedef struct { 2515 void *__pthread_barrierattrp; 2516 } pthread_barrierattr_t; 2517 2518 typedef ulong_t dev_t; /* expanded device type */ 2519 2520 2521 2522 2523 2524 typedef ulong_t nlink_t; /* (historical version) */ 2525 typedef long pid_t; /* (historical version) */ 2526 # 537 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2527 typedef long time_t; /* time of day in seconds */ 2528 2529 2530 2531 2532 typedef long clock_t; /* relative time in a specified resolution */ 2533 2534 2535 2536 2537 typedef int clockid_t; /* clock identifier type */ 2538 2539 2540 2541 2542 typedef int timer_t; /* timer identifier type */ 2543 2544 2545 2546 2547 /* BEGIN CSTYLED */ 2548 typedef unsigned char unchar; 2549 typedef unsigned short ushort; 2550 typedef unsigned int uint; 2551 typedef unsigned long ulong; 2552 /* END CSTYLED */ 2553 # 605 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2554 /* 2555 * The following is the value of type id_t to use to indicate the 2556 * caller's current id. See procset.h for the type idtype_t 2557 * which defines which kind of id is being specified. 2558 */ 2559 # 620 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2560 /* 2561 * The following value of type pfn_t is used to indicate 2562 * invalid page frame number. 2563 */ 2564 2565 2566 2567 /* BEGIN CSTYLED */ 2568 typedef unsigned char u_char; 2569 typedef unsigned short u_short; 2570 typedef unsigned int u_int; 2571 typedef unsigned long u_long; 2572 typedef struct _quad { int val[2]; } quad_t; /* used by UFS */ 2573 typedef quad_t quad; /* used by UFS */ 2574 /* END CSTYLED */ 2575 2576 /* 2577 * Nested include for BSD/sockets source compatibility. 2578 * (The select macros used to be defined here). 2579 */ 2580 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 1 2581 /* 2582 * CDDL HEADER START 2583 * 2584 * The contents of this file are subject to the terms of the 2585 * Common Development and Distribution License (the "License"). 2586 * You may not use this file except in compliance with the License. 2587 * 2588 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2589 * or http://www.opensolaris.org/os/licensing. 2590 * See the License for the specific language governing permissions 2591 * and limitations under the License. 2592 * 2593 * When distributing Covered Code, include this CDDL HEADER in each 2594 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2595 * If applicable, add the following below this CDDL HEADER, with the 2596 * fields enclosed by brackets "[]" replaced with your own identifying 2597 * information: Portions Copyright [yyyy] [name of copyright owner] 2598 * 2599 * CDDL HEADER END 2600 */ 2601 2602 /* 2603 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 2604 * 2605 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 2606 * 2607 * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 2608 * Use is subject to license terms. 2609 */ 2610 2611 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2612 /* All Rights Reserved */ 2613 2614 /* 2615 * University Copyright- Copyright (c) 1982, 1986, 1988 2616 * The Regents of the University of California 2617 * All Rights Reserved 2618 * 2619 * University Acknowledgment- Portions of this document are derived from 2620 * software developed by the University of California, Berkeley, and its 2621 * contributors. 2622 */ 2623 2624 2625 2626 2627 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 2628 /* 2629 * CDDL HEADER START 2630 * 2631 * The contents of this file are subject to the terms of the 2632 * Common Development and Distribution License (the "License"). 2633 * You may not use this file except in compliance with the License. 2634 * 2635 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2636 * or http://www.opensolaris.org/os/licensing. 2637 * See the License for the specific language governing permissions 2638 * and limitations under the License. 2639 * 2640 * When distributing Covered Code, include this CDDL HEADER in each 2641 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2642 * If applicable, add the following below this CDDL HEADER, with the 2643 * fields enclosed by brackets "[]" replaced with your own identifying 2644 * information: Portions Copyright [yyyy] [name of copyright owner] 2645 * 2646 * CDDL HEADER END 2647 */ 2648 2649 /* 2650 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 2651 * Copyright 2016 Joyent, Inc. 2652 * 2653 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2654 * Use is subject to license terms. 2655 */ 2656 # 48 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 2 2657 2658 2659 2660 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time_impl.h" 1 2661 /* 2662 * CDDL HEADER START 2663 * 2664 * The contents of this file are subject to the terms of the 2665 * Common Development and Distribution License, Version 1.0 only 2666 * (the "License"). You may not use this file except in compliance 2667 * with the License. 2668 * 2669 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2670 * or http://www.opensolaris.org/os/licensing. 2671 * See the License for the specific language governing permissions 2672 * and limitations under the License. 2673 * 2674 * When distributing Covered Code, include this CDDL HEADER in each 2675 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2676 * If applicable, add the following below this CDDL HEADER, with the 2677 * fields enclosed by brackets "[]" replaced with your own identifying 2678 * information: Portions Copyright [yyyy] [name of copyright owner] 2679 * 2680 * CDDL HEADER END 2681 */ 2682 /* 2683 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 2684 * Use is subject to license terms. 2685 */ 2686 2687 /* 2688 * Implementation-private. This header should not be included 2689 * directly by an application. The application should instead 2690 * include <time.h> which includes this header conditionally 2691 * depending on which feature test macros are defined. By default, 2692 * this header is included by <time.h>. X/Open and POSIX 2693 * standards requirements result in this header being included 2694 * by <time.h> only under a restricted set of conditions. 2695 */ 2696 2697 2698 2699 2700 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 2701 /* 2702 * CDDL HEADER START 2703 * 2704 * The contents of this file are subject to the terms of the 2705 * Common Development and Distribution License (the "License"). 2706 * You may not use this file except in compliance with the License. 2707 * 2708 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2709 * or http://www.opensolaris.org/os/licensing. 2710 * See the License for the specific language governing permissions 2711 * and limitations under the License. 2712 * 2713 * When distributing Covered Code, include this CDDL HEADER in each 2714 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2715 * If applicable, add the following below this CDDL HEADER, with the 2716 * fields enclosed by brackets "[]" replaced with your own identifying 2717 * information: Portions Copyright [yyyy] [name of copyright owner] 2718 * 2719 * CDDL HEADER END 2720 */ 2721 2722 /* 2723 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 2724 * Copyright 2016 Joyent, Inc. 2725 * 2726 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2727 * Use is subject to license terms. 2728 */ 2729 # 41 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time_impl.h" 2 2730 # 53 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time_impl.h" 2731 /* 2732 * Time expressed in seconds and nanoseconds 2733 */ 2734 2735 typedef struct timespec { /* definition per POSIX.4 */ 2736 time_t tv_sec; /* seconds */ 2737 long tv_nsec; /* and nanoseconds */ 2738 } timespec_t; 2739 # 81 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time_impl.h" 2740 typedef struct timespec timestruc_t; /* definition per SVr4 */ 2741 2742 /* 2743 * The following has been left in for backward compatibility. Portable 2744 * applications should not use the structure name timestruc. 2745 */ 2746 2747 2748 2749 2750 2751 /* 2752 * Timer specification 2753 */ 2754 typedef struct itimerspec { /* definition per POSIX.4 */ 2755 struct timespec it_interval; /* timer period */ 2756 struct timespec it_value; /* timer expiration */ 2757 } itimerspec_t; 2758 # 52 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 2 2759 2760 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 1 2761 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2762 /* All Rights Reserved */ 2763 2764 2765 /* 2766 * Copyright (c) 1982, 1986, 1993 Regents of the University of California. 2767 * All rights reserved. The Berkeley software License Agreement 2768 * specifies the terms and conditions for redistribution. 2769 */ 2770 2771 /* 2772 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 2773 * 2774 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2775 * Use is subject to license terms. 2776 * 2777 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 2778 */ 2779 2780 /* 2781 * Copyright (c) 2013, 2015 by Delphix. All rights reserved. 2782 */ 2783 2784 2785 2786 2787 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 2788 /* 2789 * CDDL HEADER START 2790 * 2791 * The contents of this file are subject to the terms of the 2792 * Common Development and Distribution License (the "License"). 2793 * You may not use this file except in compliance with the License. 2794 * 2795 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2796 * or http://www.opensolaris.org/os/licensing. 2797 * See the License for the specific language governing permissions 2798 * and limitations under the License. 2799 * 2800 * When distributing Covered Code, include this CDDL HEADER in each 2801 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2802 * If applicable, add the following below this CDDL HEADER, with the 2803 * fields enclosed by brackets "[]" replaced with your own identifying 2804 * information: Portions Copyright [yyyy] [name of copyright owner] 2805 * 2806 * CDDL HEADER END 2807 */ 2808 2809 /* 2810 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 2811 * Copyright 2016 Joyent, Inc. 2812 * 2813 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2814 * Use is subject to license terms. 2815 */ 2816 # 28 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2 2817 2818 /* 2819 * Structure returned by gettimeofday(2) system call, 2820 * and used in other calls. 2821 */ 2822 # 52 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2823 struct timeval { 2824 time_t tv_sec; /* seconds */ 2825 suseconds_t tv_usec; /* and microseconds */ 2826 }; 2827 # 84 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2828 struct timezone { 2829 int tz_minuteswest; /* minutes west of Greenwich */ 2830 int tz_dsttime; /* type of dst correction */ 2831 }; 2832 # 96 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2833 /* 2834 * Needed for longlong_t type. Placement of this due to <sys/types.h> 2835 * including <sys/select.h> which relies on the presense of the itimerval 2836 * structure. 2837 */ 2838 2839 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 1 2840 /* 2841 * CDDL HEADER START 2842 * 2843 * The contents of this file are subject to the terms of the 2844 * Common Development and Distribution License (the "License"). 2845 * You may not use this file except in compliance with the License. 2846 * 2847 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2848 * or http://www.opensolaris.org/os/licensing. 2849 * See the License for the specific language governing permissions 2850 * and limitations under the License. 2851 * 2852 * When distributing Covered Code, include this CDDL HEADER in each 2853 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2854 * If applicable, add the following below this CDDL HEADER, with the 2855 * fields enclosed by brackets "[]" replaced with your own identifying 2856 * information: Portions Copyright [yyyy] [name of copyright owner] 2857 * 2858 * CDDL HEADER END 2859 */ 2860 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2861 /* All Rights Reserved */ 2862 2863 2864 /* 2865 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2866 * Use is subject to license terms. 2867 * 2868 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 2869 * Copyright 2016 Joyent, Inc. 2870 */ 2871 # 103 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2 2872 # 123 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2873 /* 2874 * Operations on timevals. 2875 */ 2876 # 193 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2877 /* 2878 * Names of the interval timers, and structure 2879 * defining a timer setting. 2880 */ 2881 2882 2883 2884 /* time and when system is running on */ 2885 /* behalf of the process. */ 2886 2887 /* time profiling of multithreaded */ 2888 /* programs. */ 2889 2890 2891 struct itimerval { 2892 struct timeval it_interval; /* timer interval */ 2893 struct timeval it_value; /* current value */ 2894 }; 2895 # 239 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2896 /* 2897 * Definitions for commonly used resolutions. 2898 */ 2899 # 257 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2900 /* 2901 * Time expressed as a 64-bit nanosecond counter. 2902 */ 2903 typedef longlong_t hrtime_t; 2904 # 386 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2905 int adjtime(struct timeval *, struct timeval *); 2906 2907 2908 2909 2910 int futimesat(int, const char *, const struct timeval *); 2911 2912 2913 2914 2915 2916 int getitimer(int, struct itimerval *); 2917 int utimes(const char *, const struct timeval *); 2918 2919 2920 2921 2922 int setitimer(int, struct itimerval *, 2923 struct itimerval *); 2924 2925 2926 2927 2928 /* 2929 * gettimeofday() and settimeofday() were included in SVr4 due to their 2930 * common use in BSD based applications. They were to be included exactly 2931 * as in BSD, with two parameters. However, AT&T/USL noted that the second 2932 * parameter was unused and deleted it, thereby making a routine included 2933 * for compatibility, incompatible. 2934 * 2935 * XSH4.2 (spec 1170) defines gettimeofday and settimeofday to have two 2936 * parameters. 2937 * 2938 * This has caused general disagreement in the application community as to 2939 * the syntax of these routines. Solaris defaults to the XSH4.2 definition. 2940 * The flag _SVID_GETTOD may be used to force the SVID version. 2941 */ 2942 2943 2944 2945 2946 2947 int settimeofday(struct timeval *, void *); 2948 2949 hrtime_t gethrtime(void); 2950 hrtime_t gethrvtime(void); 2951 # 441 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2952 int gettimeofday(struct timeval *, void *); 2953 2954 2955 2956 2957 /* 2958 * The inclusion of <time.h> is historical and was added for 2959 * backward compatibility in delta 1.2 when a number of definitions 2960 * were moved out of <sys/time.h>. More recently, the timespec and 2961 * itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, 2962 * _TIMER_*, and TIMER_* symbols were moved to <sys/time_impl.h>, 2963 * which is now included by <time.h>. This change was due to POSIX 2964 * 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and 2965 * non-X/Open applications, including this header will still make 2966 * visible these definitions. 2967 */ 2968 2969 2970 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 1 2971 /* 2972 * CDDL HEADER START 2973 * 2974 * The contents of this file are subject to the terms of the 2975 * Common Development and Distribution License (the "License"). 2976 * You may not use this file except in compliance with the License. 2977 * 2978 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2979 * or http://www.opensolaris.org/os/licensing. 2980 * See the License for the specific language governing permissions 2981 * and limitations under the License. 2982 * 2983 * When distributing Covered Code, include this CDDL HEADER in each 2984 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2985 * If applicable, add the following below this CDDL HEADER, with the 2986 * fields enclosed by brackets "[]" replaced with your own identifying 2987 * information: Portions Copyright [yyyy] [name of copyright owner] 2988 * 2989 * CDDL HEADER END 2990 */ 2991 /* Copyright (c) 1988 AT&T */ 2992 /* All Rights Reserved */ 2993 2994 2995 /* 2996 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 2997 * 2998 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 2999 * Use is subject to license terms. 3000 */ 3001 /* 3002 * Copyright 2010 Nexenta Systems, Inc. Al rights reserved. 3003 * Copyright 2016 Joyent, Inc. 3004 */ 3005 3006 3007 3008 3009 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 3010 /* 3011 * CDDL HEADER START 3012 * 3013 * The contents of this file are subject to the terms of the 3014 * Common Development and Distribution License (the "License"). 3015 * You may not use this file except in compliance with the License. 3016 * 3017 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3018 * or http://www.opensolaris.org/os/licensing. 3019 * See the License for the specific language governing permissions 3020 * and limitations under the License. 3021 * 3022 * When distributing Covered Code, include this CDDL HEADER in each 3023 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3024 * If applicable, add the following below this CDDL HEADER, with the 3025 * fields enclosed by brackets "[]" replaced with your own identifying 3026 * information: Portions Copyright [yyyy] [name of copyright owner] 3027 * 3028 * CDDL HEADER END 3029 */ 3030 3031 /* 3032 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 3033 * Copyright 2016 Joyent, Inc. 3034 * 3035 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3036 * Use is subject to license terms. 3037 */ 3038 # 40 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 2 3039 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/time_iso.h" 1 3040 /* 3041 * CDDL HEADER START 3042 * 3043 * The contents of this file are subject to the terms of the 3044 * Common Development and Distribution License, Version 1.0 only 3045 * (the "License"). You may not use this file except in compliance 3046 * with the License. 3047 * 3048 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3049 * or http://www.opensolaris.org/os/licensing. 3050 * See the License for the specific language governing permissions 3051 * and limitations under the License. 3052 * 3053 * When distributing Covered Code, include this CDDL HEADER in each 3054 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3055 * If applicable, add the following below this CDDL HEADER, with the 3056 * fields enclosed by brackets "[]" replaced with your own identifying 3057 * information: Portions Copyright [yyyy] [name of copyright owner] 3058 * 3059 * CDDL HEADER END 3060 */ 3061 /* Copyright (c) 1988 AT&T */ 3062 /* All Rights Reserved */ 3063 3064 /* 3065 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 3066 * Copyright 2014 PALO, Richard. 3067 * 3068 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3069 * Use is subject to license terms. 3070 */ 3071 3072 /* 3073 * An application should not include this header directly. Instead it 3074 * should be included only through the inclusion of other Sun headers. 3075 * 3076 * The contents of this header is limited to identifiers specified in the 3077 * C Standard. Any new identifiers specified in future amendments to the 3078 * C Standard must be placed in this header. If these new identifiers 3079 * are required to also be in the C++ Standard "std" namespace, then for 3080 * anything other than macro definitions, corresponding "using" directives 3081 * must also be added to <time.h.h>. 3082 */ 3083 3084 3085 3086 3087 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 3088 /* 3089 * CDDL HEADER START 3090 * 3091 * The contents of this file are subject to the terms of the 3092 * Common Development and Distribution License (the "License"). 3093 * You may not use this file except in compliance with the License. 3094 * 3095 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3096 * or http://www.opensolaris.org/os/licensing. 3097 * See the License for the specific language governing permissions 3098 * and limitations under the License. 3099 * 3100 * When distributing Covered Code, include this CDDL HEADER in each 3101 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3102 * If applicable, add the following below this CDDL HEADER, with the 3103 * fields enclosed by brackets "[]" replaced with your own identifying 3104 * information: Portions Copyright [yyyy] [name of copyright owner] 3105 * 3106 * CDDL HEADER END 3107 */ 3108 3109 /* 3110 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 3111 * Copyright 2016 Joyent, Inc. 3112 * 3113 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3114 * Use is subject to license terms. 3115 */ 3116 # 49 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/time_iso.h" 2 3117 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 3118 /* 3119 * This file and its contents are supplied under the terms of the 3120 * Common Development and Distribution License ("CDDL"), version 1.0. 3121 * You may only use this file in accordance with the terms of version 3122 * 1.0 of the CDDL. 3123 * 3124 * A full copy of the text of the CDDL should have accompanied this 3125 * source. A copy of the CDDL is also available via the Internet at 3126 * http://www.illumos.org/license/CDDL. 3127 */ 3128 3129 /* 3130 * Copyright 2014-2016 PALO, Richard. 3131 */ 3132 # 50 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/time_iso.h" 2 3133 # 80 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/time_iso.h" 3134 struct tm { /* see ctime(3) */ 3135 int tm_sec; 3136 int tm_min; 3137 int tm_hour; 3138 int tm_mday; 3139 int tm_mon; 3140 int tm_year; 3141 int tm_wday; 3142 int tm_yday; 3143 int tm_isdst; 3144 }; 3145 3146 3147 extern char *asctime(const struct tm *); 3148 extern clock_t clock(void); 3149 extern char *ctime(const time_t *); 3150 extern double difftime(time_t, time_t); 3151 extern struct tm *gmtime(const time_t *); 3152 extern struct tm *localtime(const time_t *); 3153 extern time_t mktime(struct tm *); 3154 extern time_t time(time_t *); 3155 extern size_t strftime(char *, size_t, const char *, 3156 const struct tm *); 3157 # 41 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 2 3158 /* 3159 * C11 requires sys/time_impl.h for the definition of the struct timespec. 3160 */ 3161 3162 3163 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 1 3164 /* 3165 * CDDL HEADER START 3166 * 3167 * The contents of this file are subject to the terms of the 3168 * Common Development and Distribution License (the "License"). 3169 * You may not use this file except in compliance with the License. 3170 * 3171 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3172 * or http://www.opensolaris.org/os/licensing. 3173 * See the License for the specific language governing permissions 3174 * and limitations under the License. 3175 * 3176 * When distributing Covered Code, include this CDDL HEADER in each 3177 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3178 * If applicable, add the following below this CDDL HEADER, with the 3179 * fields enclosed by brackets "[]" replaced with your own identifying 3180 * information: Portions Copyright [yyyy] [name of copyright owner] 3181 * 3182 * CDDL HEADER END 3183 */ 3184 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 3185 /* All Rights Reserved */ 3186 3187 3188 /* 3189 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 3190 * Use is subject to license terms. 3191 * 3192 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 3193 * Copyright 2016 Joyent, Inc. 3194 */ 3195 # 47 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 2 3196 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time_impl.h" 1 3197 /* 3198 * CDDL HEADER START 3199 * 3200 * The contents of this file are subject to the terms of the 3201 * Common Development and Distribution License, Version 1.0 only 3202 * (the "License"). You may not use this file except in compliance 3203 * with the License. 3204 * 3205 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3206 * or http://www.opensolaris.org/os/licensing. 3207 * See the License for the specific language governing permissions 3208 * and limitations under the License. 3209 * 3210 * When distributing Covered Code, include this CDDL HEADER in each 3211 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3212 * If applicable, add the following below this CDDL HEADER, with the 3213 * fields enclosed by brackets "[]" replaced with your own identifying 3214 * information: Portions Copyright [yyyy] [name of copyright owner] 3215 * 3216 * CDDL HEADER END 3217 */ 3218 /* 3219 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3220 * Use is subject to license terms. 3221 */ 3222 3223 /* 3224 * Implementation-private. This header should not be included 3225 * directly by an application. The application should instead 3226 * include <time.h> which includes this header conditionally 3227 * depending on which feature test macros are defined. By default, 3228 * this header is included by <time.h>. X/Open and POSIX 3229 * standards requirements result in this header being included 3230 * by <time.h> only under a restricted set of conditions. 3231 */ 3232 # 48 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 2 3233 3234 3235 /* 3236 * Allow global visibility for symbols defined in 3237 * C++ "std" namespace in <iso/time_iso.h>. 3238 */ 3239 # 87 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 3240 extern struct tm *gmtime_r(const time_t *, 3241 struct tm *); 3242 extern struct tm *localtime_r(const time_t *, 3243 struct tm *); 3244 # 105 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 3245 extern char *strptime(const char *, const char *, 3246 struct tm *); 3247 3248 3249 3250 3251 3252 /* 3253 * Neither X/Open nor POSIX allow the inclusion of <signal.h> for the 3254 * definition of the sigevent structure. Both require the inclusion 3255 * of <signal.h> and <time.h> when using the timer_create() function. 3256 * However, X/Open also specifies that the sigevent structure be defined 3257 * in <time.h> as described in the header <signal.h>. This prevents 3258 * compiler warnings for applications that only include <time.h> and not 3259 * also <signal.h>. The sigval union and the sigevent structure is 3260 * therefore defined both here and in <sys/siginfo.h> which gets included 3261 * via inclusion of <signal.h>. 3262 */ 3263 3264 3265 union sigval { 3266 int sival_int; /* integer value */ 3267 void *sival_ptr; /* pointer value */ 3268 }; 3269 3270 3271 3272 3273 struct sigevent { 3274 int sigev_notify; /* notification mode */ 3275 int sigev_signo; /* signal number */ 3276 union sigval sigev_value; /* signal value */ 3277 void (*sigev_notify_function)(union sigval); 3278 pthread_attr_t *sigev_notify_attributes; 3279 int __sigev_pad2; 3280 }; 3281 3282 3283 extern int clock_getres(clockid_t, struct timespec *); 3284 extern int clock_gettime(clockid_t, struct timespec *); 3285 extern int clock_settime(clockid_t, const struct timespec *); 3286 extern int timer_create(clockid_t, struct sigevent *, 3287 timer_t *); 3288 extern int timer_delete(timer_t); 3289 extern int timer_getoverrun(timer_t); 3290 extern int timer_gettime(timer_t, struct itimerspec *); 3291 extern int timer_settime(timer_t, int, const struct itimerspec *, 3292 struct itimerspec *); 3293 3294 extern int nanosleep(const struct timespec *, struct timespec *); 3295 extern int clock_nanosleep(clockid_t, int, 3296 const struct timespec *, struct timespec *); 3297 3298 3299 3300 3301 3302 3303 extern void tzset(void); 3304 extern char *tzname[2]; 3305 3306 /* CLK_TCK marked as LEGACY in SUSv2 and removed in SUSv3 */ 3307 3308 3309 extern long _sysconf(int); /* System Private interface to sysconf() */ 3310 3311 /* 3 is _SC_CLK_TCK */ 3312 3313 3314 3315 3316 3317 extern long timezone; 3318 extern int daylight; 3319 3320 3321 3322 3323 3324 3325 extern time_t timegm(struct tm *); 3326 extern int cftime(char *, char *, const time_t *); 3327 extern int ascftime(char *, const char *, const struct tm *); 3328 extern long altzone; 3329 3330 3331 3332 3333 extern struct tm *getdate(const char *); 3334 3335 3336 3337 3338 3339 extern int getdate_err; 3340 3341 3342 3343 /* 3344 * ctime_r() & asctime_r() prototypes are defined here. 3345 */ 3346 3347 /* 3348 * Previous releases of Solaris, starting at 2.3, provided definitions of 3349 * various functions as specified in POSIX.1c, Draft 6. For some of these 3350 * functions, the final POSIX 1003.1c standard had a different number of 3351 * arguments and return values. 3352 * 3353 * The following segment of this header provides support for the standard 3354 * interfaces while supporting applications written under earlier 3355 * releases. The application defines appropriate values of the feature 3356 * test macros _POSIX_C_SOURCE and _POSIX_PTHREAD_SEMANTICS to indicate 3357 * whether it was written to expect the Draft 6 or standard versions of 3358 * these interfaces, before including this header. This header then 3359 * provides a mapping from the source version of the interface to an 3360 * appropriate binary interface. Such mappings permit an application 3361 * to be built from libraries and objects which have mixed expectations 3362 * of the definitions of these functions. 3363 * 3364 * For applications using the Draft 6 definitions, the binary symbol is the 3365 * same as the source symbol, and no explicit mapping is needed. For the 3366 * standard interface, the function func() is mapped to the binary symbol 3367 * _posix_func(). The preferred mechanism for the remapping is a compiler 3368 * #pragma. If the compiler does not provide such a #pragma, the header file 3369 * defines a static function func() which calls the _posix_func() version; 3370 * this has to be done instead of #define since POSIX specifies that an 3371 * application can #undef the symbol and still be bound to the correct 3372 * implementation. Unfortunately, the statics confuse lint so we fallback to 3373 * #define in that case. 3374 * 3375 * NOTE: Support for the Draft 6 definitions is provided for compatibility 3376 * only. New applications/libraries should use the standard definitions. 3377 */ 3378 # 280 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 3379 extern char *asctime_r(const struct tm *, char *, int); 3380 extern char *ctime_r(const time_t *, char *, int); 3381 # 295 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 3382 extern size_t strftime_l(char *, size_t, 3383 const char *, const struct tm *, locale_t); 3384 3385 3386 3387 3388 3389 /* 3390 * Note, the C11 standard requires that all the various base values that are 3391 * passed into timespec_get() be non-zero. Hence why TIME_UTC starts at one. 3392 */ 3393 3394 3395 extern int timespec_get(struct timespec *, int); 3396 # 460 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2 3397 3398 3399 /* 3400 * The inclusion of <sys/select.h> is needed for the FD_CLR, 3401 * FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the 3402 * select() prototype defined in the XOpen specifications 3403 * beginning with XSH4v2. Placement required after definition 3404 * for itimerval. 3405 */ 3406 3407 3408 3409 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 1 3410 /* 3411 * CDDL HEADER START 3412 * 3413 * The contents of this file are subject to the terms of the 3414 * Common Development and Distribution License (the "License"). 3415 * You may not use this file except in compliance with the License. 3416 * 3417 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3418 * or http://www.opensolaris.org/os/licensing. 3419 * See the License for the specific language governing permissions 3420 * and limitations under the License. 3421 * 3422 * When distributing Covered Code, include this CDDL HEADER in each 3423 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3424 * If applicable, add the following below this CDDL HEADER, with the 3425 * fields enclosed by brackets "[]" replaced with your own identifying 3426 * information: Portions Copyright [yyyy] [name of copyright owner] 3427 * 3428 * CDDL HEADER END 3429 */ 3430 3431 /* 3432 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 3433 * 3434 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 3435 * 3436 * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 3437 * Use is subject to license terms. 3438 */ 3439 3440 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 3441 /* All Rights Reserved */ 3442 3443 /* 3444 * University Copyright- Copyright (c) 1982, 1986, 1988 3445 * The Regents of the University of California 3446 * All Rights Reserved 3447 * 3448 * University Acknowledgment- Portions of this document are derived from 3449 * software developed by the University of California, Berkeley, and its 3450 * contributors. 3451 */ 3452 # 473 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2 3453 # 54 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 2 3454 # 62 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 3455 /* 3456 * The sigset_t type is defined in <sys/signal.h> and duplicated 3457 * in <sys/ucontext.h> as a result of XPG4v2 requirements. XPG6 3458 * now allows the visibility of signal.h in this header, however 3459 * an order of inclusion problem occurs as a result of inclusion 3460 * of <sys/select.h> in <signal.h> under certain conditions. 3461 * Rather than include <sys/signal.h> here, we've duplicated 3462 * the sigset_t type instead. This type is required for the XPG6 3463 * introduced pselect() function also declared in this header. 3464 */ 3465 3466 3467 typedef struct { /* signal set type */ 3468 unsigned int __sigbits[4]; 3469 } sigset_t; 3470 3471 3472 3473 3474 /* 3475 * Select uses bit masks of file descriptors in longs. 3476 * These macros manipulate such bit fields. 3477 * FD_SETSIZE may be defined by the user, but the default here 3478 * should be >= NOFILE (param.h). 3479 */ 3480 # 108 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 3481 typedef long fd_mask; 3482 3483 typedef long fds_mask; 3484 3485 /* 3486 * The value of _NBBY needs to be consistant with the value 3487 * of NBBY in <sys/param.h>. 3488 */ 3489 # 136 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 3490 typedef struct fd_set { 3491 3492 3493 3494 long fds_bits[(((1024)+(((sizeof (fds_mask) * 8))-1))/((sizeof (fds_mask) * 8)))]; 3495 } fd_set; 3496 # 159 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 3497 extern int select(int, fd_set *, fd_set *, 3498 fd_set *, struct timeval *); 3499 3500 3501 extern int pselect(int, fd_set *, fd_set *, 3502 fd_set *, const struct timespec *, 3503 const sigset_t *); 3504 # 641 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2 3505 3506 3507 3508 /* 3509 * _VOID was defined to be either void or char but this is not 3510 * required because previous SunOS compilers have accepted the void 3511 * type. However, because many system header and source files use the 3512 * void keyword, the volatile keyword, and ANSI C function prototypes, 3513 * non-ANSI compilers cannot compile the system anyway. The _VOID macro 3514 * should therefore not be used and remains for source compatibility 3515 * only. 3516 */ 3517 /* CSTYLED */ 3518 # 37 "../common/pkgerr.c" 2 3519 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/locale.h" 1 3520 /* 3521 * CDDL HEADER START 3522 * 3523 * The contents of this file are subject to the terms of the 3524 * Common Development and Distribution License, Version 1.0 only 3525 * (the "License"). You may not use this file except in compliance 3526 * with the License. 3527 * 3528 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3529 * or http://www.opensolaris.org/os/licensing. 3530 * See the License for the specific language governing permissions 3531 * and limitations under the License. 3532 * 3533 * When distributing Covered Code, include this CDDL HEADER in each 3534 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3535 * If applicable, add the following below this CDDL HEADER, with the 3536 * fields enclosed by brackets "[]" replaced with your own identifying 3537 * information: Portions Copyright [yyyy] [name of copyright owner] 3538 * 3539 * CDDL HEADER END 3540 */ 3541 /* 3542 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3543 * Use is subject to license terms. 3544 */ 3545 3546 /* 3547 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 3548 * 3549 * Portions of this file developed by Garrett D'Amore are licensed 3550 * under the terms of the Common Development and Distribution License (CDDL) 3551 * version 1.0 only. The use of subsequent versions of the License are 3552 * is specifically prohibited unless those terms are not in conflict with 3553 * version 1.0 of the License. You can find this license on-line at 3554 * http://www.illumos.org/license/CDDL 3555 */ 3556 3557 3558 3559 3560 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 1 3561 /* 3562 * CDDL HEADER START 3563 * 3564 * The contents of this file are subject to the terms of the 3565 * Common Development and Distribution License, Version 1.0 only 3566 * (the "License"). You may not use this file except in compliance 3567 * with the License. 3568 * 3569 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3570 * or http://www.opensolaris.org/os/licensing. 3571 * See the License for the specific language governing permissions 3572 * and limitations under the License. 3573 * 3574 * When distributing Covered Code, include this CDDL HEADER in each 3575 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3576 * If applicable, add the following below this CDDL HEADER, with the 3577 * fields enclosed by brackets "[]" replaced with your own identifying 3578 * information: Portions Copyright [yyyy] [name of copyright owner] 3579 * 3580 * CDDL HEADER END 3581 */ 3582 /* 3583 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 3584 * Copyright 2014 PALO, Richard. 3585 * 3586 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3587 * Use is subject to license terms. 3588 */ 3589 3590 /* Copyright (c) 1988 AT&T */ 3591 /* All Rights Reserved */ 3592 3593 3594 /* 3595 * An application should not include this header directly. Instead it 3596 * should be included only through the inclusion of other Sun headers. 3597 * 3598 * The contents of this header is limited to identifiers specified in the 3599 * C Standard. Any new identifiers specified in future amendments to the 3600 * C Standard must be placed in this header. If these new identifiers 3601 * are required to also be in the C++ Standard "std" namespace, then for 3602 * anything other than macro definitions, corresponding "using" directives 3603 * must also be added to <locale.h>. 3604 */ 3605 3606 3607 3608 3609 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 3610 /* 3611 * CDDL HEADER START 3612 * 3613 * The contents of this file are subject to the terms of the 3614 * Common Development and Distribution License (the "License"). 3615 * You may not use this file except in compliance with the License. 3616 * 3617 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3618 * or http://www.opensolaris.org/os/licensing. 3619 * See the License for the specific language governing permissions 3620 * and limitations under the License. 3621 * 3622 * When distributing Covered Code, include this CDDL HEADER in each 3623 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3624 * If applicable, add the following below this CDDL HEADER, with the 3625 * fields enclosed by brackets "[]" replaced with your own identifying 3626 * information: Portions Copyright [yyyy] [name of copyright owner] 3627 * 3628 * CDDL HEADER END 3629 */ 3630 3631 /* 3632 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 3633 * Copyright 2016 Joyent, Inc. 3634 * 3635 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3636 * Use is subject to license terms. 3637 */ 3638 # 50 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 2 3639 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 3640 /* 3641 * This file and its contents are supplied under the terms of the 3642 * Common Development and Distribution License ("CDDL"), version 1.0. 3643 * You may only use this file in accordance with the terms of version 3644 * 1.0 of the CDDL. 3645 * 3646 * A full copy of the text of the CDDL should have accompanied this 3647 * source. A copy of the CDDL is also available via the Internet at 3648 * http://www.illumos.org/license/CDDL. 3649 */ 3650 3651 /* 3652 * Copyright 2014-2016 PALO, Richard. 3653 */ 3654 # 51 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 2 3655 # 60 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 3656 struct lconv { 3657 char *decimal_point; 3658 char *thousands_sep; 3659 char *grouping; 3660 char *int_curr_symbol; 3661 char *currency_symbol; 3662 char *mon_decimal_point; 3663 char *mon_thousands_sep; 3664 char *mon_grouping; 3665 char *positive_sign; 3666 char *negative_sign; 3667 char int_frac_digits; 3668 char frac_digits; 3669 char p_cs_precedes; 3670 char p_sep_by_space; 3671 char n_cs_precedes; 3672 char n_sep_by_space; 3673 char p_sign_posn; 3674 char n_sign_posn; 3675 3676 /* 3677 * New in IEEE Std 1003.1-2001 for alignment with the ISO/IEC 9899:1999 3678 * standard. Namespace and binary compatibility dictate that visibility 3679 * of these new members be limited. Visibility is limited to a strictly 3680 * conforming ANSI C environment (-Xc) or if _LCONV_C99 is defined. 3681 */ 3682 # 94 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 3683 }; 3684 # 104 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 3685 extern char *setlocale(int, const char *); 3686 extern struct lconv *localeconv(void); 3687 # 42 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/locale.h" 2 3688 3689 3690 3691 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/libintl.h" 1 3692 /* 3693 * CDDL HEADER START 3694 * 3695 * The contents of this file are subject to the terms of the 3696 * Common Development and Distribution License (the "License"). 3697 * You may not use this file except in compliance with the License. 3698 * 3699 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3700 * or http://www.opensolaris.org/os/licensing. 3701 * See the License for the specific language governing permissions 3702 * and limitations under the License. 3703 * 3704 * When distributing Covered Code, include this CDDL HEADER in each 3705 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3706 * If applicable, add the following below this CDDL HEADER, with the 3707 * fields enclosed by brackets "[]" replaced with your own identifying 3708 * information: Portions Copyright [yyyy] [name of copyright owner] 3709 * 3710 * CDDL HEADER END 3711 */ 3712 /* 3713 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 3714 * 3715 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3716 * Use is subject to license terms. 3717 */ 3718 3719 3720 3721 3722 3723 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 3724 /* 3725 * CDDL HEADER START 3726 * 3727 * The contents of this file are subject to the terms of the 3728 * Common Development and Distribution License (the "License"). 3729 * You may not use this file except in compliance with the License. 3730 * 3731 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3732 * or http://www.opensolaris.org/os/licensing. 3733 * See the License for the specific language governing permissions 3734 * and limitations under the License. 3735 * 3736 * 3737 * When distributing Covered Code, include this CDDL HEADER in each 3738 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3739 * If applicable, add the following below this CDDL HEADER, with the 3740 * fields enclosed by brackets "[]" replaced with your own identifying 3741 * information: Portions Copyright [yyyy] [name of copyright owner] 3742 * 3743 * CDDL HEADER END 3744 */ 3745 3746 /* 3747 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3748 * Use is subject to license terms. 3749 * Copyright 2016 Joyent, Inc. 3750 */ 3751 # 33 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/libintl.h" 2 3752 3753 3754 3755 3756 3757 /* 3758 * wchar_t is a built-in type in standard C++ and as such is not 3759 * defined here when using standard C++. However, the GNU compiler 3760 * fixincludes utility nonetheless creates its own version of this 3761 * header for use by gcc and g++. In that version it adds a redundant 3762 * guard for __cplusplus. To avoid the creation of a gcc/g++ specific 3763 * header we need to include the following magic comment: 3764 * 3765 * we must use the C++ compiler's type 3766 * 3767 * The above comment should not be removed or changed until GNU 3768 * gcc/fixinc/inclhack.def is updated to bypass this header. 3769 */ 3770 3771 3772 3773 3774 3775 3776 typedef long wchar_t; 3777 # 67 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/libintl.h" 3778 extern char *dcgettext(const char *, const char *, const int); 3779 extern char *dgettext(const char *, const char *); 3780 extern char *gettext(const char *); 3781 extern char *textdomain(const char *); 3782 extern char *bindtextdomain(const char *, const char *); 3783 3784 /* 3785 * LI18NUX 2000 Globalization Specification Version 1.0 3786 * with Amendment 2 3787 */ 3788 extern char *dcngettext(const char *, const char *, 3789 const char *, unsigned long int, int); 3790 extern char *dngettext(const char *, const char *, 3791 const char *, unsigned long int); 3792 extern char *ngettext(const char *, const char *, unsigned long int); 3793 extern char *bind_textdomain_codeset(const char *, const char *); 3794 3795 /* Word handling functions --- requires dynamic linking */ 3796 /* Warning: these are experimental and subject to change. */ 3797 extern int wdinit(void); 3798 extern int wdchkind(wchar_t); 3799 extern int wdbindf(wchar_t, wchar_t, int); 3800 extern wchar_t *wddelim(wchar_t, wchar_t, int); 3801 extern wchar_t mcfiller(void); 3802 extern int mcwrap(void); 3803 # 46 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/locale.h" 2 3804 3805 3806 /* 3807 * Allow global visibility for symbols defined in 3808 * C++ "std" namespace in <iso/locale_iso.h>. 3809 */ 3810 # 71 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/locale.h" 3811 /* 3812 * These were added in POSIX 2008 as part of the newlocale() specification. 3813 */ 3814 # 87 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/locale.h" 3815 extern locale_t duplocale(locale_t); 3816 extern void freelocale(locale_t); 3817 extern locale_t newlocale(int, const char *, locale_t); 3818 extern locale_t uselocale(locale_t); 3819 3820 3821 extern locale_t __global_locale(void); 3822 # 38 "../common/pkgerr.c" 2 3823 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/libintl.h" 1 3824 /* 3825 * CDDL HEADER START 3826 * 3827 * The contents of this file are subject to the terms of the 3828 * Common Development and Distribution License (the "License"). 3829 * You may not use this file except in compliance with the License. 3830 * 3831 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3832 * or http://www.opensolaris.org/os/licensing. 3833 * See the License for the specific language governing permissions 3834 * and limitations under the License. 3835 * 3836 * When distributing Covered Code, include this CDDL HEADER in each 3837 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3838 * If applicable, add the following below this CDDL HEADER, with the 3839 * fields enclosed by brackets "[]" replaced with your own identifying 3840 * information: Portions Copyright [yyyy] [name of copyright owner] 3841 * 3842 * CDDL HEADER END 3843 */ 3844 /* 3845 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 3846 * 3847 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3848 * Use is subject to license terms. 3849 */ 3850 # 39 "../common/pkgerr.c" 2 3851 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 1 3852 /* 3853 * CDDL HEADER START 3854 * 3855 * The contents of this file are subject to the terms of the 3856 * Common Development and Distribution License (the "License"). 3857 * You may not use this file except in compliance with the License. 3858 * 3859 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3860 * or http://www.opensolaris.org/os/licensing. 3861 * See the License for the specific language governing permissions 3862 * and limitations under the License. 3863 * 3864 * When distributing Covered Code, include this CDDL HEADER in each 3865 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3866 * If applicable, add the following below this CDDL HEADER, with the 3867 * fields enclosed by brackets "[]" replaced with your own identifying 3868 * information: Portions Copyright [yyyy] [name of copyright owner] 3869 * 3870 * CDDL HEADER END 3871 */ 3872 3873 /* 3874 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 3875 * Copyright (c) 2013 Gary Mills 3876 * 3877 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 3878 */ 3879 3880 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */ 3881 3882 /* Copyright (c) 1988 AT&T */ 3883 /* All Rights Reserved */ 3884 3885 3886 3887 3888 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 1 3889 /* 3890 * CDDL HEADER START 3891 * 3892 * The contents of this file are subject to the terms of the 3893 * Common Development and Distribution License, Version 1.0 only 3894 * (the "License"). You may not use this file except in compliance 3895 * with the License. 3896 * 3897 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3898 * or http://www.opensolaris.org/os/licensing. 3899 * See the License for the specific language governing permissions 3900 * and limitations under the License. 3901 * 3902 * When distributing Covered Code, include this CDDL HEADER in each 3903 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3904 * If applicable, add the following below this CDDL HEADER, with the 3905 * fields enclosed by brackets "[]" replaced with your own identifying 3906 * information: Portions Copyright [yyyy] [name of copyright owner] 3907 * 3908 * CDDL HEADER END 3909 */ 3910 /* 3911 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 3912 * Copyright 2014 PALO, Richard. 3913 * 3914 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3915 * Use is subject to license terms. 3916 */ 3917 3918 /* Copyright (c) 1988 AT&T */ 3919 /* All Rights Reserved */ 3920 3921 3922 /* 3923 * An application should not include this header directly. Instead it 3924 * should be included only through the inclusion of other Sun headers. 3925 * 3926 * The contents of this header is limited to identifiers specified in the 3927 * C Standard. Any new identifiers specified in future amendments to the 3928 * C Standard must be placed in this header. If these new identifiers 3929 * are required to also be in the C++ Standard "std" namespace, then for 3930 * anything other than macro definitions, corresponding "using" directives 3931 * must also be added to <locale.h>. 3932 */ 3933 3934 3935 3936 3937 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 3938 /* 3939 * CDDL HEADER START 3940 * 3941 * The contents of this file are subject to the terms of the 3942 * Common Development and Distribution License (the "License"). 3943 * You may not use this file except in compliance with the License. 3944 * 3945 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3946 * or http://www.opensolaris.org/os/licensing. 3947 * See the License for the specific language governing permissions 3948 * and limitations under the License. 3949 * 3950 * When distributing Covered Code, include this CDDL HEADER in each 3951 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3952 * If applicable, add the following below this CDDL HEADER, with the 3953 * fields enclosed by brackets "[]" replaced with your own identifying 3954 * information: Portions Copyright [yyyy] [name of copyright owner] 3955 * 3956 * CDDL HEADER END 3957 */ 3958 3959 /* 3960 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 3961 * Copyright 2016 Joyent, Inc. 3962 * 3963 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3964 * Use is subject to license terms. 3965 */ 3966 # 50 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 2 3967 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 3968 /* 3969 * This file and its contents are supplied under the terms of the 3970 * Common Development and Distribution License ("CDDL"), version 1.0. 3971 * You may only use this file in accordance with the terms of version 3972 * 1.0 of the CDDL. 3973 * 3974 * A full copy of the text of the CDDL should have accompanied this 3975 * source. A copy of the CDDL is also available via the Internet at 3976 * http://www.illumos.org/license/CDDL. 3977 */ 3978 3979 /* 3980 * Copyright 2014-2016 PALO, Richard. 3981 */ 3982 # 51 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 2 3983 3984 3985 3986 3987 3988 unsigned char __mb_cur_max(void); 3989 # 65 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 3990 typedef struct { 3991 int quot; 3992 int rem; 3993 } div_t; 3994 3995 typedef struct { 3996 long quot; 3997 long rem; 3998 } ldiv_t; 3999 # 88 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 4000 /* 4001 * wchar_t is a built-in type in standard C++ and as such is not 4002 * defined here when using standard C++. However, the GNU compiler 4003 * fixincludes utility nonetheless creates its own version of this 4004 * header for use by gcc and g++. In that version it adds a redundant 4005 * guard for __cplusplus. To avoid the creation of a gcc/g++ specific 4006 * header we need to include the following magic comment: 4007 * 4008 * we must use the C++ compiler's type 4009 * 4010 * The above comment should not be removed or changed until GNU 4011 * gcc/fixinc/inclhack.def is updated to bypass this header. 4012 */ 4013 # 120 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 4014 extern void abort(void) __attribute__((__noreturn__)); 4015 extern int abs(int); 4016 extern int atexit(void (*)(void)); 4017 extern double atof(const char *); 4018 extern int atoi(const char *); 4019 extern long int atol(const char *); 4020 extern void *bsearch(const void *, const void *, size_t, size_t, 4021 int (*)(const void *, const void *)); 4022 4023 4024 4025 4026 4027 4028 extern void *calloc(size_t, size_t); 4029 extern div_t div(int, int); 4030 extern void exit(int) 4031 __attribute__((__noreturn__)); 4032 extern void free(void *); 4033 extern char *getenv(const char *); 4034 extern long int labs(long); 4035 extern ldiv_t ldiv(long, long); 4036 extern void *malloc(size_t); 4037 extern int mblen(const char *, size_t); 4038 extern size_t mbstowcs(wchar_t *, const char *, 4039 size_t); 4040 extern int mbtowc(wchar_t *, const char *, size_t); 4041 extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); 4042 4043 4044 4045 4046 4047 extern int rand(void); 4048 extern void *realloc(void *, size_t); 4049 extern void srand(unsigned int); 4050 extern double strtod(const char *, char **); 4051 extern long int strtol(const char *, char **, int); 4052 extern unsigned long int strtoul(const char *, 4053 char **, int); 4054 extern int system(const char *); 4055 extern int wctomb(char *, wchar_t); 4056 extern size_t wcstombs(char *, const wchar_t *, 4057 size_t); 4058 # 38 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 2 4059 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c99.h" 1 4060 /* 4061 * CDDL HEADER START 4062 * 4063 * The contents of this file are subject to the terms of the 4064 * Common Development and Distribution License, Version 1.0 only 4065 * (the "License"). You may not use this file except in compliance 4066 * with the License. 4067 * 4068 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4069 * or http://www.opensolaris.org/os/licensing. 4070 * See the License for the specific language governing permissions 4071 * and limitations under the License. 4072 * 4073 * When distributing Covered Code, include this CDDL HEADER in each 4074 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4075 * If applicable, add the following below this CDDL HEADER, with the 4076 * fields enclosed by brackets "[]" replaced with your own identifying 4077 * information: Portions Copyright [yyyy] [name of copyright owner] 4078 * 4079 * CDDL HEADER END 4080 */ 4081 /* 4082 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4083 * 4084 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 4085 * Use is subject to license terms. 4086 */ 4087 4088 /* 4089 * An application should not include this header directly. Instead it 4090 * should be included only through the inclusion of other Sun headers. 4091 * 4092 * The contents of this header is limited to identifiers specified in 4093 * the C99 standard and in conflict with the C++ implementation of the 4094 * standard header. The C++ standard may adopt the C99 standard at 4095 * which point it is expected that the symbols included here will 4096 * become part of the C++ std namespace. 4097 */ 4098 4099 4100 4101 4102 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 4103 /* 4104 * CDDL HEADER START 4105 * 4106 * The contents of this file are subject to the terms of the 4107 * Common Development and Distribution License (the "License"). 4108 * You may not use this file except in compliance with the License. 4109 * 4110 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4111 * or http://www.opensolaris.org/os/licensing. 4112 * See the License for the specific language governing permissions 4113 * and limitations under the License. 4114 * 4115 * When distributing Covered Code, include this CDDL HEADER in each 4116 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4117 * If applicable, add the following below this CDDL HEADER, with the 4118 * fields enclosed by brackets "[]" replaced with your own identifying 4119 * information: Portions Copyright [yyyy] [name of copyright owner] 4120 * 4121 * CDDL HEADER END 4122 */ 4123 4124 /* 4125 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 4126 * Copyright 2016 Joyent, Inc. 4127 * 4128 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 4129 * Use is subject to license terms. 4130 */ 4131 # 44 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c99.h" 2 4132 4133 4134 4135 4136 4137 /* 4138 * The following have been added as a result of the ISO/IEC 9899:1999 4139 * standard. For a strictly conforming C application, visibility is 4140 * contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h). 4141 * For non-strictly conforming C applications, there are no restrictions 4142 * on the C namespace. 4143 */ 4144 4145 4146 typedef struct { 4147 long long quot; 4148 long long rem; 4149 } lldiv_t; 4150 # 75 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c99.h" 4151 extern void _Exit(int); 4152 extern float strtof(const char *, char **); 4153 extern long double strtold(const char *, char **); 4154 4155 4156 extern long long atoll(const char *); 4157 extern long long llabs(long long); 4158 extern lldiv_t lldiv(long long, long long); 4159 extern long long strtoll(const char *, char **, 4160 int); 4161 extern unsigned long long strtoull(const char *, 4162 char **, int); 4163 # 39 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 2 4164 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c11.h" 1 4165 /* 4166 * This file and its contents are supplied under the terms of the 4167 * Common Development and Distribution License ("CDDL"), version 1.0. 4168 * You may only use this file in accordance with the terms of version 4169 * 1.0 of the CDDL. 4170 * 4171 * A full copy of the text of the CDDL should have accompanied this 4172 * source. A copy of the CDDL is also available via the Internet at 4173 * http://www.illumos.org/license/CDDL. 4174 */ 4175 4176 /* 4177 * Copyright 2016 Joyent, Inc. 4178 */ 4179 4180 /* 4181 * An application should not include this header directly. Instead it 4182 * should be included only through the inclusion of other illumos headers. 4183 * 4184 * The contents of this header is limited to identifiers specified in 4185 * the C11 standard and in conflict with the C++ implementation of the 4186 * standard header. The C++ standard may adopt the C11 standard at 4187 * which point it is expected that the symbols included here will 4188 * become part of the C++ std namespace. 4189 */ 4190 4191 4192 4193 4194 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 4195 /* 4196 * CDDL HEADER START 4197 * 4198 * The contents of this file are subject to the terms of the 4199 * Common Development and Distribution License (the "License"). 4200 * You may not use this file except in compliance with the License. 4201 * 4202 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4203 * or http://www.opensolaris.org/os/licensing. 4204 * See the License for the specific language governing permissions 4205 * and limitations under the License. 4206 * 4207 * When distributing Covered Code, include this CDDL HEADER in each 4208 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4209 * If applicable, add the following below this CDDL HEADER, with the 4210 * fields enclosed by brackets "[]" replaced with your own identifying 4211 * information: Portions Copyright [yyyy] [name of copyright owner] 4212 * 4213 * CDDL HEADER END 4214 */ 4215 4216 /* 4217 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 4218 * Copyright 2016 Joyent, Inc. 4219 * 4220 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 4221 * Use is subject to license terms. 4222 */ 4223 # 31 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c11.h" 2 4224 # 40 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c11.h" 4225 /* 4226 * The following have been added as a result of the ISO/IEC 9899:2011 4227 * standard. For a strictly conforming C application, visibility is 4228 * contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h). 4229 * For non-strictly conforming C applications, there are no restrictions 4230 * on the C namespace. 4231 */ 4232 4233 /* 4234 * Work around fix-includes and other bad actors with using multiple headers. 4235 */ 4236 # 60 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c11.h" 4237 extern void *aligned_alloc(size_t, size_t); 4238 extern int at_quick_exit(void (*)(void)); 4239 extern void quick_exit(int); 4240 # 40 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 2 4241 4242 4243 4244 4245 4246 /* 4247 * Allow global visibility for symbols defined in 4248 * C++ "std" namespace in <iso/stdlib_iso.h>. 4249 */ 4250 # 83 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4251 /* 4252 * Allow global visibility for symbols defined in 4253 * C++ "std" namespace in <iso/stdlib_c11.h>. 4254 */ 4255 # 104 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4256 /* large file compilation environment setup */ 4257 4258 4259 4260 4261 # 108 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4262 #pragma redefine_extname mkstemp mkstemp64 4263 # 108 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4264 4265 4266 # 109 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4267 #pragma redefine_extname mkstemps mkstemps64 4268 # 109 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4269 4270 4271 # 110 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4272 #pragma redefine_extname mkostemp mkostemp64 4273 # 110 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4274 4275 4276 # 111 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4277 #pragma redefine_extname mkostemps mkostemps64 4278 # 111 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4279 # 121 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4280 /* In the LP64 compilation environment, all APIs are already large file */ 4281 # 141 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4282 extern int rand_r(unsigned int *); 4283 4284 4285 extern void _exithandle(void); 4286 4287 4288 4289 4290 extern double drand48(void); 4291 extern double erand48(unsigned short *); 4292 extern long jrand48(unsigned short *); 4293 extern void lcong48(unsigned short *); 4294 extern long lrand48(void); 4295 extern long mrand48(void); 4296 extern long nrand48(unsigned short *); 4297 extern unsigned short *seed48(unsigned short *); 4298 extern void srand48(long); 4299 extern int putenv(char *); 4300 extern void setkey(const char *); 4301 4302 4303 /* 4304 * swab() has historically been in <stdlib.h> as delivered from AT&T 4305 * and continues to be visible in the default compilation environment. 4306 * As of Issue 4 of the X/Open Portability Guides, swab() was declared 4307 * in <unistd.h>. As a result, with respect to X/Open namespace the 4308 * swab() declaration in this header is only visible for the XPG3 4309 * environment. 4310 */ 4311 # 182 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4312 extern void swab(const char *, char *, ssize_t); 4313 4314 4315 4316 4317 4318 extern int mkstemp(char *); 4319 4320 extern int mkstemps(char *, int); 4321 4322 4323 4324 4325 4326 extern int mkstemp64(char *); 4327 4328 extern int mkstemps64(char *, int); 4329 4330 4331 4332 4333 extern char *mkdtemp(char *); 4334 4335 4336 4337 extern int mkostemp(char *, int); 4338 extern int mkostemps(char *, int, int); 4339 4340 4341 extern int mkostemp64(char *, int); 4342 extern int mkostemps64(char *, int, int); 4343 4344 4345 4346 4347 4348 4349 extern long a64l(const char *); 4350 extern char *ecvt(double, int, int *, int *); 4351 extern char *fcvt(double, int, int *, int *); 4352 extern char *gcvt(double, int, char *); 4353 extern int getsubopt(char **, char *const *, char **); 4354 extern int grantpt(int); 4355 extern char *initstate(unsigned, char *, size_t); 4356 extern char *l64a(long); 4357 extern char *mktemp(char *); 4358 extern char *ptsname(int); 4359 extern long random(void); 4360 extern char *realpath(const char *, char *); 4361 extern char *setstate(const char *); 4362 extern void srandom(unsigned); 4363 extern int unlockpt(int); 4364 /* Marked LEGACY in SUSv2 and removed in SUSv3 */ 4365 4366 extern int ttyslot(void); 4367 extern void *valloc(size_t); 4368 4369 4370 4371 4372 4373 4374 extern int posix_memalign(void **, size_t, size_t); 4375 extern int posix_openpt(int); 4376 extern int setenv(const char *, const char *, int); 4377 extern int unsetenv(const char *); 4378 4379 4380 4381 4382 extern char *canonicalize_file_name(const char *); 4383 extern int clearenv(void); 4384 extern void closefrom(int); 4385 extern int daemon(int, int); 4386 extern int dup2(int, int); 4387 extern int dup3(int, int, int); 4388 extern int fdwalk(int (*)(void *, int), void *); 4389 extern char *qecvt(long double, int, int *, int *); 4390 extern char *qfcvt(long double, int, int *, int *); 4391 extern char *qgcvt(long double, int, char *); 4392 extern char *getcwd(char *, size_t); 4393 extern const char *getexecname(void); 4394 4395 4396 4397 4398 4399 4400 # 269 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4401 #pragma redefine_extname getlogin getloginx 4402 # 269 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 4403 4404 4405 4406 4407 4408 4409 extern char *getlogin(void); 4410 4411 4412 extern int getopt(int, char *const *, const char *); 4413 extern char *optarg; 4414 extern int optind, opterr, optopt; 4415 extern char *getpass(const char *); 4416 extern char *getpassphrase(const char *); 4417 extern int getpw(uid_t, char *); 4418 extern int isatty(int); 4419 extern void *memalign(size_t, size_t); 4420 extern char *ttyname(int); 4421 extern char *mkdtemp(char *); 4422 extern const char *getprogname(void); 4423 extern void setprogname(const char *); 4424 4425 4426 extern char *lltostr(long long, char *); 4427 extern char *ulltostr(unsigned long long, char *); 4428 4429 4430 4431 4432 /* OpenBSD compatibility functions */ 4433 4434 4435 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 1 4436 /* 4437 * CDDL HEADER START 4438 * 4439 * The contents of this file are subject to the terms of the 4440 * Common Development and Distribution License, Version 1.0 only 4441 * (the "License"). You may not use this file except in compliance 4442 * with the License. 4443 * 4444 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4445 * or http://www.opensolaris.org/os/licensing. 4446 * See the License for the specific language governing permissions 4447 * and limitations under the License. 4448 * 4449 * When distributing Covered Code, include this CDDL HEADER in each 4450 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4451 * If applicable, add the following below this CDDL HEADER, with the 4452 * fields enclosed by brackets "[]" replaced with your own identifying 4453 * information: Portions Copyright [yyyy] [name of copyright owner] 4454 * 4455 * CDDL HEADER END 4456 */ 4457 /* 4458 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4459 * 4460 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4461 * Use is subject to license terms. 4462 */ 4463 4464 4465 4466 4467 /* 4468 * This file, <inttypes.h>, is specified by the ISO C standard, 4469 * standard, ISO/IEC 9899:1999 Programming language - C and is 4470 * also defined by SUSv3. 4471 * 4472 * ISO International Organization for Standardization. 4473 * SUSv3 Single Unix Specification, Version 3 4474 */ 4475 4476 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 4477 /* 4478 * CDDL HEADER START 4479 * 4480 * The contents of this file are subject to the terms of the 4481 * Common Development and Distribution License (the "License"). 4482 * You may not use this file except in compliance with the License. 4483 * 4484 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4485 * or http://www.opensolaris.org/os/licensing. 4486 * See the License for the specific language governing permissions 4487 * and limitations under the License. 4488 * 4489 * When distributing Covered Code, include this CDDL HEADER in each 4490 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4491 * If applicable, add the following below this CDDL HEADER, with the 4492 * fields enclosed by brackets "[]" replaced with your own identifying 4493 * information: Portions Copyright [yyyy] [name of copyright owner] 4494 * 4495 * CDDL HEADER END 4496 */ 4497 4498 /* 4499 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 4500 * Copyright 2016 Joyent, Inc. 4501 * 4502 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 4503 * Use is subject to license terms. 4504 */ 4505 # 42 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 2 4506 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 1 4507 /* 4508 * CDDL HEADER START 4509 * 4510 * The contents of this file are subject to the terms of the 4511 * Common Development and Distribution License, Version 1.0 only 4512 * (the "License"). You may not use this file except in compliance 4513 * with the License. 4514 * 4515 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4516 * or http://www.opensolaris.org/os/licensing. 4517 * See the License for the specific language governing permissions 4518 * and limitations under the License. 4519 * 4520 * When distributing Covered Code, include this CDDL HEADER in each 4521 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4522 * If applicable, add the following below this CDDL HEADER, with the 4523 * fields enclosed by brackets "[]" replaced with your own identifying 4524 * information: Portions Copyright [yyyy] [name of copyright owner] 4525 * 4526 * CDDL HEADER END 4527 */ 4528 /* 4529 * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 4530 * Use is subject to license terms. 4531 */ 4532 4533 4534 4535 4536 #pragma ident "%Z%%M% %I% %E% SMI" 4537 4538 /* 4539 * This header, <sys/inttypes.h>, contains (through nested inclusion) the 4540 * vast majority of the facilities specified for <inttypes.h> as defined 4541 * by the ISO C Standard, ISO/IEC 9899:1999 Programming language - C. 4542 * 4543 * Kernel/Driver developers are encouraged to include this file to access 4544 * the fixed size types, limits and utility macros. Application developers 4545 * should use the standard defined header <inttypes.h>. 4546 */ 4547 4548 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 4549 /* 4550 * CDDL HEADER START 4551 * 4552 * The contents of this file are subject to the terms of the 4553 * Common Development and Distribution License (the "License"). 4554 * You may not use this file except in compliance with the License. 4555 * 4556 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4557 * or http://www.opensolaris.org/os/licensing. 4558 * See the License for the specific language governing permissions 4559 * and limitations under the License. 4560 * 4561 * When distributing Covered Code, include this CDDL HEADER in each 4562 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4563 * If applicable, add the following below this CDDL HEADER, with the 4564 * fields enclosed by brackets "[]" replaced with your own identifying 4565 * information: Portions Copyright [yyyy] [name of copyright owner] 4566 * 4567 * CDDL HEADER END 4568 */ 4569 4570 /* 4571 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 4572 * Copyright 2016 Joyent, Inc. 4573 * 4574 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 4575 * Use is subject to license terms. 4576 */ 4577 # 43 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 2 4578 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_types.h" 1 4579 /* 4580 * CDDL HEADER START 4581 * 4582 * The contents of this file are subject to the terms of the 4583 * Common Development and Distribution License, Version 1.0 only 4584 * (the "License"). You may not use this file except in compliance 4585 * with the License. 4586 * 4587 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4588 * or http://www.opensolaris.org/os/licensing. 4589 * See the License for the specific language governing permissions 4590 * and limitations under the License. 4591 * 4592 * When distributing Covered Code, include this CDDL HEADER in each 4593 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4594 * If applicable, add the following below this CDDL HEADER, with the 4595 * fields enclosed by brackets "[]" replaced with your own identifying 4596 * information: Portions Copyright [yyyy] [name of copyright owner] 4597 * 4598 * CDDL HEADER END 4599 */ 4600 /* 4601 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4602 * 4603 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 4604 * Use is subject to license terms. 4605 */ 4606 # 44 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 2 4607 4608 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 1 4609 /* 4610 * CDDL HEADER START 4611 * 4612 * The contents of this file are subject to the terms of the 4613 * Common Development and Distribution License, Version 1.0 only 4614 * (the "License"). You may not use this file except in compliance 4615 * with the License. 4616 * 4617 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4618 * or http://www.opensolaris.org/os/licensing. 4619 * See the License for the specific language governing permissions 4620 * and limitations under the License. 4621 * 4622 * When distributing Covered Code, include this CDDL HEADER in each 4623 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4624 * If applicable, add the following below this CDDL HEADER, with the 4625 * fields enclosed by brackets "[]" replaced with your own identifying 4626 * information: Portions Copyright [yyyy] [name of copyright owner] 4627 * 4628 * CDDL HEADER END 4629 */ 4630 /* 4631 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4632 * 4633 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 4634 * Use is subject to license terms. 4635 */ 4636 4637 4638 4639 4640 /* 4641 * This file, <sys/int_limits.h>, is part of the Sun Microsystems implementation 4642 * of <inttypes.h> as defined in the ISO C standard, ISO/IEC 9899:1999 4643 * Programming language - C. 4644 * 4645 * Programs/Modules should not directly include this file. Access to the 4646 * types defined in this file should be through the inclusion of one of the 4647 * following files: 4648 * 4649 * <limits.h> This nested inclusion is disabled for strictly 4650 * ANSI-C conforming compilations. The *_MIN 4651 * definitions are not visible to POSIX or XPG 4652 * conforming applications (due to what may be 4653 * a bug in the specification - this is under 4654 * investigation) 4655 * 4656 * <sys/inttypes.h> Provides the Kernel and Driver appropriate 4657 * components of <inttypes.h>. 4658 * 4659 * <inttypes.h> For use by applications. 4660 * 4661 * See these files for more details. 4662 */ 4663 4664 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 4665 /* 4666 * CDDL HEADER START 4667 * 4668 * The contents of this file are subject to the terms of the 4669 * Common Development and Distribution License (the "License"). 4670 * You may not use this file except in compliance with the License. 4671 * 4672 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4673 * or http://www.opensolaris.org/os/licensing. 4674 * See the License for the specific language governing permissions 4675 * and limitations under the License. 4676 * 4677 * When distributing Covered Code, include this CDDL HEADER in each 4678 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4679 * If applicable, add the following below this CDDL HEADER, with the 4680 * fields enclosed by brackets "[]" replaced with your own identifying 4681 * information: Portions Copyright [yyyy] [name of copyright owner] 4682 * 4683 * CDDL HEADER END 4684 */ 4685 4686 /* 4687 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 4688 * Copyright 2016 Joyent, Inc. 4689 * 4690 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 4691 * Use is subject to license terms. 4692 */ 4693 # 57 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 2 4694 4695 4696 4697 4698 4699 /* 4700 * Limits 4701 * 4702 * The following define the limits for the types defined in <sys/int_types.h>. 4703 * 4704 * INTMAX_MIN (minimum value of the largest supported signed integer type), 4705 * INTMAX_MAX (maximum value of the largest supported signed integer type), 4706 * and UINTMAX_MAX (maximum value of the largest supported unsigned integer 4707 * type) can be set to implementation defined limits. 4708 * 4709 * NOTE : A programmer can test to see whether an implementation supports 4710 * a particular size of integer by testing if the macro that gives the 4711 * maximum for that datatype is defined. For example, if #ifdef UINT64_MAX 4712 * tests false, the implementation does not support unsigned 64 bit integers. 4713 * 4714 * The type of these macros is intentionally unspecified. 4715 * 4716 * The types int8_t, int_least8_t, and int_fast8_t are not defined for ISAs 4717 * where the ABI specifies "char" as unsigned when the translation mode is 4718 * not ANSI-C. 4719 */ 4720 # 141 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 4721 /* 4722 * The following 2 macros are provided for testing whether the types 4723 * intptr_t and uintptr_t (integers large enough to hold a void *) are 4724 * defined in this header. They are needed in case the architecture can't 4725 * represent a pointer in any standard integral type. 4726 */ 4727 # 155 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 4728 /* Maximum limits of ptrdiff_t defined in <sys/types.h> */ 4729 4730 4731 4732 4733 4734 4735 /* 4736 * Maximum value of a "size_t". SIZE_MAX was previously defined 4737 * in <limits.h>, however, the standards specify it be defined 4738 * in <stdint.h>. The <stdint.h> headers includes this header as 4739 * does <limits.h>. The value of SIZE_MAX should not deviate 4740 * from the value of ULONG_MAX defined <sys/types.h>. 4741 */ 4742 4743 4744 4745 4746 4747 4748 /* Maximum limit of sig_atomic_t defined in <sys/types.h> */ 4749 4750 4751 4752 4753 /* 4754 * Maximum limit of wchar_t. The WCHAR_* macros are also 4755 * defined in <iso/wchar_iso.h>, but inclusion of that header 4756 * will break ISO/IEC C namespace. 4757 */ 4758 4759 4760 4761 4762 /* Maximum limit of wint_t */ 4763 4764 4765 4766 4767 /* 4768 * It is probably a bug in the POSIX specification (IEEE-1003.1-1990) that 4769 * when including <limits.h> that the suffix _MAX is reserved but not the 4770 * suffix _MIN. However, until that issue is resolved.... 4771 */ 4772 # 230 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 4773 /* Minimum value of a pointer-holding signed integer type */ 4774 4775 4776 4777 4778 4779 4780 /* Minimum limits of ptrdiff_t defined in <sys/types.h> */ 4781 4782 4783 4784 4785 4786 4787 /* Minimum limit of sig_atomic_t defined in <sys/types.h> */ 4788 4789 4790 4791 4792 /* 4793 * Minimum limit of wchar_t. The WCHAR_* macros are also 4794 * defined in <iso/wchar_iso.h>, but inclusion of that header 4795 * will break ISO/IEC C namespace. 4796 */ 4797 4798 4799 4800 4801 /* Minimum limit of wint_t */ 4802 # 46 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 2 4803 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_const.h" 1 4804 /* 4805 * CDDL HEADER START 4806 * 4807 * The contents of this file are subject to the terms of the 4808 * Common Development and Distribution License, Version 1.0 only 4809 * (the "License"). You may not use this file except in compliance 4810 * with the License. 4811 * 4812 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4813 * or http://www.opensolaris.org/os/licensing. 4814 * See the License for the specific language governing permissions 4815 * and limitations under the License. 4816 * 4817 * When distributing Covered Code, include this CDDL HEADER in each 4818 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4819 * If applicable, add the following below this CDDL HEADER, with the 4820 * fields enclosed by brackets "[]" replaced with your own identifying 4821 * information: Portions Copyright [yyyy] [name of copyright owner] 4822 * 4823 * CDDL HEADER END 4824 */ 4825 /* 4826 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4827 * 4828 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 4829 * Use is subject to license terms. 4830 */ 4831 4832 4833 4834 4835 /* 4836 * This file, <sys/int_const.h>, is part of the Sun Microsystems implementation 4837 * of <inttypes.h> as proposed in the ISO/JTC1/SC22/WG14 C committee's working 4838 * draft for the revision of the current ISO C standard, ISO/IEC 9899:1990 4839 * Programming language - C. 4840 * 4841 * Programs/Modules should not directly include this file. Access to the 4842 * types defined in this file should be through the inclusion of one of the 4843 * following files: 4844 * 4845 * <sys/inttypes.h> Provides the Kernel and Driver appropriate 4846 * components of <inttypes.h>. 4847 * 4848 * <inttypes.h> For use by applications. 4849 * 4850 * See these files for more details. 4851 * 4852 * Use at your own risk. This file will track the evolution of the revision 4853 * of the current ISO C standard. As of February 1996, the committee is 4854 * squarely behind the fixed sized types. 4855 */ 4856 4857 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 4858 /* 4859 * CDDL HEADER START 4860 * 4861 * The contents of this file are subject to the terms of the 4862 * Common Development and Distribution License (the "License"). 4863 * You may not use this file except in compliance with the License. 4864 * 4865 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4866 * or http://www.opensolaris.org/os/licensing. 4867 * See the License for the specific language governing permissions 4868 * and limitations under the License. 4869 * 4870 * When distributing Covered Code, include this CDDL HEADER in each 4871 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4872 * If applicable, add the following below this CDDL HEADER, with the 4873 * fields enclosed by brackets "[]" replaced with your own identifying 4874 * information: Portions Copyright [yyyy] [name of copyright owner] 4875 * 4876 * CDDL HEADER END 4877 */ 4878 4879 /* 4880 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 4881 * Copyright 2016 Joyent, Inc. 4882 * 4883 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 4884 * Use is subject to license terms. 4885 */ 4886 # 55 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_const.h" 2 4887 4888 4889 4890 4891 4892 /* 4893 * Constants 4894 * 4895 * The following macros create constants of the types defined in 4896 * <sys/int_types.h>. The intent is that: 4897 * Constants defined using these macros have a specific size and 4898 * signedness. The suffix used for int64_t and uint64_t (ll and ull) 4899 * are for examples only. Implementations are permitted to use other 4900 * suffixes. 4901 * 4902 * The "CSTYLED" comments are flags to an internal code style analysis tool 4903 * telling it to silently accept the line which follows. This internal 4904 * standard requires a space between arguments, but the historical, 4905 * non-ANSI-C ``method'' of concatenation can't tolerate those spaces. 4906 */ 4907 /* CSTYLED */ 4908 # 86 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_const.h" 4909 /* CSTYLED */ 4910 4911 4912 4913 4914 /* CSTYLED */ 4915 4916 /* CSTYLED */ 4917 4918 /* CSTYLED */ 4919 4920 4921 4922 4923 4924 4925 /* CSTYLED */ 4926 # 114 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_const.h" 4927 /* CSTYLED */ 4928 4929 /* CSTYLED */ 4930 # 47 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 2 4931 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 1 4932 /* 4933 * CDDL HEADER START 4934 * 4935 * The contents of this file are subject to the terms of the 4936 * Common Development and Distribution License, Version 1.0 only 4937 * (the "License"). You may not use this file except in compliance 4938 * with the License. 4939 * 4940 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4941 * or http://www.opensolaris.org/os/licensing. 4942 * See the License for the specific language governing permissions 4943 * and limitations under the License. 4944 * 4945 * When distributing Covered Code, include this CDDL HEADER in each 4946 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4947 * If applicable, add the following below this CDDL HEADER, with the 4948 * fields enclosed by brackets "[]" replaced with your own identifying 4949 * information: Portions Copyright [yyyy] [name of copyright owner] 4950 * 4951 * CDDL HEADER END 4952 */ 4953 /* 4954 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4955 * 4956 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 4957 * Use is subject to license terms. 4958 */ 4959 4960 4961 4962 4963 /* 4964 * This file, <sys/int_fmtio.h>, is part of the Sun Microsystems implementation 4965 * of <inttypes.h> as defined by the ISO C Standard, ISO/IEC 9899:1999 4966 * Programming language - C. 4967 * 4968 * ISO International Organization for Standardization. 4969 * 4970 * Programs/Modules should not directly include this file. Access to the 4971 * types defined in this file should be through the inclusion of one of the 4972 * following files: 4973 * 4974 * <sys/inttypes.h> Provides the Kernel and Driver appropriate 4975 * components of <inttypes.h>. 4976 * 4977 * <inttypes.h> For use by applications. 4978 * 4979 * See these files for more details. 4980 */ 4981 4982 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 4983 /* 4984 * CDDL HEADER START 4985 * 4986 * The contents of this file are subject to the terms of the 4987 * Common Development and Distribution License (the "License"). 4988 * You may not use this file except in compliance with the License. 4989 * 4990 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4991 * or http://www.opensolaris.org/os/licensing. 4992 * See the License for the specific language governing permissions 4993 * and limitations under the License. 4994 * 4995 * When distributing Covered Code, include this CDDL HEADER in each 4996 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4997 * If applicable, add the following below this CDDL HEADER, with the 4998 * fields enclosed by brackets "[]" replaced with your own identifying 4999 * information: Portions Copyright [yyyy] [name of copyright owner] 5000 * 5001 * CDDL HEADER END 5002 */ 5003 5004 /* 5005 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 5006 * Copyright 2016 Joyent, Inc. 5007 * 5008 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 5009 * Use is subject to license terms. 5010 */ 5011 # 52 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 2 5012 5013 5014 5015 5016 5017 /* 5018 * Formatted I/O 5019 * 5020 * The following macros can be used even when an implementation has not 5021 * extended the printf/scanf family of functions. 5022 * 5023 * The form of the names of the macros is either "PRI" for printf specifiers 5024 * or "SCN" for scanf specifiers, followed by the conversion specifier letter 5025 * followed by the datatype size. For example, PRId32 is the macro for 5026 * the printf d conversion specifier with the flags for 32 bit datatype. 5027 * 5028 * An example using one of these macros: 5029 * 5030 * uint64_t u; 5031 * printf("u = %016" PRIx64 "\n", u); 5032 * 5033 * For the purpose of example, the definitions of the printf/scanf macros 5034 * below have the values appropriate for a machine with 8 bit shorts, 16 5035 * bit shorts, 32 bit ints, 32 or 64 bit longs depending on compilation 5036 * mode, and 64 bit long longs. 5037 */ 5038 5039 /* 5040 * fprintf macros for signed integers 5041 */ 5042 # 139 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 5043 /* 5044 * fprintf macros for unsigned integers 5045 */ 5046 # 227 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 5047 /* 5048 * fprintf macros for pointers 5049 */ 5050 # 247 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 5051 /* 5052 * fscanf macros for signed integers 5053 */ 5054 # 282 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 5055 /* 5056 * fscanf macros for unsigned integers 5057 */ 5058 # 349 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 5059 /* 5060 * The following macros define I/O formats for intmax_t and uintmax_t. 5061 */ 5062 # 48 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 2 5063 # 43 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 2 5064 5065 5066 5067 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/stdint.h" 1 5068 /* 5069 * CDDL HEADER START 5070 * 5071 * The contents of this file are subject to the terms of the 5072 * Common Development and Distribution License, Version 1.0 only 5073 * (the "License"). You may not use this file except in compliance 5074 * with the License. 5075 * 5076 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5077 * or http://www.opensolaris.org/os/licensing. 5078 * See the License for the specific language governing permissions 5079 * and limitations under the License. 5080 * 5081 * When distributing Covered Code, include this CDDL HEADER in each 5082 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5083 * If applicable, add the following below this CDDL HEADER, with the 5084 * fields enclosed by brackets "[]" replaced with your own identifying 5085 * information: Portions Copyright [yyyy] [name of copyright owner] 5086 * 5087 * CDDL HEADER END 5088 */ 5089 /* 5090 * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 5091 * Use is subject to license terms. 5092 */ 5093 5094 5095 5096 5097 #pragma ident "%Z%%M% %I% %E% SMI" 5098 5099 /* 5100 * This header is included by <stdint.h> which was introduced by 5101 * the ISO C Standard, ISO/IEC 9899:1999 Programming language - C. 5102 * The header is a subset of the <inttypes.h> header. 5103 */ 5104 5105 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_types.h" 1 5106 /* 5107 * CDDL HEADER START 5108 * 5109 * The contents of this file are subject to the terms of the 5110 * Common Development and Distribution License, Version 1.0 only 5111 * (the "License"). You may not use this file except in compliance 5112 * with the License. 5113 * 5114 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5115 * or http://www.opensolaris.org/os/licensing. 5116 * See the License for the specific language governing permissions 5117 * and limitations under the License. 5118 * 5119 * When distributing Covered Code, include this CDDL HEADER in each 5120 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5121 * If applicable, add the following below this CDDL HEADER, with the 5122 * fields enclosed by brackets "[]" replaced with your own identifying 5123 * information: Portions Copyright [yyyy] [name of copyright owner] 5124 * 5125 * CDDL HEADER END 5126 */ 5127 /* 5128 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5129 * 5130 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5131 * Use is subject to license terms. 5132 */ 5133 # 39 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/stdint.h" 2 5134 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 1 5135 /* 5136 * CDDL HEADER START 5137 * 5138 * The contents of this file are subject to the terms of the 5139 * Common Development and Distribution License, Version 1.0 only 5140 * (the "License"). You may not use this file except in compliance 5141 * with the License. 5142 * 5143 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5144 * or http://www.opensolaris.org/os/licensing. 5145 * See the License for the specific language governing permissions 5146 * and limitations under the License. 5147 * 5148 * When distributing Covered Code, include this CDDL HEADER in each 5149 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5150 * If applicable, add the following below this CDDL HEADER, with the 5151 * fields enclosed by brackets "[]" replaced with your own identifying 5152 * information: Portions Copyright [yyyy] [name of copyright owner] 5153 * 5154 * CDDL HEADER END 5155 */ 5156 /* 5157 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5158 * 5159 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5160 * Use is subject to license terms. 5161 */ 5162 # 40 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/stdint.h" 2 5163 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_const.h" 1 5164 /* 5165 * CDDL HEADER START 5166 * 5167 * The contents of this file are subject to the terms of the 5168 * Common Development and Distribution License, Version 1.0 only 5169 * (the "License"). You may not use this file except in compliance 5170 * with the License. 5171 * 5172 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5173 * or http://www.opensolaris.org/os/licensing. 5174 * See the License for the specific language governing permissions 5175 * and limitations under the License. 5176 * 5177 * When distributing Covered Code, include this CDDL HEADER in each 5178 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5179 * If applicable, add the following below this CDDL HEADER, with the 5180 * fields enclosed by brackets "[]" replaced with your own identifying 5181 * information: Portions Copyright [yyyy] [name of copyright owner] 5182 * 5183 * CDDL HEADER END 5184 */ 5185 /* 5186 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5187 * 5188 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5189 * Use is subject to license terms. 5190 */ 5191 # 41 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/stdint.h" 2 5192 # 47 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 2 5193 5194 5195 5196 5197 5198 5199 /* Inclusion of <stddef.h> breaks namespace, therefore define wchar_t */ 5200 5201 /* 5202 * wchar_t is a built-in type in standard C++ and as such is not 5203 * defined here when using standard C++. However, the GNU compiler 5204 * fixincludes utility nonetheless creates its own version of this 5205 * header for use by gcc and g++. In that version it adds a redundant 5206 * guard for __cplusplus. To avoid the creation of a gcc/g++ specific 5207 * header we need to include the following magic comment: 5208 * 5209 * we must use the C++ compiler's type 5210 * 5211 * The above comment should not be removed or changed until GNU 5212 * gcc/fixinc/inclhack.def is updated to bypass this header. 5213 */ 5214 # 81 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 5215 typedef struct { 5216 intmax_t quot; 5217 intmax_t rem; 5218 } imaxdiv_t; 5219 # 108 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 5220 extern intmax_t imaxabs(intmax_t); 5221 extern imaxdiv_t imaxdiv(intmax_t, intmax_t); 5222 extern intmax_t strtoimax(const char *, char **, 5223 int); 5224 extern uintmax_t strtoumax(const char *, char **, 5225 int); 5226 extern intmax_t wcstoimax(const wchar_t *, 5227 wchar_t **, int); 5228 extern uintmax_t wcstoumax(const wchar_t *, 5229 wchar_t **, int); 5230 # 302 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 2 5231 extern uint32_t arc4random(void); 5232 extern void arc4random_buf(void *, size_t); 5233 extern uint32_t arc4random_uniform(uint32_t); 5234 extern void freezero(void *, size_t); 5235 extern void *recallocarray(void *, size_t, size_t, size_t); 5236 # 40 "../common/pkgerr.c" 2 5237 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/varargs.h" 1 5238 /* 5239 * CDDL HEADER START 5240 * 5241 * The contents of this file are subject to the terms of the 5242 * Common Development and Distribution License, Version 1.0 only 5243 * (the "License"). You may not use this file except in compliance 5244 * with the License. 5245 * 5246 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5247 * or http://www.opensolaris.org/os/licensing. 5248 * See the License for the specific language governing permissions 5249 * and limitations under the License. 5250 * 5251 * When distributing Covered Code, include this CDDL HEADER in each 5252 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5253 * If applicable, add the following below this CDDL HEADER, with the 5254 * fields enclosed by brackets "[]" replaced with your own identifying 5255 * information: Portions Copyright [yyyy] [name of copyright owner] 5256 * 5257 * CDDL HEADER END 5258 */ 5259 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 5260 /* All Rights Reserved */ 5261 5262 /* 5263 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5264 * 5265 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5266 * Use is subject to license terms. 5267 */ 5268 5269 5270 5271 5272 /* 5273 * This header defines the Solaris system definitions for variable 5274 * argument lists. For the most part, it follows the definitions of 5275 * ISO C 1999. It does not follow the namespace rules for ISO C++ 5276 * 1998. 5277 * 5278 * The varargs definitions within this header are defined in terms of 5279 * implementation definitions. These implementation definitions reside 5280 * in <sys/va_impl.h>. This organization enables protected use of 5281 * the implementation by other standard headers without introducing 5282 * names into the users' namespace. 5283 */ 5284 5285 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/va_impl.h" 1 5286 /* 5287 * CDDL HEADER START 5288 * 5289 * The contents of this file are subject to the terms of the 5290 * Common Development and Distribution License, Version 1.0 only 5291 * (the "License"). You may not use this file except in compliance 5292 * with the License. 5293 * 5294 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5295 * or http://www.opensolaris.org/os/licensing. 5296 * See the License for the specific language governing permissions 5297 * and limitations under the License. 5298 * 5299 * When distributing Covered Code, include this CDDL HEADER in each 5300 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5301 * If applicable, add the following below this CDDL HEADER, with the 5302 * fields enclosed by brackets "[]" replaced with your own identifying 5303 * information: Portions Copyright [yyyy] [name of copyright owner] 5304 * 5305 * CDDL HEADER END 5306 */ 5307 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 5308 /* All Rights Reserved */ 5309 5310 5311 /* 5312 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5313 * 5314 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5315 * Use is subject to license terms. 5316 */ 5317 5318 5319 5320 5321 /* 5322 * An application should not include this header directly. Instead it 5323 * should be included only through the inclusion of other Sun headers, 5324 * specifically <stdarg.h> and <varargs.h>. 5325 * 5326 * This header serves two purposes. 5327 * 5328 * First, it provides a common set of definitions that implementations 5329 * of the various standards for variable argument lists may use. These 5330 * various standards are implemented in <varargs.h>, <stdarg.h>, 5331 * <iso/stdarg_iso.h>, <iso/stdarg_c99.h>, and <sys/varargs.h>. 5332 * 5333 * Second, it provides varying implementations of the common definitions, 5334 * depending upon the compiler. 5335 */ 5336 5337 /* 5338 * The common definitions exported by this header or compilers using 5339 * this header are: 5340 * 5341 * the macro __va_start(list, name) starting the list iteration 5342 * the macro __va_arg(list, type) getting the current arg and iterating 5343 * the macro __va_copy(to, from) to bookmark the list iteration 5344 * the macro __va_end(list) to end the iteration 5345 * 5346 * In addition, the following are exported via inclusion of <sys/va_list.h>: 5347 * 5348 * the identifier __builtin_va_alist for the variable list pseudo parameter 5349 * the type __va_alist_type for the variable list pseudo parameter 5350 * the type __va_list defining the type of the variable list iterator 5351 */ 5352 5353 /* 5354 * This header uses feature macros (e.g. __BUILTIN_VA_ARG_INCR and 5355 * __BUILTIN_VA_STRUCT), compiler macros (e.g. __GNUC__), and processor 5356 * macros (e.g. __sparc) to determine the protocol appropriate to the 5357 * current compilation. It is intended that the compilation system 5358 * define the feature, processor, and compiler macros, not the user of 5359 * the system. 5360 */ 5361 5362 /* 5363 * Many compilation systems depend upon the use of special functions 5364 * built into the the compilation system to handle variable argument 5365 * lists. These built-in symbols may include one or more of the 5366 * following: 5367 * 5368 * __builtin_va_alist 5369 * __builtin_va_start 5370 * __builtin_va_arg_incr 5371 * __builtin_stdarg_start 5372 * __builtin_va_end 5373 * __builtin_va_arg 5374 * __builtin_va_copy 5375 */ 5376 5377 /* 5378 * The following are defined in <sys/va_list.h>: 5379 * 5380 * __va_alist_type 5381 * __va_void() 5382 * __va_ptr_base 5383 * ISA definitions via inclusion of <sys/isa_defs.h> 5384 * 5385 * Inclusion of this header also makes visible the symbols in <sys/va_list.h>. 5386 * This header is included in <varargs.h>, <sys/varargs.h> and in <stdarg.h> 5387 * via inclusion of <iso/stdarg_iso.h>. 5388 */ 5389 5390 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/va_list.h" 1 5391 /* 5392 * CDDL HEADER START 5393 * 5394 * The contents of this file are subject to the terms of the 5395 * Common Development and Distribution License, Version 1.0 only 5396 * (the "License"). You may not use this file except in compliance 5397 * with the License. 5398 * 5399 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5400 * or http://www.opensolaris.org/os/licensing. 5401 * See the License for the specific language governing permissions 5402 * and limitations under the License. 5403 * 5404 * When distributing Covered Code, include this CDDL HEADER in each 5405 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5406 * If applicable, add the following below this CDDL HEADER, with the 5407 * fields enclosed by brackets "[]" replaced with your own identifying 5408 * information: Portions Copyright [yyyy] [name of copyright owner] 5409 * 5410 * CDDL HEADER END 5411 */ 5412 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 5413 /* All Rights Reserved */ 5414 5415 5416 /* 5417 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5418 * 5419 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5420 * Use is subject to license terms. 5421 */ 5422 # 106 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/va_impl.h" 2 5423 # 49 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/varargs.h" 2 5424 5425 5426 5427 5428 5429 5430 5431 typedef __va_list va_list; 5432 5433 5434 /* 5435 * This file provides stdarg semantics despite the name of the file. 5436 */ 5437 # 41 "../common/pkgerr.c" 2 5438 # 1 "../common/pkgerr.h" 1 5439 /* 5440 * CDDL HEADER START 5441 * 5442 * The contents of this file are subject to the terms of the 5443 * Common Development and Distribution License (the "License"). 5444 * You may not use this file except in compliance with the License. 5445 * 5446 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5447 * or http://www.opensolaris.org/os/licensing. 5448 * See the License for the specific language governing permissions 5449 * and limitations under the License. 5450 * 5451 * When distributing Covered Code, include this CDDL HEADER in each 5452 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5453 * If applicable, add the following below this CDDL HEADER, with the 5454 * fields enclosed by brackets "[]" replaced with your own identifying 5455 * information: Portions Copyright [yyyy] [name of copyright owner] 5456 * 5457 * CDDL HEADER END 5458 */ 5459 5460 /* 5461 * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 5462 * Use is subject to license terms. 5463 */ 5464 5465 5466 5467 5468 5469 /* 5470 * Module: pkgerr.h 5471 * Description: 5472 * 5473 * Implements error routines to handle the creation, 5474 * management, and destruction of error objects, which 5475 * hold error messages and codes returned from libpkg 5476 * routines that support the objects defined herein. 5477 */ 5478 5479 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1 5480 /* 5481 * CDDL HEADER START 5482 * 5483 * The contents of this file are subject to the terms of the 5484 * Common Development and Distribution License (the "License"). 5485 * You may not use this file except in compliance with the License. 5486 * 5487 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5488 * or http://www.opensolaris.org/os/licensing. 5489 * See the License for the specific language governing permissions 5490 * and limitations under the License. 5491 * 5492 * When distributing Covered Code, include this CDDL HEADER in each 5493 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5494 * If applicable, add the following below this CDDL HEADER, with the 5495 * fields enclosed by brackets "[]" replaced with your own identifying 5496 * information: Portions Copyright [yyyy] [name of copyright owner] 5497 * 5498 * CDDL HEADER END 5499 */ 5500 5501 /* 5502 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5503 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 5504 */ 5505 5506 /* Copyright (c) 1988 AT&T */ 5507 /* All Rights Reserved */ 5508 5509 /* 5510 * User-visible pieces of the ANSI C standard I/O package. 5511 */ 5512 # 42 "../common/pkgerr.h" 2 5513 5514 5515 5516 5517 5518 /* 5519 * Public Definitions 5520 */ 5521 5522 typedef enum { 5523 PKGERR_OK = 0, 5524 PKGERR_EXIST, 5525 PKGERR_READ, 5526 PKGERR_CORRUPT, 5527 PKGERR_PARSE, 5528 PKGERR_BADPASS, 5529 PKGERR_BADALIAS, 5530 PKGERR_INTERNAL, 5531 PKGERR_UNSUP, 5532 PKGERR_NOALIAS, 5533 PKGERR_NOALIASMATCH, 5534 PKGERR_MULTIPLE, 5535 PKGERR_INCOMPLETE, 5536 PKGERR_NOPRIVKEY, 5537 PKGERR_NOPUBKEY, 5538 PKGERR_NOCACERT, 5539 PKGERR_NOMEM, 5540 PKGERR_CHAIN, 5541 PKGERR_LOCKED, 5542 PKGERR_WRITE, 5543 PKGERR_UNLOCK, 5544 PKGERR_TIME, 5545 PKGERR_DUPLICATE, 5546 PKGERR_WEB, 5547 PKGERR_VERIFY 5548 } PKG_ERR_CODE; 5549 5550 /* 5551 * Public Structures 5552 */ 5553 5554 /* external reference to PKG_ERR object (contents private) */ 5555 typedef PKG_ERR_CODE pkg_err_t; 5556 5557 typedef struct _pkg_err_struct PKG_ERR; 5558 5559 /* 5560 * Public Methods 5561 */ 5562 5563 PKG_ERR *pkgerr_new(); 5564 void pkgerr_add(PKG_ERR *, PKG_ERR_CODE, char *, ...); 5565 void pkgerr_clear(PKG_ERR *); 5566 int pkgerr_dump(PKG_ERR *, FILE *); 5567 int pkgerr_num(PKG_ERR *); 5568 char *pkgerr_get(PKG_ERR *, int); 5569 void pkgerr_free(PKG_ERR *); 5570 # 42 "../common/pkgerr.c" 2 5571 5572 /* max length of any formatted error message */ 5573 5574 5575 /* private structures (not visible outside this file) */ 5576 struct _pkg_err_struct { 5577 int nerrs; 5578 char **msgs; 5579 PKG_ERR_CODE *errs; 5580 }; 5581 5582 /* ---------------------- public functions ----------------------- */ 5583 5584 PKG_ERR 5585 *pkgerr_new() 5586 { 5587 PKG_ERR *newerr; 5588 5589 newerr = (PKG_ERR *)malloc(sizeof (PKG_ERR)); 5590 newerr->nerrs = 0; 5591 newerr->msgs = 0; 5592 newerr->errs = 0; 5593 return (newerr); 5594 } 5595 5596 /*PRINTFLIKE3*/ 5597 void 5598 pkgerr_add(PKG_ERR *err, PKG_ERR_CODE code, char *fmt, ...) 5599 { 5600 char errmsgbuf[1024]; 5601 va_list ap; 5602 5603 __builtin_va_start(ap, fmt); 5604 (void) vsnprintf(errmsgbuf, 1024, fmt, ap); 5605 __builtin_va_end(ap); 5606 5607 err->nerrs++; 5608 5609 err->msgs = (char **)realloc(err->msgs, 5610 err->nerrs * sizeof (char *)); 5611 err->errs = (PKG_ERR_CODE *)realloc(err->errs, 5612 err->nerrs * sizeof (PKG_ERR_CODE)); 5613 err->msgs[err->nerrs - 1] = strdup(errmsgbuf); 5614 err->errs[err->nerrs - 1] = code; 5615 } 5616 5617 void 5618 pkgerr_clear(PKG_ERR *err) 5619 { 5620 int i; 5621 5622 for (i = 0; i < err->nerrs; i++) { 5623 free(err->msgs[i]); 5624 } 5625 5626 free(err->msgs); 5627 free(err->errs); 5628 err->msgs = 0; 5629 err->errs = 0; 5630 err->nerrs = 0; 5631 } 5632 5633 int 5634 pkgerr_num(PKG_ERR *err) 5635 { 5636 return (err->nerrs); 5637 } 5638 5639 char 5640 *pkgerr_get(PKG_ERR *err, int pos) 5641 { 5642 if (pos < 0 || pos > (err->nerrs - 1)) { 5643 return (0); 5644 } 5645 5646 return (err->msgs[pos]); 5647 } 5648 5649 void 5650 pkgerr_free(PKG_ERR *err) 5651 { 5652 pkgerr_clear(err); 5653 free(err); 5654 } 5655