Source File
termios_darwin_amd64.go
Belonging Package
modernc.org/libc/termios
// Code generated by 'ccgo termios/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o termios/termios_darwin_amd64.go -pkgname termios', DO NOT EDIT.package termiosimport ()var _ = math.Pivar _ reflect.Kindvar _ atomic.Valuevar _ unsafe.Pointerconst (ALTWERASE = 0x00000200B0 = 0B110 = 110B115200 = 115200B1200 = 1200B134 = 134B14400 = 14400B150 = 150B1800 = 1800B19200 = 19200B200 = 200B230400 = 230400B2400 = 2400B28800 = 28800B300 = 300B38400 = 38400B4800 = 4800B50 = 50B57600 = 57600B600 = 600B7200 = 7200B75 = 75B76800 = 76800B9600 = 9600BRKINT = 0x00000002BS0 = 0x00000000BS1 = 0x00008000BSDLY = 0x00008000CBRK = 255CCAR_OFLOW = 0x00100000CCTS_OFLOW = 0x00010000CDISCARD = 15CDSR_OFLOW = 0x00080000CDSUSP = 25CDTR_IFLOW = 0x00040000CEOF = 4CEOL = 0xffCEOT = 4CERASE = 0177CFLUSH = 15CIGNORE = 0x00000001CINTR = 3CKILL = 21CLNEXT = 22CLOCAL = 0x00008000CMIN = 1CQUIT = 034CR0 = 0x00000000CR1 = 0x00001000CR2 = 0x00002000CR3 = 0x00003000CRDLY = 0x00003000CREAD = 0x00000800CREPRINT = 18CRPRNT = 18CRTSCTS = 196608CRTS_IFLOW = 0x00020000CS5 = 0x00000000CS6 = 0x00000100CS7 = 0x00000200CS8 = 0x00000300CSIZE = 0x00000300CSTART = 17CSTATUS = 20CSTOP = 19CSTOPB = 0x00000400CSUSP = 26CTIME = 0CWERASE = 23ECHO = 0x00000008ECHOCTL = 0x00000040ECHOE = 0x00000002ECHOK = 0x00000004ECHOKE = 0x00000001ECHONL = 0x00000010ECHOPRT = 0x00000020EXTA = 19200EXTB = 38400EXTPROC = 0x00000800FF0 = 0x00000000FF1 = 0x00004000FFDLY = 0x00004000FLUSHO = 0x00800000HUPCL = 0x00004000ICANON = 0x00000100ICRNL = 0x00000100IEXTEN = 0x00000400IGNBRK = 0x00000001IGNCR = 0x00000080IGNPAR = 0x00000004IMAXBEL = 0x00002000INLCR = 0x00000040INPCK = 0x00000010IOCPARM_MASK = 0x1fffIOCPARM_MAX = 8192ISIG = 0x00000080ISTRIP = 0x00000020IUTF8 = 0x00004000IXANY = 0x00000800IXOFF = 0x00000400IXON = 0x00000200MDMBUF = 0x00100000NCCS = 20NL0 = 0x00000000NL1 = 0x00000100NL2 = 0x00000200NL3 = 0x00000300NLDLY = 0x00000300NOFLSH = 0x80000000NOKERNINFO = 0x02000000OCRNL = 0x00000010OFDEL = 0x00020000OFILL = 0x00000080ONLCR = 0x00000002ONLRET = 0x00000040ONOCR = 0x00000020ONOEOT = 0x00000008OPOST = 0x00000001OXTABS = 0x00000004PARENB = 0x00001000PARMRK = 0x00000008PARODD = 0x00002000PENDIN = 0x20000000PPPDISC = 5SLIPDISC = 4TAB0 = 0x00000000TAB1 = 0x00000400TAB2 = 0x00000800TAB3 = 0x00000004TABDLY = 0x00000c04TABLDISC = 3TCIFLUSH = 1TCIOFF = 3TCIOFLUSH = 3TCION = 4TCOFLUSH = 2TCOOFF = 1TCOON = 2TCSADRAIN = 1TCSAFLUSH = 2TCSANOW = 0TCSASOFT = 0x10TIOCM_CAR = 0100TIOCM_CD = 64TIOCM_CTS = 0040TIOCM_DSR = 0400TIOCM_DTR = 0002TIOCM_LE = 0001TIOCM_RI = 128TIOCM_RNG = 0200TIOCM_RTS = 0004TIOCM_SR = 0020TIOCM_ST = 0010TIOCPKT_DATA = 0x00TIOCPKT_DOSTOP = 0x20TIOCPKT_FLUSHREAD = 0x01TIOCPKT_FLUSHWRITE = 0x02TIOCPKT_IOCTL = 0x40TIOCPKT_NOSTOP = 0x10TIOCPKT_START = 0x08TIOCPKT_STOP = 0x04TOSTOP = 0x00400000TTYDEF_CFLAG = 19200TTYDEF_IFLAG = 11010TTYDEF_LFLAG = 1483TTYDEF_OFLAG = 3TTYDEF_SPEED = 9600TTYDISC = 0VDISCARD = 15VDSUSP = 11VEOF = 0VEOL = 1VEOL2 = 2VERASE = 3VINTR = 8VKILL = 5VLNEXT = 14VMIN = 16VQUIT = 9VREPRINT = 6VSTART = 12VSTATUS = 18VSTOP = 13VSUSP = 10VT0 = 0x00000000VT1 = 0x00010000VTDLY = 0x00010000VTIME = 17VWERASE = 4X_BSD_I386__TYPES_H_ = 0X_BSD_MACHINE__TYPES_H_ = 0X_CDEFS_H_ = 0X_DARWIN_FEATURE_64_BIT_INODE = 1X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3X_FILE_OFFSET_BITS = 64X_FORTIFY_SOURCE = 2X_LP64 = 1X_Nonnull = 0X_Null_unspecified = 0X_Nullable = 0X_PID_T = 0X_SYS_IOCCOM_H_ = 0X_SYS_TERMIOS_H_ = 0X_SYS_TTYCOM_H_ = 0X_SYS_TTYDEFAULTS_H_ = 0X_SYS__PTHREAD_TYPES_H_ = 0X_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 int64Fhi int64} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128type X__uint128_t = struct {Flo uint64Fhi uint64} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128type X__builtin_va_list = uintptr /* <builtin>:46:14 */type X__float128 = float64 /* <builtin>:47:21 */// 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_tFc_oflag Tcflag_tFc_cflag Tcflag_tFc_lflag Tcflag_tFc_cc [20]Cc_t_ [4]byteFc_ispeed Speed_tFc_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 {_ [0]uint64F__mbstate8 [128]int8} /* _types.h:79:3 */type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_ttype X__darwin_ptrdiff_t = int64 /* _types.h:84:33 */ // ptr1 - ptr2type X__darwin_size_t = uint64 /* _types.h:92:33 */ // sizeof()type X__darwin_va_list = X__builtin_va_list /* _types.h:98:33 */ // va_listtype X__darwin_wchar_t = int32 /* _types.h:104:33 */ // wchar_ttype X__darwin_rune_t = X__darwin_wchar_t /* _types.h:109:33 */ // rune_ttype X__darwin_wint_t = int32 /* _types.h:112:33 */ // wint_ttype 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 errortype 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 blockstype X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block sizetype X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_ttype X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfstype X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfstype X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDstype X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_ttype X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodestype X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodestype X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by machtype X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by machtype X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributestype X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizestype X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDstype X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal settype X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microsecondstype X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDstype X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microsecondstype 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 structurestype X__darwin_pthread_handler_rec = struct {F__routine uintptrF__arg uintptrF__next uintptr} /* _pthread_types.h:57:1 */type X_opaque_pthread_attr_t = struct {F__sig int64F__opaque [56]int8} /* _pthread_types.h:63:1 */type X_opaque_pthread_cond_t = struct {F__sig int64F__opaque [40]int8} /* _pthread_types.h:68:1 */type X_opaque_pthread_condattr_t = struct {F__sig int64F__opaque [8]int8} /* _pthread_types.h:73:1 */type X_opaque_pthread_mutex_t = struct {F__sig int64F__opaque [56]int8} /* _pthread_types.h:78:1 */type X_opaque_pthread_mutexattr_t = struct {F__sig int64F__opaque [8]int8} /* _pthread_types.h:83:1 */type X_opaque_pthread_once_t = struct {F__sig int64F__opaque [8]int8} /* _pthread_types.h:88:1 */type X_opaque_pthread_rwlock_t = struct {F__sig int64F__opaque [192]int8} /* _pthread_types.h:93:1 */type X_opaque_pthread_rwlockattr_t = struct {F__sig int64F__opaque [16]int8} /* _pthread_types.h:98:1 */type X_opaque_pthread_t = struct {F__sig int64F__cleanup_stack uintptrF__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 uint16Fws_col uint16Fws_xpixel uint16Fws_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: */
![]() |
The pages are generated with Golds v0.3.6. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |