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