mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-23 03:02:04 -08:00
1561 lines
74 KiB
Go
1561 lines
74 KiB
Go
|
// Code generated by 'ccgo termios/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o termios/termios_darwin_amd64.go -pkgname termios', DO NOT EDIT.
|
||
|
|
||
|
package termios
|
||
|
|
||
|
import (
|
||
|
"math"
|
||
|
"reflect"
|
||
|
"sync/atomic"
|
||
|
"unsafe"
|
||
|
)
|
||
|
|
||
|
var _ = math.Pi
|
||
|
var _ reflect.Kind
|
||
|
var _ atomic.Value
|
||
|
var _ unsafe.Pointer
|
||
|
|
||
|
const (
|
||
|
ALTWERASE = 0x00000200
|
||
|
B0 = 0
|
||
|
B110 = 110
|
||
|
B115200 = 115200
|
||
|
B1200 = 1200
|
||
|
B134 = 134
|
||
|
B14400 = 14400
|
||
|
B150 = 150
|
||
|
B1800 = 1800
|
||
|
B19200 = 19200
|
||
|
B200 = 200
|
||
|
B230400 = 230400
|
||
|
B2400 = 2400
|
||
|
B28800 = 28800
|
||
|
B300 = 300
|
||
|
B38400 = 38400
|
||
|
B4800 = 4800
|
||
|
B50 = 50
|
||
|
B57600 = 57600
|
||
|
B600 = 600
|
||
|
B7200 = 7200
|
||
|
B75 = 75
|
||
|
B76800 = 76800
|
||
|
B9600 = 9600
|
||
|
BRKINT = 0x00000002
|
||
|
BS0 = 0x00000000
|
||
|
BS1 = 0x00008000
|
||
|
BSDLY = 0x00008000
|
||
|
CBRK = 255
|
||
|
CCAR_OFLOW = 0x00100000
|
||
|
CCTS_OFLOW = 0x00010000
|
||
|
CDISCARD = 15
|
||
|
CDSR_OFLOW = 0x00080000
|
||
|
CDSUSP = 25
|
||
|
CDTR_IFLOW = 0x00040000
|
||
|
CEOF = 4
|
||
|
CEOL = 0xff
|
||
|
CEOT = 4
|
||
|
CERASE = 0177
|
||
|
CFLUSH = 15
|
||
|
CIGNORE = 0x00000001
|
||
|
CINTR = 3
|
||
|
CKILL = 21
|
||
|
CLNEXT = 22
|
||
|
CLOCAL = 0x00008000
|
||
|
CMIN = 1
|
||
|
CQUIT = 034
|
||
|
CR0 = 0x00000000
|
||
|
CR1 = 0x00001000
|
||
|
CR2 = 0x00002000
|
||
|
CR3 = 0x00003000
|
||
|
CRDLY = 0x00003000
|
||
|
CREAD = 0x00000800
|
||
|
CREPRINT = 18
|
||
|
CRPRNT = 18
|
||
|
CRTSCTS = 196608
|
||
|
CRTS_IFLOW = 0x00020000
|
||
|
CS5 = 0x00000000
|
||
|
CS6 = 0x00000100
|
||
|
CS7 = 0x00000200
|
||
|
CS8 = 0x00000300
|
||
|
CSIZE = 0x00000300
|
||
|
CSTART = 17
|
||
|
CSTATUS = 20
|
||
|
CSTOP = 19
|
||
|
CSTOPB = 0x00000400
|
||
|
CSUSP = 26
|
||
|
CTIME = 0
|
||
|
CWERASE = 23
|
||
|
ECHO = 0x00000008
|
||
|
ECHOCTL = 0x00000040
|
||
|
ECHOE = 0x00000002
|
||
|
ECHOK = 0x00000004
|
||
|
ECHOKE = 0x00000001
|
||
|
ECHONL = 0x00000010
|
||
|
ECHOPRT = 0x00000020
|
||
|
EXTA = 19200
|
||
|
EXTB = 38400
|
||
|
EXTPROC = 0x00000800
|
||
|
FF0 = 0x00000000
|
||
|
FF1 = 0x00004000
|
||
|
FFDLY = 0x00004000
|
||
|
FLUSHO = 0x00800000
|
||
|
HUPCL = 0x00004000
|
||
|
ICANON = 0x00000100
|
||
|
ICRNL = 0x00000100
|
||
|
IEXTEN = 0x00000400
|
||
|
IGNBRK = 0x00000001
|
||
|
IGNCR = 0x00000080
|
||
|
IGNPAR = 0x00000004
|
||
|
IMAXBEL = 0x00002000
|
||
|
INLCR = 0x00000040
|
||
|
INPCK = 0x00000010
|
||
|
IOCPARM_MASK = 0x1fff
|
||
|
IOCPARM_MAX = 8192
|
||
|
ISIG = 0x00000080
|
||
|
ISTRIP = 0x00000020
|
||
|
IUTF8 = 0x00004000
|
||
|
IXANY = 0x00000800
|
||
|
IXOFF = 0x00000400
|
||
|
IXON = 0x00000200
|
||
|
MDMBUF = 0x00100000
|
||
|
NCCS = 20
|
||
|
NL0 = 0x00000000
|
||
|
NL1 = 0x00000100
|
||
|
NL2 = 0x00000200
|
||
|
NL3 = 0x00000300
|
||
|
NLDLY = 0x00000300
|
||
|
NOFLSH = 0x80000000
|
||
|
NOKERNINFO = 0x02000000
|
||
|
OCRNL = 0x00000010
|
||
|
OFDEL = 0x00020000
|
||
|
OFILL = 0x00000080
|
||
|
ONLCR = 0x00000002
|
||
|
ONLRET = 0x00000040
|
||
|
ONOCR = 0x00000020
|
||
|
ONOEOT = 0x00000008
|
||
|
OPOST = 0x00000001
|
||
|
OXTABS = 0x00000004
|
||
|
PARENB = 0x00001000
|
||
|
PARMRK = 0x00000008
|
||
|
PARODD = 0x00002000
|
||
|
PENDIN = 0x20000000
|
||
|
PPPDISC = 5
|
||
|
SLIPDISC = 4
|
||
|
TAB0 = 0x00000000
|
||
|
TAB1 = 0x00000400
|
||
|
TAB2 = 0x00000800
|
||
|
TAB3 = 0x00000004
|
||
|
TABDLY = 0x00000c04
|
||
|
TABLDISC = 3
|
||
|
TCIFLUSH = 1
|
||
|
TCIOFF = 3
|
||
|
TCIOFLUSH = 3
|
||
|
TCION = 4
|
||
|
TCOFLUSH = 2
|
||
|
TCOOFF = 1
|
||
|
TCOON = 2
|
||
|
TCSADRAIN = 1
|
||
|
TCSAFLUSH = 2
|
||
|
TCSANOW = 0
|
||
|
TCSASOFT = 0x10
|
||
|
TIOCM_CAR = 0100
|
||
|
TIOCM_CD = 64
|
||
|
TIOCM_CTS = 0040
|
||
|
TIOCM_DSR = 0400
|
||
|
TIOCM_DTR = 0002
|
||
|
TIOCM_LE = 0001
|
||
|
TIOCM_RI = 128
|
||
|
TIOCM_RNG = 0200
|
||
|
TIOCM_RTS = 0004
|
||
|
TIOCM_SR = 0020
|
||
|
TIOCM_ST = 0010
|
||
|
TIOCPKT_DATA = 0x00
|
||
|
TIOCPKT_DOSTOP = 0x20
|
||
|
TIOCPKT_FLUSHREAD = 0x01
|
||
|
TIOCPKT_FLUSHWRITE = 0x02
|
||
|
TIOCPKT_IOCTL = 0x40
|
||
|
TIOCPKT_NOSTOP = 0x10
|
||
|
TIOCPKT_START = 0x08
|
||
|
TIOCPKT_STOP = 0x04
|
||
|
TOSTOP = 0x00400000
|
||
|
TTYDEF_CFLAG = 19200
|
||
|
TTYDEF_IFLAG = 11010
|
||
|
TTYDEF_LFLAG = 1483
|
||
|
TTYDEF_OFLAG = 3
|
||
|
TTYDEF_SPEED = 9600
|
||
|
TTYDISC = 0
|
||
|
VDISCARD = 15
|
||
|
VDSUSP = 11
|
||
|
VEOF = 0
|
||
|
VEOL = 1
|
||
|
VEOL2 = 2
|
||
|
VERASE = 3
|
||
|
VINTR = 8
|
||
|
VKILL = 5
|
||
|
VLNEXT = 14
|
||
|
VMIN = 16
|
||
|
VQUIT = 9
|
||
|
VREPRINT = 6
|
||
|
VSTART = 12
|
||
|
VSTATUS = 18
|
||
|
VSTOP = 13
|
||
|
VSUSP = 10
|
||
|
VT0 = 0x00000000
|
||
|
VT1 = 0x00010000
|
||
|
VTDLY = 0x00010000
|
||
|
VTIME = 17
|
||
|
VWERASE = 4
|
||
|
X_BSD_I386__TYPES_H_ = 0
|
||
|
X_BSD_MACHINE__TYPES_H_ = 0
|
||
|
X_CDEFS_H_ = 0
|
||
|
X_DARWIN_FEATURE_64_BIT_INODE = 1
|
||
|
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1
|
||
|
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3
|
||
|
X_FILE_OFFSET_BITS = 64
|
||
|
X_FORTIFY_SOURCE = 2
|
||
|
X_LP64 = 1
|
||
|
X_Nonnull = 0
|
||
|
X_Null_unspecified = 0
|
||
|
X_Nullable = 0
|
||
|
X_PID_T = 0
|
||
|
X_SYS_IOCCOM_H_ = 0
|
||
|
X_SYS_TERMIOS_H_ = 0
|
||
|
X_SYS_TTYCOM_H_ = 0
|
||
|
X_SYS_TTYDEFAULTS_H_ = 0
|
||
|
X_SYS__PTHREAD_TYPES_H_ = 0
|
||
|
X_SYS__TYPES_H_ = 0
|
||
|
)
|
||
|
|
||
|
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||
|
|
||
|
type Size_t = uint64 /* <builtin>:9:23 */
|
||
|
|
||
|
type Wchar_t = int32 /* <builtin>:15:24 */
|
||
|
|
||
|
type X__int128_t = struct {
|
||
|
Flo int64
|
||
|
Fhi int64
|
||
|
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
|
||
|
type X__uint128_t = struct {
|
||
|
Flo uint64
|
||
|
Fhi uint64
|
||
|
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
|
||
|
|
||
|
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||
|
type X__float128 = float64 /* <builtin>:47:21 */
|
||
|
|
||
|
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
|
||
|
|
||
|
// Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this
|
||
|
// file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_LICENSE_HEADER_END@
|
||
|
|
||
|
// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
// Copyright 1995 NeXT Computer, Inc. All rights reserved.
|
||
|
// Copyright (c) 1991, 1993
|
||
|
// The Regents of the University of California. All rights reserved.
|
||
|
//
|
||
|
// This code is derived from software contributed to Berkeley by
|
||
|
// Berkeley Software Design, Inc.
|
||
|
//
|
||
|
// Redistribution and use in source and binary forms, with or without
|
||
|
// modification, are permitted provided that the following conditions
|
||
|
// are met:
|
||
|
// 1. Redistributions of source code must retain the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer.
|
||
|
// 2. Redistributions in binary form must reproduce the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer in the
|
||
|
// documentation and/or other materials provided with the distribution.
|
||
|
// 3. All advertising materials mentioning features or use of this software
|
||
|
// must display the following acknowledgement:
|
||
|
// This product includes software developed by the University of
|
||
|
// California, Berkeley and its contributors.
|
||
|
// 4. Neither the name of the University nor the names of its contributors
|
||
|
// may be used to endorse or promote products derived from this software
|
||
|
// without specific prior written permission.
|
||
|
//
|
||
|
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
|
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
|
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
|
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
|
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
|
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
|
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
|
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
|
// SUCH DAMAGE.
|
||
|
//
|
||
|
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
|
||
|
|
||
|
// This SDK is designed to work with clang and specific versions of
|
||
|
// gcc >= 4.0 with Apple's patch sets
|
||
|
|
||
|
// Compatibility with compilers and environments that don't support compiler
|
||
|
// feature checking function-like macros.
|
||
|
|
||
|
// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
|
||
|
// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
|
||
|
// The __CONCAT macro is a bit tricky -- make sure you don't put spaces
|
||
|
// in between its arguments. __CONCAT can also concatenate double-quoted
|
||
|
// strings produced by the __STRING macro, but this only works with ANSI C.
|
||
|
|
||
|
// __unused denotes variables and functions that may not be used, preventing
|
||
|
// the compiler from warning about it if not used.
|
||
|
|
||
|
// __used forces variables and functions to be included even if it appears
|
||
|
// to the compiler that they are not used (and would thust be discarded).
|
||
|
|
||
|
// __cold marks code used for debugging or that is rarely taken
|
||
|
// and tells the compiler to optimize for size and outline code.
|
||
|
|
||
|
// __deprecated causes the compiler to produce a warning when encountering
|
||
|
// code using the deprecated functionality.
|
||
|
// __deprecated_msg() does the same, and compilers that support it will print
|
||
|
// a message along with the deprecation warning.
|
||
|
// This may require turning on such warning with the -Wdeprecated flag.
|
||
|
// __deprecated_enum_msg() should be used on enums, and compilers that support
|
||
|
// it will print the deprecation warning.
|
||
|
// __kpi_deprecated() specifically indicates deprecation of kernel programming
|
||
|
// interfaces in Kernel.framework used by KEXTs.
|
||
|
|
||
|
// __unavailable causes the compiler to error out when encountering
|
||
|
// code using the tagged function of variable.
|
||
|
|
||
|
// Delete pseudo-keywords wherever they are not available or needed.
|
||
|
|
||
|
// We use `__restrict' as a way to define the `restrict' type qualifier
|
||
|
// without disturbing older software that is unaware of C99 keywords.
|
||
|
|
||
|
// Compatibility with compilers and environments that don't support the
|
||
|
// nullability feature.
|
||
|
|
||
|
// __disable_tail_calls causes the compiler to not perform tail call
|
||
|
// optimization inside the marked function.
|
||
|
|
||
|
// __not_tail_called causes the compiler to prevent tail call optimization
|
||
|
// on statically bound calls to the function. It has no effect on indirect
|
||
|
// calls. Virtual functions, objective-c methods, and functions marked as
|
||
|
// "always_inline" cannot be marked as __not_tail_called.
|
||
|
|
||
|
// __result_use_check warns callers of a function that not using the function
|
||
|
// return value is a bug, i.e. dismissing malloc() return value results in a
|
||
|
// memory leak.
|
||
|
|
||
|
// __swift_unavailable causes the compiler to mark a symbol as specifically
|
||
|
// unavailable in Swift, regardless of any other availability in C.
|
||
|
|
||
|
// __abortlike is the attribute to put on functions like abort() that are
|
||
|
// typically used to mark assertions. These optimize the codegen
|
||
|
// for outlining while still maintaining debugability.
|
||
|
|
||
|
// Declaring inline functions within headers is error-prone due to differences
|
||
|
// across various versions of the C language and extensions. __header_inline
|
||
|
// can be used to declare inline functions within system headers. In cases
|
||
|
// where you want to force inlining instead of letting the compiler make
|
||
|
// the decision, you can use __header_always_inline.
|
||
|
//
|
||
|
// Be aware that using inline for functions which compilers may also provide
|
||
|
// builtins can behave differently under various compilers. If you intend to
|
||
|
// provide an inline version of such a function, you may want to use a macro
|
||
|
// instead.
|
||
|
//
|
||
|
// The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
|
||
|
// support c99 inline in some cases:
|
||
|
// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
|
||
|
|
||
|
// Compiler-dependent macros that bracket portions of code where the
|
||
|
// "-Wunreachable-code" warning should be ignored. Please use sparingly.
|
||
|
|
||
|
// Compiler-dependent macros to declare that functions take printf-like
|
||
|
// or scanf-like arguments. They are null except for versions of gcc
|
||
|
// that are known to support the features properly. Functions declared
|
||
|
// with these attributes will cause compilation warnings if there is a
|
||
|
// mismatch between the format string and subsequent function parameter
|
||
|
// types.
|
||
|
|
||
|
// Source compatibility only, ID string not emitted in object file
|
||
|
|
||
|
// __alloc_size can be used to label function arguments that represent the
|
||
|
// size of memory that the function allocates and returns. The one-argument
|
||
|
// form labels a single argument that gives the allocation size (where the
|
||
|
// arguments are numbered from 1):
|
||
|
//
|
||
|
// void *malloc(size_t __size) __alloc_size(1);
|
||
|
//
|
||
|
// The two-argument form handles the case where the size is calculated as the
|
||
|
// product of two arguments:
|
||
|
//
|
||
|
// void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
|
||
|
|
||
|
// COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
|
||
|
//
|
||
|
// DEFAULT By default newly complied code will get POSIX APIs plus
|
||
|
// Apple API extensions in scope.
|
||
|
//
|
||
|
// Most users will use this compilation environment to avoid
|
||
|
// behavioral differences between 32 and 64 bit code.
|
||
|
//
|
||
|
// LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
|
||
|
// API extensions in scope.
|
||
|
//
|
||
|
// This is generally equivalent to the Tiger release compilation
|
||
|
// environment, except that it cannot be applied to 64 bit code;
|
||
|
// its use is discouraged.
|
||
|
//
|
||
|
// We expect this environment to be deprecated in the future.
|
||
|
//
|
||
|
// STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
|
||
|
// available APIs to exactly the set of APIs defined by the
|
||
|
// corresponding standard, based on the value defined.
|
||
|
//
|
||
|
// A correct, portable definition for _POSIX_C_SOURCE is 200112L.
|
||
|
// A correct, portable definition for _XOPEN_SOURCE is 600L.
|
||
|
//
|
||
|
// Apple API extensions are not visible in this environment,
|
||
|
// which can cause Apple specific code to fail to compile,
|
||
|
// or behave incorrectly if prototypes are not in scope or
|
||
|
// warnings about missing prototypes are not enabled or ignored.
|
||
|
//
|
||
|
// In any compilation environment, for correct symbol resolution to occur,
|
||
|
// function prototypes must be in scope. It is recommended that all Apple
|
||
|
// tools users add either the "-Wall" or "-Wimplicit-function-declaration"
|
||
|
// compiler flags to their projects to be warned when a function is being
|
||
|
// used without a prototype in scope.
|
||
|
|
||
|
// These settings are particular to each product.
|
||
|
// Platform: MacOSX
|
||
|
// #undef __DARWIN_ONLY_UNIX_CONFORMANCE (automatically set for 64-bit)
|
||
|
|
||
|
// The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
|
||
|
// legacy code to use the old symbol, thus maintaining binary compatibility
|
||
|
// while new code can use a standards compliant version of the same function.
|
||
|
//
|
||
|
// __DARWIN_ALIAS is used by itself if the function signature has not
|
||
|
// changed, it is used along with a #ifdef check for __DARWIN_UNIX03
|
||
|
// if the signature has changed. Because the __LP64__ environment
|
||
|
// only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
|
||
|
// defined, but causes __DARWIN_ALIAS to do no symbol mangling.
|
||
|
//
|
||
|
// As a special case, when XCode is used to target a specific version of the
|
||
|
// OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
|
||
|
// will be defined by the compiler, with the digits representing major version
|
||
|
// time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
|
||
|
// pre-10.5, and it is the default compilation environment, revert the
|
||
|
// compilation environment to pre-__DARWIN_UNIX03.
|
||
|
|
||
|
// symbol suffixes used for symbol versioning
|
||
|
|
||
|
// symbol versioning macros
|
||
|
|
||
|
// symbol release macros
|
||
|
// Copyright (c) 2010 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
|
||
|
// POSIX.1 requires that the macros we test be defined before any standard
|
||
|
// header file is included. This permits us to convert values for feature
|
||
|
// testing, as necessary, using only _POSIX_C_SOURCE.
|
||
|
//
|
||
|
// Here's a quick run-down of the versions:
|
||
|
// defined(_POSIX_SOURCE) 1003.1-1988
|
||
|
// _POSIX_C_SOURCE == 1L 1003.1-1990
|
||
|
// _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
|
||
|
// _POSIX_C_SOURCE == 199309L 1003.1b-1993
|
||
|
// _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
|
||
|
// and the omnibus ISO/IEC 9945-1: 1996
|
||
|
// _POSIX_C_SOURCE == 200112L 1003.1-2001
|
||
|
// _POSIX_C_SOURCE == 200809L 1003.1-2008
|
||
|
//
|
||
|
// In addition, the X/Open Portability Guide, which is now the Single UNIX
|
||
|
// Specification, defines a feature-test macro which indicates the version of
|
||
|
// that specification, and which subsumes _POSIX_C_SOURCE.
|
||
|
|
||
|
// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
|
||
|
|
||
|
// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
|
||
|
|
||
|
// Deal with various X/Open Portability Guides and Single UNIX Spec.
|
||
|
|
||
|
// Deal with all versions of POSIX. The ordering relative to the tests above is
|
||
|
// important.
|
||
|
|
||
|
// POSIX C deprecation macros
|
||
|
// Copyright (c) 2010 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
|
||
|
// Set a single macro which will always be defined and can be used to determine
|
||
|
// the appropriate namespace. For POSIX, these values will correspond to
|
||
|
// _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
|
||
|
// to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
|
||
|
|
||
|
// If the developer has neither requested a strict language mode nor a version
|
||
|
// of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
|
||
|
// of __DARWIN_C_FULL.
|
||
|
|
||
|
// long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
|
||
|
// c99 still want long longs. While not perfect, we allow long longs for
|
||
|
// g++.
|
||
|
|
||
|
// ****************************************
|
||
|
//
|
||
|
// Public darwin-specific feature macros
|
||
|
//
|
||
|
|
||
|
// _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
|
||
|
// structures modified for 64-bit inodes (like struct stat) will be used.
|
||
|
|
||
|
// _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
|
||
|
// be 64-bit; there is no support for 32-bit ino_t when this macro is defined
|
||
|
// (and non-zero). There is no struct stat64 either, as the regular
|
||
|
// struct stat will already be the 64-bit version.
|
||
|
|
||
|
// _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
|
||
|
// in 10.5 exists; no pre-10.5 variants are available.
|
||
|
|
||
|
// _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
|
||
|
// are available (the legacy BSD APIs are not available)
|
||
|
|
||
|
// _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
|
||
|
// and specifies the conformance level (3 is SUSv3)
|
||
|
|
||
|
// This macro casts away the qualifier from the variable
|
||
|
//
|
||
|
// Note: use at your own risk, removing qualifiers can result in
|
||
|
// catastrophic run-time failures.
|
||
|
|
||
|
// __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
|
||
|
// used from other compilation units, but not other libraries or executables.
|
||
|
|
||
|
// Architecture validation for current SDK
|
||
|
|
||
|
// Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
|
||
|
//
|
||
|
// This provides more advanced type checking on compilers supporting
|
||
|
// the proper extensions, even in C.
|
||
|
|
||
|
// Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
// Copyright (c) 1997 Apple Computer, Inc. All Rights Reserved
|
||
|
// Copyright (c) 1988, 1989, 1993, 1994
|
||
|
// The Regents of the University of California. All rights reserved.
|
||
|
//
|
||
|
// Redistribution and use in source and binary forms, with or without
|
||
|
// modification, are permitted provided that the following conditions
|
||
|
// are met:
|
||
|
// 1. Redistributions of source code must retain the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer.
|
||
|
// 2. Redistributions in binary form must reproduce the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer in the
|
||
|
// documentation and/or other materials provided with the distribution.
|
||
|
// 3. All advertising materials mentioning features or use of this software
|
||
|
// must display the following acknowledgement:
|
||
|
// This product includes software developed by the University of
|
||
|
// California, Berkeley and its contributors.
|
||
|
// 4. Neither the name of the University nor the names of its contributors
|
||
|
// may be used to endorse or promote products derived from this software
|
||
|
// without specific prior written permission.
|
||
|
//
|
||
|
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
|
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
|
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
|
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
|
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
|
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
|
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
|
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
|
// SUCH DAMAGE.
|
||
|
//
|
||
|
// @(#)termios.h 8.3 (Berkeley) 3/28/94
|
||
|
|
||
|
// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
// Copyright 1995 NeXT Computer, Inc. All rights reserved.
|
||
|
// Copyright (c) 1991, 1993
|
||
|
// The Regents of the University of California. All rights reserved.
|
||
|
//
|
||
|
// This code is derived from software contributed to Berkeley by
|
||
|
// Berkeley Software Design, Inc.
|
||
|
//
|
||
|
// Redistribution and use in source and binary forms, with or without
|
||
|
// modification, are permitted provided that the following conditions
|
||
|
// are met:
|
||
|
// 1. Redistributions of source code must retain the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer.
|
||
|
// 2. Redistributions in binary form must reproduce the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer in the
|
||
|
// documentation and/or other materials provided with the distribution.
|
||
|
// 3. All advertising materials mentioning features or use of this software
|
||
|
// must display the following acknowledgement:
|
||
|
// This product includes software developed by the University of
|
||
|
// California, Berkeley and its contributors.
|
||
|
// 4. Neither the name of the University nor the names of its contributors
|
||
|
// may be used to endorse or promote products derived from this software
|
||
|
// without specific prior written permission.
|
||
|
//
|
||
|
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
|
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
|
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
|
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
|
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
|
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
|
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
|
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
|
// SUCH DAMAGE.
|
||
|
//
|
||
|
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
|
||
|
|
||
|
// Special Control Characters
|
||
|
//
|
||
|
// Index into c_cc[] character array.
|
||
|
//
|
||
|
// Name Subscript Enabled by
|
||
|
// 7 spare 1
|
||
|
// 19 spare 2
|
||
|
|
||
|
// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
|
||
|
// Input flags - software input processing
|
||
|
|
||
|
// Output flags - software output processing
|
||
|
// The following block of features is unimplemented. Use of these flags in
|
||
|
// programs will currently result in unexpected behaviour.
|
||
|
//
|
||
|
// - Begin unimplemented features
|
||
|
// These manifest constants have the same names as those in the header
|
||
|
// <sys/ioctl_compat.h>, so you are not permitted to have both definitions
|
||
|
// in scope simultaneously in the same compilation unit. Nevertheless,
|
||
|
// they are required to be in scope when _POSIX_C_SOURCE is requested;
|
||
|
// this means that including the <sys/ioctl_compat.h> header before this
|
||
|
// one when _POSIX_C_SOURCE is in scope will result in redefintions. We
|
||
|
// attempt to maintain these as the same values so as to avoid this being
|
||
|
// an outright error in most compilers.
|
||
|
// not in sys/ioctl_compat.h, use OXTABS value
|
||
|
// + End unimplemented features
|
||
|
|
||
|
// Control flags - hardware control of terminal
|
||
|
|
||
|
// "Local" flags - dumping ground for other state
|
||
|
//
|
||
|
// Warning: some flags in this structure begin with
|
||
|
// the letter "I" and look like they belong in the
|
||
|
// input flag.
|
||
|
|
||
|
type Tcflag_t = uint64 /* termios.h:263:25 */
|
||
|
type Cc_t = uint8 /* termios.h:264:25 */
|
||
|
type Speed_t = uint64 /* termios.h:265:25 */
|
||
|
|
||
|
type Termios = struct {
|
||
|
Fc_iflag Tcflag_t
|
||
|
Fc_oflag Tcflag_t
|
||
|
Fc_cflag Tcflag_t
|
||
|
Fc_lflag Tcflag_t
|
||
|
Fc_cc [20]Cc_t
|
||
|
F__ccgo_pad1 [4]byte
|
||
|
Fc_ispeed Speed_t
|
||
|
Fc_ospeed Speed_t
|
||
|
} /* termios.h:267:1 */
|
||
|
|
||
|
// Include tty ioctl's that aren't just for backwards compatibility
|
||
|
// with the old tty driver. These ioctl definitions were previously
|
||
|
// in <sys/ioctl.h>.
|
||
|
// Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
// Copyright (c) 1997 Apple Computer, Inc. All Rights Reserved
|
||
|
// -
|
||
|
// Copyright (c) 1982, 1986, 1990, 1993, 1994
|
||
|
// The Regents of the University of California. All rights reserved.
|
||
|
// (c) UNIX System Laboratories, Inc.
|
||
|
// All or some portions of this file are derived from material licensed
|
||
|
// to the University of California by American Telephone and Telegraph
|
||
|
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
|
||
|
// the permission of UNIX System Laboratories, Inc.
|
||
|
//
|
||
|
// Redistribution and use in source and binary forms, with or without
|
||
|
// modification, are permitted provided that the following conditions
|
||
|
// are met:
|
||
|
// 1. Redistributions of source code must retain the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer.
|
||
|
// 2. Redistributions in binary form must reproduce the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer in the
|
||
|
// documentation and/or other materials provided with the distribution.
|
||
|
// 3. All advertising materials mentioning features or use of this software
|
||
|
// must display the following acknowledgement:
|
||
|
// This product includes software developed by the University of
|
||
|
// California, Berkeley and its contributors.
|
||
|
// 4. Neither the name of the University nor the names of its contributors
|
||
|
// may be used to endorse or promote products derived from this software
|
||
|
// without specific prior written permission.
|
||
|
//
|
||
|
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
|
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
|
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
|
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
|
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
|
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
|
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
|
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
|
// SUCH DAMAGE.
|
||
|
//
|
||
|
// @(#)ttycom.h 8.1 (Berkeley) 3/28/94
|
||
|
|
||
|
// Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
// Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
|
||
|
// -
|
||
|
// Copyright (c) 1982, 1986, 1990, 1993, 1994
|
||
|
// The Regents of the University of California. All rights reserved.
|
||
|
//
|
||
|
// Redistribution and use in source and binary forms, with or without
|
||
|
// modification, are permitted provided that the following conditions
|
||
|
// are met:
|
||
|
// 1. Redistributions of source code must retain the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer.
|
||
|
// 2. Redistributions in binary form must reproduce the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer in the
|
||
|
// documentation and/or other materials provided with the distribution.
|
||
|
// 3. All advertising materials mentioning features or use of this software
|
||
|
// must display the following acknowledgement:
|
||
|
// This product includes software developed by the University of
|
||
|
// California, Berkeley and its contributors.
|
||
|
// 4. Neither the name of the University nor the names of its contributors
|
||
|
// may be used to endorse or promote products derived from this software
|
||
|
// without specific prior written permission.
|
||
|
//
|
||
|
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
|
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
|
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
|
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
|
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
|
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
|
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
|
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
|
// SUCH DAMAGE.
|
||
|
//
|
||
|
// @(#)ioccom.h 8.2 (Berkeley) 3/28/94
|
||
|
|
||
|
// Copyright (c) 2003-2007 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
|
||
|
// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
// Copyright 1995 NeXT Computer, Inc. All rights reserved.
|
||
|
// Copyright (c) 1991, 1993
|
||
|
// The Regents of the University of California. All rights reserved.
|
||
|
//
|
||
|
// This code is derived from software contributed to Berkeley by
|
||
|
// Berkeley Software Design, Inc.
|
||
|
//
|
||
|
// Redistribution and use in source and binary forms, with or without
|
||
|
// modification, are permitted provided that the following conditions
|
||
|
// are met:
|
||
|
// 1. Redistributions of source code must retain the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer.
|
||
|
// 2. Redistributions in binary form must reproduce the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer in the
|
||
|
// documentation and/or other materials provided with the distribution.
|
||
|
// 3. All advertising materials mentioning features or use of this software
|
||
|
// must display the following acknowledgement:
|
||
|
// This product includes software developed by the University of
|
||
|
// California, Berkeley and its contributors.
|
||
|
// 4. Neither the name of the University nor the names of its contributors
|
||
|
// may be used to endorse or promote products derived from this software
|
||
|
// without specific prior written permission.
|
||
|
//
|
||
|
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
|
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
|
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
|
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
|
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
|
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
|
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
|
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
|
// SUCH DAMAGE.
|
||
|
//
|
||
|
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
|
||
|
|
||
|
// Copyright (c) 2003-2007 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
|
||
|
// Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
|
||
|
// This header file contains integer types. It's intended to also contain
|
||
|
// flotaing point and other arithmetic types, as needed, later.
|
||
|
|
||
|
type X__int8_t = int8 /* _types.h:37:33 */
|
||
|
type X__uint8_t = uint8 /* _types.h:41:33 */
|
||
|
type X__int16_t = int16 /* _types.h:42:33 */
|
||
|
type X__uint16_t = uint16 /* _types.h:43:33 */
|
||
|
type X__int32_t = int32 /* _types.h:44:33 */
|
||
|
type X__uint32_t = uint32 /* _types.h:45:33 */
|
||
|
type X__int64_t = int64 /* _types.h:46:33 */
|
||
|
type X__uint64_t = uint64 /* _types.h:47:33 */
|
||
|
|
||
|
type X__darwin_intptr_t = int64 /* _types.h:49:33 */
|
||
|
type X__darwin_natural_t = uint32 /* _types.h:50:33 */
|
||
|
|
||
|
// The rune type below is declared to be an ``int'' instead of the more natural
|
||
|
// ``unsigned long'' or ``long''. Two things are happening here. It is not
|
||
|
// unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
|
||
|
// it looks like 10646 will be a 31 bit standard. This means that if your
|
||
|
// ints cannot hold 32 bits, you will be in trouble. The reason an int was
|
||
|
// chosen over a long is that the is*() and to*() routines take ints (says
|
||
|
// ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it
|
||
|
// here, you lose a bit of ANSI conformance, but your programs will still
|
||
|
// work.
|
||
|
//
|
||
|
// NOTE: rune_t is not covered by ANSI nor other standards, and should not
|
||
|
// be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and
|
||
|
// rune_t must be the same type. Also wint_t must be no narrower than
|
||
|
// wchar_t, and should also be able to hold all members of the largest
|
||
|
// character set plus one extra value (WEOF). wint_t must be at least 16 bits.
|
||
|
|
||
|
type X__darwin_ct_rune_t = int32 /* _types.h:70:33 */ // ct_rune_t
|
||
|
|
||
|
// mbstate_t is an opaque object to keep conversion state, during multibyte
|
||
|
// stream conversions. The content must not be referenced by user programs.
|
||
|
type X__mbstate_t = struct {
|
||
|
F__ccgo_pad1 [0]uint64
|
||
|
F__mbstate8 [128]int8
|
||
|
} /* _types.h:79:3 */
|
||
|
|
||
|
type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_t
|
||
|
|
||
|
type X__darwin_ptrdiff_t = int64 /* _types.h:84:33 */ // ptr1 - ptr2
|
||
|
|
||
|
type X__darwin_size_t = uint64 /* _types.h:92:33 */ // sizeof()
|
||
|
|
||
|
type X__darwin_va_list = X__builtin_va_list /* _types.h:98:33 */ // va_list
|
||
|
|
||
|
type X__darwin_wchar_t = int32 /* _types.h:104:33 */ // wchar_t
|
||
|
|
||
|
type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:109:33 */ // rune_t
|
||
|
|
||
|
type X__darwin_wint_t = int32 /* _types.h:112:33 */ // wint_t
|
||
|
|
||
|
type X__darwin_clock_t = uint64 /* _types.h:117:33 */ // clock()
|
||
|
type X__darwin_socklen_t = X__uint32_t /* _types.h:118:33 */ // socklen_t (duh)
|
||
|
type X__darwin_ssize_t = int64 /* _types.h:119:33 */ // byte count or error
|
||
|
type X__darwin_time_t = int64 /* _types.h:120:33 */ // time()
|
||
|
|
||
|
// Type definitions; takes common type definitions that must be used
|
||
|
// in multiple header files due to [XSI], removes them from the system
|
||
|
// space, and puts them in the implementation space.
|
||
|
|
||
|
type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
|
||
|
type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
|
||
|
type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
|
||
|
type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
|
||
|
type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
|
||
|
type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
|
||
|
type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
|
||
|
type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
|
||
|
type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
|
||
|
type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
|
||
|
type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
|
||
|
type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
|
||
|
type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
|
||
|
type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
|
||
|
type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
|
||
|
type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
|
||
|
type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
|
||
|
type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
|
||
|
type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
|
||
|
type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
|
||
|
|
||
|
// Copyright (c) 2003-2013 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
|
||
|
// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
// Copyright 1995 NeXT Computer, Inc. All rights reserved.
|
||
|
// Copyright (c) 1991, 1993
|
||
|
// The Regents of the University of California. All rights reserved.
|
||
|
//
|
||
|
// This code is derived from software contributed to Berkeley by
|
||
|
// Berkeley Software Design, Inc.
|
||
|
//
|
||
|
// Redistribution and use in source and binary forms, with or without
|
||
|
// modification, are permitted provided that the following conditions
|
||
|
// are met:
|
||
|
// 1. Redistributions of source code must retain the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer.
|
||
|
// 2. Redistributions in binary form must reproduce the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer in the
|
||
|
// documentation and/or other materials provided with the distribution.
|
||
|
// 3. All advertising materials mentioning features or use of this software
|
||
|
// must display the following acknowledgement:
|
||
|
// This product includes software developed by the University of
|
||
|
// California, Berkeley and its contributors.
|
||
|
// 4. Neither the name of the University nor the names of its contributors
|
||
|
// may be used to endorse or promote products derived from this software
|
||
|
// without specific prior written permission.
|
||
|
//
|
||
|
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
|
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
|
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
|
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
|
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
|
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
|
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
|
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
|
// SUCH DAMAGE.
|
||
|
//
|
||
|
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
|
||
|
|
||
|
// pthread opaque structures
|
||
|
|
||
|
type X__darwin_pthread_handler_rec = struct {
|
||
|
F__routine uintptr
|
||
|
F__arg uintptr
|
||
|
F__next uintptr
|
||
|
} /* _pthread_types.h:57:1 */
|
||
|
|
||
|
type X_opaque_pthread_attr_t = struct {
|
||
|
F__sig int64
|
||
|
F__opaque [56]int8
|
||
|
} /* _pthread_types.h:63:1 */
|
||
|
|
||
|
type X_opaque_pthread_cond_t = struct {
|
||
|
F__sig int64
|
||
|
F__opaque [40]int8
|
||
|
} /* _pthread_types.h:68:1 */
|
||
|
|
||
|
type X_opaque_pthread_condattr_t = struct {
|
||
|
F__sig int64
|
||
|
F__opaque [8]int8
|
||
|
} /* _pthread_types.h:73:1 */
|
||
|
|
||
|
type X_opaque_pthread_mutex_t = struct {
|
||
|
F__sig int64
|
||
|
F__opaque [56]int8
|
||
|
} /* _pthread_types.h:78:1 */
|
||
|
|
||
|
type X_opaque_pthread_mutexattr_t = struct {
|
||
|
F__sig int64
|
||
|
F__opaque [8]int8
|
||
|
} /* _pthread_types.h:83:1 */
|
||
|
|
||
|
type X_opaque_pthread_once_t = struct {
|
||
|
F__sig int64
|
||
|
F__opaque [8]int8
|
||
|
} /* _pthread_types.h:88:1 */
|
||
|
|
||
|
type X_opaque_pthread_rwlock_t = struct {
|
||
|
F__sig int64
|
||
|
F__opaque [192]int8
|
||
|
} /* _pthread_types.h:93:1 */
|
||
|
|
||
|
type X_opaque_pthread_rwlockattr_t = struct {
|
||
|
F__sig int64
|
||
|
F__opaque [16]int8
|
||
|
} /* _pthread_types.h:98:1 */
|
||
|
|
||
|
type X_opaque_pthread_t = struct {
|
||
|
F__sig int64
|
||
|
F__cleanup_stack uintptr
|
||
|
F__opaque [8176]int8
|
||
|
} /* _pthread_types.h:103:1 */
|
||
|
|
||
|
type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
|
||
|
type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
|
||
|
type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
|
||
|
type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
|
||
|
type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
|
||
|
type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
|
||
|
type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
|
||
|
type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
|
||
|
type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
|
||
|
type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
|
||
|
|
||
|
// Ioctl's have the command encoded in the lower word, and the size of
|
||
|
// any in or out parameters in the upper word. The high 3 bits of the
|
||
|
// upper word are used to encode the in/out status of the parameter.
|
||
|
|
||
|
// no parameters
|
||
|
// copy parameters out
|
||
|
// copy parameters in
|
||
|
// copy paramters in and out
|
||
|
// mask for IN/OUT/VOID
|
||
|
|
||
|
// this should be _IORW, but stdio got there first
|
||
|
|
||
|
// Tty ioctl's except for those supported only for backwards compatibility
|
||
|
// with the old tty driver.
|
||
|
|
||
|
// Window/terminal size structure. This information is stored by the kernel
|
||
|
// in order to provide a consistent interface, but is not used by the kernel.
|
||
|
type Winsize = struct {
|
||
|
Fws_row uint16
|
||
|
Fws_col uint16
|
||
|
Fws_xpixel uint16
|
||
|
Fws_ypixel uint16
|
||
|
} /* ttycom.h:82:1 */
|
||
|
|
||
|
// 8-10 compat
|
||
|
// 15 unused
|
||
|
// 17-18 compat
|
||
|
// 127-124 compat
|
||
|
// 117-116 compat
|
||
|
|
||
|
// END OF PROTECTED INCLUDE.
|
||
|
|
||
|
// Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
// Copyright (c) 1997 Apple Computer, Inc. All Rights Reserved
|
||
|
// -
|
||
|
// Copyright (c) 1982, 1986, 1993
|
||
|
// The Regents of the University of California. All rights reserved.
|
||
|
// (c) UNIX System Laboratories, Inc.
|
||
|
// All or some portions of this file are derived from material licensed
|
||
|
// to the University of California by American Telephone and Telegraph
|
||
|
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
|
||
|
// the permission of UNIX System Laboratories, Inc.
|
||
|
//
|
||
|
// Redistribution and use in source and binary forms, with or without
|
||
|
// modification, are permitted provided that the following conditions
|
||
|
// are met:
|
||
|
// 1. Redistributions of source code must retain the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer.
|
||
|
// 2. Redistributions in binary form must reproduce the above copyright
|
||
|
// notice, this list of conditions and the following disclaimer in the
|
||
|
// documentation and/or other materials provided with the distribution.
|
||
|
// 3. All advertising materials mentioning features or use of this software
|
||
|
// must display the following acknowledgement:
|
||
|
// This product includes software developed by the University of
|
||
|
// California, Berkeley and its contributors.
|
||
|
// 4. Neither the name of the University nor the names of its contributors
|
||
|
// may be used to endorse or promote products derived from this software
|
||
|
// without specific prior written permission.
|
||
|
//
|
||
|
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
|
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
|
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
|
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
|
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
|
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
|
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
|
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
|
// SUCH DAMAGE.
|
||
|
//
|
||
|
// @(#)ttydefaults.h 8.4 (Berkeley) 1/21/94
|
||
|
|
||
|
// System wide defaults for terminal state.
|
||
|
|
||
|
// Defaults on "first" open.
|
||
|
|
||
|
// Control Character Defaults
|
||
|
// compat
|
||
|
|
||
|
// PROTECTED INCLUSION ENDS HERE
|
||
|
|
||
|
// #define TTYDEFCHARS to include an array of default control characters.
|
||
|
// Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this
|
||
|
// file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_LICENSE_HEADER_END@
|
||
|
|
||
|
// Copyright (c) 2003-2007 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
|
||
|
// Copyright (c) 2003-2007 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
|
||
|
type X__darwin_nl_item = int32 /* _types.h:40:14 */
|
||
|
type X__darwin_wctrans_t = int32 /* _types.h:41:14 */
|
||
|
type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
|
||
|
|
||
|
// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
// Copyright (c) 2003-2007 Apple Inc. All rights reserved.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
||
|
//
|
||
|
// This file contains Original Code and/or Modifications of Original Code
|
||
|
// as defined in and that are subject to the Apple Public Source License
|
||
|
// Version 2.0 (the 'License'). You may not use this file except in
|
||
|
// compliance with the License. The rights granted to you under the License
|
||
|
// may not be used to create, or enable the creation or redistribution of,
|
||
|
// unlawful or unlicensed copies of an Apple operating system, or to
|
||
|
// circumvent, violate, or enable the circumvention or violation of, any
|
||
|
// terms of an Apple operating system software license agreement.
|
||
|
//
|
||
|
// Please obtain a copy of the License at
|
||
|
// http://www.opensource.apple.com/apsl/ and read it before using this file.
|
||
|
//
|
||
|
// The Original Code and all software distributed under the License are
|
||
|
// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
||
|
// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
||
|
// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
||
|
// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
||
|
// Please see the License for the specific language governing rights and
|
||
|
// limitations under the License.
|
||
|
//
|
||
|
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||
|
|
||
|
type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
|
||
|
|
||
|
var _ int8 /* gen.c:2:13: */
|