1 # 1 "../expr/compile.c" 2 # 1 "<built-in>" 3 # 1 "<command-line>" 4 # 1 "../expr/compile.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, Version 1.0 only 10 * (the "License"). You may not use this file except in compliance 11 * with the License. 12 * 13 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 14 * or http://www.opensolaris.org/os/licensing. 15 * See the License for the specific language governing permissions 16 * and limitations under the License. 17 * 18 * When distributing Covered Code, include this CDDL HEADER in each 19 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 20 * If applicable, add the following below this CDDL HEADER, with the 21 * fields enclosed by brackets "[]" replaced with your own identifying 22 * information: Portions Copyright [yyyy] [name of copyright owner] 23 * 24 * CDDL HEADER END 25 */ 26 /* 27 * Copyright 1995-2003 Sun Microsystems, Inc. All rights reserved. 28 * Use is subject to license terms. 29 */ 30 31 /* 32 * xcompile, xstep, xadvance - simulate compile(3g), step(3g), advance(3g) 33 * using regcomp(3c), regexec(3c) interfaces. This is an XCU4 34 * porting aid. switches out to libgen compile/step if collation 35 * table not present. 36 * 37 * Goal is to work with vi and sed/ed. 38 * Returns expbuf in dhl format (encoding of first two bytes). 39 * Note also that this is profoundly single threaded. You 40 * cannot call compile twice with two separate search strings 41 * because the second call will wipe out the earlier stored string. 42 * This must be fixed, plus a general cleanup should be performed 43 * if this is to be integrated into libc. 44 * 45 */ 46 47 #pragma ident "%Z%%M% %I% %E% SMI" 48 49 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1 50 /* 51 * CDDL HEADER START 52 * 53 * The contents of this file are subject to the terms of the 54 * Common Development and Distribution License (the "License"). 55 * You may not use this file except in compliance with the License. 56 * 57 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 58 * or http://www.opensolaris.org/os/licensing. 59 * See the License for the specific language governing permissions 60 * and limitations under the License. 61 * 62 * When distributing Covered Code, include this CDDL HEADER in each 63 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 64 * If applicable, add the following below this CDDL HEADER, with the 65 * fields enclosed by brackets "[]" replaced with your own identifying 66 * information: Portions Copyright [yyyy] [name of copyright owner] 67 * 68 * CDDL HEADER END 69 */ 70 71 /* 72 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 73 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 74 */ 75 76 /* Copyright (c) 1988 AT&T */ 77 /* All Rights Reserved */ 78 79 /* 80 * User-visible pieces of the ANSI C standard I/O package. 81 */ 82 83 84 85 86 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 87 /* 88 * CDDL HEADER START 89 * 90 * The contents of this file are subject to the terms of the 91 * Common Development and Distribution License (the "License"). 92 * You may not use this file except in compliance with the License. 93 * 94 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95 * or http://www.opensolaris.org/os/licensing. 96 * See the License for the specific language governing permissions 97 * and limitations under the License. 98 * 99 * When distributing Covered Code, include this CDDL HEADER in each 100 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 101 * If applicable, add the following below this CDDL HEADER, with the 102 * fields enclosed by brackets "[]" replaced with your own identifying 103 * information: Portions Copyright [yyyy] [name of copyright owner] 104 * 105 * CDDL HEADER END 106 */ 107 108 /* 109 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 110 * Copyright 2016 Joyent, Inc. 111 * 112 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 113 * Use is subject to license terms. 114 */ 115 116 117 118 119 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/ccompile.h" 1 120 /* 121 * CDDL HEADER START 122 * 123 * The contents of this file are subject to the terms of the 124 * Common Development and Distribution License, Version 1.0 only 125 * (the "License"). You may not use this file except in compliance 126 * with the License. 127 * 128 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 129 * or http://www.opensolaris.org/os/licensing. 130 * See the License for the specific language governing permissions 131 * and limitations under the License. 132 * 133 * When distributing Covered Code, include this CDDL HEADER in each 134 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 135 * If applicable, add the following below this CDDL HEADER, with the 136 * fields enclosed by brackets "[]" replaced with your own identifying 137 * information: Portions Copyright [yyyy] [name of copyright owner] 138 * 139 * CDDL HEADER END 140 */ 141 /* 142 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 143 * Use is subject to license terms. 144 */ 145 /* 146 * Copyright 2015 EveryCity Ltd. All rights reserved. 147 */ 148 149 150 151 152 /* 153 * This file contains definitions designed to enable different compilers 154 * to be used harmoniously on Solaris systems. 155 */ 156 157 158 159 160 161 /* 162 * Allow for version tests for compiler bugs and features. 163 */ 164 # 54 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/ccompile.h" 165 /* 166 * analogous to lint's PRINTFLIKEn 167 */ 168 169 170 171 172 173 /* 174 * Handle the kernel printf routines that can take '%b' too 175 */ 176 # 78 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/ccompile.h" 177 /* 178 * This one's pretty obvious -- the function never returns 179 */ 180 181 182 /* 183 * The function is 'extern inline' and expects GNU C89 behaviour, not C99 184 * behaviour. 185 * 186 * Should only be used on 'extern inline' definitions for GCC. 187 */ 188 189 190 191 192 193 194 /* 195 * The function has control flow such that it may return multiple times (in 196 * the manner of setjmp or vfork) 197 */ 198 199 200 201 202 203 204 /* 205 * This is an appropriate label for functions that do not 206 * modify their arguments, e.g. strlen() 207 */ 208 209 210 /* 211 * This is a stronger form of __pure__. Can be used for functions 212 * that do not modify their arguments and don't depend on global 213 * memory. 214 */ 215 216 217 218 219 /* 220 * This attribute, attached to a variable, means that the variable is meant to 221 * be possibly unused. GCC will not produce a warning for this variable. 222 */ 223 # 138 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/ccompile.h" 224 /* 225 * Shorthand versions for readability 226 */ 227 # 34 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 2 228 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 229 /* 230 * CDDL HEADER START 231 * 232 * The contents of this file are subject to the terms of the 233 * Common Development and Distribution License (the "License"). 234 * You may not use this file except in compliance with the License. 235 * 236 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 237 * or http://www.opensolaris.org/os/licensing. 238 * See the License for the specific language governing permissions 239 * and limitations under the License. 240 * 241 * 242 * When distributing Covered Code, include this CDDL HEADER in each 243 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 244 * If applicable, add the following below this CDDL HEADER, with the 245 * fields enclosed by brackets "[]" replaced with your own identifying 246 * information: Portions Copyright [yyyy] [name of copyright owner] 247 * 248 * CDDL HEADER END 249 */ 250 251 /* 252 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 253 * Use is subject to license terms. 254 * Copyright 2016 Joyent, Inc. 255 */ 256 257 258 259 260 /* 261 * This header file serves to group a set of well known defines and to 262 * set these for each instruction set architecture. These defines may 263 * be divided into two groups; characteristics of the processor and 264 * implementation choices for Solaris on a processor. 265 * 266 * Processor Characteristics: 267 * 268 * _LITTLE_ENDIAN / _BIG_ENDIAN: 269 * The natural byte order of the processor. A pointer to an int points 270 * to the least/most significant byte of that int. 271 * 272 * _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD: 273 * The processor specific direction of stack growth. A push onto the 274 * stack increases/decreases the stack pointer, so it stores data at 275 * successively higher/lower addresses. (Stackless machines ignored 276 * without regrets). 277 * 278 * _LONG_LONG_HTOL / _LONG_LONG_LTOH: 279 * A pointer to a long long points to the most/least significant long 280 * within that long long. 281 * 282 * _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH: 283 * The C compiler assigns bit fields from the high/low to the low/high end 284 * of an int (most to least significant vs. least to most significant). 285 * 286 * _IEEE_754: 287 * The processor (or supported implementations of the processor) 288 * supports the ieee-754 floating point standard. No other floating 289 * point standards are supported (or significant). Any other supported 290 * floating point formats are expected to be cased on the ISA processor 291 * symbol. 292 * 293 * _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED: 294 * The C Compiler implements objects of type `char' as `unsigned' or 295 * `signed' respectively. This is really an implementation choice of 296 * the compiler writer, but it is specified in the ABI and tends to 297 * be uniform across compilers for an instruction set architecture. 298 * Hence, it has the properties of a processor characteristic. 299 * 300 * _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT / 301 * _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT / 302 * _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT: 303 * The ABI defines alignment requirements of each of the primitive 304 * object types. Some, if not all, may be hardware requirements as 305 * well. The values are expressed in "byte-alignment" units. 306 * 307 * _MAX_ALIGNMENT: 308 * The most stringent alignment requirement as specified by the ABI. 309 * Equal to the maximum of all the above _XXX_ALIGNMENT values. 310 * 311 * _MAX_ALIGNMENT_TYPE: 312 * The name of the C type that has the value descried in _MAX_ALIGNMENT. 313 * 314 * _ALIGNMENT_REQUIRED: 315 * True or false (1 or 0) whether or not the hardware requires the ABI 316 * alignment. 317 * 318 * _LONG_LONG_ALIGNMENT_32 319 * The 32-bit ABI supported by a 64-bit kernel may have different 320 * alignment requirements for primitive object types. The value of this 321 * identifier is expressed in "byte-alignment" units. 322 * 323 * _HAVE_CPUID_INSN 324 * This indicates that the architecture supports the 'cpuid' 325 * instruction as defined by Intel. (Intel allows other vendors 326 * to extend the instruction for their own purposes.) 327 * 328 * 329 * Implementation Choices: 330 * 331 * _ILP32 / _LP64: 332 * This specifies the compiler data type implementation as specified in 333 * the relevant ABI. The choice between these is strongly influenced 334 * by the underlying hardware, but is not absolutely tied to it. 335 * Currently only two data type models are supported: 336 * 337 * _ILP32: 338 * Int/Long/Pointer are 32 bits. This is the historical UNIX 339 * and Solaris implementation. Due to its historical standing, 340 * this is the default case. 341 * 342 * _LP64: 343 * Long/Pointer are 64 bits, Int is 32 bits. This is the chosen 344 * implementation for 64-bit ABIs such as SPARC V9. 345 * 346 * _I32LPx: 347 * A compilation environment where 'int' is 32-bit, and 348 * longs and pointers are simply the same size. 349 * 350 * In all cases, Char is 8 bits and Short is 16 bits. 351 * 352 * _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16: 353 * This specifies the form of the disk VTOC (or label): 354 * 355 * _SUNOS_VTOC_8: 356 * This is a VTOC form which is upwardly compatible with the 357 * SunOS 4.x disk label and allows 8 partitions per disk. 358 * 359 * _SUNOS_VTOC_16: 360 * In this format the incore vtoc image matches the ondisk 361 * version. It allows 16 slices per disk, and is not 362 * compatible with the SunOS 4.x disk label. 363 * 364 * Note that these are not the only two VTOC forms possible and 365 * additional forms may be added. One possible form would be the 366 * SVr4 VTOC form. The symbol for that is reserved now, although 367 * it is not implemented. 368 * 369 * _SVR4_VTOC_16: 370 * This VTOC form is compatible with the System V Release 4 371 * VTOC (as implemented on the SVr4 Intel and 3b ports) with 372 * 16 partitions per disk. 373 * 374 * 375 * _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR 376 * This describes the type of addresses used by system DMA: 377 * 378 * _DMA_USES_PHYSADDR: 379 * This type of DMA, used in the x86 implementation, 380 * requires physical addresses for DMA buffers. The 24-bit 381 * addresses used by some legacy boards is the source of the 382 * "low-memory" (<16MB) requirement for some devices using DMA. 383 * 384 * _DMA_USES_VIRTADDR: 385 * This method of DMA allows the use of virtual addresses for 386 * DMA transfers. 387 * 388 * _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT 389 * This indicates the presence/absence of an fdisk table. 390 * 391 * _FIRMWARE_NEEDS_FDISK 392 * The fdisk table is required by system firmware. If present, 393 * it allows a disk to be subdivided into multiple fdisk 394 * partitions, each of which is equivalent to a separate, 395 * virtual disk. This enables the co-existence of multiple 396 * operating systems on a shared hard disk. 397 * 398 * _NO_FDISK_PRESENT 399 * If the fdisk table is absent, it is assumed that the entire 400 * media is allocated for a single operating system. 401 * 402 * _HAVE_TEM_FIRMWARE 403 * Defined if this architecture has the (fallback) option of 404 * using prom_* calls for doing I/O if a suitable kernel driver 405 * is not available to do it. 406 * 407 * _DONT_USE_1275_GENERIC_NAMES 408 * Controls whether or not device tree node names should 409 * comply with the IEEE 1275 "Generic Names" Recommended 410 * Practice. With _DONT_USE_GENERIC_NAMES, device-specific 411 * names identifying the particular device will be used. 412 * 413 * __i386_COMPAT 414 * This indicates whether the i386 ABI is supported as a *non-native* 415 * mode for the platform. When this symbol is defined: 416 * - 32-bit xstat-style system calls are enabled 417 * - 32-bit xmknod-style system calls are enabled 418 * - 32-bit system calls use i386 sizes -and- alignments 419 * 420 * Note that this is NOT defined for the i386 native environment! 421 * 422 * __x86 423 * This is ONLY a synonym for defined(__i386) || defined(__amd64) 424 * which is useful only insofar as these two architectures share 425 * common attributes. Analogous to __sparc. 426 * 427 * _PSM_MODULES 428 * This indicates whether or not the implementation uses PSM 429 * modules for processor support, reading /etc/mach from inside 430 * the kernel to extract a list. 431 * 432 * _RTC_CONFIG 433 * This indicates whether or not the implementation uses /etc/rtc_config 434 * to configure the real-time clock in the kernel. 435 * 436 * _UNIX_KRTLD 437 * This indicates that the implementation uses a dynamically 438 * linked unix + krtld to form the core kernel image at boot 439 * time, or (in the absence of this symbol) a prelinked kernel image. 440 * 441 * _OBP 442 * This indicates the firmware interface is OBP. 443 * 444 * _SOFT_HOSTID 445 * This indicates that the implementation obtains the hostid 446 * from the file /etc/hostid, rather than from hardware. 447 */ 448 449 450 451 452 453 /* 454 * The following set of definitions characterize Solaris on AMD's 455 * 64-bit systems. 456 */ 457 # 305 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 458 /* 459 * Define the appropriate "processor characteristics" 460 */ 461 # 333 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 462 /* 463 * Define the appropriate "implementation choices". 464 */ 465 # 351 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 466 /* 467 * The following set of definitions characterize the Solaris on SPARC systems. 468 * 469 * The symbol __sparc indicates any of the SPARC family of processor 470 * architectures. This includes SPARC V7, SPARC V8 and SPARC V9. 471 * 472 * The symbol __sparcv8 indicates the 32-bit SPARC V8 architecture as defined 473 * by Version 8 of the SPARC Architecture Manual. (SPARC V7 is close enough 474 * to SPARC V8 for the former to be subsumed into the latter definition.) 475 * 476 * The symbol __sparcv9 indicates the 64-bit SPARC V9 architecture as defined 477 * by Version 9 of the SPARC Architecture Manual. 478 * 479 * The symbols __sparcv8 and __sparcv9 are mutually exclusive, and are only 480 * relevant when the symbol __sparc is defined. 481 */ 482 /* 483 * XXX Due to the existence of 5110166, "defined(__sparcv9)" needs to be added 484 * to support backwards builds. This workaround should be removed in s10_71. 485 */ 486 # 35 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 2 487 488 489 490 491 492 /* 493 * Values of _POSIX_C_SOURCE 494 * 495 * undefined not a POSIX compilation 496 * 1 POSIX.1-1990 compilation 497 * 2 POSIX.2-1992 compilation 498 * 199309L POSIX.1b-1993 compilation (Real Time) 499 * 199506L POSIX.1c-1995 compilation (POSIX Threads) 500 * 200112L POSIX.1-2001 compilation (Austin Group Revision) 501 * 200809L POSIX.1-2008 compilation 502 */ 503 504 505 506 507 /* 508 * The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS, 509 * and _STDC_C99 are Sun implementation specific macros created in order to 510 * compress common standards specified feature test macros for easier reading. 511 * These macros should not be used by the application developer as 512 * unexpected results may occur. Instead, the user should reference 513 * standards(5) for correct usage of the standards feature test macros. 514 * 515 * __XOPEN_OR_POSIX Used in cases where a symbol is defined by both 516 * X/Open or POSIX or in the negative, when neither 517 * X/Open or POSIX defines a symbol. 518 * 519 * _STRICT_STDC __STDC__ is specified by the C Standards and defined 520 * by the compiler. For Sun compilers the value of 521 * __STDC__ is either 1, 0, or not defined based on the 522 * compilation mode (see cc(1)). When the value of 523 * __STDC__ is 1 and in the absence of any other feature 524 * test macros, the namespace available to the application 525 * is limited to only those symbols defined by the C 526 * Standard. _STRICT_STDC provides a more readable means 527 * of identifying symbols defined by the standard, or in 528 * the negative, symbols that are extensions to the C 529 * Standard. See additional comments for GNU C differences. 530 * 531 * _STDC_C99 __STDC_VERSION__ is specified by the C standards and 532 * defined by the compiler and indicates the version of 533 * the C standard. A value of 199901L indicates a 534 * compiler that complies with ISO/IEC 9899:1999, other- 535 * wise known as the C99 standard. 536 * 537 * _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__ 538 * is 201112L indicating a compiler that compiles with 539 * ISO/IEXC 9899:2011, otherwise known as the C11 standard. 540 * 541 * _STRICT_SYMBOLS Used in cases where symbol visibility is restricted 542 * by the standards, and the user has not explicitly 543 * relaxed the strictness via __EXTENSIONS__. 544 */ 545 546 547 548 549 550 /* 551 * ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC 552 * 99899:2011 specify the following predefined macro name: 553 * 554 * __STDC__ The integer constant 1, intended to indicate a conforming 555 * implementation. 556 * 557 * Furthermore, a strictly conforming program shall use only those features 558 * of the language and library specified in these standards. A conforming 559 * implementation shall accept any strictly conforming program. 560 * 561 * Based on these requirements, Sun's C compiler defines __STDC__ to 1 for 562 * strictly conforming environments and __STDC__ to 0 for environments that 563 * use ANSI C semantics but allow extensions to the C standard. For non-ANSI 564 * C semantics, Sun's C compiler does not define __STDC__. 565 * 566 * The GNU C project interpretation is that __STDC__ should always be defined 567 * to 1 for compilation modes that accept ANSI C syntax regardless of whether 568 * or not extensions to the C standard are used. Violations of conforming 569 * behavior are conditionally flagged as warnings via the use of the 570 * -pedantic option. In addition to defining __STDC__ to 1, the GNU C 571 * compiler also defines __STRICT_ANSI__ as a means of specifying strictly 572 * conforming environments using the -ansi or -std=<standard> options. 573 * 574 * In the absence of any other compiler options, Sun and GNU set the value 575 * of __STDC__ as follows when using the following options: 576 * 577 * Value of __STDC__ __STRICT_ANSI__ 578 * 579 * cc -Xa (default) 0 undefined 580 * cc -Xt (transitional) 0 undefined 581 * cc -Xc (strictly conforming) 1 undefined 582 * cc -Xs (K&R C) undefined undefined 583 * 584 * gcc (default) 1 undefined 585 * gcc -ansi, -std={c89, c99,...) 1 defined 586 * gcc -traditional (K&R) undefined undefined 587 * 588 * The default compilation modes for Sun C compilers versus GNU C compilers 589 * results in a differing value for __STDC__ which results in a more 590 * restricted namespace when using Sun compilers. To allow both GNU and Sun 591 * interpretations to peacefully co-exist, we use the following Sun 592 * implementation _STRICT_STDC_ macro: 593 */ 594 # 150 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 595 /* 596 * Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011 597 */ 598 # 162 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 599 /* 600 * Use strict symbol visibility. 601 */ 602 603 604 605 606 607 /* 608 * Large file interfaces: 609 * 610 * _LARGEFILE_SOURCE 611 * 1 large file-related additions to POSIX 612 * interfaces requested (fseeko, etc.) 613 * _LARGEFILE64_SOURCE 614 * 1 transitional large-file-related interfaces 615 * requested (seek64, stat64, etc.) 616 * 617 * The corresponding announcement macros are respectively: 618 * _LFS_LARGEFILE 619 * _LFS64_LARGEFILE 620 * (These are set in <unistd.h>.) 621 * 622 * Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as 623 * well. 624 * 625 * The large file interfaces are made visible regardless of the initial values 626 * of the feature test macros under certain circumstances: 627 * - If no explicit standards-conforming environment is requested (neither 628 * of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of 629 * __STDC__ does not imply standards conformance). 630 * - Extended system interfaces are explicitly requested (__EXTENSIONS__ 631 * is defined). 632 * - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is 633 * defined). (Note that this dependency is an artifact of the current 634 * kernel implementation and may change in future releases.) 635 */ 636 # 210 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 637 /* 638 * Large file compilation environment control: 639 * 640 * The setting of _FILE_OFFSET_BITS controls the size of various file-related 641 * types and governs the mapping between file-related source function symbol 642 * names and the corresponding binary entry points. 643 * 644 * In the 32-bit environment, the default value is 32; if not set, set it to 645 * the default here, to simplify tests in other headers. 646 * 647 * In the 64-bit compilation environment, the only value allowed is 64. 648 */ 649 # 238 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 650 /* 651 * Use of _XOPEN_SOURCE 652 * 653 * The following X/Open specifications are supported: 654 * 655 * X/Open Portability Guide, Issue 3 (XPG3) 656 * X/Open CAE Specification, Issue 4 (XPG4) 657 * X/Open CAE Specification, Issue 4, Version 2 (XPG4v2) 658 * X/Open CAE Specification, Issue 5 (XPG5) 659 * Open Group Technical Standard, Issue 6 (XPG6), also referred to as 660 * IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002. 661 * Open Group Technical Standard, Issue 7 (XPG7), also referred to as 662 * IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009. 663 * 664 * XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1). 665 * XPG5 is also referred to as UNIX 98 or the Single Unix Specification, 666 * Version 2 (SUSv2) 667 * XPG6 is the result of a merge of the X/Open and POSIX specifications 668 * and as such is also referred to as IEEE Std. 1003.1-2001 in 669 * addition to UNIX 03 and SUSv3. 670 * XPG7 is also referred to as UNIX 08 and SUSv4. 671 * 672 * When writing a conforming X/Open application, as per the specification 673 * requirements, the appropriate feature test macros must be defined at 674 * compile time. These are as follows. For more info, see standards(5). 675 * 676 * Feature Test Macro Specification 677 * ------------------------------------------------ ------------- 678 * _XOPEN_SOURCE XPG3 679 * _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 680 * _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 681 * _XOPEN_SOURCE = 500 XPG5 682 * _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6 683 * _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7 684 * 685 * In order to simplify the guards within the headers, the following 686 * implementation private test macros have been created. Applications 687 * must NOT use these private test macros as unexpected results will 688 * occur. 689 * 690 * Note that in general, the use of these private macros is cumulative. 691 * For example, the use of _XPG3 with no other restrictions on the X/Open 692 * namespace will make the symbols visible for XPG3 through XPG6 693 * compilation environments. The use of _XPG4_2 with no other X/Open 694 * namespace restrictions indicates that the symbols were introduced in 695 * XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation 696 * environments, but not for XPG3 or XPG4 compilation environments. 697 * 698 * _XPG3 X/Open Portability Guide, Issue 3 (XPG3) 699 * _XPG4 X/Open CAE Specification, Issue 4 (XPG4) 700 * _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS) 701 * _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2) 702 * _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3) 703 * _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4) 704 */ 705 706 /* X/Open Portability Guide, Issue 3 */ 707 # 341 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 708 /* 709 * _XOPEN_VERSION is defined by the X/Open specifications and is not 710 * normally defined by the application, except in the case of an XPG4 711 * application. On the implementation side, _XOPEN_VERSION defined with 712 * the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined 713 * with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application. 714 * _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98) 715 * application and with a value of 600 indicates an XPG6 (UNIX 03) 716 * application and with a value of 700 indicates an XPG7 (UNIX 08). 717 * The appropriate version is determined by the use of the 718 * feature test macros described earlier. The value of _XOPEN_VERSION 719 * defaults to 3 otherwise indicating support for XPG3 applications. 720 */ 721 # 368 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 722 /* 723 * ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly 724 * conforming environments. ISO 9899:1999 says it does. 725 * 726 * The presence of _LONGLONG_TYPE says "long long exists" which is therefore 727 * defined in all but strictly conforming environments that disallow it. 728 */ 729 # 388 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 730 /* 731 * The following macro defines a value for the ISO C99 restrict 732 * keyword so that _RESTRICT_KYWD resolves to "restrict" if 733 * an ISO C99 compiler is used, "__restrict" for c++ and "" (null string) 734 * if any other compiler is used. This allows for the use of single 735 * prototype declarations regardless of compiler version. 736 */ 737 # 410 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 738 /* 739 * The following macro defines a value for the ISO C11 _Noreturn 740 * keyword so that _NORETURN_KYWD resolves to "_Noreturn" if 741 * an ISO C11 compiler is used and "" (null string) if any other 742 * compiler is used. This allows for the use of single prototype 743 * declarations regardless of compiler version. 744 */ 745 746 747 748 749 750 751 752 /* 753 * The following macro indicates header support for the ANSI C++ 754 * standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882. 755 */ 756 757 758 /* 759 * The following macro indicates header support for the C99 standard, 760 * ISO/IEC 9899:1999, Programming Languages - C. 761 */ 762 763 764 /* 765 * The following macro indicates header support for the C99 standard, 766 * ISO/IEC 9899:2011, Programming Languages - C. 767 */ 768 769 770 /* 771 * The following macro indicates header support for DTrace. The value is an 772 * integer that corresponds to the major version number for DTrace. 773 */ 774 # 38 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 2 775 776 777 778 779 780 /* 781 * Do all of our 'redefine_extname' processing before 782 * declarations of the associated functions are seen. 783 * This is necessary to keep gcc happy. 784 */ 785 786 787 /* large file compilation environment setup */ 788 # 63 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 789 /* In the LP64 compilation environment, all APIs are already large file */ 790 # 82 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 791 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 1 792 /* 793 * CDDL HEADER START 794 * 795 * The contents of this file are subject to the terms of the 796 * Common Development and Distribution License, Version 1.0 only 797 * (the "License"). You may not use this file except in compliance 798 * with the License. 799 * 800 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 801 * or http://www.opensolaris.org/os/licensing. 802 * See the License for the specific language governing permissions 803 * and limitations under the License. 804 * 805 * When distributing Covered Code, include this CDDL HEADER in each 806 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 807 * If applicable, add the following below this CDDL HEADER, with the 808 * fields enclosed by brackets "[]" replaced with your own identifying 809 * information: Portions Copyright [yyyy] [name of copyright owner] 810 * 811 * CDDL HEADER END 812 */ 813 /* 814 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 815 * Copyright 2014 PALO, Richard. 816 * 817 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 818 * Use is subject to license terms. 819 */ 820 821 /* Copyright (c) 1988 AT&T */ 822 /* All Rights Reserved */ 823 824 /* 825 * An application should not include this header directly. Instead it 826 * should be included only through the inclusion of other Sun headers. 827 * 828 * The contents of this header is limited to identifiers specified in the 829 * C Standard. Any new identifiers specified in future amendments to the 830 * C Standard must be placed in this header. If these new identifiers 831 * are required to also be in the C++ Standard "std" namespace, then for 832 * anything other than macro definitions, corresponding "using" directives 833 * must also be added to <stdio.h>. 834 */ 835 836 /* 837 * User-visible pieces of the ANSI C standard I/O package. 838 */ 839 840 841 842 843 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 844 /* 845 * CDDL HEADER START 846 * 847 * The contents of this file are subject to the terms of the 848 * Common Development and Distribution License (the "License"). 849 * You may not use this file except in compliance with the License. 850 * 851 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 852 * or http://www.opensolaris.org/os/licensing. 853 * See the License for the specific language governing permissions 854 * and limitations under the License. 855 * 856 * When distributing Covered Code, include this CDDL HEADER in each 857 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 858 * If applicable, add the following below this CDDL HEADER, with the 859 * fields enclosed by brackets "[]" replaced with your own identifying 860 * information: Portions Copyright [yyyy] [name of copyright owner] 861 * 862 * CDDL HEADER END 863 */ 864 865 /* 866 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 867 * Copyright 2016 Joyent, Inc. 868 * 869 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 870 * Use is subject to license terms. 871 */ 872 # 53 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 2 873 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 874 /* 875 * This file and its contents are supplied under the terms of the 876 * Common Development and Distribution License ("CDDL"), version 1.0. 877 * You may only use this file in accordance with the terms of version 878 * 1.0 of the CDDL. 879 * 880 * A full copy of the text of the CDDL should have accompanied this 881 * source. A copy of the CDDL is also available via the Internet at 882 * http://www.illumos.org/license/CDDL. 883 */ 884 885 /* 886 * Copyright 2014-2016 PALO, Richard. 887 */ 888 # 54 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 2 889 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/va_list.h" 1 890 /* 891 * CDDL HEADER START 892 * 893 * The contents of this file are subject to the terms of the 894 * Common Development and Distribution License, Version 1.0 only 895 * (the "License"). You may not use this file except in compliance 896 * with the License. 897 * 898 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 899 * or http://www.opensolaris.org/os/licensing. 900 * See the License for the specific language governing permissions 901 * and limitations under the License. 902 * 903 * When distributing Covered Code, include this CDDL HEADER in each 904 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 905 * If applicable, add the following below this CDDL HEADER, with the 906 * fields enclosed by brackets "[]" replaced with your own identifying 907 * information: Portions Copyright [yyyy] [name of copyright owner] 908 * 909 * CDDL HEADER END 910 */ 911 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 912 /* All Rights Reserved */ 913 914 915 /* 916 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 917 * 918 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 919 * Use is subject to license terms. 920 */ 921 922 923 924 925 /* 926 * An application should not include this header directly. Instead it 927 * should be included only through the inclusion of other Sun headers. 928 * 929 * The purpose of this header is to provide the type definitions for 930 * the va_list argument used by a number of printf and printf like 931 * functions. The headers that define these various function prototypes 932 * #include this header directly. These include but are not necessarily 933 * limited to <stdio.h>, <stdio_iso.h>, <wchar_iso.h>, <strlog.h> and 934 * <syslog.h>. The type definitions included in this header are for 935 * the benefit of consumers of va_list. 936 * 937 * Any application that accepts variable argument lists must as documented, 938 * include either <varargs.h> or the preferred <stdarg.h>. Doing so will 939 * pull in the appropriate compiler protocols defined in <sys/va_impl.h> 940 * which is in turn is included by <varargs.h> and <stdarg.h>. See comments 941 * in <sys/va_impl.h> for more detailed information regarding implementation 942 * and compiler specific protocols. 943 */ 944 945 /* 946 * The common definitions exported by this header or compilers using 947 * this header are: 948 * 949 * the identifier __builtin_va_alist for the variable list pseudo parameter 950 * the type __va_alist_type for the variable list pseudo parameter 951 * the type __va_list defining the type of the variable list iterator 952 * 953 * The feature macros (e.g. __BUILTIN_VA_STRUCT) and compiler macros 954 * (__GNUC__) and processor macros (e.g. __amd64) are intended to be 955 * defined by the compilation system, not the user of the system. 956 */ 957 958 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 959 /* 960 * CDDL HEADER START 961 * 962 * The contents of this file are subject to the terms of the 963 * Common Development and Distribution License (the "License"). 964 * You may not use this file except in compliance with the License. 965 * 966 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 967 * or http://www.opensolaris.org/os/licensing. 968 * See the License for the specific language governing permissions 969 * and limitations under the License. 970 * 971 * 972 * When distributing Covered Code, include this CDDL HEADER in each 973 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 974 * If applicable, add the following below this CDDL HEADER, with the 975 * fields enclosed by brackets "[]" replaced with your own identifying 976 * information: Portions Copyright [yyyy] [name of copyright owner] 977 * 978 * CDDL HEADER END 979 */ 980 981 /* 982 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 983 * Use is subject to license terms. 984 * Copyright 2016 Joyent, Inc. 985 */ 986 # 70 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/va_list.h" 2 987 # 108 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/va_list.h" 988 typedef __builtin_va_list __gnuc_va_list; 989 /* 990 * XX64 This seems unnecessary .. but is needed because vcmn_err is 991 * defined with __va_list instead of plain old va_list. 992 * Perhaps that should be fixed! 993 */ 994 typedef __builtin_va_list __va_list; 995 # 55 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 2 996 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio_tag.h" 1 997 /* 998 * CDDL HEADER START 999 * 1000 * The contents of this file are subject to the terms of the 1001 * Common Development and Distribution License, Version 1.0 only 1002 * (the "License"). You may not use this file except in compliance 1003 * with the License. 1004 * 1005 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1006 * or http://www.opensolaris.org/os/licensing. 1007 * See the License for the specific language governing permissions 1008 * and limitations under the License. 1009 * 1010 * When distributing Covered Code, include this CDDL HEADER in each 1011 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1012 * If applicable, add the following below this CDDL HEADER, with the 1013 * fields enclosed by brackets "[]" replaced with your own identifying 1014 * information: Portions Copyright [yyyy] [name of copyright owner] 1015 * 1016 * CDDL HEADER END 1017 */ 1018 /* 1019 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 1020 * Use is subject to license terms. 1021 */ 1022 1023 1024 1025 1026 #pragma ident "%Z%%M% %I% %E% SMI" 1027 # 42 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio_tag.h" 1028 typedef struct __FILE __FILE; 1029 # 56 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 2 1030 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio_impl.h" 1 1031 /* 1032 * CDDL HEADER START 1033 * 1034 * The contents of this file are subject to the terms of the 1035 * Common Development and Distribution License (the "License"). 1036 * You may not use this file except in compliance with the License. 1037 * 1038 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1039 * or http://www.opensolaris.org/os/licensing. 1040 * See the License for the specific language governing permissions 1041 * and limitations under the License. 1042 * 1043 * When distributing Covered Code, include this CDDL HEADER in each 1044 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1045 * If applicable, add the following below this CDDL HEADER, with the 1046 * fields enclosed by brackets "[]" replaced with your own identifying 1047 * information: Portions Copyright [yyyy] [name of copyright owner] 1048 * 1049 * CDDL HEADER END 1050 */ 1051 1052 /* 1053 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 1054 * Use is subject to license terms. 1055 */ 1056 1057 1058 1059 1060 #pragma ident "%Z%%M% %I% %E% SMI" 1061 1062 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 1063 /* 1064 * CDDL HEADER START 1065 * 1066 * The contents of this file are subject to the terms of the 1067 * Common Development and Distribution License (the "License"). 1068 * You may not use this file except in compliance with the License. 1069 * 1070 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1071 * or http://www.opensolaris.org/os/licensing. 1072 * See the License for the specific language governing permissions 1073 * and limitations under the License. 1074 * 1075 * 1076 * When distributing Covered Code, include this CDDL HEADER in each 1077 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1078 * If applicable, add the following below this CDDL HEADER, with the 1079 * fields enclosed by brackets "[]" replaced with your own identifying 1080 * information: Portions Copyright [yyyy] [name of copyright owner] 1081 * 1082 * CDDL HEADER END 1083 */ 1084 1085 /* 1086 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 1087 * Use is subject to license terms. 1088 * Copyright 2016 Joyent, Inc. 1089 */ 1090 # 33 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio_impl.h" 2 1091 # 50 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio_impl.h" 1092 struct __FILE /* needs to be binary-compatible with old versions */ 1093 { 1094 1095 1096 1097 1098 int _cnt; /* number of available characters in buffer */ 1099 unsigned char *_ptr; /* next character from/to here in buffer */ 1100 1101 unsigned char *_base; /* the buffer */ 1102 unsigned char _flag; /* the state of the stream */ 1103 unsigned char _magic; /* Old home of the file descriptor */ 1104 /* Only fileno(3C) can retrieve the value now */ 1105 unsigned __orientation:2; /* the orientation of the stream */ 1106 unsigned __ionolock:1; /* turn off implicit locking */ 1107 unsigned __seekable:1; /* is file seekable? */ 1108 unsigned __extendedfd:1; /* enable extended FILE */ 1109 unsigned __xf_nocheck:1; /* no extended FILE runtime check */ 1110 unsigned __filler:10; 1111 }; 1112 # 57 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 2 1113 1114 /* 1115 * If feature test macros are set that enable interfaces that use types 1116 * defined in <sys/types.h>, get those types by doing the include. 1117 * 1118 * Note that in asking for the interfaces associated with this feature test 1119 * macro one also asks for definitions of the POSIX types. 1120 */ 1121 1122 1123 1124 1125 1126 1127 /* 1128 * The following typedefs are adopted from ones in <sys/types.h> (with leading 1129 * underscores added to avoid polluting the ANSI C name space). See the 1130 * commentary there for further explanation. 1131 */ 1132 1133 typedef long long __longlong_t; 1134 # 93 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 1135 typedef __FILE FILE; 1136 1137 1138 1139 1140 1141 1142 1143 typedef unsigned int size_t; /* (historical version) */ 1144 1145 1146 1147 1148 typedef long fpos_t; 1149 # 117 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 1150 /* 1151 * The value of _NFILE is defined in the Processor Specific ABI. The value 1152 * is chosen for historical reasons rather than for truly processor related 1153 * attribute. Note that the SPARC Processor Specific ABI uses the common 1154 * UNIX historical value of 20 so it is allowed to fall through. 1155 */ 1156 # 156 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 1157 extern __FILE __iob[60]; 1158 # 191 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_iso.h" 1159 extern int remove(const char *); 1160 extern int rename(const char *, const char *); 1161 extern FILE *tmpfile(void); 1162 extern char *tmpnam(char *); 1163 extern int fclose(FILE *); 1164 extern int fflush(FILE *); 1165 extern FILE *fopen(const char *, const char *); 1166 extern FILE *freopen(const char *, 1167 const char *, FILE *); 1168 extern void setbuf(FILE *, char *); 1169 extern int setvbuf(FILE *, char *, int, 1170 size_t); 1171 /* PRINTFLIKE2 */ 1172 extern int fprintf(FILE *, const char *, ...); 1173 /* SCANFLIKE2 */ 1174 extern int fscanf(FILE *, const char *, ...); 1175 /* PRINTFLIKE1 */ 1176 extern int printf(const char *, ...); 1177 /* SCANFLIKE1 */ 1178 extern int scanf(const char *, ...); 1179 /* PRINTFLIKE2 */ 1180 extern int sprintf(char *, const char *, ...); 1181 /* SCANFLIKE2 */ 1182 extern int sscanf(const char *, 1183 const char *, ...); 1184 extern int vfprintf(FILE *, const char *, 1185 __va_list); 1186 extern int vprintf(const char *, __va_list); 1187 extern int vsprintf(char *, const char *, 1188 __va_list); 1189 extern int fgetc(FILE *); 1190 extern char *fgets(char *, int, FILE *); 1191 extern int fputc(int, FILE *); 1192 extern int fputs(const char *, FILE *); 1193 1194 1195 extern int getc(FILE *); 1196 extern int putc(int, FILE *); 1197 1198 1199 1200 extern int getchar(void); 1201 extern int putchar(int); 1202 1203 1204 /* 1205 * ISO/IEC C11 removed gets from the standard library. Therefore if a strict C11 1206 * environment has been requested, we remove it. 1207 */ 1208 1209 extern char *gets(char *); 1210 1211 extern int puts(const char *); 1212 extern int ungetc(int, FILE *); 1213 extern size_t fread(void *, size_t, size_t, 1214 FILE *); 1215 extern size_t fwrite(const void *, size_t, size_t, 1216 FILE *); 1217 1218 extern int fgetpos(FILE *, fpos_t *); 1219 extern int fsetpos(FILE *, const fpos_t *); 1220 1221 extern int fseek(FILE *, long, int); 1222 extern long ftell(FILE *); 1223 extern void rewind(FILE *); 1224 1225 1226 extern void clearerr(FILE *); 1227 extern int feof(FILE *); 1228 extern int ferror(FILE *); 1229 1230 extern void perror(const char *); 1231 1232 1233 extern int __filbuf(FILE *); 1234 extern int __flsbuf(int, FILE *); 1235 # 83 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 2 1236 1237 /* 1238 * If feature test macros are set that enable interfaces that use types 1239 * defined in <sys/types.h>, get those types by doing the include. 1240 * 1241 * Note that in asking for the interfaces associated with this feature test 1242 * macro one also asks for definitions of the POSIX types. 1243 */ 1244 1245 /* 1246 * Allow global visibility for symbols defined in 1247 * C++ "std" namespace in <iso/stdio_iso.h>. 1248 */ 1249 # 147 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1250 /* 1251 * This header needs to be included here because it relies on the global 1252 * visibility of FILE and size_t in the C++ environment. 1253 */ 1254 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_c99.h" 1 1255 /* 1256 * CDDL HEADER START 1257 * 1258 * The contents of this file are subject to the terms of the 1259 * Common Development and Distribution License, Version 1.0 only 1260 * (the "License"). You may not use this file except in compliance 1261 * with the License. 1262 * 1263 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1264 * or http://www.opensolaris.org/os/licensing. 1265 * See the License for the specific language governing permissions 1266 * and limitations under the License. 1267 * 1268 * When distributing Covered Code, include this CDDL HEADER in each 1269 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1270 * If applicable, add the following below this CDDL HEADER, with the 1271 * fields enclosed by brackets "[]" replaced with your own identifying 1272 * information: Portions Copyright [yyyy] [name of copyright owner] 1273 * 1274 * CDDL HEADER END 1275 */ 1276 /* 1277 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 1278 * 1279 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 1280 * Use is subject to license terms. 1281 */ 1282 1283 /* 1284 * An application should not include this header directly. Instead it 1285 * should be included only through the inclusion of other Sun headers. 1286 * 1287 * The contents of this header is limited to identifiers specified in 1288 * the C99 standard and in conflict with the C++ implementation of the 1289 * standard header. The C++ standard may adopt the C99 standard at 1290 * which point it is expected that the symbols included here will 1291 * become part of the C++ std namespace. 1292 */ 1293 # 47 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_c99.h" 1294 /* 1295 * The following have been added as a result of the ISO/IEC 9899:1999 1296 * standard. For a strictly conforming C application, visibility is 1297 * contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h). 1298 * For non-strictly conforming C applications, there are no restrictions 1299 * on the C namespace. 1300 */ 1301 # 74 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdio_c99.h" 1302 extern int vfscanf(FILE *, const char *, __va_list); 1303 extern int vscanf(const char *, __va_list); 1304 extern int vsscanf(const char *, const char *, 1305 __va_list); 1306 1307 1308 1309 1310 extern int snprintf(char *, size_t, const char *, 1311 ...); 1312 extern int vsnprintf(char *, size_t, const char *, 1313 __va_list); 1314 # 152 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 2 1315 # 161 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1316 typedef long off_t; 1317 1318 1319 1320 1321 1322 1323 1324 typedef __longlong_t off64_t; 1325 # 179 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1326 typedef __longlong_t fpos64_t; 1327 1328 1329 1330 /* 1331 * XPG4 requires that va_list be defined in <stdio.h> "as described in 1332 * <stdarg.h>". ANSI-C and POSIX require that the namespace of <stdio.h> 1333 * not be polluted with this name. 1334 */ 1335 # 198 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1336 /* Marked LEGACY in SUSv2 and removed in SUSv3 */ 1337 # 213 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1338 extern unsigned char _sibuf[], _sobuf[]; 1339 1340 1341 /* large file compilation environment setup */ 1342 # 237 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1343 extern unsigned char *_bufendtab[]; 1344 extern FILE *_lastbuf; 1345 1346 1347 /* In the LP64 compilation environment, all APIs are already large file */ 1348 # 261 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1349 typedef int ssize_t; /* (historical version) */ 1350 1351 1352 1353 1354 1355 1356 extern char *tmpnam_r(char *); 1357 1358 1359 1360 1361 extern int fcloseall(void); 1362 extern void setbuffer(FILE *, char *, size_t); 1363 extern int setlinebuf(FILE *); 1364 /* PRINTFLIKE2 */ 1365 extern int asprintf(char **, const char *, ...); 1366 /* PRINTFLIKE2 */ 1367 extern int vasprintf(char **, const char *, __va_list); 1368 1369 1370 1371 1372 /* || defined(_XPG7) */ 1373 extern ssize_t getdelim(char **, size_t *, 1374 int, FILE *); 1375 extern ssize_t getline(char **, size_t *, 1376 FILE *); 1377 1378 1379 /* 1380 * The following are known to POSIX and XOPEN, but not to ANSI-C. 1381 */ 1382 1383 1384 1385 extern FILE *fdopen(int, const char *); 1386 extern char *ctermid(char *); 1387 extern int fileno(FILE *); 1388 1389 1390 1391 /* 1392 * The following are known to POSIX.1c, but not to ANSI-C or XOPEN. 1393 */ 1394 # 318 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1395 /* 1396 * The following are known to XOPEN, but not to ANSI-C or POSIX. 1397 */ 1398 1399 1400 extern FILE *popen(const char *, const char *); 1401 extern char *tempnam(const char *, const char *); 1402 extern int pclose(FILE *); 1403 1404 extern int getsubopt(char **, char *const *, char **); 1405 1406 1407 /* Marked LEGACY in SUSv2 and removed in SUSv3 */ 1408 1409 extern char *cuserid(char *); 1410 extern int getopt(int, char *const *, const char *); 1411 extern char *optarg; 1412 extern int optind, opterr, optopt; 1413 extern int getw(FILE *); 1414 extern int putw(int, FILE *); 1415 1416 1417 1418 1419 /* 1420 * The following are defined as part of the Large File Summit interfaces. 1421 */ 1422 1423 extern int fseeko(FILE *, off_t, int); 1424 extern off_t ftello(FILE *); 1425 1426 1427 /* 1428 * The following are defined as part of the transitional Large File Summit 1429 * interfaces. 1430 */ 1431 1432 1433 extern FILE *fopen64(const char *, const char *); 1434 extern FILE *freopen64(const char *, const char *, FILE *); 1435 extern FILE *tmpfile64(void); 1436 extern int fgetpos64(FILE *, fpos64_t *); 1437 extern int fsetpos64(FILE *, const fpos64_t *); 1438 extern int fseeko64(FILE *, off64_t, int); 1439 extern off64_t ftello64(FILE *); 1440 1441 1442 /* 1443 * XPG7 symbols 1444 */ 1445 1446 extern FILE *fmemopen(void *, size_t, 1447 const char *); 1448 extern FILE *open_memstream(char **, size_t *); 1449 # 46 "../expr/compile.c" 2 1450 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/widec.h" 1 1451 /* 1452 * CDDL HEADER START 1453 * 1454 * The contents of this file are subject to the terms of the 1455 * Common Development and Distribution License, Version 1.0 only 1456 * (the "License"). You may not use this file except in compliance 1457 * with the License. 1458 * 1459 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1460 * or http://www.opensolaris.org/os/licensing. 1461 * See the License for the specific language governing permissions 1462 * and limitations under the License. 1463 * 1464 * When distributing Covered Code, include this CDDL HEADER in each 1465 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1466 * If applicable, add the following below this CDDL HEADER, with the 1467 * fields enclosed by brackets "[]" replaced with your own identifying 1468 * information: Portions Copyright [yyyy] [name of copyright owner] 1469 * 1470 * CDDL HEADER END 1471 */ 1472 /* 1473 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 1474 * 1475 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 1476 * Use is subject to license terms. 1477 */ 1478 1479 /* Copyright (c) 1986 AT&T */ 1480 /* All Rights Reserved */ 1481 1482 1483 /* This module is created for NLS on Jun.04.86 */ 1484 1485 1486 1487 1488 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 1489 /* 1490 * CDDL HEADER START 1491 * 1492 * The contents of this file are subject to the terms of the 1493 * Common Development and Distribution License (the "License"). 1494 * You may not use this file except in compliance with the License. 1495 * 1496 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1497 * or http://www.opensolaris.org/os/licensing. 1498 * See the License for the specific language governing permissions 1499 * and limitations under the License. 1500 * 1501 * When distributing Covered Code, include this CDDL HEADER in each 1502 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1503 * If applicable, add the following below this CDDL HEADER, with the 1504 * fields enclosed by brackets "[]" replaced with your own identifying 1505 * information: Portions Copyright [yyyy] [name of copyright owner] 1506 * 1507 * CDDL HEADER END 1508 */ 1509 1510 /* 1511 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 1512 * Copyright 2016 Joyent, Inc. 1513 * 1514 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 1515 * Use is subject to license terms. 1516 */ 1517 # 39 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/widec.h" 2 1518 1519 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1 1520 /* 1521 * CDDL HEADER START 1522 * 1523 * The contents of this file are subject to the terms of the 1524 * Common Development and Distribution License (the "License"). 1525 * You may not use this file except in compliance with the License. 1526 * 1527 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1528 * or http://www.opensolaris.org/os/licensing. 1529 * See the License for the specific language governing permissions 1530 * and limitations under the License. 1531 * 1532 * When distributing Covered Code, include this CDDL HEADER in each 1533 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1534 * If applicable, add the following below this CDDL HEADER, with the 1535 * fields enclosed by brackets "[]" replaced with your own identifying 1536 * information: Portions Copyright [yyyy] [name of copyright owner] 1537 * 1538 * CDDL HEADER END 1539 */ 1540 1541 /* 1542 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 1543 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 1544 */ 1545 1546 /* Copyright (c) 1988 AT&T */ 1547 /* All Rights Reserved */ 1548 1549 /* 1550 * User-visible pieces of the ANSI C standard I/O package. 1551 */ 1552 # 41 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/widec.h" 2 1553 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/euc.h" 1 1554 /* 1555 * CDDL HEADER START 1556 * 1557 * The contents of this file are subject to the terms of the 1558 * Common Development and Distribution License, Version 1.0 only 1559 * (the "License"). You may not use this file except in compliance 1560 * with the License. 1561 * 1562 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1563 * or http://www.opensolaris.org/os/licensing. 1564 * See the License for the specific language governing permissions 1565 * and limitations under the License. 1566 * 1567 * When distributing Covered Code, include this CDDL HEADER in each 1568 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1569 * If applicable, add the following below this CDDL HEADER, with the 1570 * fields enclosed by brackets "[]" replaced with your own identifying 1571 * information: Portions Copyright [yyyy] [name of copyright owner] 1572 * 1573 * CDDL HEADER END 1574 */ 1575 /* 1576 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 1577 */ 1578 /* Copyright (c) 1988 AT&T */ 1579 /* All Rights Reserved */ 1580 1581 1582 1583 1584 1585 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/euc.h" 1 1586 /* 1587 * CDDL HEADER START 1588 * 1589 * The contents of this file are subject to the terms of the 1590 * Common Development and Distribution License, Version 1.0 only 1591 * (the "License"). You may not use this file except in compliance 1592 * with the License. 1593 * 1594 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1595 * or http://www.opensolaris.org/os/licensing. 1596 * See the License for the specific language governing permissions 1597 * and limitations under the License. 1598 * 1599 * When distributing Covered Code, include this CDDL HEADER in each 1600 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1601 * If applicable, add the following below this CDDL HEADER, with the 1602 * fields enclosed by brackets "[]" replaced with your own identifying 1603 * information: Portions Copyright [yyyy] [name of copyright owner] 1604 * 1605 * CDDL HEADER END 1606 */ 1607 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 1608 /* All Rights Reserved */ 1609 1610 1611 1612 1613 1614 #pragma ident "%Z%%M% %I% %E% SMI" 1615 # 39 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/euc.h" 1616 /* NOTE: c of following macros must be the 1st byte of characters */ 1617 1618 1619 1620 1621 1622 /* eucwidth_t wp; */ 1623 1624 1625 1626 typedef struct { 1627 short int _eucw1, _eucw2, _eucw3; /* EUC width */ 1628 short int _scrw1, _scrw2, _scrw3; /* screen width */ 1629 short int _pcw; /* WIDE_CHAR width */ 1630 char _multibyte; /* 1=multi-byte, 0=single-byte */ 1631 } eucwidth_t; 1632 # 33 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/euc.h" 2 1633 1634 1635 1636 1637 1638 extern int csetcol(int n); /* Returns # of columns for codeset n. */ 1639 extern int csetlen(int n); /* Returns # of bytes excluding SSx. */ 1640 extern int euclen(const unsigned char *s); 1641 extern int euccol(const unsigned char *s); 1642 extern int eucscol(const unsigned char *str); 1643 1644 /* Returns code set number for the first byte of an EUC char. */ 1645 1646 1647 1648 /* 1649 * Copied from _wchar.h of SVR4 1650 */ 1651 # 42 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/widec.h" 2 1652 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/wchar.h" 1 1653 /* 1654 * CDDL HEADER START 1655 * 1656 * The contents of this file are subject to the terms of the 1657 * Common Development and Distribution License (the "License"). 1658 * You may not use this file except in compliance with the License. 1659 * 1660 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1661 * or http://www.opensolaris.org/os/licensing. 1662 * See the License for the specific language governing permissions 1663 * and limitations under the License. 1664 * 1665 * When distributing Covered Code, include this CDDL HEADER in each 1666 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1667 * If applicable, add the following below this CDDL HEADER, with the 1668 * fields enclosed by brackets "[]" replaced with your own identifying 1669 * information: Portions Copyright [yyyy] [name of copyright owner] 1670 * 1671 * CDDL HEADER END 1672 */ 1673 1674 /* 1675 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 1676 * Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved. 1677 */ 1678 1679 1680 1681 1682 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 1683 /* 1684 * CDDL HEADER START 1685 * 1686 * The contents of this file are subject to the terms of the 1687 * Common Development and Distribution License (the "License"). 1688 * You may not use this file except in compliance with the License. 1689 * 1690 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1691 * or http://www.opensolaris.org/os/licensing. 1692 * See the License for the specific language governing permissions 1693 * and limitations under the License. 1694 * 1695 * When distributing Covered Code, include this CDDL HEADER in each 1696 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1697 * If applicable, add the following below this CDDL HEADER, with the 1698 * fields enclosed by brackets "[]" replaced with your own identifying 1699 * information: Portions Copyright [yyyy] [name of copyright owner] 1700 * 1701 * CDDL HEADER END 1702 */ 1703 1704 /* 1705 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 1706 * Copyright 2016 Joyent, Inc. 1707 * 1708 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 1709 * Use is subject to license terms. 1710 */ 1711 # 31 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/wchar.h" 2 1712 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 1 1713 /* 1714 * CDDL HEADER START 1715 * 1716 * The contents of this file are subject to the terms of the 1717 * Common Development and Distribution License (the "License"). 1718 * You may not use this file except in compliance with the License. 1719 * 1720 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1721 * or http://www.opensolaris.org/os/licensing. 1722 * See the License for the specific language governing permissions 1723 * and limitations under the License. 1724 * 1725 * When distributing Covered Code, include this CDDL HEADER in each 1726 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1727 * If applicable, add the following below this CDDL HEADER, with the 1728 * fields enclosed by brackets "[]" replaced with your own identifying 1729 * information: Portions Copyright [yyyy] [name of copyright owner] 1730 * 1731 * CDDL HEADER END 1732 */ 1733 1734 /* 1735 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 1736 * Copyright 2014 PALO, Richard. 1737 * 1738 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 1739 * Use is subject to license terms. 1740 */ 1741 1742 /* 1743 * An application should not include this header directly. Instead it 1744 * should be included only through the inclusion of other Sun headers. 1745 * 1746 * The contents of this header is limited to identifiers specified in the 1747 * C Standard. Any new identifiers specified in future amendments to the 1748 * C Standard must be placed in this header. If these new identifiers 1749 * are required to also be in the C++ Standard "std" namespace, then for 1750 * anything other than macro definitions, corresponding "using" directives 1751 * must also be added to <wchar.h>. 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 # 46 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2 1787 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 1788 /* 1789 * This file and its contents are supplied under the terms of the 1790 * Common Development and Distribution License ("CDDL"), version 1.0. 1791 * You may only use this file in accordance with the terms of version 1792 * 1.0 of the CDDL. 1793 * 1794 * A full copy of the text of the CDDL should have accompanied this 1795 * source. A copy of the CDDL is also available via the Internet at 1796 * http://www.illumos.org/license/CDDL. 1797 */ 1798 1799 /* 1800 * Copyright 2014-2016 PALO, Richard. 1801 */ 1802 # 47 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2 1803 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio_tag.h" 1 1804 /* 1805 * CDDL HEADER START 1806 * 1807 * The contents of this file are subject to the terms of the 1808 * Common Development and Distribution License, Version 1.0 only 1809 * (the "License"). You may not use this file except in compliance 1810 * with the License. 1811 * 1812 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1813 * or http://www.opensolaris.org/os/licensing. 1814 * See the License for the specific language governing permissions 1815 * and limitations under the License. 1816 * 1817 * When distributing Covered Code, include this CDDL HEADER in each 1818 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1819 * If applicable, add the following below this CDDL HEADER, with the 1820 * fields enclosed by brackets "[]" replaced with your own identifying 1821 * information: Portions Copyright [yyyy] [name of copyright owner] 1822 * 1823 * CDDL HEADER END 1824 */ 1825 /* 1826 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 1827 * Use is subject to license terms. 1828 */ 1829 # 48 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2 1830 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/wchar_impl.h" 1 1831 /* 1832 * CDDL HEADER START 1833 * 1834 * The contents of this file are subject to the terms of the 1835 * Common Development and Distribution License, Version 1.0 only 1836 * (the "License"). You may not use this file except in compliance 1837 * with the License. 1838 * 1839 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1840 * or http://www.opensolaris.org/os/licensing. 1841 * See the License for the specific language governing permissions 1842 * and limitations under the License. 1843 * 1844 * When distributing Covered Code, include this CDDL HEADER in each 1845 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1846 * If applicable, add the following below this CDDL HEADER, with the 1847 * fields enclosed by brackets "[]" replaced with your own identifying 1848 * information: Portions Copyright [yyyy] [name of copyright owner] 1849 * 1850 * CDDL HEADER END 1851 */ 1852 /* 1853 * Copyright (c) 1998 by Sun Microsystems, Inc. 1854 * All rights reserved. 1855 */ 1856 1857 1858 1859 1860 #pragma ident "%Z%%M% %I% %E% SMI" 1861 1862 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 1863 /* 1864 * CDDL HEADER START 1865 * 1866 * The contents of this file are subject to the terms of the 1867 * Common Development and Distribution License (the "License"). 1868 * You may not use this file except in compliance with the License. 1869 * 1870 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1871 * or http://www.opensolaris.org/os/licensing. 1872 * See the License for the specific language governing permissions 1873 * and limitations under the License. 1874 * 1875 * 1876 * When distributing Covered Code, include this CDDL HEADER in each 1877 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1878 * If applicable, add the following below this CDDL HEADER, with the 1879 * fields enclosed by brackets "[]" replaced with your own identifying 1880 * information: Portions Copyright [yyyy] [name of copyright owner] 1881 * 1882 * CDDL HEADER END 1883 */ 1884 1885 /* 1886 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 1887 * Use is subject to license terms. 1888 * Copyright 2016 Joyent, Inc. 1889 */ 1890 # 33 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/wchar_impl.h" 2 1891 1892 1893 1894 1895 1896 1897 1898 typedef struct __mbstate_t { 1899 1900 1901 1902 int __filler[6]; 1903 1904 } __mbstate_t; 1905 # 49 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2 1906 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/time_iso.h" 1 1907 /* 1908 * CDDL HEADER START 1909 * 1910 * The contents of this file are subject to the terms of the 1911 * Common Development and Distribution License, Version 1.0 only 1912 * (the "License"). You may not use this file except in compliance 1913 * with the License. 1914 * 1915 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1916 * or http://www.opensolaris.org/os/licensing. 1917 * See the License for the specific language governing permissions 1918 * and limitations under the License. 1919 * 1920 * When distributing Covered Code, include this CDDL HEADER in each 1921 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1922 * If applicable, add the following below this CDDL HEADER, with the 1923 * fields enclosed by brackets "[]" replaced with your own identifying 1924 * information: Portions Copyright [yyyy] [name of copyright owner] 1925 * 1926 * CDDL HEADER END 1927 */ 1928 /* Copyright (c) 1988 AT&T */ 1929 /* All Rights Reserved */ 1930 1931 /* 1932 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 1933 * Copyright 2014 PALO, Richard. 1934 * 1935 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 1936 * Use is subject to license terms. 1937 */ 1938 1939 /* 1940 * An application should not include this header directly. Instead it 1941 * should be included only through the inclusion of other Sun headers. 1942 * 1943 * The contents of this header is limited to identifiers specified in the 1944 * C Standard. Any new identifiers specified in future amendments to the 1945 * C Standard must be placed in this header. If these new identifiers 1946 * are required to also be in the C++ Standard "std" namespace, then for 1947 * anything other than macro definitions, corresponding "using" directives 1948 * must also be added to <time.h.h>. 1949 */ 1950 1951 1952 1953 1954 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 1955 /* 1956 * CDDL HEADER START 1957 * 1958 * The contents of this file are subject to the terms of the 1959 * Common Development and Distribution License (the "License"). 1960 * You may not use this file except in compliance with the License. 1961 * 1962 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1963 * or http://www.opensolaris.org/os/licensing. 1964 * See the License for the specific language governing permissions 1965 * and limitations under the License. 1966 * 1967 * When distributing Covered Code, include this CDDL HEADER in each 1968 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1969 * If applicable, add the following below this CDDL HEADER, with the 1970 * fields enclosed by brackets "[]" replaced with your own identifying 1971 * information: Portions Copyright [yyyy] [name of copyright owner] 1972 * 1973 * CDDL HEADER END 1974 */ 1975 1976 /* 1977 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 1978 * Copyright 2016 Joyent, Inc. 1979 * 1980 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 1981 * Use is subject to license terms. 1982 */ 1983 # 49 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/time_iso.h" 2 1984 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 1985 /* 1986 * This file and its contents are supplied under the terms of the 1987 * Common Development and Distribution License ("CDDL"), version 1.0. 1988 * You may only use this file in accordance with the terms of version 1989 * 1.0 of the CDDL. 1990 * 1991 * A full copy of the text of the CDDL should have accompanied this 1992 * source. A copy of the CDDL is also available via the Internet at 1993 * http://www.illumos.org/license/CDDL. 1994 */ 1995 1996 /* 1997 * Copyright 2014-2016 PALO, Richard. 1998 */ 1999 # 50 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/time_iso.h" 2 2000 # 70 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/time_iso.h" 2001 typedef long clock_t; 2002 2003 2004 2005 2006 typedef long time_t; 2007 2008 2009 2010 2011 struct tm { /* see ctime(3) */ 2012 int tm_sec; 2013 int tm_min; 2014 int tm_hour; 2015 int tm_mday; 2016 int tm_mon; 2017 int tm_year; 2018 int tm_wday; 2019 int tm_yday; 2020 int tm_isdst; 2021 }; 2022 2023 2024 extern char *asctime(const struct tm *); 2025 extern clock_t clock(void); 2026 extern char *ctime(const time_t *); 2027 extern double difftime(time_t, time_t); 2028 extern struct tm *gmtime(const time_t *); 2029 extern struct tm *localtime(const time_t *); 2030 extern time_t mktime(struct tm *); 2031 extern time_t time(time_t *); 2032 extern size_t strftime(char *, size_t, const char *, 2033 const struct tm *); 2034 # 50 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2 2035 2036 2037 2038 2039 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdio.h" 1 2040 /* 2041 * CDDL HEADER START 2042 * 2043 * The contents of this file are subject to the terms of the 2044 * Common Development and Distribution License (the "License"). 2045 * You may not use this file except in compliance with the License. 2046 * 2047 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2048 * or http://www.opensolaris.org/os/licensing. 2049 * See the License for the specific language governing permissions 2050 * and limitations under the License. 2051 * 2052 * When distributing Covered Code, include this CDDL HEADER in each 2053 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2054 * If applicable, add the following below this CDDL HEADER, with the 2055 * fields enclosed by brackets "[]" replaced with your own identifying 2056 * information: Portions Copyright [yyyy] [name of copyright owner] 2057 * 2058 * CDDL HEADER END 2059 */ 2060 2061 /* 2062 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 2063 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 2064 */ 2065 2066 /* Copyright (c) 1988 AT&T */ 2067 /* All Rights Reserved */ 2068 2069 /* 2070 * User-visible pieces of the ANSI C standard I/O package. 2071 */ 2072 # 55 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2 2073 2074 2075 2076 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/ctype.h" 1 2077 /* 2078 * CDDL HEADER START 2079 * 2080 * The contents of this file are subject to the terms of the 2081 * Common Development and Distribution License, Version 1.0 only 2082 * (the "License"). You may not use this file except in compliance 2083 * with the License. 2084 * 2085 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2086 * or http://www.opensolaris.org/os/licensing. 2087 * See the License for the specific language governing permissions 2088 * and limitations under the License. 2089 * 2090 * When distributing Covered Code, include this CDDL HEADER in each 2091 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2092 * If applicable, add the following below this CDDL HEADER, with the 2093 * fields enclosed by brackets "[]" replaced with your own identifying 2094 * information: Portions Copyright [yyyy] [name of copyright owner] 2095 * 2096 * CDDL HEADER END 2097 */ 2098 /* Copyright (c) 1988 AT&T */ 2099 /* All Rights Reserved */ 2100 2101 2102 /* 2103 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 2104 * 2105 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 2106 * Use is subject to license terms. 2107 */ 2108 2109 2110 2111 2112 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/ctype_iso.h" 1 2113 /* 2114 * CDDL HEADER START 2115 * 2116 * The contents of this file are subject to the terms of the 2117 * Common Development and Distribution License, Version 1.0 only 2118 * (the "License"). You may not use this file except in compliance 2119 * with the License. 2120 * 2121 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2122 * or http://www.opensolaris.org/os/licensing. 2123 * See the License for the specific language governing permissions 2124 * and limitations under the License. 2125 * 2126 * When distributing Covered Code, include this CDDL HEADER in each 2127 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2128 * If applicable, add the following below this CDDL HEADER, with the 2129 * fields enclosed by brackets "[]" replaced with your own identifying 2130 * information: Portions Copyright [yyyy] [name of copyright owner] 2131 * 2132 * CDDL HEADER END 2133 */ 2134 /* Copyright (c) 1988 AT&T */ 2135 /* All Rights Reserved */ 2136 2137 /* 2138 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 2139 * 2140 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 2141 * Use is subject to license terms. 2142 */ 2143 2144 /* 2145 * An application should not include this header directly. Instead it 2146 * should be included only through the inclusion of other Sun headers. 2147 * 2148 * The contents of this header is limited to identifiers specified in the 2149 * C Standard. Any new identifiers specified in future amendments to the 2150 * C Standard must be placed in this header. If these new identifiers 2151 * are required to also be in the C++ Standard "std" namespace, then for 2152 * anything other than macro definitions, corresponding "using" directives 2153 * must also be added to <ctype.h>. 2154 */ 2155 2156 2157 2158 2159 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 2160 /* 2161 * CDDL HEADER START 2162 * 2163 * The contents of this file are subject to the terms of the 2164 * Common Development and Distribution License (the "License"). 2165 * You may not use this file except in compliance with the License. 2166 * 2167 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2168 * or http://www.opensolaris.org/os/licensing. 2169 * See the License for the specific language governing permissions 2170 * and limitations under the License. 2171 * 2172 * When distributing Covered Code, include this CDDL HEADER in each 2173 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2174 * If applicable, add the following below this CDDL HEADER, with the 2175 * fields enclosed by brackets "[]" replaced with your own identifying 2176 * information: Portions Copyright [yyyy] [name of copyright owner] 2177 * 2178 * CDDL HEADER END 2179 */ 2180 2181 /* 2182 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 2183 * Copyright 2016 Joyent, Inc. 2184 * 2185 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2186 * Use is subject to license terms. 2187 */ 2188 # 48 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/ctype_iso.h" 2 2189 # 75 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/ctype_iso.h" 2190 extern unsigned char __ctype[]; 2191 extern unsigned int *__ctype_mask; 2192 extern int *__trans_upper; 2193 extern int *__trans_lower; 2194 2195 2196 2197 2198 2199 /* 2200 * These used to be macros, which while more efficient, precludes operation 2201 * with thread specific locales. The old macros will still work, but new 2202 * code compiles to use functions. This is specifically permitted by the 2203 * various standards. Only _tolower and _toupper were required to be 2204 * delivered in macro form. 2205 */ 2206 extern int isalnum(int); 2207 extern int isalpha(int); 2208 extern int iscntrl(int); 2209 extern int isdigit(int); 2210 extern int isgraph(int); 2211 extern int islower(int); 2212 extern int isprint(int); 2213 extern int ispunct(int); 2214 extern int isspace(int); 2215 extern int isupper(int); 2216 extern int isxdigit(int); 2217 2218 extern int isblank(int); 2219 2220 2221 extern int tolower(int); 2222 extern int toupper(int); 2223 # 37 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/ctype.h" 2 2224 2225 /* 2226 * Allow global visibility for symbols defined in 2227 * C++ "std" namespace in <iso/ctype_iso.h>. 2228 */ 2229 # 70 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/ctype.h" 2230 extern int isascii(int); 2231 extern int toascii(int); 2232 extern int _tolower(int); 2233 extern int _toupper(int); 2234 # 95 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/ctype.h" 2235 typedef struct _locale *locale_t; 2236 2237 2238 extern int isalnum_l(int, locale_t); 2239 extern int isalpha_l(int, locale_t); 2240 extern int isblank_l(int, locale_t); 2241 extern int iscntrl_l(int, locale_t); 2242 extern int isdigit_l(int, locale_t); 2243 extern int isgraph_l(int, locale_t); 2244 extern int islower_l(int, locale_t); 2245 extern int isprint_l(int, locale_t); 2246 extern int ispunct_l(int, locale_t); 2247 extern int isspace_l(int, locale_t); 2248 extern int isupper_l(int, locale_t); 2249 extern int isxdigit_l(int, locale_t); 2250 extern int tolower_l(int, locale_t); 2251 extern int toupper_l(int, locale_t); 2252 # 59 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2 2253 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stddef.h" 1 2254 /* 2255 * CDDL HEADER START 2256 * 2257 * The contents of this file are subject to the terms of the 2258 * Common Development and Distribution License, Version 1.0 only 2259 * (the "License"). You may not use this file except in compliance 2260 * with the License. 2261 * 2262 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2263 * or http://www.opensolaris.org/os/licensing. 2264 * See the License for the specific language governing permissions 2265 * and limitations under the License. 2266 * 2267 * When distributing Covered Code, include this CDDL HEADER in each 2268 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2269 * If applicable, add the following below this CDDL HEADER, with the 2270 * fields enclosed by brackets "[]" replaced with your own identifying 2271 * information: Portions Copyright [yyyy] [name of copyright owner] 2272 * 2273 * CDDL HEADER END 2274 */ 2275 /* Copyright (c) 1988 AT&T */ 2276 /* All Rights Reserved */ 2277 2278 2279 /* 2280 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 2281 * Use is subject to license terms. 2282 */ 2283 2284 2285 2286 2287 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 2288 /* 2289 * CDDL HEADER START 2290 * 2291 * The contents of this file are subject to the terms of the 2292 * Common Development and Distribution License (the "License"). 2293 * You may not use this file except in compliance with the License. 2294 * 2295 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2296 * or http://www.opensolaris.org/os/licensing. 2297 * See the License for the specific language governing permissions 2298 * and limitations under the License. 2299 * 2300 * 2301 * When distributing Covered Code, include this CDDL HEADER in each 2302 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2303 * If applicable, add the following below this CDDL HEADER, with the 2304 * fields enclosed by brackets "[]" replaced with your own identifying 2305 * information: Portions Copyright [yyyy] [name of copyright owner] 2306 * 2307 * CDDL HEADER END 2308 */ 2309 2310 /* 2311 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2312 * Use is subject to license terms. 2313 * Copyright 2016 Joyent, Inc. 2314 */ 2315 # 35 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stddef.h" 2 2316 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stddef_iso.h" 1 2317 /* 2318 * CDDL HEADER START 2319 * 2320 * The contents of this file are subject to the terms of the 2321 * Common Development and Distribution License, Version 1.0 only 2322 * (the "License"). You may not use this file except in compliance 2323 * with the License. 2324 * 2325 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2326 * or http://www.opensolaris.org/os/licensing. 2327 * See the License for the specific language governing permissions 2328 * and limitations under the License. 2329 * 2330 * When distributing Covered Code, include this CDDL HEADER in each 2331 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2332 * If applicable, add the following below this CDDL HEADER, with the 2333 * fields enclosed by brackets "[]" replaced with your own identifying 2334 * information: Portions Copyright [yyyy] [name of copyright owner] 2335 * 2336 * CDDL HEADER END 2337 */ 2338 /* Copyright (c) 1988 AT&T */ 2339 /* All Rights Reserved */ 2340 2341 2342 /* 2343 * Copyright 1999-2003 Sun Microsystems, Inc. All rights reserved. 2344 * Use is subject to license terms. 2345 */ 2346 2347 /* 2348 * Copyright 2014 PALO, Richard. 2349 * Copyright 2016 Joyent, Inc. 2350 */ 2351 2352 /* 2353 * An application should not include this header directly. Instead it 2354 * should be included only through the inclusion of other Sun headers. 2355 * 2356 * The contents of this header is limited to identifiers specified in the 2357 * C Standard. Any new identifiers specified in future amendments to the 2358 * C Standard must be placed in this header. If these new identifiers 2359 * are required to also be in the C++ Standard "std" namespace, then for 2360 * anything other than macro definitions, corresponding "using" directives 2361 * must also be added to <stddef.h.h>. 2362 */ 2363 2364 2365 2366 2367 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 2368 /* 2369 * CDDL HEADER START 2370 * 2371 * The contents of this file are subject to the terms of the 2372 * Common Development and Distribution License (the "License"). 2373 * You may not use this file except in compliance with the License. 2374 * 2375 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2376 * or http://www.opensolaris.org/os/licensing. 2377 * See the License for the specific language governing permissions 2378 * and limitations under the License. 2379 * 2380 * 2381 * When distributing Covered Code, include this CDDL HEADER in each 2382 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2383 * If applicable, add the following below this CDDL HEADER, with the 2384 * fields enclosed by brackets "[]" replaced with your own identifying 2385 * information: Portions Copyright [yyyy] [name of copyright owner] 2386 * 2387 * CDDL HEADER END 2388 */ 2389 2390 /* 2391 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2392 * Use is subject to license terms. 2393 * Copyright 2016 Joyent, Inc. 2394 */ 2395 # 52 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stddef_iso.h" 2 2396 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 2397 /* 2398 * CDDL HEADER START 2399 * 2400 * The contents of this file are subject to the terms of the 2401 * Common Development and Distribution License (the "License"). 2402 * You may not use this file except in compliance with the License. 2403 * 2404 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2405 * or http://www.opensolaris.org/os/licensing. 2406 * See the License for the specific language governing permissions 2407 * and limitations under the License. 2408 * 2409 * When distributing Covered Code, include this CDDL HEADER in each 2410 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2411 * If applicable, add the following below this CDDL HEADER, with the 2412 * fields enclosed by brackets "[]" replaced with your own identifying 2413 * information: Portions Copyright [yyyy] [name of copyright owner] 2414 * 2415 * CDDL HEADER END 2416 */ 2417 2418 /* 2419 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 2420 * Copyright 2016 Joyent, Inc. 2421 * 2422 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2423 * Use is subject to license terms. 2424 */ 2425 # 53 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stddef_iso.h" 2 2426 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 2427 /* 2428 * This file and its contents are supplied under the terms of the 2429 * Common Development and Distribution License ("CDDL"), version 1.0. 2430 * You may only use this file in accordance with the terms of version 2431 * 1.0 of the CDDL. 2432 * 2433 * A full copy of the text of the CDDL should have accompanied this 2434 * source. A copy of the CDDL is also available via the Internet at 2435 * http://www.illumos.org/license/CDDL. 2436 */ 2437 2438 /* 2439 * Copyright 2014-2016 PALO, Richard. 2440 */ 2441 # 54 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stddef_iso.h" 2 2442 # 68 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stddef_iso.h" 2443 typedef int ptrdiff_t; /* (historical version) */ 2444 # 88 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stddef_iso.h" 2445 typedef long max_align_t; 2446 # 36 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stddef.h" 2 2447 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/stddef.h" 1 2448 /* 2449 * This file and its contents are supplied under the terms of the 2450 * Common Development and Distribution License ("CDDL"), version 1.0. 2451 * You may only use this file in accordance with the terms of version 2452 * 1.0 of the CDDL. 2453 * 2454 * A full copy of the text of the CDDL should have accompanied this 2455 * source. A copy of the CDDL is also available via the Internet at 2456 * http://www.illumos.org/license/CDDL. 2457 */ 2458 2459 /* 2460 * Copyright 2017 Toomas Soome <tsoome@me.com> 2461 */ 2462 2463 2464 2465 2466 /* 2467 * Commonly used macros and definitions. 2468 */ 2469 # 41 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/stddef.h" 2470 /* 2471 * We must not expose container_of() to userland, but we want it 2472 * to be available for early boot and for the kernel. 2473 */ 2474 # 37 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stddef.h" 2 2475 2476 /* 2477 * Allow global visibility for symbols defined in 2478 * C++ "std" namespace in <iso/stddef_iso.h>. 2479 */ 2480 # 51 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stddef.h" 2481 /* 2482 * wchar_t is a built-in type in standard C++ and as such is not 2483 * defined here when using standard C++. However, the GNU compiler 2484 * fixincludes utility nonetheless creates its own version of this 2485 * header for use by gcc and g++. In that version it adds a redundant 2486 * guard for __cplusplus. To avoid the creation of a gcc/g++ specific 2487 * header we need to include the following magic comment: 2488 * 2489 * we must use the C++ compiler's type 2490 * 2491 * The above comment should not be removed or changed until GNU 2492 * gcc/fixinc/inclhack.def is updated to bypass this header. 2493 */ 2494 2495 2496 2497 2498 2499 2500 typedef long wchar_t; 2501 # 60 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2 2502 2503 2504 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/va_list.h" 1 2505 /* 2506 * CDDL HEADER START 2507 * 2508 * The contents of this file are subject to the terms of the 2509 * Common Development and Distribution License, Version 1.0 only 2510 * (the "License"). You may not use this file except in compliance 2511 * with the License. 2512 * 2513 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2514 * or http://www.opensolaris.org/os/licensing. 2515 * See the License for the specific language governing permissions 2516 * and limitations under the License. 2517 * 2518 * When distributing Covered Code, include this CDDL HEADER in each 2519 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2520 * If applicable, add the following below this CDDL HEADER, with the 2521 * fields enclosed by brackets "[]" replaced with your own identifying 2522 * information: Portions Copyright [yyyy] [name of copyright owner] 2523 * 2524 * CDDL HEADER END 2525 */ 2526 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2527 /* All Rights Reserved */ 2528 2529 2530 /* 2531 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 2532 * 2533 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 2534 * Use is subject to license terms. 2535 */ 2536 # 63 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2 2537 # 72 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2538 /* 2539 * wchar_t is a built-in type in standard C++ and as such is not 2540 * defined here when using standard C++. However, the GNU compiler 2541 * fixincludes utility nonetheless creates its own version of this 2542 * header for use by gcc and g++. In that version it adds a redundant 2543 * guard for __cplusplus. To avoid the creation of a gcc/g++ specific 2544 * header we need to include the following magic comment: 2545 * 2546 * we must use the C++ compiler's type 2547 * 2548 * The above comment should not be removed or changed until GNU 2549 * gcc/fixinc/inclhack.def is updated to bypass this header. 2550 */ 2551 # 101 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2552 typedef long wint_t; 2553 # 122 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2554 /* not XPG4 and not XPG4v2 */ 2555 # 134 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2556 typedef __mbstate_t mbstate_t; 2557 # 169 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2558 /* not XPG4 and not XPG4v2 */ 2559 2560 2561 2562 # 172 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2563 #pragma redefine_extname fgetwc __fgetwc_xpg5 2564 # 172 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2565 2566 2567 # 173 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2568 #pragma redefine_extname getwc __getwc_xpg5 2569 # 173 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2570 2571 2572 # 174 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2573 #pragma redefine_extname getwchar __getwchar_xpg5 2574 # 174 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2575 2576 2577 # 175 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2578 #pragma redefine_extname fputwc __fputwc_xpg5 2579 # 175 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2580 2581 2582 # 176 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2583 #pragma redefine_extname putwc __putwc_xpg5 2584 # 176 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2585 2586 2587 # 177 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2588 #pragma redefine_extname putwchar __putwchar_xpg5 2589 # 177 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2590 2591 2592 # 178 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2593 #pragma redefine_extname fgetws __fgetws_xpg5 2594 # 178 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2595 2596 2597 # 179 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2598 #pragma redefine_extname fputws __fputws_xpg5 2599 # 179 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2600 2601 2602 # 180 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2603 #pragma redefine_extname ungetwc __ungetwc_xpg5 2604 # 180 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2605 # 205 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2606 extern wint_t fgetwc(__FILE *); 2607 extern wchar_t *fgetws(wchar_t *, int, __FILE *); 2608 extern wint_t fputwc(wint_t, __FILE *); 2609 extern int fputws(const wchar_t *, __FILE *); 2610 extern wint_t ungetwc(wint_t, __FILE *); 2611 extern wint_t getwc(__FILE *); 2612 extern wint_t getwchar(void); 2613 extern wint_t putwc(wint_t, __FILE *); 2614 extern wint_t putwchar(wint_t); 2615 extern double wcstod(const wchar_t *, wchar_t **); 2616 extern long wcstol(const wchar_t *, wchar_t **, 2617 int); 2618 extern unsigned long wcstoul(const wchar_t *, 2619 wchar_t **, int); 2620 extern wchar_t *wcscat(wchar_t *, const wchar_t *); 2621 extern int wcscmp(const wchar_t *, const wchar_t *); 2622 extern int wcscoll(const wchar_t *, const wchar_t *); 2623 extern wchar_t *wcscpy(wchar_t *, const wchar_t *); 2624 extern size_t wcscspn(const wchar_t *, const wchar_t *); 2625 extern size_t wcslen(const wchar_t *); 2626 extern wchar_t *wcsncat(wchar_t *, const wchar_t *, 2627 size_t); 2628 extern int wcsncmp(const wchar_t *, const wchar_t *, size_t); 2629 extern wchar_t *wcsncpy(wchar_t *, const wchar_t *, 2630 size_t); 2631 extern size_t wcsspn(const wchar_t *, const wchar_t *); 2632 extern size_t wcsxfrm(wchar_t *, const wchar_t *, 2633 size_t); 2634 # 253 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2635 extern wchar_t *wcschr(const wchar_t *, wchar_t); 2636 extern wchar_t *wcspbrk(const wchar_t *, const wchar_t *); 2637 extern wchar_t *wcsrchr(const wchar_t *, wchar_t); 2638 # 264 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2639 2640 # 264 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2641 #pragma redefine_extname wcstok __wcstok_xpg5 2642 # 264 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2643 2644 2645 # 265 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2646 #pragma redefine_extname wcsftime __wcsftime_xpg5 2647 # 265 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2648 2649 extern wchar_t *wcstok(wchar_t *, const wchar_t *, 2650 wchar_t **); 2651 extern size_t wcsftime(wchar_t *, size_t, 2652 const wchar_t *, const struct tm *); 2653 # 281 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2654 /* not XPG4 and not XPG4v2 */ 2655 2656 extern wint_t btowc(int); 2657 extern int fwprintf(__FILE *, const wchar_t *, 2658 ...); 2659 extern int fwscanf(__FILE *, const wchar_t *, 2660 ...); 2661 extern int fwide(__FILE *, int); 2662 extern int mbsinit(const mbstate_t *); 2663 extern size_t mbrlen(const char *, size_t, 2664 mbstate_t *); 2665 extern size_t mbrtowc(wchar_t *, const char *, 2666 size_t, mbstate_t *); 2667 extern size_t mbsrtowcs(wchar_t *, const char **, 2668 size_t, mbstate_t *); 2669 extern int swprintf(wchar_t *, size_t, 2670 const wchar_t *, ...); 2671 extern int swscanf(const wchar_t *, 2672 const wchar_t *, ...); 2673 extern int vfwprintf(__FILE *, const wchar_t *, 2674 __va_list); 2675 extern int vwprintf(const wchar_t *, __va_list); 2676 extern int vswprintf(wchar_t *, size_t, 2677 const wchar_t *, __va_list); 2678 extern size_t wcrtomb(char *, wchar_t, 2679 mbstate_t *); 2680 extern size_t wcsrtombs(char *, const wchar_t **, 2681 size_t, mbstate_t *); 2682 2683 extern size_t wcsnrtombs(char *, const wchar_t **, 2684 size_t, size_t, mbstate_t *); 2685 2686 extern int wctob(wint_t); 2687 extern int wmemcmp(const wchar_t *, const wchar_t *, size_t); 2688 extern wchar_t *wmemcpy(wchar_t *, 2689 const wchar_t *, size_t); 2690 extern wchar_t *wmemmove(wchar_t *, const wchar_t *, size_t); 2691 extern wchar_t *wmemset(wchar_t *, wchar_t, size_t); 2692 extern int wprintf(const wchar_t *, ...); 2693 extern int wscanf(const wchar_t *, ...); 2694 # 335 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_iso.h" 2695 extern wchar_t *wcsstr(const wchar_t *, 2696 const wchar_t *); 2697 extern wchar_t *wmemchr(const wchar_t *, wchar_t, size_t); 2698 # 32 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/wchar.h" 2 2699 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_c99.h" 1 2700 /* 2701 * CDDL HEADER START 2702 * 2703 * The contents of this file are subject to the terms of the 2704 * Common Development and Distribution License, Version 1.0 only 2705 * (the "License"). You may not use this file except in compliance 2706 * 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 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 2723 * 2724 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 2725 * Use is subject to license terms. 2726 */ 2727 2728 /* 2729 * An application should not include this header directly. Instead it 2730 * should be included only through the inclusion of other Sun headers. 2731 * 2732 * The contents of this header is limited to identifiers specified in 2733 * the C99 standard and in conflict with the C++ implementation of the 2734 * standard header. The C++ standard may adopt the C99 standard at 2735 * which point it is expected that the symbols included here will 2736 * become part of the C++ std namespace. 2737 */ 2738 # 47 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_c99.h" 2739 /* Introduced in ISO/IEC 9899:1999 standard */ 2740 # 64 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/wchar_c99.h" 2741 extern int vfwscanf(__FILE *, const wchar_t *, 2742 __va_list); 2743 extern int vswscanf(const wchar_t *, 2744 const wchar_t *, __va_list); 2745 extern int vwscanf(const wchar_t *, __va_list); 2746 extern float wcstof(const wchar_t *, 2747 wchar_t **); 2748 2749 extern long double wcstold(const wchar_t *, 2750 wchar_t **); 2751 extern long long wcstoll(const wchar_t *, 2752 wchar_t **, int); 2753 extern unsigned long long wcstoull(const wchar_t *, 2754 wchar_t **, int); 2755 # 33 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/wchar.h" 2 2756 2757 /* 2758 * Allow global visibility for symbols defined in 2759 * C++ "std" namespace in <iso/wchar_iso.h>. 2760 */ 2761 # 110 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/wchar.h" 2762 typedef int wctype_t; 2763 2764 2765 2766 /* 2767 * XPG6 requires that va_list be defined as defined in <stdarg.h>, 2768 * however, inclusion of <stdarg.h> breaks Standard C namespace. 2769 */ 2770 # 127 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/wchar.h" 2771 extern int iswalpha(wint_t); 2772 extern int iswupper(wint_t); 2773 extern int iswlower(wint_t); 2774 extern int iswdigit(wint_t); 2775 extern int iswxdigit(wint_t); 2776 extern int iswalnum(wint_t); 2777 extern int iswspace(wint_t); 2778 extern int iswpunct(wint_t); 2779 extern int iswprint(wint_t); 2780 extern int iswgraph(wint_t); 2781 extern int iswcntrl(wint_t); 2782 extern int iswctype(wint_t, wctype_t); 2783 extern wint_t towlower(wint_t); 2784 extern wint_t towupper(wint_t); 2785 extern wchar_t *wcswcs(const wchar_t *, const wchar_t *); 2786 extern int wcswidth(const wchar_t *, size_t); 2787 extern int wcwidth(wchar_t); 2788 extern wctype_t wctype(const char *); 2789 # 176 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/wchar.h" 2790 extern size_t wcsnlen(const wchar_t *, size_t); 2791 extern wchar_t *wcpcpy(wchar_t *, const wchar_t *); 2792 extern wchar_t *wcpncpy(wchar_t *, const wchar_t *, 2793 size_t); 2794 extern size_t wcsxfrm_l(wchar_t *, const wchar_t *, 2795 size_t, locale_t); 2796 extern int wcscoll_l(const wchar_t *, const wchar_t *, locale_t); 2797 extern wchar_t *wcsdup(const wchar_t *); 2798 extern int wcscasecmp(const wchar_t *, const wchar_t *); 2799 extern int wcscasecmp_l(const wchar_t *, const wchar_t *, locale_t); 2800 extern int wcsncasecmp(const wchar_t *, const wchar_t *, size_t); 2801 extern int wcsncasecmp_l(const wchar_t *, const wchar_t *, size_t, locale_t); 2802 extern size_t mbsnrtowcs(wchar_t *, const char **, 2803 size_t, size_t, mbstate_t *); 2804 2805 extern FILE *open_wmemstream(wchar_t **, size_t *); 2806 # 43 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/widec.h" 2 2807 2808 2809 2810 2811 2812 /* Character based input and output functions */ 2813 extern wchar_t *getws(wchar_t *); 2814 extern int putws(const wchar_t *); 2815 # 59 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/widec.h" 2816 /* wchar_t string operation functions */ 2817 extern wchar_t *strtows(wchar_t *, char *); 2818 extern wchar_t *wscpy(wchar_t *, const wchar_t *); 2819 extern wchar_t *wsncpy(wchar_t *, const wchar_t *, size_t); 2820 extern wchar_t *wscat(wchar_t *, const wchar_t *); 2821 extern wchar_t *wsncat(wchar_t *, const wchar_t *, size_t); 2822 extern wchar_t *wschr(const wchar_t *, wchar_t); 2823 extern wchar_t *wsrchr(const wchar_t *, wchar_t); 2824 extern wchar_t *wspbrk(const wchar_t *, const wchar_t *); 2825 extern wchar_t *wstok(wchar_t *, const wchar_t *); 2826 extern char *wstostr(char *, wchar_t *); 2827 2828 extern int wscmp(const wchar_t *, const wchar_t *); 2829 extern int wsncmp(const wchar_t *, const wchar_t *, size_t); 2830 extern size_t wslen(const wchar_t *); 2831 extern size_t wsspn(const wchar_t *, const wchar_t *); 2832 extern size_t wscspn(const wchar_t *, const wchar_t *); 2833 extern int wscoll(const wchar_t *, const wchar_t *); 2834 extern size_t wsxfrm(wchar_t *, const wchar_t *, size_t); 2835 2836 2837 2838 extern wchar_t *wsdup(const wchar_t *); 2839 extern int wscol(const wchar_t *); 2840 extern double wstod(const wchar_t *, wchar_t **); 2841 extern long wstol(const wchar_t *, wchar_t **, int); 2842 extern int wscasecmp(const wchar_t *, const wchar_t *); 2843 extern int wsncasecmp(const wchar_t *, const wchar_t *, size_t); 2844 extern int wsprintf(wchar_t *, const char *, ...); 2845 2846 extern long long wstoll(const wchar_t *, wchar_t **, int); 2847 2848 2849 2850 2851 /* Returns the code set number for the process code c. */ 2852 2853 2854 2855 2856 2857 /* Aliases... */ 2858 # 111 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/widec.h" 2859 /* 2860 * other macros. 2861 */ 2862 # 47 "../expr/compile.c" 2 2863 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 1 2864 /* 2865 * CDDL HEADER START 2866 * 2867 * The contents of this file are subject to the terms of the 2868 * Common Development and Distribution License (the "License"). 2869 * You may not use this file except in compliance with the License. 2870 * 2871 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2872 * or http://www.opensolaris.org/os/licensing. 2873 * See the License for the specific language governing permissions 2874 * and limitations under the License. 2875 * 2876 * When distributing Covered Code, include this CDDL HEADER in each 2877 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2878 * If applicable, add the following below this CDDL HEADER, with the 2879 * fields enclosed by brackets "[]" replaced with your own identifying 2880 * information: Portions Copyright [yyyy] [name of copyright owner] 2881 * 2882 * CDDL HEADER END 2883 */ 2884 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2885 /* All Rights Reserved */ 2886 2887 2888 /* 2889 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2890 * Use is subject to license terms. 2891 * 2892 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 2893 * Copyright 2016 Joyent, Inc. 2894 */ 2895 2896 2897 2898 2899 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 2900 /* 2901 * CDDL HEADER START 2902 * 2903 * The contents of this file are subject to the terms of the 2904 * Common Development and Distribution License (the "License"). 2905 * You may not use this file except in compliance with the License. 2906 * 2907 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2908 * or http://www.opensolaris.org/os/licensing. 2909 * See the License for the specific language governing permissions 2910 * and limitations under the License. 2911 * 2912 * When distributing Covered Code, include this CDDL HEADER in each 2913 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2914 * If applicable, add the following below this CDDL HEADER, with the 2915 * fields enclosed by brackets "[]" replaced with your own identifying 2916 * information: Portions Copyright [yyyy] [name of copyright owner] 2917 * 2918 * CDDL HEADER END 2919 */ 2920 2921 /* 2922 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 2923 * Copyright 2016 Joyent, Inc. 2924 * 2925 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2926 * Use is subject to license terms. 2927 */ 2928 # 37 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2 2929 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 2930 /* 2931 * CDDL HEADER START 2932 * 2933 * The contents of this file are subject to the terms of the 2934 * Common Development and Distribution License (the "License"). 2935 * You may not use this file except in compliance with the License. 2936 * 2937 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2938 * or http://www.opensolaris.org/os/licensing. 2939 * See the License for the specific language governing permissions 2940 * and limitations under the License. 2941 * 2942 * 2943 * When distributing Covered Code, include this CDDL HEADER in each 2944 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2945 * If applicable, add the following below this CDDL HEADER, with the 2946 * fields enclosed by brackets "[]" replaced with your own identifying 2947 * information: Portions Copyright [yyyy] [name of copyright owner] 2948 * 2949 * CDDL HEADER END 2950 */ 2951 2952 /* 2953 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2954 * Use is subject to license terms. 2955 * Copyright 2016 Joyent, Inc. 2956 */ 2957 # 38 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2 2958 2959 /* 2960 * Machine dependent definitions moved to <sys/machtypes.h>. 2961 */ 2962 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/machtypes.h" 1 2963 /* 2964 * CDDL HEADER START 2965 * 2966 * The contents of this file are subject to the terms of the 2967 * Common Development and Distribution License, Version 1.0 only 2968 * (the "License"). You may not use this file except in compliance 2969 * with the License. 2970 * 2971 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 2972 * or http://www.opensolaris.org/os/licensing. 2973 * See the License for the specific language governing permissions 2974 * and limitations under the License. 2975 * 2976 * When distributing Covered Code, include this CDDL HEADER in each 2977 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 2978 * If applicable, add the following below this CDDL HEADER, with the 2979 * fields enclosed by brackets "[]" replaced with your own identifying 2980 * information: Portions Copyright [yyyy] [name of copyright owner] 2981 * 2982 * CDDL HEADER END 2983 */ 2984 /* 2985 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 2986 * Use is subject to license terms. 2987 */ 2988 2989 2990 2991 2992 #pragma ident "%Z%%M% %I% %E% SMI" 2993 2994 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 2995 /* 2996 * CDDL HEADER START 2997 * 2998 * The contents of this file are subject to the terms of the 2999 * Common Development and Distribution License (the "License"). 3000 * You may not use this file except in compliance with the License. 3001 * 3002 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3003 * or http://www.opensolaris.org/os/licensing. 3004 * See the License for the specific language governing permissions 3005 * and limitations under the License. 3006 * 3007 * When distributing Covered Code, include this CDDL HEADER in each 3008 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3009 * If applicable, add the following below this CDDL HEADER, with the 3010 * fields enclosed by brackets "[]" replaced with your own identifying 3011 * information: Portions Copyright [yyyy] [name of copyright owner] 3012 * 3013 * CDDL HEADER END 3014 */ 3015 3016 /* 3017 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 3018 * Copyright 2016 Joyent, Inc. 3019 * 3020 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3021 * Use is subject to license terms. 3022 */ 3023 # 33 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/machtypes.h" 2 3024 3025 3026 3027 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/ia32/sys/machtypes.h" 1 3028 /* 3029 * CDDL HEADER START 3030 * 3031 * The contents of this file are subject to the terms of the 3032 * Common Development and Distribution License (the "License"). 3033 * You may not use this file except in compliance with the License. 3034 * 3035 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3036 * or http://www.opensolaris.org/os/licensing. 3037 * See the License for the specific language governing permissions 3038 * and limitations under the License. 3039 * 3040 * When distributing Covered Code, include this CDDL HEADER in each 3041 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3042 * If applicable, add the following below this CDDL HEADER, with the 3043 * fields enclosed by brackets "[]" replaced with your own identifying 3044 * information: Portions Copyright [yyyy] [name of copyright owner] 3045 * 3046 * CDDL HEADER END 3047 */ 3048 /* 3049 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 3050 * Use is subject to license terms. 3051 */ 3052 3053 3054 3055 3056 #pragma ident "%Z%%M% %I% %E% SMI" 3057 3058 3059 3060 3061 3062 /* 3063 * Machine dependent types: 3064 * 3065 * intel ia32 Version 3066 */ 3067 # 61 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/ia32/sys/machtypes.h" 3068 typedef struct _label_t { long val[6]; } label_t; 3069 3070 3071 3072 typedef unsigned char lock_t; /* lock work for busy wait */ 3073 # 37 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/machtypes.h" 2 3074 # 43 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2 3075 3076 /* 3077 * Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C 3078 * committee's working draft for the revision of the current ISO C standard, 3079 * ISO/IEC 9899:1990 Programming language - C. These are not currently 3080 * required by any standard but constitute a useful, general purpose set 3081 * of type definitions which is namespace clean with respect to all standards. 3082 */ 3083 3084 3085 3086 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_types.h" 1 3087 /* 3088 * CDDL HEADER START 3089 * 3090 * The contents of this file are subject to the terms of the 3091 * Common Development and Distribution License, Version 1.0 only 3092 * (the "License"). You may not use this file except in compliance 3093 * 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 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 3110 * 3111 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3112 * Use is subject to license terms. 3113 */ 3114 3115 3116 3117 3118 /* 3119 * This file, <sys/int_types.h>, is part of the Sun Microsystems implementation 3120 * of <inttypes.h> defined in the ISO C standard, ISO/IEC 9899:1999 3121 * Programming language - C. 3122 * 3123 * Programs/Modules should not directly include this file. Access to the 3124 * types defined in this file should be through the inclusion of one of the 3125 * following files: 3126 * 3127 * <sys/types.h> Provides only the "_t" types defined in this 3128 * file which is a subset of the contents of 3129 * <inttypes.h>. (This can be appropriate for 3130 * all programs/modules except those claiming 3131 * ANSI-C conformance.) 3132 * 3133 * <sys/inttypes.h> Provides the Kernel and Driver appropriate 3134 * components of <inttypes.h>. 3135 * 3136 * <inttypes.h> For use by applications. 3137 * 3138 * See these files for more details. 3139 */ 3140 3141 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 3142 /* 3143 * CDDL HEADER START 3144 * 3145 * The contents of this file are subject to the terms of the 3146 * Common Development and Distribution License (the "License"). 3147 * You may not use this file except in compliance with the License. 3148 * 3149 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3150 * or http://www.opensolaris.org/os/licensing. 3151 * See the License for the specific language governing permissions 3152 * and limitations under the License. 3153 * 3154 * When distributing Covered Code, include this CDDL HEADER in each 3155 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3156 * If applicable, add the following below this CDDL HEADER, with the 3157 * fields enclosed by brackets "[]" replaced with your own identifying 3158 * information: Portions Copyright [yyyy] [name of copyright owner] 3159 * 3160 * CDDL HEADER END 3161 */ 3162 3163 /* 3164 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 3165 * Copyright 2016 Joyent, Inc. 3166 * 3167 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3168 * Use is subject to license terms. 3169 */ 3170 # 56 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_types.h" 2 3171 3172 3173 3174 3175 3176 /* 3177 * Basic / Extended integer types 3178 * 3179 * The following defines the basic fixed-size integer types. 3180 * 3181 * Implementations are free to typedef them to Standard C integer types or 3182 * extensions that they support. If an implementation does not support one 3183 * of the particular integer data types below, then it should not define the 3184 * typedefs and macros corresponding to that data type. Note that int8_t 3185 * is not defined in -Xs mode on ISAs for which the ABI specifies "char" 3186 * as an unsigned entity because there is no way to define an eight bit 3187 * signed integral. 3188 */ 3189 3190 typedef char int8_t; 3191 3192 3193 3194 typedef short int16_t; 3195 typedef int int32_t; 3196 3197 3198 3199 3200 3201 3202 typedef long long int64_t; 3203 3204 3205 3206 typedef unsigned char uint8_t; 3207 typedef unsigned short uint16_t; 3208 typedef unsigned int uint32_t; 3209 3210 3211 3212 3213 typedef unsigned long long uint64_t; 3214 3215 3216 3217 /* 3218 * intmax_t and uintmax_t are to be the longest (in number of bits) signed 3219 * and unsigned integer types supported by the implementation. 3220 */ 3221 3222 typedef int64_t intmax_t; 3223 typedef uint64_t uintmax_t; 3224 3225 3226 3227 3228 3229 /* 3230 * intptr_t and uintptr_t are signed and unsigned integer types large enough 3231 * to hold any data pointer; that is, data pointers can be assigned into or 3232 * from these integer types without losing precision. 3233 */ 3234 3235 3236 3237 3238 typedef int intptr_t; 3239 typedef unsigned int uintptr_t; 3240 3241 3242 /* 3243 * The following define the fastest integer types that can hold the 3244 * specified number of bits. 3245 */ 3246 3247 typedef char int_fast8_t; 3248 3249 3250 3251 typedef int int_fast16_t; 3252 typedef int int_fast32_t; 3253 3254 3255 3256 3257 typedef long long int_fast64_t; 3258 3259 3260 3261 typedef unsigned char uint_fast8_t; 3262 typedef unsigned int uint_fast16_t; 3263 typedef unsigned int uint_fast32_t; 3264 3265 3266 3267 3268 typedef unsigned long long uint_fast64_t; 3269 3270 3271 3272 /* 3273 * The following define the smallest integer types that can hold the 3274 * specified number of bits. 3275 */ 3276 3277 typedef char int_least8_t; 3278 3279 3280 3281 typedef short int_least16_t; 3282 typedef int int_least32_t; 3283 3284 3285 3286 3287 typedef long long int_least64_t; 3288 3289 3290 3291 /* 3292 * If these are changed, please update char16_t and char32_t in head/uchar.h. 3293 */ 3294 typedef unsigned char uint_least8_t; 3295 typedef unsigned short uint_least16_t; 3296 typedef unsigned int uint_least32_t; 3297 3298 3299 3300 3301 typedef unsigned long long uint_least64_t; 3302 # 55 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2 3303 # 65 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3304 /* 3305 * Strictly conforming ANSI C environments prior to the 1999 3306 * revision of the C Standard (ISO/IEC 9899:1999) do not have 3307 * the long long data type. 3308 */ 3309 3310 typedef long long longlong_t; 3311 typedef unsigned long long u_longlong_t; 3312 # 85 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3313 /* 3314 * These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had 3315 * to use them instead of int32_t and uint32_t because DEC had 3316 * shipped 64-bit wide. 3317 */ 3318 3319 3320 3321 3322 typedef long t_scalar_t; /* historical versions */ 3323 typedef unsigned long t_uscalar_t; 3324 3325 3326 /* 3327 * POSIX Extensions 3328 */ 3329 typedef unsigned char uchar_t; 3330 typedef unsigned short ushort_t; 3331 typedef unsigned int uint_t; 3332 typedef unsigned long ulong_t; 3333 3334 typedef char *caddr_t; /* ?<core address> type */ 3335 typedef long daddr_t; /* <disk address> type */ 3336 typedef short cnt_t; /* ?<count> type */ 3337 # 119 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3338 /* 3339 * VM-related types 3340 */ 3341 typedef ulong_t pfn_t; /* page frame number */ 3342 typedef ulong_t pgcnt_t; /* number of pages */ 3343 typedef long spgcnt_t; /* signed number of pages */ 3344 3345 typedef uchar_t use_t; /* use count for swap. */ 3346 typedef short sysid_t; 3347 typedef short index_t; 3348 typedef void *timeout_id_t; /* opaque handle from timeout(9F) */ 3349 typedef void *bufcall_id_t; /* opaque handle from bufcall(9F) */ 3350 3351 /* 3352 * The size of off_t and related types depends on the setting of 3353 * _FILE_OFFSET_BITS. (Note that other system headers define other types 3354 * related to those defined here.) 3355 * 3356 * If _LARGEFILE64_SOURCE is defined, variants of these types that are 3357 * explicitly 64 bits wide become available. 3358 */ 3359 # 160 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3360 typedef ulong_t ino_t; /* expanded inode type */ 3361 typedef long blkcnt_t; /* count of file blocks */ 3362 typedef ulong_t fsblkcnt_t; /* count of file system blocks */ 3363 typedef ulong_t fsfilcnt_t; /* count of files */ 3364 # 178 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3365 typedef u_longlong_t ino64_t; /* expanded inode type */ 3366 typedef longlong_t blkcnt64_t; /* count of file blocks */ 3367 typedef u_longlong_t fsblkcnt64_t; /* count of file system blocks */ 3368 typedef u_longlong_t fsfilcnt64_t; /* count of files */ 3369 3370 3371 3372 3373 3374 3375 typedef long blksize_t; /* used for block sizes */ 3376 3377 3378 3379 3380 3381 typedef enum { B_FALSE, B_TRUE } boolean_t; 3382 # 205 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3383 /* 3384 * The {u,}pad64_t types can be used in structures such that those structures 3385 * may be accessed by code produced by compilation environments which don't 3386 * support a 64 bit integral datatype. The intention is not to allow 3387 * use of these fields in such environments, but to maintain the alignment 3388 * and offsets of the structure. 3389 * 3390 * Similar comments for {u,}pad128_t. 3391 * 3392 * Note that these types do NOT generate any stronger alignment constraints 3393 * than those available in the underlying ABI. See <sys/isa_defs.h> 3394 */ 3395 3396 typedef int64_t pad64_t; 3397 typedef uint64_t upad64_t; 3398 # 232 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3399 typedef union { 3400 long double _q; 3401 int32_t _l[4]; 3402 } pad128_t; 3403 3404 typedef union { 3405 long double _q; 3406 uint32_t _l[4]; 3407 } upad128_t; 3408 3409 typedef longlong_t offset_t; 3410 typedef u_longlong_t u_offset_t; 3411 typedef u_longlong_t len_t; 3412 typedef u_longlong_t diskaddr_t; 3413 3414 3415 3416 3417 /* 3418 * Definitions remaining from previous partial support for 64-bit file 3419 * offsets. This partial support for devices greater than 2gb requires 3420 * compiler support for long long. 3421 */ 3422 3423 typedef union { 3424 offset_t _f; /* Full 64 bit offset value */ 3425 struct { 3426 int32_t _l; /* lower 32 bits of offset value */ 3427 int32_t _u; /* upper 32 bits of offset value */ 3428 } _p; 3429 } lloff_t; 3430 # 276 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3431 typedef union { 3432 longlong_t _f; /* Full 64 bit disk address value */ 3433 struct { 3434 int32_t _l; /* lower 32 bits of disk address value */ 3435 int32_t _u; /* upper 32 bits of disk address value */ 3436 } _p; 3437 } lldaddr_t; 3438 # 295 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3439 typedef uint_t k_fltset_t; /* kernel fault set type */ 3440 3441 /* 3442 * The following type is for various kinds of identifiers. The 3443 * actual type must be the same for all since some system calls 3444 * (such as sigsend) take arguments that may be any of these 3445 * types. The enumeration type idtype_t defined in sys/procset.h 3446 * is used to indicate what type of id is being specified -- 3447 * a process id, process group id, session id, scheduling class id, 3448 * user id, group id, project id, task id or zone id. 3449 */ 3450 3451 3452 3453 typedef long id_t; /* (historical version) */ 3454 3455 3456 typedef id_t lgrp_id_t; /* lgroup ID */ 3457 3458 /* 3459 * Type useconds_t is an unsigned integral type capable of storing 3460 * values at least in the range of zero to 1,000,000. 3461 */ 3462 typedef uint_t useconds_t; /* Time, in microseconds */ 3463 3464 3465 3466 typedef long suseconds_t; /* signed # of microseconds */ 3467 3468 3469 /* 3470 * Typedefs for dev_t components. 3471 */ 3472 3473 3474 3475 3476 typedef ulong_t major_t; /* (historical version) */ 3477 typedef ulong_t minor_t; /* (historical version) */ 3478 3479 3480 /* 3481 * The data type of a thread priority. 3482 */ 3483 typedef short pri_t; 3484 3485 /* 3486 * The data type for a CPU flags field. (Can be extended to larger unsigned 3487 * types, if needed, limited by ability to update atomically.) 3488 */ 3489 typedef ushort_t cpu_flag_t; 3490 3491 /* 3492 * For compatibility reasons the following typedefs (prefixed o_) 3493 * can't grow regardless of the EFT definition. Although, 3494 * applications should not explicitly use these typedefs 3495 * they may be included via a system header definition. 3496 * WARNING: These typedefs may be removed in a future 3497 * release. 3498 * ex. the definitions in s5inode.h (now obsoleted) 3499 * remained small to preserve compatibility 3500 * in the S5 file system type. 3501 */ 3502 typedef ushort_t o_mode_t; /* old file attribute type */ 3503 typedef short o_dev_t; /* old device type */ 3504 typedef ushort_t o_uid_t; /* old UID type */ 3505 typedef o_uid_t o_gid_t; /* old GID type */ 3506 typedef short o_nlink_t; /* old file link type */ 3507 typedef short o_pid_t; /* old process id type */ 3508 typedef ushort_t o_ino_t; /* old inode type */ 3509 3510 3511 /* 3512 * POSIX and XOPEN Declarations 3513 */ 3514 typedef int key_t; /* IPC key type */ 3515 3516 3517 3518 typedef ulong_t mode_t; /* (historical version) */ 3519 3520 3521 3522 3523 typedef unsigned int uid_t; /* UID type */ 3524 3525 3526 typedef uid_t gid_t; /* GID type */ 3527 3528 typedef uint32_t datalink_id_t; 3529 typedef uint32_t vrid_t; 3530 3531 typedef id_t taskid_t; 3532 typedef id_t projid_t; 3533 typedef id_t poolid_t; 3534 typedef id_t zoneid_t; 3535 typedef id_t ctid_t; 3536 3537 /* 3538 * POSIX definitions are same as defined in thread.h and synch.h. 3539 * Any changes made to here should be reflected in corresponding 3540 * files as described in comments. 3541 */ 3542 typedef uint_t pthread_t; /* = thread_t in thread.h */ 3543 typedef uint_t pthread_key_t; /* = thread_key_t in thread.h */ 3544 3545 /* "Magic numbers" tagging synchronization object types */ 3546 3547 3548 3549 3550 3551 typedef struct _pthread_mutex { /* = mutex_t in synch.h */ 3552 struct { 3553 uint16_t __pthread_mutex_flag1; 3554 uint8_t __pthread_mutex_flag2; 3555 uint8_t __pthread_mutex_ceiling; 3556 uint16_t __pthread_mutex_type; 3557 uint16_t __pthread_mutex_magic; 3558 } __pthread_mutex_flags; 3559 union { 3560 struct { 3561 uint8_t __pthread_mutex_pad[8]; 3562 } __pthread_mutex_lock64; 3563 struct { 3564 uint32_t __pthread_ownerpid; 3565 uint32_t __pthread_lockword; 3566 } __pthread_mutex_lock32; 3567 upad64_t __pthread_mutex_owner64; 3568 } __pthread_mutex_lock; 3569 upad64_t __pthread_mutex_data; 3570 } pthread_mutex_t; 3571 3572 typedef struct _pthread_cond { /* = cond_t in synch.h */ 3573 struct { 3574 uint8_t __pthread_cond_flag[4]; 3575 uint16_t __pthread_cond_type; 3576 uint16_t __pthread_cond_magic; 3577 } __pthread_cond_flags; 3578 upad64_t __pthread_cond_data; 3579 } pthread_cond_t; 3580 3581 /* 3582 * UNIX 98 Extension 3583 */ 3584 typedef struct _pthread_rwlock { /* = rwlock_t in synch.h */ 3585 int32_t __pthread_rwlock_readers; 3586 uint16_t __pthread_rwlock_type; 3587 uint16_t __pthread_rwlock_magic; 3588 pthread_mutex_t __pthread_rwlock_mutex; 3589 pthread_cond_t __pthread_rwlock_readercv; 3590 pthread_cond_t __pthread_rwlock_writercv; 3591 } pthread_rwlock_t; 3592 3593 /* 3594 * SUSV3 3595 */ 3596 typedef struct { 3597 uint32_t __pthread_barrier_count; 3598 uint32_t __pthread_barrier_current; 3599 upad64_t __pthread_barrier_cycle; 3600 upad64_t __pthread_barrier_reserved; 3601 pthread_mutex_t __pthread_barrier_lock; 3602 pthread_cond_t __pthread_barrier_cond; 3603 } pthread_barrier_t; 3604 3605 typedef pthread_mutex_t pthread_spinlock_t; 3606 3607 /* 3608 * attributes for threads, dynamically allocated by library 3609 */ 3610 typedef struct _pthread_attr { 3611 void *__pthread_attrp; 3612 } pthread_attr_t; 3613 3614 /* 3615 * attributes for mutex, dynamically allocated by library 3616 */ 3617 typedef struct _pthread_mutexattr { 3618 void *__pthread_mutexattrp; 3619 } pthread_mutexattr_t; 3620 3621 /* 3622 * attributes for cond, dynamically allocated by library 3623 */ 3624 typedef struct _pthread_condattr { 3625 void *__pthread_condattrp; 3626 } pthread_condattr_t; 3627 3628 /* 3629 * pthread_once 3630 */ 3631 typedef struct _once { 3632 upad64_t __pthread_once_pad[4]; 3633 } pthread_once_t; 3634 3635 /* 3636 * UNIX 98 Extensions 3637 * attributes for rwlock, dynamically allocated by library 3638 */ 3639 typedef struct _pthread_rwlockattr { 3640 void *__pthread_rwlockattrp; 3641 } pthread_rwlockattr_t; 3642 3643 /* 3644 * SUSV3 3645 * attributes for pthread_barrier_t, dynamically allocated by library 3646 */ 3647 typedef struct { 3648 void *__pthread_barrierattrp; 3649 } pthread_barrierattr_t; 3650 3651 typedef ulong_t dev_t; /* expanded device type */ 3652 3653 3654 3655 3656 3657 typedef ulong_t nlink_t; /* (historical version) */ 3658 typedef long pid_t; /* (historical version) */ 3659 # 547 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3660 typedef int clockid_t; /* clock identifier type */ 3661 3662 3663 3664 3665 typedef int timer_t; /* timer identifier type */ 3666 3667 3668 3669 3670 /* BEGIN CSTYLED */ 3671 typedef unsigned char unchar; 3672 typedef unsigned short ushort; 3673 typedef unsigned int uint; 3674 typedef unsigned long ulong; 3675 /* END CSTYLED */ 3676 # 605 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3677 /* 3678 * The following is the value of type id_t to use to indicate the 3679 * caller's current id. See procset.h for the type idtype_t 3680 * which defines which kind of id is being specified. 3681 */ 3682 # 620 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 3683 /* 3684 * The following value of type pfn_t is used to indicate 3685 * invalid page frame number. 3686 */ 3687 3688 3689 3690 /* BEGIN CSTYLED */ 3691 typedef unsigned char u_char; 3692 typedef unsigned short u_short; 3693 typedef unsigned int u_int; 3694 typedef unsigned long u_long; 3695 typedef struct _quad { int val[2]; } quad_t; /* used by UFS */ 3696 typedef quad_t quad; /* used by UFS */ 3697 /* END CSTYLED */ 3698 3699 /* 3700 * Nested include for BSD/sockets source compatibility. 3701 * (The select macros used to be defined here). 3702 */ 3703 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 1 3704 /* 3705 * CDDL HEADER START 3706 * 3707 * The contents of this file are subject to the terms of the 3708 * Common Development and Distribution License (the "License"). 3709 * You may not use this file except in compliance with the License. 3710 * 3711 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3712 * or http://www.opensolaris.org/os/licensing. 3713 * See the License for the specific language governing permissions 3714 * and limitations under the License. 3715 * 3716 * When distributing Covered Code, include this CDDL HEADER in each 3717 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3718 * If applicable, add the following below this CDDL HEADER, with the 3719 * fields enclosed by brackets "[]" replaced with your own identifying 3720 * information: Portions Copyright [yyyy] [name of copyright owner] 3721 * 3722 * CDDL HEADER END 3723 */ 3724 3725 /* 3726 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 3727 * 3728 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 3729 * 3730 * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 3731 * Use is subject to license terms. 3732 */ 3733 3734 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 3735 /* All Rights Reserved */ 3736 3737 /* 3738 * University Copyright- Copyright (c) 1982, 1986, 1988 3739 * The Regents of the University of California 3740 * All Rights Reserved 3741 * 3742 * University Acknowledgment- Portions of this document are derived from 3743 * software developed by the University of California, Berkeley, and its 3744 * contributors. 3745 */ 3746 3747 3748 3749 3750 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 3751 /* 3752 * CDDL HEADER START 3753 * 3754 * The contents of this file are subject to the terms of the 3755 * Common Development and Distribution License (the "License"). 3756 * You may not use this file except in compliance with the License. 3757 * 3758 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3759 * or http://www.opensolaris.org/os/licensing. 3760 * See the License for the specific language governing permissions 3761 * and limitations under the License. 3762 * 3763 * When distributing Covered Code, include this CDDL HEADER in each 3764 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3765 * If applicable, add the following below this CDDL HEADER, with the 3766 * fields enclosed by brackets "[]" replaced with your own identifying 3767 * information: Portions Copyright [yyyy] [name of copyright owner] 3768 * 3769 * CDDL HEADER END 3770 */ 3771 3772 /* 3773 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 3774 * Copyright 2016 Joyent, Inc. 3775 * 3776 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3777 * Use is subject to license terms. 3778 */ 3779 # 48 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 2 3780 3781 3782 3783 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time_impl.h" 1 3784 /* 3785 * CDDL HEADER START 3786 * 3787 * The contents of this file are subject to the terms of the 3788 * Common Development and Distribution License, Version 1.0 only 3789 * (the "License"). You may not use this file except in compliance 3790 * with the License. 3791 * 3792 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3793 * or http://www.opensolaris.org/os/licensing. 3794 * See the License for the specific language governing permissions 3795 * and limitations under the License. 3796 * 3797 * When distributing Covered Code, include this CDDL HEADER in each 3798 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3799 * If applicable, add the following below this CDDL HEADER, with the 3800 * fields enclosed by brackets "[]" replaced with your own identifying 3801 * information: Portions Copyright [yyyy] [name of copyright owner] 3802 * 3803 * CDDL HEADER END 3804 */ 3805 /* 3806 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3807 * Use is subject to license terms. 3808 */ 3809 3810 /* 3811 * Implementation-private. This header should not be included 3812 * directly by an application. The application should instead 3813 * include <time.h> which includes this header conditionally 3814 * depending on which feature test macros are defined. By default, 3815 * this header is included by <time.h>. X/Open and POSIX 3816 * standards requirements result in this header being included 3817 * by <time.h> only under a restricted set of conditions. 3818 */ 3819 3820 3821 3822 3823 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.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 /* 3846 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 3847 * Copyright 2016 Joyent, Inc. 3848 * 3849 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3850 * Use is subject to license terms. 3851 */ 3852 # 41 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time_impl.h" 2 3853 # 53 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time_impl.h" 3854 /* 3855 * Time expressed in seconds and nanoseconds 3856 */ 3857 3858 typedef struct timespec { /* definition per POSIX.4 */ 3859 time_t tv_sec; /* seconds */ 3860 long tv_nsec; /* and nanoseconds */ 3861 } timespec_t; 3862 # 81 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time_impl.h" 3863 typedef struct timespec timestruc_t; /* definition per SVr4 */ 3864 3865 /* 3866 * The following has been left in for backward compatibility. Portable 3867 * applications should not use the structure name timestruc. 3868 */ 3869 3870 3871 3872 3873 3874 /* 3875 * Timer specification 3876 */ 3877 typedef struct itimerspec { /* definition per POSIX.4 */ 3878 struct timespec it_interval; /* timer period */ 3879 struct timespec it_value; /* timer expiration */ 3880 } itimerspec_t; 3881 # 52 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 2 3882 3883 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 1 3884 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 3885 /* All Rights Reserved */ 3886 3887 3888 /* 3889 * Copyright (c) 1982, 1986, 1993 Regents of the University of California. 3890 * All rights reserved. The Berkeley software License Agreement 3891 * specifies the terms and conditions for redistribution. 3892 */ 3893 3894 /* 3895 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 3896 * 3897 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 3898 * Use is subject to license terms. 3899 * 3900 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 3901 */ 3902 3903 /* 3904 * Copyright (c) 2013, 2015 by Delphix. All rights reserved. 3905 */ 3906 3907 3908 3909 3910 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 3911 /* 3912 * CDDL HEADER START 3913 * 3914 * The contents of this file are subject to the terms of the 3915 * Common Development and Distribution License (the "License"). 3916 * You may not use this file except in compliance with the License. 3917 * 3918 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3919 * or http://www.opensolaris.org/os/licensing. 3920 * See the License for the specific language governing permissions 3921 * and limitations under the License. 3922 * 3923 * When distributing Covered Code, include this CDDL HEADER in each 3924 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3925 * If applicable, add the following below this CDDL HEADER, with the 3926 * fields enclosed by brackets "[]" replaced with your own identifying 3927 * information: Portions Copyright [yyyy] [name of copyright owner] 3928 * 3929 * CDDL HEADER END 3930 */ 3931 3932 /* 3933 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 3934 * Copyright 2016 Joyent, Inc. 3935 * 3936 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3937 * Use is subject to license terms. 3938 */ 3939 # 28 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2 3940 3941 /* 3942 * Structure returned by gettimeofday(2) system call, 3943 * and used in other calls. 3944 */ 3945 # 52 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 3946 struct timeval { 3947 time_t tv_sec; /* seconds */ 3948 suseconds_t tv_usec; /* and microseconds */ 3949 }; 3950 # 84 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 3951 struct timezone { 3952 int tz_minuteswest; /* minutes west of Greenwich */ 3953 int tz_dsttime; /* type of dst correction */ 3954 }; 3955 # 96 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 3956 /* 3957 * Needed for longlong_t type. Placement of this due to <sys/types.h> 3958 * including <sys/select.h> which relies on the presense of the itimerval 3959 * structure. 3960 */ 3961 3962 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 1 3963 /* 3964 * CDDL HEADER START 3965 * 3966 * The contents of this file are subject to the terms of the 3967 * Common Development and Distribution License (the "License"). 3968 * You may not use this file except in compliance with the License. 3969 * 3970 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3971 * or http://www.opensolaris.org/os/licensing. 3972 * See the License for the specific language governing permissions 3973 * and limitations under the License. 3974 * 3975 * When distributing Covered Code, include this CDDL HEADER in each 3976 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3977 * If applicable, add the following below this CDDL HEADER, with the 3978 * fields enclosed by brackets "[]" replaced with your own identifying 3979 * information: Portions Copyright [yyyy] [name of copyright owner] 3980 * 3981 * CDDL HEADER END 3982 */ 3983 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 3984 /* All Rights Reserved */ 3985 3986 3987 /* 3988 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 3989 * Use is subject to license terms. 3990 * 3991 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 3992 * Copyright 2016 Joyent, Inc. 3993 */ 3994 # 103 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2 3995 # 123 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 3996 /* 3997 * Operations on timevals. 3998 */ 3999 # 193 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 4000 /* 4001 * Names of the interval timers, and structure 4002 * defining a timer setting. 4003 */ 4004 4005 4006 4007 /* time and when system is running on */ 4008 /* behalf of the process. */ 4009 4010 /* time profiling of multithreaded */ 4011 /* programs. */ 4012 4013 4014 struct itimerval { 4015 struct timeval it_interval; /* timer interval */ 4016 struct timeval it_value; /* current value */ 4017 }; 4018 # 239 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 4019 /* 4020 * Definitions for commonly used resolutions. 4021 */ 4022 # 257 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 4023 /* 4024 * Time expressed as a 64-bit nanosecond counter. 4025 */ 4026 typedef longlong_t hrtime_t; 4027 # 386 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 4028 int adjtime(struct timeval *, struct timeval *); 4029 4030 4031 4032 4033 int futimesat(int, const char *, const struct timeval *); 4034 4035 4036 4037 4038 4039 int getitimer(int, struct itimerval *); 4040 int utimes(const char *, const struct timeval *); 4041 4042 4043 4044 4045 int setitimer(int, struct itimerval *, 4046 struct itimerval *); 4047 4048 4049 4050 4051 /* 4052 * gettimeofday() and settimeofday() were included in SVr4 due to their 4053 * common use in BSD based applications. They were to be included exactly 4054 * as in BSD, with two parameters. However, AT&T/USL noted that the second 4055 * parameter was unused and deleted it, thereby making a routine included 4056 * for compatibility, incompatible. 4057 * 4058 * XSH4.2 (spec 1170) defines gettimeofday and settimeofday to have two 4059 * parameters. 4060 * 4061 * This has caused general disagreement in the application community as to 4062 * the syntax of these routines. Solaris defaults to the XSH4.2 definition. 4063 * The flag _SVID_GETTOD may be used to force the SVID version. 4064 */ 4065 4066 4067 4068 4069 4070 int settimeofday(struct timeval *, void *); 4071 4072 hrtime_t gethrtime(void); 4073 hrtime_t gethrvtime(void); 4074 # 441 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 4075 int gettimeofday(struct timeval *, void *); 4076 4077 4078 4079 4080 /* 4081 * The inclusion of <time.h> is historical and was added for 4082 * backward compatibility in delta 1.2 when a number of definitions 4083 * were moved out of <sys/time.h>. More recently, the timespec and 4084 * itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*, 4085 * _TIMER_*, and TIMER_* symbols were moved to <sys/time_impl.h>, 4086 * which is now included by <time.h>. This change was due to POSIX 4087 * 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and 4088 * non-X/Open applications, including this header will still make 4089 * visible these definitions. 4090 */ 4091 4092 4093 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 1 4094 /* 4095 * CDDL HEADER START 4096 * 4097 * The contents of this file are subject to the terms of the 4098 * Common Development and Distribution License (the "License"). 4099 * You may not use this file except in compliance with the License. 4100 * 4101 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4102 * or http://www.opensolaris.org/os/licensing. 4103 * See the License for the specific language governing permissions 4104 * and limitations under the License. 4105 * 4106 * When distributing Covered Code, include this CDDL HEADER in each 4107 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4108 * If applicable, add the following below this CDDL HEADER, with the 4109 * fields enclosed by brackets "[]" replaced with your own identifying 4110 * information: Portions Copyright [yyyy] [name of copyright owner] 4111 * 4112 * CDDL HEADER END 4113 */ 4114 /* Copyright (c) 1988 AT&T */ 4115 /* All Rights Reserved */ 4116 4117 4118 /* 4119 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4120 * 4121 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 4122 * Use is subject to license terms. 4123 */ 4124 /* 4125 * Copyright 2010 Nexenta Systems, Inc. Al rights reserved. 4126 * Copyright 2016 Joyent, Inc. 4127 */ 4128 4129 4130 4131 4132 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 4133 /* 4134 * CDDL HEADER START 4135 * 4136 * The contents of this file are subject to the terms of the 4137 * Common Development and Distribution License (the "License"). 4138 * You may not use this file except in compliance with the License. 4139 * 4140 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4141 * or http://www.opensolaris.org/os/licensing. 4142 * See the License for the specific language governing permissions 4143 * and limitations under the License. 4144 * 4145 * When distributing Covered Code, include this CDDL HEADER in each 4146 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4147 * If applicable, add the following below this CDDL HEADER, with the 4148 * fields enclosed by brackets "[]" replaced with your own identifying 4149 * information: Portions Copyright [yyyy] [name of copyright owner] 4150 * 4151 * CDDL HEADER END 4152 */ 4153 4154 /* 4155 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 4156 * Copyright 2016 Joyent, Inc. 4157 * 4158 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 4159 * Use is subject to license terms. 4160 */ 4161 # 40 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 2 4162 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/time_iso.h" 1 4163 /* 4164 * CDDL HEADER START 4165 * 4166 * The contents of this file are subject to the terms of the 4167 * Common Development and Distribution License, Version 1.0 only 4168 * (the "License"). You may not use this file except in compliance 4169 * with the License. 4170 * 4171 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4172 * or http://www.opensolaris.org/os/licensing. 4173 * See the License for the specific language governing permissions 4174 * and limitations under the License. 4175 * 4176 * When distributing Covered Code, include this CDDL HEADER in each 4177 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4178 * If applicable, add the following below this CDDL HEADER, with the 4179 * fields enclosed by brackets "[]" replaced with your own identifying 4180 * information: Portions Copyright [yyyy] [name of copyright owner] 4181 * 4182 * CDDL HEADER END 4183 */ 4184 /* Copyright (c) 1988 AT&T */ 4185 /* All Rights Reserved */ 4186 4187 /* 4188 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4189 * Copyright 2014 PALO, Richard. 4190 * 4191 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 4192 * Use is subject to license terms. 4193 */ 4194 4195 /* 4196 * An application should not include this header directly. Instead it 4197 * should be included only through the inclusion of other Sun headers. 4198 * 4199 * The contents of this header is limited to identifiers specified in the 4200 * C Standard. Any new identifiers specified in future amendments to the 4201 * C Standard must be placed in this header. If these new identifiers 4202 * are required to also be in the C++ Standard "std" namespace, then for 4203 * anything other than macro definitions, corresponding "using" directives 4204 * must also be added to <time.h.h>. 4205 */ 4206 # 41 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 2 4207 /* 4208 * C11 requires sys/time_impl.h for the definition of the struct timespec. 4209 */ 4210 4211 4212 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 1 4213 /* 4214 * CDDL HEADER START 4215 * 4216 * The contents of this file are subject to the terms of the 4217 * Common Development and Distribution License (the "License"). 4218 * You may not use this file except in compliance with the License. 4219 * 4220 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4221 * or http://www.opensolaris.org/os/licensing. 4222 * See the License for the specific language governing permissions 4223 * and limitations under the License. 4224 * 4225 * When distributing Covered Code, include this CDDL HEADER in each 4226 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4227 * If applicable, add the following below this CDDL HEADER, with the 4228 * fields enclosed by brackets "[]" replaced with your own identifying 4229 * information: Portions Copyright [yyyy] [name of copyright owner] 4230 * 4231 * CDDL HEADER END 4232 */ 4233 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 4234 /* All Rights Reserved */ 4235 4236 4237 /* 4238 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 4239 * Use is subject to license terms. 4240 * 4241 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 4242 * Copyright 2016 Joyent, Inc. 4243 */ 4244 # 47 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 2 4245 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time_impl.h" 1 4246 /* 4247 * CDDL HEADER START 4248 * 4249 * The contents of this file are subject to the terms of the 4250 * Common Development and Distribution License, Version 1.0 only 4251 * (the "License"). You may not use this file except in compliance 4252 * with the License. 4253 * 4254 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4255 * or http://www.opensolaris.org/os/licensing. 4256 * See the License for the specific language governing permissions 4257 * and limitations under the License. 4258 * 4259 * When distributing Covered Code, include this CDDL HEADER in each 4260 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4261 * If applicable, add the following below this CDDL HEADER, with the 4262 * fields enclosed by brackets "[]" replaced with your own identifying 4263 * information: Portions Copyright [yyyy] [name of copyright owner] 4264 * 4265 * CDDL HEADER END 4266 */ 4267 /* 4268 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4269 * Use is subject to license terms. 4270 */ 4271 4272 /* 4273 * Implementation-private. This header should not be included 4274 * directly by an application. The application should instead 4275 * include <time.h> which includes this header conditionally 4276 * depending on which feature test macros are defined. By default, 4277 * this header is included by <time.h>. X/Open and POSIX 4278 * standards requirements result in this header being included 4279 * by <time.h> only under a restricted set of conditions. 4280 */ 4281 # 48 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 2 4282 4283 4284 /* 4285 * Allow global visibility for symbols defined in 4286 * C++ "std" namespace in <iso/time_iso.h>. 4287 */ 4288 # 87 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 4289 extern struct tm *gmtime_r(const time_t *, 4290 struct tm *); 4291 extern struct tm *localtime_r(const time_t *, 4292 struct tm *); 4293 # 105 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 4294 extern char *strptime(const char *, const char *, 4295 struct tm *); 4296 4297 4298 4299 4300 4301 /* 4302 * Neither X/Open nor POSIX allow the inclusion of <signal.h> for the 4303 * definition of the sigevent structure. Both require the inclusion 4304 * of <signal.h> and <time.h> when using the timer_create() function. 4305 * However, X/Open also specifies that the sigevent structure be defined 4306 * in <time.h> as described in the header <signal.h>. This prevents 4307 * compiler warnings for applications that only include <time.h> and not 4308 * also <signal.h>. The sigval union and the sigevent structure is 4309 * therefore defined both here and in <sys/siginfo.h> which gets included 4310 * via inclusion of <signal.h>. 4311 */ 4312 4313 4314 union sigval { 4315 int sival_int; /* integer value */ 4316 void *sival_ptr; /* pointer value */ 4317 }; 4318 4319 4320 4321 4322 struct sigevent { 4323 int sigev_notify; /* notification mode */ 4324 int sigev_signo; /* signal number */ 4325 union sigval sigev_value; /* signal value */ 4326 void (*sigev_notify_function)(union sigval); 4327 pthread_attr_t *sigev_notify_attributes; 4328 int __sigev_pad2; 4329 }; 4330 4331 4332 extern int clock_getres(clockid_t, struct timespec *); 4333 extern int clock_gettime(clockid_t, struct timespec *); 4334 extern int clock_settime(clockid_t, const struct timespec *); 4335 extern int timer_create(clockid_t, struct sigevent *, 4336 timer_t *); 4337 extern int timer_delete(timer_t); 4338 extern int timer_getoverrun(timer_t); 4339 extern int timer_gettime(timer_t, struct itimerspec *); 4340 extern int timer_settime(timer_t, int, const struct itimerspec *, 4341 struct itimerspec *); 4342 4343 extern int nanosleep(const struct timespec *, struct timespec *); 4344 extern int clock_nanosleep(clockid_t, int, 4345 const struct timespec *, struct timespec *); 4346 4347 4348 4349 4350 4351 4352 extern void tzset(void); 4353 extern char *tzname[2]; 4354 4355 /* CLK_TCK marked as LEGACY in SUSv2 and removed in SUSv3 */ 4356 4357 4358 extern long _sysconf(int); /* System Private interface to sysconf() */ 4359 4360 /* 3 is _SC_CLK_TCK */ 4361 4362 4363 4364 4365 4366 extern long timezone; 4367 extern int daylight; 4368 4369 4370 4371 4372 4373 4374 extern time_t timegm(struct tm *); 4375 extern int cftime(char *, char *, const time_t *); 4376 extern int ascftime(char *, const char *, const struct tm *); 4377 extern long altzone; 4378 4379 4380 4381 4382 extern struct tm *getdate(const char *); 4383 4384 4385 4386 4387 4388 extern int getdate_err; 4389 4390 4391 4392 /* 4393 * ctime_r() & asctime_r() prototypes are defined here. 4394 */ 4395 4396 /* 4397 * Previous releases of Solaris, starting at 2.3, provided definitions of 4398 * various functions as specified in POSIX.1c, Draft 6. For some of these 4399 * functions, the final POSIX 1003.1c standard had a different number of 4400 * arguments and return values. 4401 * 4402 * The following segment of this header provides support for the standard 4403 * interfaces while supporting applications written under earlier 4404 * releases. The application defines appropriate values of the feature 4405 * test macros _POSIX_C_SOURCE and _POSIX_PTHREAD_SEMANTICS to indicate 4406 * whether it was written to expect the Draft 6 or standard versions of 4407 * these interfaces, before including this header. This header then 4408 * provides a mapping from the source version of the interface to an 4409 * appropriate binary interface. Such mappings permit an application 4410 * to be built from libraries and objects which have mixed expectations 4411 * of the definitions of these functions. 4412 * 4413 * For applications using the Draft 6 definitions, the binary symbol is the 4414 * same as the source symbol, and no explicit mapping is needed. For the 4415 * standard interface, the function func() is mapped to the binary symbol 4416 * _posix_func(). The preferred mechanism for the remapping is a compiler 4417 * #pragma. If the compiler does not provide such a #pragma, the header file 4418 * defines a static function func() which calls the _posix_func() version; 4419 * this has to be done instead of #define since POSIX specifies that an 4420 * application can #undef the symbol and still be bound to the correct 4421 * implementation. Unfortunately, the statics confuse lint so we fallback to 4422 * #define in that case. 4423 * 4424 * NOTE: Support for the Draft 6 definitions is provided for compatibility 4425 * only. New applications/libraries should use the standard definitions. 4426 */ 4427 # 280 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 4428 extern char *asctime_r(const struct tm *, char *, int); 4429 extern char *ctime_r(const time_t *, char *, int); 4430 # 295 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/time.h" 4431 extern size_t strftime_l(char *, size_t, 4432 const char *, const struct tm *, locale_t); 4433 4434 4435 4436 4437 4438 /* 4439 * Note, the C11 standard requires that all the various base values that are 4440 * passed into timespec_get() be non-zero. Hence why TIME_UTC starts at one. 4441 */ 4442 4443 4444 extern int timespec_get(struct timespec *, int); 4445 # 460 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2 4446 4447 4448 /* 4449 * The inclusion of <sys/select.h> is needed for the FD_CLR, 4450 * FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the 4451 * select() prototype defined in the XOpen specifications 4452 * beginning with XSH4v2. Placement required after definition 4453 * for itimerval. 4454 */ 4455 4456 4457 4458 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 1 4459 /* 4460 * CDDL HEADER START 4461 * 4462 * The contents of this file are subject to the terms of the 4463 * Common Development and Distribution License (the "License"). 4464 * You may not use this file except in compliance with the License. 4465 * 4466 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4467 * or http://www.opensolaris.org/os/licensing. 4468 * See the License for the specific language governing permissions 4469 * and limitations under the License. 4470 * 4471 * When distributing Covered Code, include this CDDL HEADER in each 4472 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4473 * If applicable, add the following below this CDDL HEADER, with the 4474 * fields enclosed by brackets "[]" replaced with your own identifying 4475 * information: Portions Copyright [yyyy] [name of copyright owner] 4476 * 4477 * CDDL HEADER END 4478 */ 4479 4480 /* 4481 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4482 * 4483 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 4484 * 4485 * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 4486 * Use is subject to license terms. 4487 */ 4488 4489 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 4490 /* All Rights Reserved */ 4491 4492 /* 4493 * University Copyright- Copyright (c) 1982, 1986, 1988 4494 * The Regents of the University of California 4495 * All Rights Reserved 4496 * 4497 * University Acknowledgment- Portions of this document are derived from 4498 * software developed by the University of California, Berkeley, and its 4499 * contributors. 4500 */ 4501 # 473 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/time.h" 2 4502 # 54 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 2 4503 # 62 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 4504 /* 4505 * The sigset_t type is defined in <sys/signal.h> and duplicated 4506 * in <sys/ucontext.h> as a result of XPG4v2 requirements. XPG6 4507 * now allows the visibility of signal.h in this header, however 4508 * an order of inclusion problem occurs as a result of inclusion 4509 * of <sys/select.h> in <signal.h> under certain conditions. 4510 * Rather than include <sys/signal.h> here, we've duplicated 4511 * the sigset_t type instead. This type is required for the XPG6 4512 * introduced pselect() function also declared in this header. 4513 */ 4514 4515 4516 typedef struct { /* signal set type */ 4517 unsigned int __sigbits[4]; 4518 } sigset_t; 4519 4520 4521 4522 4523 /* 4524 * Select uses bit masks of file descriptors in longs. 4525 * These macros manipulate such bit fields. 4526 * FD_SETSIZE may be defined by the user, but the default here 4527 * should be >= NOFILE (param.h). 4528 */ 4529 # 108 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 4530 typedef long fd_mask; 4531 4532 typedef long fds_mask; 4533 4534 /* 4535 * The value of _NBBY needs to be consistant with the value 4536 * of NBBY in <sys/param.h>. 4537 */ 4538 # 136 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 4539 typedef struct fd_set { 4540 4541 4542 4543 long fds_bits[(((1024)+(((sizeof (fds_mask) * 8))-1))/((sizeof (fds_mask) * 8)))]; 4544 } fd_set; 4545 # 159 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/select.h" 4546 extern int select(int, fd_set *, fd_set *, 4547 fd_set *, struct timeval *); 4548 4549 4550 extern int pselect(int, fd_set *, fd_set *, 4551 fd_set *, const struct timespec *, 4552 const sigset_t *); 4553 # 641 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 2 4554 4555 4556 4557 /* 4558 * _VOID was defined to be either void or char but this is not 4559 * required because previous SunOS compilers have accepted the void 4560 * type. However, because many system header and source files use the 4561 * void keyword, the volatile keyword, and ANSI C function prototypes, 4562 * non-ANSI compilers cannot compile the system anyway. The _VOID macro 4563 * should therefore not be used and remains for source compatibility 4564 * only. 4565 */ 4566 /* CSTYLED */ 4567 # 48 "../expr/compile.c" 2 4568 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/regex.h" 1 4569 /* 4570 * CDDL HEADER START 4571 * 4572 * The contents of this file are subject to the terms of the 4573 * Common Development and Distribution License, Version 1.0 only 4574 * (the "License"). You may not use this file except in compliance 4575 * with the License. 4576 * 4577 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4578 * or http://www.opensolaris.org/os/licensing. 4579 * See the License for the specific language governing permissions 4580 * and limitations under the License. 4581 * 4582 * When distributing Covered Code, include this CDDL HEADER in each 4583 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4584 * If applicable, add the following below this CDDL HEADER, with the 4585 * fields enclosed by brackets "[]" replaced with your own identifying 4586 * information: Portions Copyright [yyyy] [name of copyright owner] 4587 * 4588 * CDDL HEADER END 4589 */ 4590 /* 4591 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4592 * 4593 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4594 * Use is subject to license terms. 4595 */ 4596 4597 /* 4598 * Copyright 1989, 1994 by Mortice Kern Systems Inc. 4599 * All rights reserved. 4600 */ 4601 /* 4602 * Copyright 2010 Nexenta Systems, Inc. All rights reserved. 4603 * Use is subject to license terms. 4604 */ 4605 4606 4607 4608 4609 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 4610 /* 4611 * CDDL HEADER START 4612 * 4613 * The contents of this file are subject to the terms of the 4614 * Common Development and Distribution License (the "License"). 4615 * You may not use this file except in compliance 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 /* 4632 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 4633 * Copyright 2016 Joyent, Inc. 4634 * 4635 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 4636 * Use is subject to license terms. 4637 */ 4638 # 42 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/regex.h" 2 4639 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 1 4640 /* 4641 * CDDL HEADER START 4642 * 4643 * The contents of this file are subject to the terms of the 4644 * Common Development and Distribution License (the "License"). 4645 * You may not use this file except in compliance with the License. 4646 * 4647 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4648 * or http://www.opensolaris.org/os/licensing. 4649 * See the License for the specific language governing permissions 4650 * and limitations under the License. 4651 * 4652 * When distributing Covered Code, include this CDDL HEADER in each 4653 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4654 * If applicable, add the following below this CDDL HEADER, with the 4655 * fields enclosed by brackets "[]" replaced with your own identifying 4656 * information: Portions Copyright [yyyy] [name of copyright owner] 4657 * 4658 * CDDL HEADER END 4659 */ 4660 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 4661 /* All Rights Reserved */ 4662 4663 4664 /* 4665 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 4666 * Use is subject to license terms. 4667 * 4668 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 4669 * Copyright 2016 Joyent, Inc. 4670 */ 4671 # 43 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/regex.h" 2 4672 4673 4674 4675 4676 4677 4678 /* 4679 * wchar_t is a built-in type in standard C++ and as such is not 4680 * defined here when using standard C++. However, the GNU compiler 4681 * fixincludes utility nonetheless creates its own version of this 4682 * header for use by gcc and g++. In that version it adds a redundant 4683 * guard for __cplusplus. To avoid the creation of a gcc/g++ specific 4684 * header we need to include the following magic comment: 4685 * 4686 * we must use the C++ compiler's type 4687 * 4688 * The above comment should not be removed or changed until GNU 4689 * gcc/fixinc/inclhack.def is updated to bypass this header. 4690 */ 4691 # 73 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/regex.h" 4692 typedef ssize_t regoff_t; 4693 4694 /* regcomp flags */ 4695 4696 4697 4698 4699 4700 4701 4702 /* non-standard flags - note that most of these are not supported */ 4703 4704 4705 4706 4707 4708 /* FreeBSD additions */ 4709 4710 4711 4712 4713 4714 /* internal flags */ 4715 4716 4717 /* regexec flags */ 4718 4719 4720 4721 4722 /* regcomp and regexec return codes */ 4723 # 129 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/regex.h" 4724 typedef struct { /* regcomp() data saved for regexec() */ 4725 size_t re_nsub; /* # of subexpressions in RE pattern */ 4726 4727 /* 4728 * Internal use only. Note that any changes to this structure 4729 * have to preserve sizing, as it is baked into applications. 4730 */ 4731 struct re_guts *re_g; 4732 int re_magic; 4733 const char *re_endp; 4734 4735 /* here for compat */ 4736 size_t re_len; /* # wchar_t chars in compiled pattern */ 4737 struct _regex_ext_t *re_sc; /* for binary compatibility */ 4738 } regex_t; 4739 4740 /* subexpression positions */ 4741 typedef struct { 4742 const char *rm_sp, *rm_ep; /* Start pointer, end pointer */ 4743 regoff_t rm_so, rm_eo; /* Start offset, end offset */ 4744 int rm_ss, rm_es; /* Used internally */ 4745 } regmatch_t; 4746 4747 4748 /* 4749 * Additional API and structs to support regular expression manipulations 4750 * on wide characters. 4751 */ 4752 4753 extern int regcomp(regex_t *, const char *, int); 4754 extern int regexec(const regex_t *, const char *, 4755 size_t, regmatch_t *, int); 4756 extern size_t regerror(int, const regex_t *, 4757 char *, size_t); 4758 extern void regfree(regex_t *); 4759 # 49 "../expr/compile.c" 2 4760 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/locale.h" 1 4761 /* 4762 * CDDL HEADER START 4763 * 4764 * The contents of this file are subject to the terms of the 4765 * Common Development and Distribution License, Version 1.0 only 4766 * (the "License"). You may not use this file except in compliance 4767 * with the License. 4768 * 4769 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4770 * or http://www.opensolaris.org/os/licensing. 4771 * See the License for the specific language governing permissions 4772 * and limitations under the License. 4773 * 4774 * When distributing Covered Code, include this CDDL HEADER in each 4775 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4776 * If applicable, add the following below this CDDL HEADER, with the 4777 * fields enclosed by brackets "[]" replaced with your own identifying 4778 * information: Portions Copyright [yyyy] [name of copyright owner] 4779 * 4780 * CDDL HEADER END 4781 */ 4782 /* 4783 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4784 * Use is subject to license terms. 4785 */ 4786 4787 /* 4788 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4789 * 4790 * Portions of this file developed by Garrett D'Amore are licensed 4791 * under the terms of the Common Development and Distribution License (CDDL) 4792 * version 1.0 only. The use of subsequent versions of the License are 4793 * is specifically prohibited unless those terms are not in conflict with 4794 * version 1.0 of the License. You can find this license on-line at 4795 * http://www.illumos.org/license/CDDL 4796 */ 4797 4798 4799 4800 4801 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 1 4802 /* 4803 * CDDL HEADER START 4804 * 4805 * The contents of this file are subject to the terms of the 4806 * Common Development and Distribution License, Version 1.0 only 4807 * (the "License"). You may not use this file except in compliance 4808 * with the License. 4809 * 4810 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4811 * or http://www.opensolaris.org/os/licensing. 4812 * See the License for the specific language governing permissions 4813 * and limitations under the License. 4814 * 4815 * When distributing Covered Code, include this CDDL HEADER in each 4816 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4817 * If applicable, add the following below this CDDL HEADER, with the 4818 * fields enclosed by brackets "[]" replaced with your own identifying 4819 * information: Portions Copyright [yyyy] [name of copyright owner] 4820 * 4821 * CDDL HEADER END 4822 */ 4823 /* 4824 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 4825 * Copyright 2014 PALO, Richard. 4826 * 4827 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4828 * Use is subject to license terms. 4829 */ 4830 4831 /* Copyright (c) 1988 AT&T */ 4832 /* All Rights Reserved */ 4833 4834 4835 /* 4836 * An application should not include this header directly. Instead it 4837 * should be included only through the inclusion of other Sun headers. 4838 * 4839 * The contents of this header is limited to identifiers specified in the 4840 * C Standard. Any new identifiers specified in future amendments to the 4841 * C Standard must be placed in this header. If these new identifiers 4842 * are required to also be in the C++ Standard "std" namespace, then for 4843 * anything other than macro definitions, corresponding "using" directives 4844 * must also be added to <locale.h>. 4845 */ 4846 4847 4848 4849 4850 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 4851 /* 4852 * CDDL HEADER START 4853 * 4854 * The contents of this file are subject to the terms of the 4855 * Common Development and Distribution License (the "License"). 4856 * You may not use this file except in compliance with the License. 4857 * 4858 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4859 * or http://www.opensolaris.org/os/licensing. 4860 * See the License for the specific language governing permissions 4861 * and limitations under the License. 4862 * 4863 * When distributing Covered Code, include this CDDL HEADER in each 4864 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4865 * If applicable, add the following below this CDDL HEADER, with the 4866 * fields enclosed by brackets "[]" replaced with your own identifying 4867 * information: Portions Copyright [yyyy] [name of copyright owner] 4868 * 4869 * CDDL HEADER END 4870 */ 4871 4872 /* 4873 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 4874 * Copyright 2016 Joyent, Inc. 4875 * 4876 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 4877 * Use is subject to license terms. 4878 */ 4879 # 50 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 2 4880 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 4881 /* 4882 * This file and its contents are supplied under the terms of the 4883 * Common Development and Distribution License ("CDDL"), version 1.0. 4884 * You may only use this file in accordance with the terms of version 4885 * 1.0 of the CDDL. 4886 * 4887 * A full copy of the text of the CDDL should have accompanied this 4888 * source. A copy of the CDDL is also available via the Internet at 4889 * http://www.illumos.org/license/CDDL. 4890 */ 4891 4892 /* 4893 * Copyright 2014-2016 PALO, Richard. 4894 */ 4895 # 51 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 2 4896 # 60 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 4897 struct lconv { 4898 char *decimal_point; 4899 char *thousands_sep; 4900 char *grouping; 4901 char *int_curr_symbol; 4902 char *currency_symbol; 4903 char *mon_decimal_point; 4904 char *mon_thousands_sep; 4905 char *mon_grouping; 4906 char *positive_sign; 4907 char *negative_sign; 4908 char int_frac_digits; 4909 char frac_digits; 4910 char p_cs_precedes; 4911 char p_sep_by_space; 4912 char n_cs_precedes; 4913 char n_sep_by_space; 4914 char p_sign_posn; 4915 char n_sign_posn; 4916 4917 /* 4918 * New in IEEE Std 1003.1-2001 for alignment with the ISO/IEC 9899:1999 4919 * standard. Namespace and binary compatibility dictate that visibility 4920 * of these new members be limited. Visibility is limited to a strictly 4921 * conforming ANSI C environment (-Xc) or if _LCONV_C99 is defined. 4922 */ 4923 # 94 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 4924 }; 4925 # 104 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/locale_iso.h" 4926 extern char *setlocale(int, const char *); 4927 extern struct lconv *localeconv(void); 4928 # 42 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/locale.h" 2 4929 4930 4931 4932 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/libintl.h" 1 4933 /* 4934 * CDDL HEADER START 4935 * 4936 * The contents of this file are subject to the terms of the 4937 * Common Development and Distribution License (the "License"). 4938 * You may not use this file except in compliance 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 2008 Sun Microsystems, Inc. All rights reserved. 4957 * Use is subject to license terms. 4958 */ 4959 4960 4961 4962 4963 4964 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/isa_defs.h" 1 4965 /* 4966 * CDDL HEADER START 4967 * 4968 * The contents of this file are subject to the terms of the 4969 * Common Development and Distribution License (the "License"). 4970 * You may not use this file except in compliance with the License. 4971 * 4972 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 4973 * or http://www.opensolaris.org/os/licensing. 4974 * See the License for the specific language governing permissions 4975 * and limitations under the License. 4976 * 4977 * 4978 * When distributing Covered Code, include this CDDL HEADER in each 4979 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 4980 * If applicable, add the following below this CDDL HEADER, with the 4981 * fields enclosed by brackets "[]" replaced with your own identifying 4982 * information: Portions Copyright [yyyy] [name of copyright owner] 4983 * 4984 * CDDL HEADER END 4985 */ 4986 4987 /* 4988 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 4989 * Use is subject to license terms. 4990 * Copyright 2016 Joyent, Inc. 4991 */ 4992 # 33 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/libintl.h" 2 4993 4994 4995 4996 4997 4998 /* 4999 * wchar_t is a built-in type in standard C++ and as such is not 5000 * defined here when using standard C++. However, the GNU compiler 5001 * fixincludes utility nonetheless creates its own version of this 5002 * header for use by gcc and g++. In that version it adds a redundant 5003 * guard for __cplusplus. To avoid the creation of a gcc/g++ specific 5004 * header we need to include the following magic comment: 5005 * 5006 * we must use the C++ compiler's type 5007 * 5008 * The above comment should not be removed or changed until GNU 5009 * gcc/fixinc/inclhack.def is updated to bypass this header. 5010 */ 5011 # 67 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/libintl.h" 5012 extern char *dcgettext(const char *, const char *, const int); 5013 extern char *dgettext(const char *, const char *); 5014 extern char *gettext(const char *); 5015 extern char *textdomain(const char *); 5016 extern char *bindtextdomain(const char *, const char *); 5017 5018 /* 5019 * LI18NUX 2000 Globalization Specification Version 1.0 5020 * with Amendment 2 5021 */ 5022 extern char *dcngettext(const char *, const char *, 5023 const char *, unsigned long int, int); 5024 extern char *dngettext(const char *, const char *, 5025 const char *, unsigned long int); 5026 extern char *ngettext(const char *, const char *, unsigned long int); 5027 extern char *bind_textdomain_codeset(const char *, const char *); 5028 5029 /* Word handling functions --- requires dynamic linking */ 5030 /* Warning: these are experimental and subject to change. */ 5031 extern int wdinit(void); 5032 extern int wdchkind(wchar_t); 5033 extern int wdbindf(wchar_t, wchar_t, int); 5034 extern wchar_t *wddelim(wchar_t, wchar_t, int); 5035 extern wchar_t mcfiller(void); 5036 extern int mcwrap(void); 5037 # 46 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/locale.h" 2 5038 5039 5040 /* 5041 * Allow global visibility for symbols defined in 5042 * C++ "std" namespace in <iso/locale_iso.h>. 5043 */ 5044 # 71 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/locale.h" 5045 /* 5046 * These were added in POSIX 2008 as part of the newlocale() specification. 5047 */ 5048 # 87 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/locale.h" 5049 extern locale_t duplocale(locale_t); 5050 extern void freelocale(locale_t); 5051 extern locale_t newlocale(int, const char *, locale_t); 5052 extern locale_t uselocale(locale_t); 5053 5054 5055 extern locale_t __global_locale(void); 5056 # 50 "../expr/compile.c" 2 5057 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 1 5058 /* 5059 * CDDL HEADER START 5060 * 5061 * The contents of this file are subject to the terms of the 5062 * Common Development and Distribution License (the "License"). 5063 * You may not use this file except in compliance with the License. 5064 * 5065 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5066 * or http://www.opensolaris.org/os/licensing. 5067 * See the License for the specific language governing permissions 5068 * and limitations under the License. 5069 * 5070 * When distributing Covered Code, include this CDDL HEADER in each 5071 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5072 * If applicable, add the following below this CDDL HEADER, with the 5073 * fields enclosed by brackets "[]" replaced with your own identifying 5074 * information: Portions Copyright [yyyy] [name of copyright owner] 5075 * 5076 * CDDL HEADER END 5077 */ 5078 5079 /* 5080 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5081 * Copyright (c) 2013 Gary Mills 5082 * 5083 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 5084 */ 5085 5086 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */ 5087 5088 /* Copyright (c) 1988 AT&T */ 5089 /* All Rights Reserved */ 5090 5091 5092 5093 5094 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 1 5095 /* 5096 * CDDL HEADER START 5097 * 5098 * The contents of this file are subject to the terms of the 5099 * Common Development and Distribution License, Version 1.0 only 5100 * (the "License"). You may not use this file except in compliance 5101 * with the License. 5102 * 5103 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5104 * or http://www.opensolaris.org/os/licensing. 5105 * See the License for the specific language governing permissions 5106 * and limitations under the License. 5107 * 5108 * When distributing Covered Code, include this CDDL HEADER in each 5109 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5110 * If applicable, add the following below this CDDL HEADER, with the 5111 * fields enclosed by brackets "[]" replaced with your own identifying 5112 * information: Portions Copyright [yyyy] [name of copyright owner] 5113 * 5114 * CDDL HEADER END 5115 */ 5116 /* 5117 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5118 * Copyright 2014 PALO, Richard. 5119 * 5120 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 5121 * Use is subject to license terms. 5122 */ 5123 5124 /* Copyright (c) 1988 AT&T */ 5125 /* All Rights Reserved */ 5126 5127 5128 /* 5129 * An application should not include this header directly. Instead it 5130 * should be included only through the inclusion of other Sun headers. 5131 * 5132 * The contents of this header is limited to identifiers specified in the 5133 * C Standard. Any new identifiers specified in future amendments to the 5134 * C Standard must be placed in this header. If these new identifiers 5135 * are required to also be in the C++ Standard "std" namespace, then for 5136 * anything other than macro definitions, corresponding "using" directives 5137 * must also be added to <locale.h>. 5138 */ 5139 5140 5141 5142 5143 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 5144 /* 5145 * CDDL HEADER START 5146 * 5147 * The contents of this file are subject to the terms of the 5148 * Common Development and Distribution License (the "License"). 5149 * You may not use this file except in compliance with the License. 5150 * 5151 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5152 * or http://www.opensolaris.org/os/licensing. 5153 * See the License for the specific language governing permissions 5154 * and limitations under the License. 5155 * 5156 * When distributing Covered Code, include this CDDL HEADER in each 5157 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5158 * If applicable, add the following below this CDDL HEADER, with the 5159 * fields enclosed by brackets "[]" replaced with your own identifying 5160 * information: Portions Copyright [yyyy] [name of copyright owner] 5161 * 5162 * CDDL HEADER END 5163 */ 5164 5165 /* 5166 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 5167 * Copyright 2016 Joyent, Inc. 5168 * 5169 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 5170 * Use is subject to license terms. 5171 */ 5172 # 50 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 2 5173 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 5174 /* 5175 * This file and its contents are supplied under the terms of the 5176 * Common Development and Distribution License ("CDDL"), version 1.0. 5177 * You may only use this file in accordance with the terms of version 5178 * 1.0 of the CDDL. 5179 * 5180 * A full copy of the text of the CDDL should have accompanied this 5181 * source. A copy of the CDDL is also available via the Internet at 5182 * http://www.illumos.org/license/CDDL. 5183 */ 5184 5185 /* 5186 * Copyright 2014-2016 PALO, Richard. 5187 */ 5188 # 51 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 2 5189 5190 5191 5192 5193 5194 unsigned char __mb_cur_max(void); 5195 # 65 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 5196 typedef struct { 5197 int quot; 5198 int rem; 5199 } div_t; 5200 5201 typedef struct { 5202 long quot; 5203 long rem; 5204 } ldiv_t; 5205 # 88 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 5206 /* 5207 * wchar_t is a built-in type in standard C++ and as such is not 5208 * defined here when using standard C++. However, the GNU compiler 5209 * fixincludes utility nonetheless creates its own version of this 5210 * header for use by gcc and g++. In that version it adds a redundant 5211 * guard for __cplusplus. To avoid the creation of a gcc/g++ specific 5212 * header we need to include the following magic comment: 5213 * 5214 * we must use the C++ compiler's type 5215 * 5216 * The above comment should not be removed or changed until GNU 5217 * gcc/fixinc/inclhack.def is updated to bypass this header. 5218 */ 5219 # 120 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_iso.h" 5220 extern void abort(void) __attribute__((__noreturn__)); 5221 extern int abs(int); 5222 extern int atexit(void (*)(void)); 5223 extern double atof(const char *); 5224 extern int atoi(const char *); 5225 extern long int atol(const char *); 5226 extern void *bsearch(const void *, const void *, size_t, size_t, 5227 int (*)(const void *, const void *)); 5228 5229 5230 5231 5232 5233 5234 extern void *calloc(size_t, size_t); 5235 extern div_t div(int, int); 5236 extern void exit(int) 5237 __attribute__((__noreturn__)); 5238 extern void free(void *); 5239 extern char *getenv(const char *); 5240 extern long int labs(long); 5241 extern ldiv_t ldiv(long, long); 5242 extern void *malloc(size_t); 5243 extern int mblen(const char *, size_t); 5244 extern size_t mbstowcs(wchar_t *, const char *, 5245 size_t); 5246 extern int mbtowc(wchar_t *, const char *, size_t); 5247 extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); 5248 5249 5250 5251 5252 5253 extern int rand(void); 5254 extern void *realloc(void *, size_t); 5255 extern void srand(unsigned int); 5256 extern double strtod(const char *, char **); 5257 extern long int strtol(const char *, char **, int); 5258 extern unsigned long int strtoul(const char *, 5259 char **, int); 5260 extern int system(const char *); 5261 extern int wctomb(char *, wchar_t); 5262 extern size_t wcstombs(char *, const wchar_t *, 5263 size_t); 5264 # 38 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 2 5265 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c99.h" 1 5266 /* 5267 * CDDL HEADER START 5268 * 5269 * The contents of this file are subject to the terms of the 5270 * Common Development and Distribution License, Version 1.0 only 5271 * (the "License"). You may not use this file except in compliance 5272 * with the License. 5273 * 5274 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5275 * or http://www.opensolaris.org/os/licensing. 5276 * See the License for the specific language governing permissions 5277 * and limitations under the License. 5278 * 5279 * When distributing Covered Code, include this CDDL HEADER in each 5280 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5281 * If applicable, add the following below this CDDL HEADER, with the 5282 * fields enclosed by brackets "[]" replaced with your own identifying 5283 * information: Portions Copyright [yyyy] [name of copyright owner] 5284 * 5285 * CDDL HEADER END 5286 */ 5287 /* 5288 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5289 * 5290 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5291 * Use is subject to license terms. 5292 */ 5293 5294 /* 5295 * An application should not include this header directly. Instead it 5296 * should be included only through the inclusion of other Sun headers. 5297 * 5298 * The contents of this header is limited to identifiers specified in 5299 * the C99 standard and in conflict with the C++ implementation of the 5300 * standard header. The C++ standard may adopt the C99 standard at 5301 * which point it is expected that the symbols included here will 5302 * become part of the C++ std namespace. 5303 */ 5304 5305 5306 5307 5308 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 5309 /* 5310 * CDDL HEADER START 5311 * 5312 * The contents of this file are subject to the terms of the 5313 * Common Development and Distribution License (the "License"). 5314 * You may not use this file except in compliance with the License. 5315 * 5316 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5317 * or http://www.opensolaris.org/os/licensing. 5318 * See the License for the specific language governing permissions 5319 * and limitations under the License. 5320 * 5321 * When distributing Covered Code, include this CDDL HEADER in each 5322 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5323 * If applicable, add the following below this CDDL HEADER, with the 5324 * fields enclosed by brackets "[]" replaced with your own identifying 5325 * information: Portions Copyright [yyyy] [name of copyright owner] 5326 * 5327 * CDDL HEADER END 5328 */ 5329 5330 /* 5331 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 5332 * Copyright 2016 Joyent, Inc. 5333 * 5334 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 5335 * Use is subject to license terms. 5336 */ 5337 # 44 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c99.h" 2 5338 5339 5340 5341 5342 5343 /* 5344 * The following have been added as a result of the ISO/IEC 9899:1999 5345 * standard. For a strictly conforming C application, visibility is 5346 * contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h). 5347 * For non-strictly conforming C applications, there are no restrictions 5348 * on the C namespace. 5349 */ 5350 5351 5352 typedef struct { 5353 long long quot; 5354 long long rem; 5355 } lldiv_t; 5356 # 75 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c99.h" 5357 extern void _Exit(int); 5358 extern float strtof(const char *, char **); 5359 extern long double strtold(const char *, char **); 5360 5361 5362 extern long long atoll(const char *); 5363 extern long long llabs(long long); 5364 extern lldiv_t lldiv(long long, long long); 5365 extern long long strtoll(const char *, char **, 5366 int); 5367 extern unsigned long long strtoull(const char *, 5368 char **, int); 5369 # 39 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 2 5370 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c11.h" 1 5371 /* 5372 * This file and its contents are supplied under the terms of the 5373 * Common Development and Distribution License ("CDDL"), version 1.0. 5374 * You may only use this file in accordance with the terms of version 5375 * 1.0 of the CDDL. 5376 * 5377 * A full copy of the text of the CDDL should have accompanied this 5378 * source. A copy of the CDDL is also available via the Internet at 5379 * http://www.illumos.org/license/CDDL. 5380 */ 5381 5382 /* 5383 * Copyright 2016 Joyent, Inc. 5384 */ 5385 5386 /* 5387 * An application should not include this header directly. Instead it 5388 * should be included only through the inclusion of other illumos headers. 5389 * 5390 * The contents of this header is limited to identifiers specified in 5391 * the C11 standard and in conflict with the C++ implementation of the 5392 * standard header. The C++ standard may adopt the C11 standard at 5393 * which point it is expected that the symbols included here will 5394 * become part of the C++ std namespace. 5395 */ 5396 5397 5398 5399 5400 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 5401 /* 5402 * CDDL HEADER START 5403 * 5404 * The contents of this file are subject to the terms of the 5405 * Common Development and Distribution License (the "License"). 5406 * You may not use this file except in compliance with the License. 5407 * 5408 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5409 * or http://www.opensolaris.org/os/licensing. 5410 * See the License for the specific language governing permissions 5411 * and limitations under the License. 5412 * 5413 * When distributing Covered Code, include this CDDL HEADER in each 5414 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5415 * If applicable, add the following below this CDDL HEADER, with the 5416 * fields enclosed by brackets "[]" replaced with your own identifying 5417 * information: Portions Copyright [yyyy] [name of copyright owner] 5418 * 5419 * CDDL HEADER END 5420 */ 5421 5422 /* 5423 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 5424 * Copyright 2016 Joyent, Inc. 5425 * 5426 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 5427 * Use is subject to license terms. 5428 */ 5429 # 31 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c11.h" 2 5430 # 40 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c11.h" 5431 /* 5432 * The following have been added as a result of the ISO/IEC 9899:2011 5433 * standard. For a strictly conforming C application, visibility is 5434 * contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h). 5435 * For non-strictly conforming C applications, there are no restrictions 5436 * on the C namespace. 5437 */ 5438 5439 /* 5440 * Work around fix-includes and other bad actors with using multiple headers. 5441 */ 5442 # 60 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/stdlib_c11.h" 5443 extern void *aligned_alloc(size_t, size_t); 5444 extern int at_quick_exit(void (*)(void)); 5445 extern void quick_exit(int); 5446 # 40 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 2 5447 5448 5449 5450 5451 5452 /* 5453 * Allow global visibility for symbols defined in 5454 * C++ "std" namespace in <iso/stdlib_iso.h>. 5455 */ 5456 # 83 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 5457 /* 5458 * Allow global visibility for symbols defined in 5459 * C++ "std" namespace in <iso/stdlib_c11.h>. 5460 */ 5461 # 104 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 5462 /* large file compilation environment setup */ 5463 # 121 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 5464 /* In the LP64 compilation environment, all APIs are already large file */ 5465 # 141 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 5466 extern int rand_r(unsigned int *); 5467 5468 5469 extern void _exithandle(void); 5470 5471 5472 5473 5474 extern double drand48(void); 5475 extern double erand48(unsigned short *); 5476 extern long jrand48(unsigned short *); 5477 extern void lcong48(unsigned short *); 5478 extern long lrand48(void); 5479 extern long mrand48(void); 5480 extern long nrand48(unsigned short *); 5481 extern unsigned short *seed48(unsigned short *); 5482 extern void srand48(long); 5483 extern int putenv(char *); 5484 extern void setkey(const char *); 5485 5486 5487 /* 5488 * swab() has historically been in <stdlib.h> as delivered from AT&T 5489 * and continues to be visible in the default compilation environment. 5490 * As of Issue 4 of the X/Open Portability Guides, swab() was declared 5491 * in <unistd.h>. As a result, with respect to X/Open namespace the 5492 * swab() declaration in this header is only visible for the XPG3 5493 * environment. 5494 */ 5495 # 182 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 5496 extern void swab(const char *, char *, ssize_t); 5497 5498 5499 5500 5501 5502 extern int mkstemp(char *); 5503 5504 extern int mkstemps(char *, int); 5505 5506 5507 5508 5509 5510 extern int mkstemp64(char *); 5511 5512 extern int mkstemps64(char *, int); 5513 5514 5515 5516 5517 extern char *mkdtemp(char *); 5518 5519 5520 5521 extern int mkostemp(char *, int); 5522 extern int mkostemps(char *, int, int); 5523 5524 5525 extern int mkostemp64(char *, int); 5526 extern int mkostemps64(char *, int, int); 5527 5528 5529 5530 5531 5532 5533 extern long a64l(const char *); 5534 extern char *ecvt(double, int, int *, int *); 5535 extern char *fcvt(double, int, int *, int *); 5536 extern char *gcvt(double, int, char *); 5537 extern int getsubopt(char **, char *const *, char **); 5538 extern int grantpt(int); 5539 extern char *initstate(unsigned, char *, size_t); 5540 extern char *l64a(long); 5541 extern char *mktemp(char *); 5542 extern char *ptsname(int); 5543 extern long random(void); 5544 extern char *realpath(const char *, char *); 5545 extern char *setstate(const char *); 5546 extern void srandom(unsigned); 5547 extern int unlockpt(int); 5548 /* Marked LEGACY in SUSv2 and removed in SUSv3 */ 5549 5550 extern int ttyslot(void); 5551 extern void *valloc(size_t); 5552 5553 5554 5555 5556 5557 5558 extern int posix_memalign(void **, size_t, size_t); 5559 extern int posix_openpt(int); 5560 extern int setenv(const char *, const char *, int); 5561 extern int unsetenv(const char *); 5562 5563 5564 5565 5566 extern char *canonicalize_file_name(const char *); 5567 extern int clearenv(void); 5568 extern void closefrom(int); 5569 extern int daemon(int, int); 5570 extern int dup2(int, int); 5571 extern int dup3(int, int, int); 5572 extern int fdwalk(int (*)(void *, int), void *); 5573 extern char *qecvt(long double, int, int *, int *); 5574 extern char *qfcvt(long double, int, int *, int *); 5575 extern char *qgcvt(long double, int, char *); 5576 extern char *getcwd(char *, size_t); 5577 extern const char *getexecname(void); 5578 5579 5580 5581 5582 5583 5584 # 269 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 5585 #pragma redefine_extname getlogin getloginx 5586 # 269 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 5587 5588 5589 5590 5591 5592 5593 extern char *getlogin(void); 5594 5595 5596 extern int getopt(int, char *const *, const char *); 5597 extern char *optarg; 5598 extern int optind, opterr, optopt; 5599 extern char *getpass(const char *); 5600 extern char *getpassphrase(const char *); 5601 extern int getpw(uid_t, char *); 5602 extern int isatty(int); 5603 extern void *memalign(size_t, size_t); 5604 extern char *ttyname(int); 5605 extern char *mkdtemp(char *); 5606 extern const char *getprogname(void); 5607 extern void setprogname(const char *); 5608 5609 5610 extern char *lltostr(long long, char *); 5611 extern char *ulltostr(unsigned long long, char *); 5612 5613 5614 5615 5616 /* OpenBSD compatibility functions */ 5617 5618 5619 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 1 5620 /* 5621 * CDDL HEADER START 5622 * 5623 * The contents of this file are subject to the terms of the 5624 * Common Development and Distribution License, Version 1.0 only 5625 * (the "License"). You may not use this file except in compliance 5626 * with the License. 5627 * 5628 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5629 * or http://www.opensolaris.org/os/licensing. 5630 * See the License for the specific language governing permissions 5631 * and limitations under the License. 5632 * 5633 * When distributing Covered Code, include this CDDL HEADER in each 5634 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5635 * If applicable, add the following below this CDDL HEADER, with the 5636 * fields enclosed by brackets "[]" replaced with your own identifying 5637 * information: Portions Copyright [yyyy] [name of copyright owner] 5638 * 5639 * CDDL HEADER END 5640 */ 5641 /* 5642 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5643 * 5644 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 5645 * Use is subject to license terms. 5646 */ 5647 5648 5649 5650 5651 /* 5652 * This file, <inttypes.h>, is specified by the ISO C standard, 5653 * standard, ISO/IEC 9899:1999 Programming language - C and is 5654 * also defined by SUSv3. 5655 * 5656 * ISO International Organization for Standardization. 5657 * SUSv3 Single Unix Specification, Version 3 5658 */ 5659 5660 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 5661 /* 5662 * CDDL HEADER START 5663 * 5664 * The contents of this file are subject to the terms of the 5665 * Common Development and Distribution License (the "License"). 5666 * You may not use this file except in compliance with the License. 5667 * 5668 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5669 * or http://www.opensolaris.org/os/licensing. 5670 * See the License for the specific language governing permissions 5671 * and limitations under the License. 5672 * 5673 * When distributing Covered Code, include this CDDL HEADER in each 5674 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5675 * If applicable, add the following below this CDDL HEADER, with the 5676 * fields enclosed by brackets "[]" replaced with your own identifying 5677 * information: Portions Copyright [yyyy] [name of copyright owner] 5678 * 5679 * CDDL HEADER END 5680 */ 5681 5682 /* 5683 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 5684 * Copyright 2016 Joyent, Inc. 5685 * 5686 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 5687 * Use is subject to license terms. 5688 */ 5689 # 42 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 2 5690 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 1 5691 /* 5692 * CDDL HEADER START 5693 * 5694 * The contents of this file are subject to the terms of the 5695 * Common Development and Distribution License, Version 1.0 only 5696 * (the "License"). You may not use this file except in compliance 5697 * with the License. 5698 * 5699 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5700 * or http://www.opensolaris.org/os/licensing. 5701 * See the License for the specific language governing permissions 5702 * and limitations under the License. 5703 * 5704 * When distributing Covered Code, include this CDDL HEADER in each 5705 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5706 * If applicable, add the following below this CDDL HEADER, with the 5707 * fields enclosed by brackets "[]" replaced with your own identifying 5708 * information: Portions Copyright [yyyy] [name of copyright owner] 5709 * 5710 * CDDL HEADER END 5711 */ 5712 /* 5713 * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 5714 * Use is subject to license terms. 5715 */ 5716 5717 5718 5719 5720 #pragma ident "%Z%%M% %I% %E% SMI" 5721 5722 /* 5723 * This header, <sys/inttypes.h>, contains (through nested inclusion) the 5724 * vast majority of the facilities specified for <inttypes.h> as defined 5725 * by the ISO C Standard, ISO/IEC 9899:1999 Programming language - C. 5726 * 5727 * Kernel/Driver developers are encouraged to include this file to access 5728 * the fixed size types, limits and utility macros. Application developers 5729 * should use the standard defined header <inttypes.h>. 5730 */ 5731 5732 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 5733 /* 5734 * CDDL HEADER START 5735 * 5736 * The contents of this file are subject to the terms of the 5737 * Common Development and Distribution License (the "License"). 5738 * You may not use this file except in compliance with the License. 5739 * 5740 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5741 * or http://www.opensolaris.org/os/licensing. 5742 * See the License for the specific language governing permissions 5743 * and limitations under the License. 5744 * 5745 * When distributing Covered Code, include this CDDL HEADER in each 5746 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5747 * If applicable, add the following below this CDDL HEADER, with the 5748 * fields enclosed by brackets "[]" replaced with your own identifying 5749 * information: Portions Copyright [yyyy] [name of copyright owner] 5750 * 5751 * CDDL HEADER END 5752 */ 5753 5754 /* 5755 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 5756 * Copyright 2016 Joyent, Inc. 5757 * 5758 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 5759 * Use is subject to license terms. 5760 */ 5761 # 43 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 2 5762 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_types.h" 1 5763 /* 5764 * CDDL HEADER START 5765 * 5766 * The contents of this file are subject to the terms of the 5767 * Common Development and Distribution License, Version 1.0 only 5768 * (the "License"). You may not use this file except in compliance 5769 * with the License. 5770 * 5771 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5772 * or http://www.opensolaris.org/os/licensing. 5773 * See the License for the specific language governing permissions 5774 * and limitations under the License. 5775 * 5776 * When distributing Covered Code, include this CDDL HEADER in each 5777 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5778 * If applicable, add the following below this CDDL HEADER, with the 5779 * fields enclosed by brackets "[]" replaced with your own identifying 5780 * information: Portions Copyright [yyyy] [name of copyright owner] 5781 * 5782 * CDDL HEADER END 5783 */ 5784 /* 5785 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5786 * 5787 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5788 * Use is subject to license terms. 5789 */ 5790 # 44 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 2 5791 5792 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 1 5793 /* 5794 * CDDL HEADER START 5795 * 5796 * The contents of this file are subject to the terms of the 5797 * Common Development and Distribution License, Version 1.0 only 5798 * (the "License"). You may not use this file except in compliance 5799 * with the License. 5800 * 5801 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5802 * or http://www.opensolaris.org/os/licensing. 5803 * See the License for the specific language governing permissions 5804 * and limitations under the License. 5805 * 5806 * When distributing Covered Code, include this CDDL HEADER in each 5807 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5808 * If applicable, add the following below this CDDL HEADER, with the 5809 * fields enclosed by brackets "[]" replaced with your own identifying 5810 * information: Portions Copyright [yyyy] [name of copyright owner] 5811 * 5812 * CDDL HEADER END 5813 */ 5814 /* 5815 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 5816 * 5817 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5818 * Use is subject to license terms. 5819 */ 5820 5821 5822 5823 5824 /* 5825 * This file, <sys/int_limits.h>, is part of the Sun Microsystems implementation 5826 * of <inttypes.h> as defined in the ISO C standard, ISO/IEC 9899:1999 5827 * Programming language - C. 5828 * 5829 * Programs/Modules should not directly include this file. Access to the 5830 * types defined in this file should be through the inclusion of one of the 5831 * following files: 5832 * 5833 * <limits.h> This nested inclusion is disabled for strictly 5834 * ANSI-C conforming compilations. The *_MIN 5835 * definitions are not visible to POSIX or XPG 5836 * conforming applications (due to what may be 5837 * a bug in the specification - this is under 5838 * investigation) 5839 * 5840 * <sys/inttypes.h> Provides the Kernel and Driver appropriate 5841 * components of <inttypes.h>. 5842 * 5843 * <inttypes.h> For use by applications. 5844 * 5845 * See these files for more details. 5846 */ 5847 5848 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 5849 /* 5850 * CDDL HEADER START 5851 * 5852 * The contents of this file are subject to the terms of the 5853 * Common Development and Distribution License (the "License"). 5854 * You may not use this file except in compliance with the License. 5855 * 5856 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5857 * or http://www.opensolaris.org/os/licensing. 5858 * See the License for the specific language governing permissions 5859 * and limitations under the License. 5860 * 5861 * When distributing Covered Code, include this CDDL HEADER in each 5862 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 5863 * If applicable, add the following below this CDDL HEADER, with the 5864 * fields enclosed by brackets "[]" replaced with your own identifying 5865 * information: Portions Copyright [yyyy] [name of copyright owner] 5866 * 5867 * CDDL HEADER END 5868 */ 5869 5870 /* 5871 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 5872 * Copyright 2016 Joyent, Inc. 5873 * 5874 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 5875 * Use is subject to license terms. 5876 */ 5877 # 57 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 2 5878 5879 5880 5881 5882 5883 /* 5884 * Limits 5885 * 5886 * The following define the limits for the types defined in <sys/int_types.h>. 5887 * 5888 * INTMAX_MIN (minimum value of the largest supported signed integer type), 5889 * INTMAX_MAX (maximum value of the largest supported signed integer type), 5890 * and UINTMAX_MAX (maximum value of the largest supported unsigned integer 5891 * type) can be set to implementation defined limits. 5892 * 5893 * NOTE : A programmer can test to see whether an implementation supports 5894 * a particular size of integer by testing if the macro that gives the 5895 * maximum for that datatype is defined. For example, if #ifdef UINT64_MAX 5896 * tests false, the implementation does not support unsigned 64 bit integers. 5897 * 5898 * The type of these macros is intentionally unspecified. 5899 * 5900 * The types int8_t, int_least8_t, and int_fast8_t are not defined for ISAs 5901 * where the ABI specifies "char" as unsigned when the translation mode is 5902 * not ANSI-C. 5903 */ 5904 # 141 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 5905 /* 5906 * The following 2 macros are provided for testing whether the types 5907 * intptr_t and uintptr_t (integers large enough to hold a void *) are 5908 * defined in this header. They are needed in case the architecture can't 5909 * represent a pointer in any standard integral type. 5910 */ 5911 # 155 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 5912 /* Maximum limits of ptrdiff_t defined in <sys/types.h> */ 5913 5914 5915 5916 5917 5918 5919 /* 5920 * Maximum value of a "size_t". SIZE_MAX was previously defined 5921 * in <limits.h>, however, the standards specify it be defined 5922 * in <stdint.h>. The <stdint.h> headers includes this header as 5923 * does <limits.h>. The value of SIZE_MAX should not deviate 5924 * from the value of ULONG_MAX defined <sys/types.h>. 5925 */ 5926 5927 5928 5929 5930 5931 5932 /* Maximum limit of sig_atomic_t defined in <sys/types.h> */ 5933 5934 5935 5936 5937 /* 5938 * Maximum limit of wchar_t. The WCHAR_* macros are also 5939 * defined in <iso/wchar_iso.h>, but inclusion of that header 5940 * will break ISO/IEC C namespace. 5941 */ 5942 5943 5944 5945 5946 /* Maximum limit of wint_t */ 5947 5948 5949 5950 5951 /* 5952 * It is probably a bug in the POSIX specification (IEEE-1003.1-1990) that 5953 * when including <limits.h> that the suffix _MAX is reserved but not the 5954 * suffix _MIN. However, until that issue is resolved.... 5955 */ 5956 # 230 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 5957 /* Minimum value of a pointer-holding signed integer type */ 5958 5959 5960 5961 5962 5963 5964 /* Minimum limits of ptrdiff_t defined in <sys/types.h> */ 5965 5966 5967 5968 5969 5970 5971 /* Minimum limit of sig_atomic_t defined in <sys/types.h> */ 5972 5973 5974 5975 5976 /* 5977 * Minimum limit of wchar_t. The WCHAR_* macros are also 5978 * defined in <iso/wchar_iso.h>, but inclusion of that header 5979 * will break ISO/IEC C namespace. 5980 */ 5981 5982 5983 5984 5985 /* Minimum limit of wint_t */ 5986 # 46 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 2 5987 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_const.h" 1 5988 /* 5989 * CDDL HEADER START 5990 * 5991 * The contents of this file are subject to the terms of the 5992 * Common Development and Distribution License, Version 1.0 only 5993 * (the "License"). You may not use this file except in compliance 5994 * with the License. 5995 * 5996 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 5997 * or http://www.opensolaris.org/os/licensing. 5998 * See the License for the specific language governing permissions 5999 * and limitations under the License. 6000 * 6001 * When distributing Covered Code, include this CDDL HEADER in each 6002 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6003 * If applicable, add the following below this CDDL HEADER, with the 6004 * fields enclosed by brackets "[]" replaced with your own identifying 6005 * information: Portions Copyright [yyyy] [name of copyright owner] 6006 * 6007 * CDDL HEADER END 6008 */ 6009 /* 6010 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 6011 * 6012 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 6013 * Use is subject to license terms. 6014 */ 6015 6016 6017 6018 6019 /* 6020 * This file, <sys/int_const.h>, is part of the Sun Microsystems implementation 6021 * of <inttypes.h> as proposed in the ISO/JTC1/SC22/WG14 C committee's working 6022 * draft for the revision of the current ISO C standard, ISO/IEC 9899:1990 6023 * Programming language - C. 6024 * 6025 * Programs/Modules should not directly include this file. Access to the 6026 * types defined in this file should be through the inclusion of one of the 6027 * following files: 6028 * 6029 * <sys/inttypes.h> Provides the Kernel and Driver appropriate 6030 * components of <inttypes.h>. 6031 * 6032 * <inttypes.h> For use by applications. 6033 * 6034 * See these files for more details. 6035 * 6036 * Use at your own risk. This file will track the evolution of the revision 6037 * of the current ISO C standard. As of February 1996, the committee is 6038 * squarely behind the fixed sized types. 6039 */ 6040 6041 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 6042 /* 6043 * CDDL HEADER START 6044 * 6045 * The contents of this file are subject to the terms of the 6046 * Common Development and Distribution License (the "License"). 6047 * You may not use this file except in compliance with the License. 6048 * 6049 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6050 * or http://www.opensolaris.org/os/licensing. 6051 * See the License for the specific language governing permissions 6052 * and limitations under the License. 6053 * 6054 * When distributing Covered Code, include this CDDL HEADER in each 6055 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6056 * If applicable, add the following below this CDDL HEADER, with the 6057 * fields enclosed by brackets "[]" replaced with your own identifying 6058 * information: Portions Copyright [yyyy] [name of copyright owner] 6059 * 6060 * CDDL HEADER END 6061 */ 6062 6063 /* 6064 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 6065 * Copyright 2016 Joyent, Inc. 6066 * 6067 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 6068 * Use is subject to license terms. 6069 */ 6070 # 55 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_const.h" 2 6071 6072 6073 6074 6075 6076 /* 6077 * Constants 6078 * 6079 * The following macros create constants of the types defined in 6080 * <sys/int_types.h>. The intent is that: 6081 * Constants defined using these macros have a specific size and 6082 * signedness. The suffix used for int64_t and uint64_t (ll and ull) 6083 * are for examples only. Implementations are permitted to use other 6084 * suffixes. 6085 * 6086 * The "CSTYLED" comments are flags to an internal code style analysis tool 6087 * telling it to silently accept the line which follows. This internal 6088 * standard requires a space between arguments, but the historical, 6089 * non-ANSI-C ``method'' of concatenation can't tolerate those spaces. 6090 */ 6091 /* CSTYLED */ 6092 # 86 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_const.h" 6093 /* CSTYLED */ 6094 6095 6096 6097 6098 /* CSTYLED */ 6099 6100 /* CSTYLED */ 6101 6102 /* CSTYLED */ 6103 6104 6105 6106 6107 6108 6109 /* CSTYLED */ 6110 # 114 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_const.h" 6111 /* CSTYLED */ 6112 6113 /* CSTYLED */ 6114 # 47 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 2 6115 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 1 6116 /* 6117 * CDDL HEADER START 6118 * 6119 * The contents of this file are subject to the terms of the 6120 * Common Development and Distribution License, Version 1.0 only 6121 * (the "License"). You may not use this file except in compliance 6122 * with the License. 6123 * 6124 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6125 * or http://www.opensolaris.org/os/licensing. 6126 * See the License for the specific language governing permissions 6127 * and limitations under the License. 6128 * 6129 * When distributing Covered Code, include this CDDL HEADER in each 6130 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6131 * If applicable, add the following below this CDDL HEADER, with the 6132 * fields enclosed by brackets "[]" replaced with your own identifying 6133 * information: Portions Copyright [yyyy] [name of copyright owner] 6134 * 6135 * CDDL HEADER END 6136 */ 6137 /* 6138 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 6139 * 6140 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 6141 * Use is subject to license terms. 6142 */ 6143 6144 6145 6146 6147 /* 6148 * This file, <sys/int_fmtio.h>, is part of the Sun Microsystems implementation 6149 * of <inttypes.h> as defined by the ISO C Standard, ISO/IEC 9899:1999 6150 * Programming language - C. 6151 * 6152 * ISO International Organization for Standardization. 6153 * 6154 * Programs/Modules should not directly include this file. Access to the 6155 * types defined in this file should be through the inclusion of one of the 6156 * following files: 6157 * 6158 * <sys/inttypes.h> Provides the Kernel and Driver appropriate 6159 * components of <inttypes.h>. 6160 * 6161 * <inttypes.h> For use by applications. 6162 * 6163 * See these files for more details. 6164 */ 6165 6166 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 6167 /* 6168 * CDDL HEADER START 6169 * 6170 * The contents of this file are subject to the terms of the 6171 * Common Development and Distribution License (the "License"). 6172 * You may not use this file except in compliance with the License. 6173 * 6174 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6175 * or http://www.opensolaris.org/os/licensing. 6176 * See the License for the specific language governing permissions 6177 * and limitations under the License. 6178 * 6179 * When distributing Covered Code, include this CDDL HEADER in each 6180 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6181 * If applicable, add the following below this CDDL HEADER, with the 6182 * fields enclosed by brackets "[]" replaced with your own identifying 6183 * information: Portions Copyright [yyyy] [name of copyright owner] 6184 * 6185 * CDDL HEADER END 6186 */ 6187 6188 /* 6189 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 6190 * Copyright 2016 Joyent, Inc. 6191 * 6192 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 6193 * Use is subject to license terms. 6194 */ 6195 # 52 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 2 6196 6197 6198 6199 6200 6201 /* 6202 * Formatted I/O 6203 * 6204 * The following macros can be used even when an implementation has not 6205 * extended the printf/scanf family of functions. 6206 * 6207 * The form of the names of the macros is either "PRI" for printf specifiers 6208 * or "SCN" for scanf specifiers, followed by the conversion specifier letter 6209 * followed by the datatype size. For example, PRId32 is the macro for 6210 * the printf d conversion specifier with the flags for 32 bit datatype. 6211 * 6212 * An example using one of these macros: 6213 * 6214 * uint64_t u; 6215 * printf("u = %016" PRIx64 "\n", u); 6216 * 6217 * For the purpose of example, the definitions of the printf/scanf macros 6218 * below have the values appropriate for a machine with 8 bit shorts, 16 6219 * bit shorts, 32 bit ints, 32 or 64 bit longs depending on compilation 6220 * mode, and 64 bit long longs. 6221 */ 6222 6223 /* 6224 * fprintf macros for signed integers 6225 */ 6226 # 139 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 6227 /* 6228 * fprintf macros for unsigned integers 6229 */ 6230 # 227 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 6231 /* 6232 * fprintf macros for pointers 6233 */ 6234 # 247 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 6235 /* 6236 * fscanf macros for signed integers 6237 */ 6238 # 282 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 6239 /* 6240 * fscanf macros for unsigned integers 6241 */ 6242 # 349 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_fmtio.h" 6243 /* 6244 * The following macros define I/O formats for intmax_t and uintmax_t. 6245 */ 6246 # 48 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/inttypes.h" 2 6247 # 43 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 2 6248 6249 6250 6251 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/stdint.h" 1 6252 /* 6253 * CDDL HEADER START 6254 * 6255 * The contents of this file are subject to the terms of the 6256 * Common Development and Distribution License, Version 1.0 only 6257 * (the "License"). You may not use this file except in compliance 6258 * with the License. 6259 * 6260 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6261 * or http://www.opensolaris.org/os/licensing. 6262 * See the License for the specific language governing permissions 6263 * and limitations under the License. 6264 * 6265 * When distributing Covered Code, include this CDDL HEADER in each 6266 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6267 * If applicable, add the following below this CDDL HEADER, with the 6268 * fields enclosed by brackets "[]" replaced with your own identifying 6269 * information: Portions Copyright [yyyy] [name of copyright owner] 6270 * 6271 * CDDL HEADER END 6272 */ 6273 /* 6274 * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 6275 * Use is subject to license terms. 6276 */ 6277 6278 6279 6280 6281 #pragma ident "%Z%%M% %I% %E% SMI" 6282 6283 /* 6284 * This header is included by <stdint.h> which was introduced by 6285 * the ISO C Standard, ISO/IEC 9899:1999 Programming language - C. 6286 * The header is a subset of the <inttypes.h> header. 6287 */ 6288 6289 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_types.h" 1 6290 /* 6291 * CDDL HEADER START 6292 * 6293 * The contents of this file are subject to the terms of the 6294 * Common Development and Distribution License, Version 1.0 only 6295 * (the "License"). You may not use this file except in compliance 6296 * with the License. 6297 * 6298 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6299 * or http://www.opensolaris.org/os/licensing. 6300 * See the License for the specific language governing permissions 6301 * and limitations under the License. 6302 * 6303 * When distributing Covered Code, include this CDDL HEADER in each 6304 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6305 * If applicable, add the following below this CDDL HEADER, with the 6306 * fields enclosed by brackets "[]" replaced with your own identifying 6307 * information: Portions Copyright [yyyy] [name of copyright owner] 6308 * 6309 * CDDL HEADER END 6310 */ 6311 /* 6312 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 6313 * 6314 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 6315 * Use is subject to license terms. 6316 */ 6317 # 39 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/stdint.h" 2 6318 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_limits.h" 1 6319 /* 6320 * CDDL HEADER START 6321 * 6322 * The contents of this file are subject to the terms of the 6323 * Common Development and Distribution License, Version 1.0 only 6324 * (the "License"). You may not use this file except in compliance 6325 * with the License. 6326 * 6327 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6328 * or http://www.opensolaris.org/os/licensing. 6329 * See the License for the specific language governing permissions 6330 * and limitations under the License. 6331 * 6332 * When distributing Covered Code, include this CDDL HEADER in each 6333 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6334 * If applicable, add the following below this CDDL HEADER, with the 6335 * fields enclosed by brackets "[]" replaced with your own identifying 6336 * information: Portions Copyright [yyyy] [name of copyright owner] 6337 * 6338 * CDDL HEADER END 6339 */ 6340 /* 6341 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 6342 * 6343 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 6344 * Use is subject to license terms. 6345 */ 6346 # 40 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/stdint.h" 2 6347 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/int_const.h" 1 6348 /* 6349 * CDDL HEADER START 6350 * 6351 * The contents of this file are subject to the terms of the 6352 * Common Development and Distribution License, Version 1.0 only 6353 * (the "License"). You may not use this file except in compliance 6354 * with the License. 6355 * 6356 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6357 * or http://www.opensolaris.org/os/licensing. 6358 * See the License for the specific language governing permissions 6359 * and limitations under the License. 6360 * 6361 * When distributing Covered Code, include this CDDL HEADER in each 6362 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6363 * If applicable, add the following below this CDDL HEADER, with the 6364 * fields enclosed by brackets "[]" replaced with your own identifying 6365 * information: Portions Copyright [yyyy] [name of copyright owner] 6366 * 6367 * CDDL HEADER END 6368 */ 6369 /* 6370 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 6371 * 6372 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 6373 * Use is subject to license terms. 6374 */ 6375 # 41 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/stdint.h" 2 6376 # 47 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 2 6377 6378 6379 6380 6381 6382 6383 /* Inclusion of <stddef.h> breaks namespace, therefore define wchar_t */ 6384 6385 /* 6386 * wchar_t is a built-in type in standard C++ and as such is not 6387 * defined here when using standard C++. However, the GNU compiler 6388 * fixincludes utility nonetheless creates its own version of this 6389 * header for use by gcc and g++. In that version it adds a redundant 6390 * guard for __cplusplus. To avoid the creation of a gcc/g++ specific 6391 * header we need to include the following magic comment: 6392 * 6393 * we must use the C++ compiler's type 6394 * 6395 * The above comment should not be removed or changed until GNU 6396 * gcc/fixinc/inclhack.def is updated to bypass this header. 6397 */ 6398 # 81 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 6399 typedef struct { 6400 intmax_t quot; 6401 intmax_t rem; 6402 } imaxdiv_t; 6403 # 108 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/inttypes.h" 6404 extern intmax_t imaxabs(intmax_t); 6405 extern imaxdiv_t imaxdiv(intmax_t, intmax_t); 6406 extern intmax_t strtoimax(const char *, char **, 6407 int); 6408 extern uintmax_t strtoumax(const char *, char **, 6409 int); 6410 extern intmax_t wcstoimax(const wchar_t *, 6411 wchar_t **, int); 6412 extern uintmax_t wcstoumax(const wchar_t *, 6413 wchar_t **, int); 6414 # 302 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/stdlib.h" 2 6415 extern uint32_t arc4random(void); 6416 extern void arc4random_buf(void *, size_t); 6417 extern uint32_t arc4random_uniform(uint32_t); 6418 extern void freezero(void *, size_t); 6419 extern void *recallocarray(void *, size_t, size_t, size_t); 6420 # 51 "../expr/compile.c" 2 6421 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/locale.h" 1 6422 /* 6423 * CDDL HEADER START 6424 * 6425 * The contents of this file are subject to the terms of the 6426 * Common Development and Distribution License, Version 1.0 only 6427 * (the "License"). You may not use this file except in compliance 6428 * with the License. 6429 * 6430 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6431 * or http://www.opensolaris.org/os/licensing. 6432 * See the License for the specific language governing permissions 6433 * and limitations under the License. 6434 * 6435 * When distributing Covered Code, include this CDDL HEADER in each 6436 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6437 * If applicable, add the following below this CDDL HEADER, with the 6438 * fields enclosed by brackets "[]" replaced with your own identifying 6439 * information: Portions Copyright [yyyy] [name of copyright owner] 6440 * 6441 * CDDL HEADER END 6442 */ 6443 /* 6444 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 6445 * Use is subject to license terms. 6446 */ 6447 6448 /* 6449 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 6450 * 6451 * Portions of this file developed by Garrett D'Amore are licensed 6452 * under the terms of the Common Development and Distribution License (CDDL) 6453 * version 1.0 only. The use of subsequent versions of the License are 6454 * is specifically prohibited unless those terms are not in conflict with 6455 * version 1.0 of the License. You can find this license on-line at 6456 * http://www.illumos.org/license/CDDL 6457 */ 6458 # 52 "../expr/compile.c" 2 6459 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/string.h" 1 6460 /* 6461 * CDDL HEADER START 6462 * 6463 * The contents of this file are subject to the terms of the 6464 * Common Development and Distribution License (the "License"). 6465 * You may not use this file except in compliance with the License. 6466 * 6467 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6468 * or http://www.opensolaris.org/os/licensing. 6469 * See the License for the specific language governing permissions 6470 * and limitations under the License. 6471 * 6472 * When distributing Covered Code, include this CDDL HEADER in each 6473 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6474 * If applicable, add the following below this CDDL HEADER, with the 6475 * fields enclosed by brackets "[]" replaced with your own identifying 6476 * information: Portions Copyright [yyyy] [name of copyright owner] 6477 * 6478 * CDDL HEADER END 6479 */ 6480 6481 /* 6482 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 6483 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 6484 */ 6485 6486 /* Copyright (c) 1988 AT&T */ 6487 /* All Rights Reserved */ 6488 6489 6490 6491 6492 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/string_iso.h" 1 6493 /* 6494 * CDDL HEADER START 6495 * 6496 * The contents of this file are subject to the terms of the 6497 * Common Development and Distribution License, Version 1.0 only 6498 * (the "License"). You may not use this file except in compliance 6499 * with the License. 6500 * 6501 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6502 * or http://www.opensolaris.org/os/licensing. 6503 * See the License for the specific language governing permissions 6504 * and limitations under the License. 6505 * 6506 * When distributing Covered Code, include this CDDL HEADER in each 6507 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6508 * If applicable, add the following below this CDDL HEADER, with the 6509 * fields enclosed by brackets "[]" replaced with your own identifying 6510 * information: Portions Copyright [yyyy] [name of copyright owner] 6511 * 6512 * CDDL HEADER END 6513 */ 6514 /* Copyright (c) 1988 AT&T */ 6515 /* All Rights Reserved */ 6516 6517 6518 /* 6519 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 6520 * Copyright 2014 PALO, Richard. 6521 * 6522 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 6523 * Use is subject to license terms. 6524 */ 6525 6526 /* 6527 * An application should not include this header directly. Instead it 6528 * should be included only through the inclusion of other Sun headers. 6529 * 6530 * The contents of this header is limited to identifiers specified in the 6531 * C Standard. Any new identifiers specified in future amendments to the 6532 * C Standard must be placed in this header. If these new identifiers 6533 * are required to also be in the C++ Standard "std" namespace, then for 6534 * anything other than macro definitions, corresponding "using" directives 6535 * must also be added to <string.h>. 6536 */ 6537 6538 6539 6540 6541 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 6542 /* 6543 * CDDL HEADER START 6544 * 6545 * The contents of this file are subject to the terms of the 6546 * Common Development and Distribution License (the "License"). 6547 * You may not use this file except in compliance with the License. 6548 * 6549 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6550 * or http://www.opensolaris.org/os/licensing. 6551 * See the License for the specific language governing permissions 6552 * and limitations under the License. 6553 * 6554 * When distributing Covered Code, include this CDDL HEADER in each 6555 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6556 * If applicable, add the following below this CDDL HEADER, with the 6557 * fields enclosed by brackets "[]" replaced with your own identifying 6558 * information: Portions Copyright [yyyy] [name of copyright owner] 6559 * 6560 * CDDL HEADER END 6561 */ 6562 6563 /* 6564 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 6565 * Copyright 2016 Joyent, Inc. 6566 * 6567 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 6568 * Use is subject to license terms. 6569 */ 6570 # 50 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/string_iso.h" 2 6571 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 6572 /* 6573 * This file and its contents are supplied under the terms of the 6574 * Common Development and Distribution License ("CDDL"), version 1.0. 6575 * You may only use this file in accordance with the terms of version 6576 * 1.0 of the CDDL. 6577 * 6578 * A full copy of the text of the CDDL should have accompanied this 6579 * source. A copy of the CDDL is also available via the Internet at 6580 * http://www.illumos.org/license/CDDL. 6581 */ 6582 6583 /* 6584 * Copyright 2014-2016 PALO, Richard. 6585 */ 6586 # 51 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/string_iso.h" 2 6587 # 69 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/string_iso.h" 6588 extern int memcmp(const void *, const void *, size_t); 6589 extern void *memcpy(void *, const void *, size_t); 6590 extern void *memmove(void *, const void *, size_t); 6591 extern void *memset(void *, int, size_t); 6592 extern char *strcat(char *, const char *); 6593 extern int strcmp(const char *, const char *); 6594 extern char *strcpy(char *, const char *); 6595 extern int strcoll(const char *, const char *); 6596 extern size_t strcspn(const char *, const char *); 6597 extern char *strerror(int); 6598 extern size_t strlen(const char *); 6599 extern char *strncat(char *, const char *, size_t); 6600 extern int strncmp(const char *, const char *, size_t); 6601 extern char *strncpy(char *, const char *, size_t); 6602 extern size_t strspn(const char *, const char *); 6603 extern char *strtok(char *, const char *); 6604 extern size_t strxfrm(char *, const char *, size_t); 6605 6606 /* 6607 * The C++ Standard (ISO/IEC 14882:1998) specifies that each of the 6608 * function signatures for the following functions be replaced by 6609 * two declarations, both of which have the same behavior. 6610 */ 6611 # 139 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/iso/string_iso.h" 6612 extern void *memchr(const void *, int, size_t); 6613 extern char *strchr(const char *, int); 6614 extern char *strpbrk(const char *, const char *); 6615 extern char *strrchr(const char *, int); 6616 extern char *strstr(const char *, const char *); 6617 # 34 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/string.h" 2 6618 6619 /* 6620 * Allow global visibility for symbols defined in 6621 * C++ "std" namespace in <iso/string_iso.h>. 6622 */ 6623 # 72 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/string.h" 6624 extern int strerror_r(int, char *, size_t); 6625 6626 6627 6628 6629 6630 extern char *strtok_r(char *, const char *, 6631 char **); 6632 6633 6634 6635 6636 extern void *memccpy(void *, const void *, 6637 int, size_t); 6638 6639 6640 6641 6642 extern char *stpcpy(char *, const char *); 6643 extern char *stpncpy(char *, const char *, size_t); 6644 extern char *strndup(const char *, size_t); 6645 extern size_t strnlen(const char *, size_t); 6646 extern char *strsignal(int); 6647 6648 6649 6650 6651 6652 6653 extern int strcoll_l(const char *, const char *, locale_t); 6654 extern size_t strxfrm_l(char *, const char *, 6655 size_t, locale_t); 6656 extern int strcasecmp_l(const char *, const char *, locale_t); 6657 extern int strncasecmp_l(const char *, const char *, size_t, locale_t); 6658 extern char *strerror_l(int, locale_t); 6659 6660 6661 6662 6663 6664 /* Note that some of these are also declared in strings.h for XPG4_2+ */ 6665 extern void explicit_bzero(void *, size_t); 6666 extern int uucopy(const void *, void *, size_t); 6667 extern int uucopystr(const void *, void *, size_t); 6668 extern int ffs(int); 6669 extern int ffsl(long); 6670 extern int ffsll(long long); 6671 extern int fls(int); 6672 extern int flsl(long); 6673 extern int flsll(long long); 6674 extern void *memmem(const void *, size_t, const void *, size_t); 6675 extern char *strcasestr(const char *, const char *); 6676 extern char *strnstr(const char *, const char *, size_t); 6677 extern size_t strlcpy(char *, const char *, size_t); 6678 extern size_t strlcat(char *, const char *, size_t); 6679 extern char *strsep(char **stringp, const char *delim); 6680 extern char *strchrnul(const char *, int); 6681 extern char *strcasestr_l(const char *, const char *, locale_t); 6682 extern int strcasecmp(const char *, const char *); 6683 extern int strncasecmp(const char *, const char *, size_t); 6684 6685 6686 6687 6688 6689 extern char *strdup(const char *); 6690 6691 6692 6693 6694 6695 6696 /* 6697 * gcc provides this inlining facility but Studio C does not. 6698 * We should use it exclusively once Studio C also provides it. 6699 */ 6700 extern void *__builtin_alloca(size_t); 6701 # 53 "../expr/compile.c" 2 6702 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 1 6703 /* 6704 * CDDL HEADER START 6705 * 6706 * The contents of this file are subject to the terms of the 6707 * Common Development and Distribution License (the "License"). 6708 * You may not use this file except in compliance with the License. 6709 * 6710 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6711 * or http://www.opensolaris.org/os/licensing. 6712 * See the License for the specific language governing permissions 6713 * and limitations under the License. 6714 * 6715 * When distributing Covered Code, include this CDDL HEADER in each 6716 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6717 * If applicable, add the following below this CDDL HEADER, with the 6718 * fields enclosed by brackets "[]" replaced with your own identifying 6719 * information: Portions Copyright [yyyy] [name of copyright owner] 6720 * 6721 * CDDL HEADER END 6722 */ 6723 6724 /* 6725 * Copyright 2014 PALO, Richard. 6726 * Copyright 2014 Garrett D'Amore <garrett@damore.org> 6727 * Copyright (c) 2013 Gary Mills 6728 * 6729 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 6730 */ 6731 6732 /* Copyright (c) 1988 AT&T */ 6733 /* All Rights Reserved */ 6734 6735 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */ 6736 6737 6738 6739 6740 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 6741 /* 6742 * CDDL HEADER START 6743 * 6744 * The contents of this file are subject to the terms of the 6745 * Common Development and Distribution License (the "License"). 6746 * You may not use this file except in compliance with the License. 6747 * 6748 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6749 * or http://www.opensolaris.org/os/licensing. 6750 * See the License for the specific language governing permissions 6751 * and limitations under the License. 6752 * 6753 * When distributing Covered Code, include this CDDL HEADER in each 6754 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6755 * If applicable, add the following below this CDDL HEADER, with the 6756 * fields enclosed by brackets "[]" replaced with your own identifying 6757 * information: Portions Copyright [yyyy] [name of copyright owner] 6758 * 6759 * CDDL HEADER END 6760 */ 6761 6762 /* 6763 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 6764 * Copyright 2016 Joyent, Inc. 6765 * 6766 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 6767 * Use is subject to license terms. 6768 */ 6769 # 39 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 2 6770 6771 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/null.h" 1 6772 /* 6773 * This file and its contents are supplied under the terms of the 6774 * Common Development and Distribution License ("CDDL"), version 1.0. 6775 * You may only use this file in accordance with the terms of version 6776 * 1.0 of the CDDL. 6777 * 6778 * A full copy of the text of the CDDL should have accompanied this 6779 * source. A copy of the CDDL is also available via the Internet at 6780 * http://www.illumos.org/license/CDDL. 6781 */ 6782 6783 /* 6784 * Copyright 2014-2016 PALO, Richard. 6785 */ 6786 # 41 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 2 6787 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/types.h" 1 6788 /* 6789 * CDDL HEADER START 6790 * 6791 * The contents of this file are subject to the terms of the 6792 * Common Development and Distribution License (the "License"). 6793 * You may not use this file except in compliance with the License. 6794 * 6795 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6796 * or http://www.opensolaris.org/os/licensing. 6797 * See the License for the specific language governing permissions 6798 * and limitations under the License. 6799 * 6800 * When distributing Covered Code, include this CDDL HEADER in each 6801 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6802 * If applicable, add the following below this CDDL HEADER, with the 6803 * fields enclosed by brackets "[]" replaced with your own identifying 6804 * information: Portions Copyright [yyyy] [name of copyright owner] 6805 * 6806 * CDDL HEADER END 6807 */ 6808 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 6809 /* All Rights Reserved */ 6810 6811 6812 /* 6813 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 6814 * Use is subject to license terms. 6815 * 6816 * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 6817 * Copyright 2016 Joyent, Inc. 6818 */ 6819 # 42 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 2 6820 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 1 6821 /* 6822 * CDDL HEADER START 6823 * 6824 * The contents of this file are subject to the terms of the 6825 * Common Development and Distribution License (the "License"). 6826 * You may not use this file except in compliance with the License. 6827 * 6828 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6829 * or http://www.opensolaris.org/os/licensing. 6830 * See the License for the specific language governing permissions 6831 * and limitations under the License. 6832 * 6833 * When distributing Covered Code, include this CDDL HEADER in each 6834 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6835 * If applicable, add the following below this CDDL HEADER, with the 6836 * fields enclosed by brackets "[]" replaced with your own identifying 6837 * information: Portions Copyright [yyyy] [name of copyright owner] 6838 * 6839 * CDDL HEADER END 6840 */ 6841 6842 /* 6843 * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 6844 * All Rights Reserved 6845 * 6846 */ 6847 6848 /* 6849 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 6850 * Use is subject to license terms. 6851 */ 6852 6853 /* 6854 * WARNING: This is an implementation-specific header, 6855 * its contents are not guaranteed. Applications 6856 * should include <unistd.h> and not this header. 6857 */ 6858 6859 6860 6861 6862 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/feature_tests.h" 1 6863 /* 6864 * CDDL HEADER START 6865 * 6866 * The contents of this file are subject to the terms of the 6867 * Common Development and Distribution License (the "License"). 6868 * You may not use this file except in compliance with the License. 6869 * 6870 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 6871 * or http://www.opensolaris.org/os/licensing. 6872 * See the License for the specific language governing permissions 6873 * and limitations under the License. 6874 * 6875 * When distributing Covered Code, include this CDDL HEADER in each 6876 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 6877 * If applicable, add the following below this CDDL HEADER, with the 6878 * fields enclosed by brackets "[]" replaced with your own identifying 6879 * information: Portions Copyright [yyyy] [name of copyright owner] 6880 * 6881 * CDDL HEADER END 6882 */ 6883 6884 /* 6885 * Copyright 2013 Garrett D'Amore <garrett@damore.org> 6886 * Copyright 2016 Joyent, Inc. 6887 * 6888 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 6889 * Use is subject to license terms. 6890 */ 6891 # 43 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 2 6892 6893 6894 6895 6896 6897 /* command names for confstr */ 6898 6899 6900 6901 /* 6902 * command names for large file configuration information 6903 */ 6904 /* large file compilation environment configuration */ 6905 6906 6907 6908 6909 /* transitional large file interface configuration */ 6910 6911 6912 6913 6914 6915 /* UNIX 98 */ 6916 # 84 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 6917 /* UNIX 03 */ 6918 # 103 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 6919 /* command names for POSIX sysconf */ 6920 6921 /* POSIX.1 names */ 6922 # 114 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 6923 /* SVR4 names */ 6924 6925 6926 6927 6928 /* 13 reserved for SVr4-ES/MP _SC_NACLS_MAX */ 6929 6930 6931 6932 6933 /* POSIX.4 names */ 6934 # 152 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 6935 /* XPG4 names */ 6936 # 174 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 6937 /* additional XSH4/XCU4 command names for sysconf */ 6938 6939 6940 6941 /* additional XPG4v2 (UNIX 95) command names */ 6942 6943 6944 6945 6946 6947 /* defined for XTI (XNS Issue 5) */ 6948 6949 6950 6951 6952 6953 6954 6955 /* 6956 * Hardware specific items 6957 * Note that not all items are supported on all architectures 6958 */ 6959 # 214 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 6960 /* 6961 * POSIX.1c (pthreads) names. These values are defined above 6962 * the sub-500 range. See psarc case 1995/257. 6963 */ 6964 # 235 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 6965 /* UNIX 98 */ 6966 # 244 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 6967 /* UNIX 03 */ 6968 # 285 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 6969 /* command names for POSIX pathconf */ 6970 6971 /* POSIX.1 names */ 6972 # 297 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 6973 /* POSIX.4 names */ 6974 6975 6976 6977 /* UNIX 03 names */ 6978 # 315 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 6979 /* UNIX 08 names */ 6980 6981 6982 /* 6983 * Large File Summit names 6984 * 6985 * This value matches the MIPS ABI choice, but leaves a large gap in the 6986 * value space. 6987 */ 6988 6989 6990 /* 6991 * Extended attributes 6992 */ 6993 6994 6995 6996 /* 6997 * If you add a _PC define above 101, you must change _PC_LAST (and truss). 6998 */ 6999 7000 7001 /* 7002 * Case sensitivity values (related to _PC_CASE_BEHAVIOR) 7003 */ 7004 7005 7006 7007 /* 7008 * The value of 0 is returned when 7009 * ACL's are not supported 7010 */ 7011 # 366 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 7012 /* 7013 * Marked LEGACY in SUSv2 and removed in SUSv3. Though SUSv3 applications 7014 * should not rely on this value, it has been aligned with the current 7015 * standard to avoid confusion if used. 7016 */ 7017 # 408 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/sys/unistd.h" 7018 /* UNIX 03 names */ 7019 # 43 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 2 7020 7021 7022 7023 7024 7025 /* Symbolic constants for the "access" routine: */ 7026 # 61 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7027 /* Symbolic constants for the "lseek" routine: */ 7028 # 86 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7029 /* Path names: */ 7030 7031 7032 7033 7034 /* 7035 * compile-time symbolic constants, 7036 * Support does not mean the feature is enabled. 7037 * Use pathconf/sysconf to obtain actual configuration value. 7038 */ 7039 7040 /* Values unchanged in UNIX 03 */ 7041 7042 7043 7044 7045 7046 /* 7047 * POSIX.1b compile-time symbolic constants. 7048 */ 7049 # 134 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7050 /* 7051 * POSIX.1c compile-time symbolic constants. 7052 */ 7053 # 155 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7054 /* New in UNIX 03 */ 7055 # 167 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7056 /* 7057 * Support for the POSIX.1 mutex protocol attribute. For realtime applications 7058 * which need mutexes to support priority inheritance/ceiling. 7059 */ 7060 # 187 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7061 /* 7062 * Large File Summit-related announcement macros. The system supports both 7063 * the additional and transitional Large File Summit interfaces. (The final 7064 * two macros provide a finer granularity breakdown of _LFS64_LARGEFILE.) 7065 */ 7066 7067 7068 7069 7070 7071 /* large file compilation environment setup */ 7072 # 218 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7073 /* In the LP64 compilation environment, the APIs are already large file */ 7074 # 239 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7075 extern int access(const char *, int); 7076 7077 extern int acct(const char *); 7078 7079 extern unsigned alarm(unsigned); 7080 /* Marked as LEGACY in SUSv2 and removed in SUSv3 */ 7081 7082 7083 extern int brk(void *); 7084 7085 extern int chdir(const char *); 7086 extern int chown(const char *, uid_t, gid_t); 7087 /* Marked as LEGACY in SUSv2 and removed in SUSv3 */ 7088 7089 7090 extern int chroot(const char *); 7091 7092 extern int close(int); 7093 7094 7095 7096 7097 7098 7099 extern char *ctermid(char *); 7100 7101 7102 extern char *ctermid_r(char *); 7103 7104 /* Marked as LEGACY in SUSv2 and removed in SUSv3 */ 7105 7106 extern char *cuserid(char *); 7107 7108 extern int dup(int); 7109 extern int dup2(int, int); 7110 extern int dup3(int, int, int); 7111 7112 7113 7114 7115 extern void endusershell(void); 7116 7117 extern int execl(const char *, const char *, ...); 7118 extern int execle(const char *, const char *, ...); 7119 extern int execlp(const char *, const char *, ...); 7120 extern int execv(const char *, char *const *); 7121 extern int execve(const char *, char *const *, char *const *); 7122 extern int execvp(const char *, char *const *); 7123 extern void _exit(int) 7124 __attribute__((__noreturn__)); 7125 /* 7126 * The following fattach prototype is duplicated in <stropts.h>. The 7127 * duplication is necessitated by XPG4.2 which requires the prototype 7128 * be defined in <stropts.h>. 7129 */ 7130 7131 extern int fattach(int, const char *); 7132 7133 7134 extern int fchdir(int); 7135 extern int fchown(int, uid_t, gid_t); 7136 7137 7138 extern int fchroot(int); 7139 7140 7141 7142 extern int fdatasync(int); 7143 7144 /* 7145 * The following fdetach prototype is duplicated in <stropts.h>. The 7146 * duplication is necessitated by XPG4.2 which requires the prototype 7147 * be defined in <stropts.h>. 7148 */ 7149 7150 extern int fdetach(const char *); 7151 7152 extern pid_t fork(void); 7153 7154 extern pid_t fork1(void); 7155 extern pid_t forkall(void); 7156 7157 extern long fpathconf(int, int); 7158 7159 7160 extern int fsync(int); 7161 7162 7163 7164 7165 extern int ftruncate(int, off_t); 7166 7167 extern char *getcwd(char *, size_t); 7168 7169 7170 extern int getdtablesize(void); 7171 7172 extern gid_t getegid(void); 7173 extern uid_t geteuid(void); 7174 extern gid_t getgid(void); 7175 extern int getgroups(int, gid_t *); 7176 7177 extern long gethostid(void); 7178 7179 7180 7181 7182 extern int gethostname(char *, int); 7183 # 372 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7184 /* Marked as LEGACY in SUSv2 and removed in SUSv3 */ 7185 7186 extern int getpagesize(void); 7187 7188 extern pid_t getpgid(pid_t); 7189 7190 extern pid_t getpid(void); 7191 extern pid_t getppid(void); 7192 extern pid_t getpgrp(void); 7193 7194 7195 char *gettxt(const char *, const char *); 7196 7197 7198 extern pid_t getsid(pid_t); 7199 7200 extern uid_t getuid(void); 7201 7202 extern char *getusershell(void); 7203 7204 /* 7205 * The following ioctl prototype is duplicated in <stropts.h>. The 7206 * duplication is necessitated by XPG4.2 which requires the prototype 7207 * be defined in <stropts.h>. 7208 */ 7209 7210 extern int ioctl(int, int, ...); 7211 extern int isaexec(const char *, char *const *, char *const *); 7212 extern int issetugid(void); 7213 7214 extern int isatty(int); 7215 7216 extern int lchown(const char *, uid_t, gid_t); 7217 7218 extern int link(const char *, const char *); 7219 7220 extern offset_t llseek(int, offset_t, int); 7221 7222 7223 7224 7225 extern int lockf(int, int, off_t); 7226 7227 extern off_t lseek(int, off_t, int); 7228 7229 7230 extern int nice(int); 7231 7232 7233 extern int mincore(caddr_t, size_t, char *); 7234 7235 extern long pathconf(const char *, int); 7236 extern int pause(void); 7237 extern int pipe(int *); 7238 extern int pipe2(int *, int); 7239 7240 7241 7242 extern ssize_t pread(int, void *, size_t, off_t); 7243 7244 7245 extern void profil(unsigned short *, size_t, unsigned long, unsigned int); 7246 7247 /* 7248 * pthread_atfork() is also declared in <pthread.h> as per SUSv3. The 7249 * declarations are identical. A change to either one may also require 7250 * appropriate namespace updates in order to avoid redeclaration 7251 * warnings in the case where both prototypes are exposed via inclusion 7252 * of both <pthread.h> and <unistd.h>. 7253 */ 7254 7255 7256 7257 extern int pthread_atfork(void (*) (void), void (*) (void), void (*) (void)); 7258 7259 7260 7261 extern int ptrace(int, pid_t, int, int); 7262 7263 7264 7265 7266 extern ssize_t pwrite(int, const void *, size_t, off_t); 7267 7268 7269 /* per RFC 3542; This is also defined in netdb.h */ 7270 extern int rcmd_af(char **, unsigned short, const char *, const char *, 7271 const char *, int *, int); 7272 7273 extern ssize_t read(int, void *, size_t); 7274 7275 7276 extern ssize_t readlink(const char *, char *, 7277 size_t); 7278 7279 7280 7281 7282 7283 7284 extern int rename(const char *, const char *); 7285 7286 7287 7288 7289 7290 7291 7292 extern int resolvepath(const char *, char *, size_t); 7293 /* per RFC 3542; This is also defined in netdb.h */ 7294 extern int rexec_af(char **, unsigned short, const char *, const char *, 7295 const char *, int *, int); 7296 7297 extern int rmdir(const char *); 7298 7299 /* per RFC 3542; This is also defined in netdb.h */ 7300 extern int rresvport_af(int *, int); 7301 7302 7303 7304 7305 extern void *sbrk(intptr_t); 7306 7307 7308 extern int setegid(gid_t); 7309 extern int seteuid(uid_t); 7310 7311 extern int setgid(gid_t); 7312 7313 extern int setgroups(int, const gid_t *); 7314 extern int sethostname(char *, int); 7315 7316 extern int setpgid(pid_t, pid_t); 7317 7318 extern pid_t setpgrp(void); 7319 extern int setregid(gid_t, gid_t); 7320 extern int setreuid(uid_t, uid_t); 7321 7322 extern pid_t setsid(void); 7323 extern int setuid(uid_t); 7324 7325 extern void setusershell(void); 7326 7327 extern unsigned sleep(unsigned); 7328 7329 extern int stime(const time_t *); 7330 7331 7332 7333 7334 7335 7336 extern int symlink(const char *, const char *); 7337 extern void sync(void); 7338 # 534 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7339 extern long sysconf(int); 7340 extern pid_t tcgetpgrp(int); 7341 extern int tcsetpgrp(int, pid_t); 7342 7343 7344 7345 extern off_t tell(int); 7346 7347 7348 7349 7350 extern int truncate(const char *, off_t); 7351 7352 extern char *ttyname(int); 7353 7354 extern useconds_t ualarm(useconds_t, useconds_t); 7355 7356 extern int unlink(const char *); 7357 7358 extern char *getwd(char *); 7359 extern int usleep(useconds_t); 7360 extern pid_t vfork(void) __attribute__((__returns_twice__)); 7361 #pragma unknown_control_flow(vfork) 7362 7363 7364 extern void vhangup(void); 7365 7366 extern ssize_t write(int, const void *, size_t); 7367 7368 extern void yield(void); 7369 7370 7371 7372 7373 /* || defined(_XPG7) */ 7374 extern int faccessat(int, const char *, int, int); 7375 extern int fchownat(int, const char *, uid_t, gid_t, int); 7376 extern int linkat(int, const char *, int, const char *, int); 7377 extern ssize_t readlinkat(int, const char *, 7378 char *, size_t); 7379 extern int renameat(int, const char *, int, const char *); 7380 extern int symlinkat(const char *, int, const char *); 7381 extern int unlinkat(int, const char *, int); 7382 7383 7384 extern int get_nprocs(void); 7385 extern int get_nprocs_conf(void); 7386 7387 7388 /* transitional large file interface versions */ 7389 7390 7391 extern int ftruncate64(int, off64_t); 7392 extern off64_t lseek64(int, off64_t, int); 7393 extern ssize_t pread64(int, void *, size_t, off64_t); 7394 extern ssize_t pwrite64(int, const void *, size_t, off64_t); 7395 extern off64_t tell64(int); 7396 extern int truncate64(const char *, off64_t); 7397 extern int lockf64(int, int, off64_t); 7398 7399 7400 /* 7401 * getlogin_r() & ttyname_r() prototypes are defined here. 7402 */ 7403 7404 /* 7405 * Previous releases of Solaris, starting at 2.3, provided definitions of 7406 * various functions as specified in POSIX.1c, Draft 6. For some of these 7407 * functions, the final POSIX 1003.1c standard had a different number of 7408 * arguments and return values. 7409 * 7410 * The following segment of this header provides support for the standard 7411 * interfaces while supporting applications written under earlier 7412 * releases. The application defines appropriate values of the feature 7413 * test macros _POSIX_C_SOURCE and _POSIX_PTHREAD_SEMANTICS to indicate 7414 * whether it was written to expect the Draft 6 or standard versions of 7415 * these interfaces, before including this header. This header then 7416 * provides a mapping from the source version of the interface to an 7417 * appropriate binary interface. Such mappings permit an application 7418 * to be built from libraries and objects which have mixed expectations 7419 * of the definitions of these functions. 7420 * 7421 * For applications using the Draft 6 definitions, the binary symbol is the 7422 * same as the source symbol, and no explicit mapping is needed. For the 7423 * standard interface, the function func() is mapped to the binary symbol 7424 * _posix_func(). The preferred mechanism for the remapping is a compiler 7425 * #pragma. If the compiler does not provide such a #pragma, the header file 7426 * defines a static function func() which calls the _posix_func() version; 7427 * this has to be done instead of #define since POSIX specifies that an 7428 * application can #undef the symbol and still be bound to the correct 7429 * implementation. Unfortunately, the statics confuse lint so we fallback to 7430 * #define in that case. 7431 * 7432 * NOTE: Support for the Draft 6 definitions is provided for compatibility 7433 * only. New applications/libraries should use the standard definitions. 7434 */ 7435 # 693 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7436 7437 # 693 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7438 #pragma redefine_extname getlogin_r getloginx_r 7439 # 693 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/unistd.h" 7440 7441 7442 7443 7444 7445 7446 extern char *getlogin_r(char *, int); 7447 7448 extern char *ttyname_r(int, char *, int); 7449 7450 7451 7452 7453 7454 7455 extern int getentropy(void *, size_t); 7456 # 54 "../expr/compile.c" 2 7457 # 1 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/regexpr.h" 1 7458 /* 7459 * CDDL HEADER START 7460 * 7461 * The contents of this file are subject to the terms of the 7462 * Common Development and Distribution License, Version 1.0 only 7463 * (the "License"). You may not use this file except in compliance 7464 * with the License. 7465 * 7466 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 7467 * or http://www.opensolaris.org/os/licensing. 7468 * See the License for the specific language governing permissions 7469 * and limitations under the License. 7470 * 7471 * When distributing Covered Code, include this CDDL HEADER in each 7472 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 7473 * If applicable, add the following below this CDDL HEADER, with the 7474 * fields enclosed by brackets "[]" replaced with your own identifying 7475 * information: Portions Copyright [yyyy] [name of copyright owner] 7476 * 7477 * CDDL HEADER END 7478 */ 7479 /* Copyright (c) 1988 AT&T */ 7480 /* All Rights Reserved */ 7481 7482 7483 7484 7485 7486 #pragma ident "%Z%%M% %I% %E% SMI" 7487 # 54 "/home/git3/dehawe/titanic_53/proto/root_i386/usr/include/regexpr.h" 7488 extern char *braslist[9]; 7489 extern char *braelist[9]; 7490 extern int nbra, regerrno, reglength; 7491 extern char *loc1, *loc2, *locs; 7492 7493 7494 extern int step(const char *string, const char *expbuf); 7495 extern int advance(const char *string, const char *expbuf); 7496 extern char *compile(const char *instring, char *expbuf, char *endbuf); 7497 # 55 "../expr/compile.c" 2 7498 7499 /* 7500 * psuedo compile/step/advance global variables 7501 */ 7502 extern int nbra; 7503 extern char *locs; /* for stopping execess recursion */ 7504 extern char *loc1; /* 1st character which matched RE */ 7505 extern char *loc2; /* char after lst char in matched RE */ 7506 extern char *braslist[]; /* start of nbra subexp */ 7507 extern char *braelist[]; /* end of nbra subexp */ 7508 extern int regerrno; 7509 extern int reglength; 7510 7511 int regcomp_flags; /* interface to specify cflags for regcomp */ 7512 7513 void regex_comp_free(void *a); 7514 static int dhl_step(const char *str, const char *ep); 7515 static int dhl_advance(const char *str, const char *ep); 7516 static int map_errnos(int); /* Convert regcomp error */ 7517 static int dhl_doit(const char *, const regex_t *, const int flags); 7518 static char * dhl_compile(const char *instr, char *ep, char *endbuf); 7519 7520 /* 7521 * # of sub re's: NOTE: For now limit on bra list defined here 7522 * but fix is to add maxbra define to to regex.h 7523 * One problem is that a bigger number is a performance hit since 7524 * regexec() has a slow initialization loop that goes around SEPSIZE times 7525 */ 7526 7527 static regmatch_t rm[20]; /* ptr to list of RE matches */ 7528 7529 /* 7530 * Structure to contain dl encoded first two bytes for vi, plus hold two 7531 * regex structures, one for advance and one for step. 7532 */ 7533 static struct regex_comp { 7534 char r_head[2]; /* Header for DL encoding for vi */ 7535 regex_t r_stp; /* For use by step */ 7536 regex_t r_adv; /* For use by advance */ 7537 } reg_comp; 7538 7539 /* 7540 * global value for the size of a regex_comp structure: 7541 */ 7542 size_t regexc_size = sizeof (reg_comp); 7543 7544 7545 char * 7546 compile(const char *instr, char *expbuf, char *endbuf) 7547 { 7548 return (dhl_compile(instr, expbuf, endbuf)); 7549 } 7550 7551 int 7552 step(const char *instr, const char *expbuf) 7553 { 7554 return (dhl_step(instr, expbuf)); 7555 } 7556 7557 int 7558 advance(const char *instr, const char *expbuf) 7559 { 7560 return (dhl_advance(instr, expbuf)); 7561 } 7562 7563 7564 /* 7565 * the compile and step routines here simulate the old libgen routines of 7566 * compile/step Re: regexpr(3G). in order to do this, we must assume 7567 * that expbuf[] consists of the following format: 7568 * 1) the first two bytes consist of a special encoding - see below. 7569 * 2) the next part is a regex_t used by regexec()/regcomp() for step 7570 * 3) the final part is a regex_t used by regexec()/regcomp() for advance 7571 * 7572 * the special encoding of the first two bytes is referenced throughout 7573 * vi. apparently expbuf[0] is set to: 7574 * = 0 upon initialization 7575 * = 1 if the first char of the RE is a ^ 7576 * = 0 if the first char of the RE isn't a ^ 7577 * and expbuf[1-35+] = bitmap of the type of RE chars in the expression. 7578 * this is apparently 0 if there's no RE. 7579 * Here, we use expbuf[0] in a similar fashion; and expbuf[1] is non-zero 7580 * if there's at least 1 RE in the string. 7581 * I say "apparently" as the code to compile()/step() is poorly written. 7582 */ 7583 static char * 7584 dhl_compile(instr, expbuf, endbuf) 7585 const char *instr; /* the regular expression */ 7586 char *expbuf; /* where the compiled RE gets placed */ 7587 char *endbuf; /* ending addr of expbuf */ 7588 { 7589 int rv; 7590 int alloc = 0; 7591 char adv_instr[4096]; /* PLENTY big temp buffer */ 7592 char *instrp; /* PLENTY big temp buffer */ 7593 7594 if (*instr == (char) 0) { 7595 regerrno = 41; 7596 return (0); 7597 } 7598 7599 /* 7600 * Check values of expbuf and endbuf 7601 */ 7602 if (expbuf == 0) { 7603 if ((expbuf = malloc(regexc_size)) == 0) { 7604 regerrno = 50; 7605 return (0); 7606 } 7607 memset(®_comp, 0, regexc_size); 7608 alloc = 1; 7609 endbuf = expbuf + regexc_size; 7610 } else { /* Check if enough memory was allocated */ 7611 if (expbuf + regexc_size > endbuf) { 7612 regerrno = 50; 7613 return (0); 7614 } 7615 memcpy(®_comp, expbuf, regexc_size); 7616 } 7617 7618 /* 7619 * Clear global flags 7620 */ 7621 nbra = 0; 7622 regerrno = 0; 7623 7624 /* 7625 * Free any data being held for previous search strings 7626 */ 7627 regex_comp_free(®_comp); 7628 7629 /* 7630 * We call regcomp twice, once to get a regex_t for use by step() 7631 * and then again with for use by advance() 7632 */ 7633 if ((rv = regcomp(®_comp.r_stp, instr, regcomp_flags)) != 0) { 7634 regerrno = map_errnos(rv); /* Convert regcomp error */ 7635 goto out; 7636 } 7637 /* 7638 * To support advance, which assumes an implicit ^ to match at start 7639 * of line we prepend a ^ to the pattern by copying to a temp buffer 7640 */ 7641 7642 if (instr[0] == '^') 7643 instrp = (char *) instr; /* String already has leading ^ */ 7644 else { 7645 adv_instr[0] = '^'; 7646 strncpy(&adv_instr[1], instr, 2048); 7647 instrp = adv_instr; 7648 } 7649 7650 if ((rv = regcomp(®_comp.r_adv, instrp, regcomp_flags)) != 0) { 7651 regerrno = map_errnos(rv); /* Convert regcomp error */ 7652 goto out; 7653 } 7654 7655 /* 7656 * update global variables 7657 */ 7658 nbra = (int) reg_comp.r_adv.re_nsub > 0 ? 7659 (int) reg_comp.r_adv.re_nsub : 0; 7660 regerrno = 0; 7661 7662 /* 7663 * Set the header flags for use by vi 7664 */ 7665 if (instr[0] == '^') /* if beginning of string, */ 7666 reg_comp.r_head[0] = 1; /* set special flag */ 7667 else 7668 reg_comp.r_head[0] = 0; /* clear special flag */ 7669 /* 7670 * note that for a single BRE, nbra will be 0 here. 7671 * we're guaranteed that, at this point, a RE has been found. 7672 */ 7673 reg_comp.r_head[1] = 1; /* set special flag */ 7674 /* 7675 * Copy our reg_comp structure to expbuf 7676 */ 7677 (void) memcpy(expbuf, (char *) ®_comp, regexc_size); 7678 7679 out: 7680 /* 7681 * Return code from libgen regcomp with mods. Note weird return 7682 * value - if space is malloc'd return pointer to start of space, 7683 * if user provided his own space, return pointer to 1+last byte 7684 * of his space. 7685 */ 7686 if (regerrno != 0) { 7687 if (alloc) 7688 free(expbuf); 7689 return (0); 7690 } 7691 reglength = regexc_size; 7692 7693 if (alloc) 7694 return (expbuf); 7695 else 7696 return (expbuf + regexc_size); 7697 } 7698 7699 7700 /* 7701 * dhl_step: step through a string until a RE match is found, or end of str 7702 */ 7703 static int 7704 dhl_step(str, ep) 7705 const char *str; /* characters to be checked for a match */ 7706 const char *ep; /* compiled RE from dhl_compile() */ 7707 { 7708 /* 7709 * Check if we're passed a null ep 7710 */ 7711 if (ep == 0) { 7712 regerrno = 41; /* No remembered search string error */ 7713 return (0); 7714 } 7715 /* 7716 * Call common routine with r_stp (step) structure 7717 */ 7718 return (dhl_doit(str, &(((struct regex_comp *) ep)->r_stp), 7719 ((locs != 0) ? 0x200 : 0))); 7720 } 7721 7722 /* 7723 * dhl_advance: implement advance 7724 */ 7725 static int 7726 dhl_advance(str, ep) 7727 const char *str; /* characters to be checked for a match */ 7728 const char *ep; /* compiled RE from dhl_compile() */ 7729 { 7730 int rv; 7731 /* 7732 * Check if we're passed a null ep 7733 */ 7734 if (ep == 0) { 7735 regerrno = 41; /* No remembered search string error */ 7736 return (0); 7737 } 7738 /* 7739 * Call common routine with r_adv (advance) structure 7740 */ 7741 rv = dhl_doit(str, &(((struct regex_comp *) ep)->r_adv), 0); 7742 loc1 = 0; /* Clear it per the compile man page */ 7743 return (rv); 7744 } 7745 7746 /* 7747 * dhl_doit - common code for step and advance 7748 */ 7749 static int 7750 dhl_doit(str, rep, flags) 7751 const char *str; /* characters to be checked for a match */ 7752 const regex_t *rep; 7753 const int flags; /* flags to be passed to regexec directly */ 7754 { 7755 int rv; 7756 int i; 7757 regmatch_t *prm; /* ptr to current regmatch_t */ 7758 7759 /* 7760 * Check if we're passed a null regex_t 7761 */ 7762 if (rep == 0) { 7763 regerrno = 41; /* No remembered search string error */ 7764 return (0); 7765 } 7766 7767 regerrno = 0; 7768 prm = &rm[0]; 7769 7770 if ((rv = regexec(rep, str, 20, prm, flags)) != 0) { 7771 if (rv == 1) 7772 return (0); 7773 regerrno = map_errnos(rv); 7774 return (0); 7775 } 7776 7777 loc1 = (char *)str + prm->rm_so; 7778 loc2 = (char *)str + prm->rm_eo; 7779 7780 /* 7781 * Now we need to fill up the bra lists with all of the sub re's 7782 * Note we subtract nsub -1, and preincrement prm. 7783 */ 7784 for (i = 0; i <= rep->re_nsub; i++) { 7785 prm++; /* XXX inc past first subexp */ 7786 braslist[i] = (char *)str + prm->rm_so; 7787 braelist[i] = (char *)str + prm->rm_eo; 7788 if (i >= 20) { 7789 regerrno = 50; /* regex overflow */ 7790 return (0); 7791 } 7792 } 7793 7794 /* 7795 * Inverse logic, a zero from regexec - success, is a 1 7796 * from advance/step. 7797 */ 7798 7799 return (rv == 0); 7800 } 7801 7802 7803 /* 7804 * regerrno to compile/step error mapping: 7805 * This is really a big compromise. Some errors don't map at all 7806 * like regcomp error 15 is generated by both compile() error types 7807 * 44 & 46. So which one should we map to? 7808 * Note REG_ESUB Can't happen- 9 is no longer max num of subexpressions 7809 * To do your errors right use xregerr() to get the regcomp error 7810 * string and print that. 7811 * 7812 * | regcomp/regexec | Compile/step/advance | 7813 * +---------------------------------+--------------------------------------+ 7814 * 0 REG_OK Pattern matched 1 - Pattern matched 7815 * 1 REG_NOMATCH No match 0 - Pattern didn't match 7816 * 2 REG_ECOLLATE Bad collation elmnt. 67 - Returned by compile on mbtowc err 7817 * 3 REG_EESCAPE trailing \ in patrn 45 - } expected after \. 7818 * 4 REG_ENEWLINE \n before end pattrn 36 - Illegal or missing delimiter. 7819 * 5 REG_ENSUB Over 9 \( \) pairs 43 - Too many \( 7820 * 6 REG_ESUBREG Bad number in \[0-9] 25 - ``\digit'' out of range. 7821 * 7 REG_EBRACK [ ] inbalance 49 - [ ] imbalance. 7822 * 8 REG_EPAREN ( ) inbalance 42 - \(~\) imbalance. 7823 * 9 REG_EBRACE \{ \} inbalance 45 - } expected after \. 7824 * 10 REG_ERANGE bad range endpoint 11 - Range endpoint too large. 7825 * 11 REG_ESPACE no memory for pattern 50 - Regular expression overflow. 7826 * 12 REG_BADRPT invalid repetition 36 - Illegal or missing delimiter. 7827 * 13 REG_ECTYPE invalid char-class 67 - illegal byte sequence 7828 * 14 REG_BADPAT syntax error 50 - Regular expression overflow. 7829 * 15 REG_BADBR \{ \} contents bad 46 - First number exceeds 2nd in \{~\} 7830 * 16 REG_EFATAL internal error 50 - Regular expression overflow. 7831 * 17 REG_ECHAR bad mulitbyte char 67 - illegal byte sequence 7832 * 18 REG_STACK stack overflow 50 - Regular expression overflow. 7833 * 19 REG_ENOSYS function not supported 50- Regular expression overflow. 7834 * 7835 * For reference here's the compile/step errno's. We don't generate 7836 * 41 here - it's done earlier, nor 44 since we can't tell if from 46. 7837 * 7838 * 11 - Range endpoint too large. 7839 * 16 - Bad number. 7840 * 25 - ``\digit'' out of range. 7841 * 36 - Illegal or missing delimiter. 7842 * 41 - No remembered search string. 7843 * 42 - \(~\) imbalance. 7844 * 43 - Too many \(. 7845 * 44 - More than 2 numbers given in "\{~\}" 7846 * 45 - } expected after \. 7847 * 46 - First number exceeds 2nd in "\{~\}" 7848 * 49 - [ ] imbalance. 7849 * 50 - Regular expression overflow. 7850 */ 7851 7852 static int 7853 map_errnos(int Errno) 7854 { 7855 switch (Errno) { 7856 case 2: 7857 regerrno = 67; 7858 break; 7859 case 3: 7860 regerrno = 45; 7861 break; 7862 case 4: 7863 regerrno = 36; 7864 break; 7865 case 5: 7866 regerrno = 43; 7867 break; 7868 case 6: 7869 regerrno = 25; 7870 break; 7871 case 7: 7872 regerrno = 49; 7873 break; 7874 case 8: 7875 regerrno = 42; 7876 break; 7877 case 9: 7878 regerrno = 45; 7879 break; 7880 case 10: 7881 regerrno = 11; 7882 break; 7883 case 11: 7884 regerrno = 50; 7885 break; 7886 case 12: 7887 regerrno = 36; 7888 break; 7889 case 13: 7890 regerrno = 67; 7891 break; 7892 case 14: 7893 regerrno = 50; 7894 break; 7895 case 15: 7896 regerrno = 46; 7897 break; 7898 case 16: 7899 regerrno = 50; 7900 break; 7901 case 17: 7902 regerrno = 67; 7903 break; 7904 case 18: 7905 regerrno = 50; 7906 break; 7907 case 19: 7908 regerrno = 50; 7909 break; 7910 default: 7911 regerrno = 50; 7912 break; 7913 } 7914 return (regerrno); 7915 } 7916 7917 /* 7918 * This is a routine to clean up the subtle substructure of the struct 7919 * regex_comp type for use by clients of this module. Since the struct 7920 * type is private, we use a generic interface, and trust the 7921 * application to be damn sure that this operation is valid for the 7922 * named memory. 7923 */ 7924 7925 void 7926 regex_comp_free(void * a) 7927 { 7928 /* 7929 * Free any data being held for previous search strings 7930 */ 7931 7932 if (((struct regex_comp *) a) == 0) { 7933 return; 7934 } 7935 7936 regfree(&((struct regex_comp *)a)->r_stp); 7937 regfree(&((struct regex_comp *)a)->r_adv); 7938 } 7939