aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include/x86_64-macos-gnu/sys
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2020-12-19 12:13:03 +0100
committerGitHub <noreply@github.com>2020-12-19 12:13:03 +0100
commitb090451646904006ac41b2b99e532489d89ea837 (patch)
treeb0a5ec423dc42f5bf6dcf533b90f8c67a69e9b99 /lib/libc/include/x86_64-macos-gnu/sys
parent506af7e52e0985b410ea089bf5fa3247ab2377cb (diff)
parent3f81ddb735bfc8e6fb1776df7407ace213816252 (diff)
downloadzig-b090451646904006ac41b2b99e532489d89ea837.tar.gz
zig-b090451646904006ac41b2b99e532489d89ea837.zip
Merge pull request #7318 from kubkon/cc-macho
stage1: cross compile to x86_64 and arm64 macOS from anywhere with LLVM
Diffstat (limited to 'lib/libc/include/x86_64-macos-gnu/sys')
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_endian.h151
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_posix_availability.h73
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_attr_t.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_cond_t.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_condattr_t.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_key_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_mutex_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_mutexattr_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_once_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_rwlock_t.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_rwlockattr_t.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_t.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_types.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_select.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_symbol_aliasing.h3
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types.h89
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_blkcnt_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_blksize_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_caddr_t.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_clock_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_ct_rune_t.h33
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_dev_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_errno_t.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_clr.h30
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_copy.h30
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_def.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_isset.h30
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_set.h30
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_setsize.h30
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_zero.h30
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_filesec_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_fsblkcnt_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_fsfilcnt_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_fsid_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_fsobj_id_t.h38
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_gid_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_guid_t.h37
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_id_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_in_addr_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_in_port_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_ino64_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_ino_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_int16_t.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_int32_t.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_int64_t.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_int8_t.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_intptr_t.h33
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_iovec_t.h35
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_key_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_mach_port_t.h51
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_mbstate_t.h33
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_mode_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_nlink_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_null.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_o_dsync.h30
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_o_sync.h30
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_off_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_os_inline.h34
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_pid_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_posix_vdisable.h30
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_rsize_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_rune_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_s_ifmt.h74
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_sa_family_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_seek_set.h46
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_sigaltstack.h50
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_sigset_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_size_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_socklen_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_ssize_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_suseconds_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_time_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_timespec.h38
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval.h39
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval32.h38
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval64.h38
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_u_char.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int16_t.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int32_t.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int64_t.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int8_t.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_u_short.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_ucontext.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_uid_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_uintptr_t.h31
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_useconds_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_uuid_t.h32
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_va_list.h33
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_wchar_t.h36
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/_types/_wint_t.h33
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/acl.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/aio.h248
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/appleapiopts.h61
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/attr.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/cdefs.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/dirent.h141
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/errno.h266
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/event.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/fcntl.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/file.h86
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/filio.h85
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/ioccom.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/ioctl.h110
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/ipc.h176
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/kauth.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/lock.h76
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/mman.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/mount.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/msg.h225
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/param.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/poll.h118
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/proc.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/qos.h200
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/queue.h909
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/resource.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/select.h134
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/sem.h206
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/semaphore.h64
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/shm.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/signal.h392
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/socket.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/sockio.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/spawn.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/stat.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/statvfs.h60
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/stdio.h55
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/sysctl.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/syslimits.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/syslog.h236
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/termios.h366
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/time.h208
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/times.h92
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/ttycom.h173
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/ttydefaults.h124
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/types.h235
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/ucred.h116
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/uio.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/un.h2
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/unistd.h218
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/utsname.h86
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/vm.h89
-rw-r--r--lib/libc/include/x86_64-macos-gnu/sys/wait.h258
143 files changed, 33 insertions, 8703 deletions
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_endian.h b/lib/libc/include/x86_64-macos-gnu/sys/_endian.h
deleted file mode 100644
index 4b8daa8521..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_endian.h
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
- * Copyright (c) 2004, 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) 1995 NeXT Computer, Inc. All rights reserved.
- * 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) 1987, 1991, 1993
- * 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.
- */
-
-#ifndef _SYS__ENDIAN_H_
-#define _SYS__ENDIAN_H_
-
-#include <sys/cdefs.h>
-
-/*
- * Macros for network/external number representation conversion.
- */
-
-#if defined(lint)
-
-__BEGIN_DECLS
-__uint16_t ntohs(__uint16_t);
-__uint16_t htons(__uint16_t);
-__uint32_t ntohl(__uint32_t);
-__uint32_t htonl(__uint32_t);
-__END_DECLS
-
-#elif __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN
-
-#define ntohl(x) ((__uint32_t)(x))
-#define ntohs(x) ((__uint16_t)(x))
-#define htonl(x) ((__uint32_t)(x))
-#define htons(x) ((__uint16_t)(x))
-
-#if defined(KERNEL) || (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
-
-#define ntohll(x) ((__uint64_t)(x))
-#define htonll(x) ((__uint64_t)(x))
-
-#define NTOHL(x) (x)
-#define NTOHS(x) (x)
-#define NTOHLL(x) (x)
-#define HTONL(x) (x)
-#define HTONS(x) (x)
-#define HTONLL(x) (x)
-#endif /* defined(KERNEL) || (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) */
-
-#else /* __DARWIN_BYTE_ORDER == __DARWIN_LITTLE_ENDIAN */
-
-#include <libkern/_OSByteOrder.h>
-
-#define ntohs(x) __DARWIN_OSSwapInt16(x)
-#define htons(x) __DARWIN_OSSwapInt16(x)
-
-#define ntohl(x) __DARWIN_OSSwapInt32(x)
-#define htonl(x) __DARWIN_OSSwapInt32(x)
-
-#if defined(KERNEL) || (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
-
-#define ntohll(x) __DARWIN_OSSwapInt64(x)
-#define htonll(x) __DARWIN_OSSwapInt64(x)
-
-#define NTOHL(x) (x) = ntohl((__uint32_t)x)
-#define NTOHS(x) (x) = ntohs((__uint16_t)x)
-#define NTOHLL(x) (x) = ntohll((__uint64_t)x)
-#define HTONL(x) (x) = htonl((__uint32_t)x)
-#define HTONS(x) (x) = htons((__uint16_t)x)
-#define HTONLL(x) (x) = htonll((__uint64_t)x)
-#endif /* defined(KERNEL) || (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) */
-#endif /* __DARWIN_BYTE_ORDER */
-#endif /* !_SYS__ENDIAN_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_posix_availability.h b/lib/libc/include/x86_64-macos-gnu/sys/_posix_availability.h
deleted file mode 100644
index a540f26a17..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_posix_availability.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/* 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@
- */
-
-#ifndef _CDEFS_H_
-# error "Never use <sys/_posix_availability.h> directly. Use <sys/cdefs.h> instead."
-#endif
-
-#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 198808L
-#define ___POSIX_C_DEPRECATED_STARTING_198808L __deprecated
-#else
-#define ___POSIX_C_DEPRECATED_STARTING_198808L
-#endif
-
-#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199009L
-#define ___POSIX_C_DEPRECATED_STARTING_199009L __deprecated
-#else
-#define ___POSIX_C_DEPRECATED_STARTING_199009L
-#endif
-
-#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199209L
-#define ___POSIX_C_DEPRECATED_STARTING_199209L __deprecated
-#else
-#define ___POSIX_C_DEPRECATED_STARTING_199209L
-#endif
-
-#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199309L
-#define ___POSIX_C_DEPRECATED_STARTING_199309L __deprecated
-#else
-#define ___POSIX_C_DEPRECATED_STARTING_199309L
-#endif
-
-#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199506L
-#define ___POSIX_C_DEPRECATED_STARTING_199506L __deprecated
-#else
-#define ___POSIX_C_DEPRECATED_STARTING_199506L
-#endif
-
-#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L
-#define ___POSIX_C_DEPRECATED_STARTING_200112L __deprecated
-#else
-#define ___POSIX_C_DEPRECATED_STARTING_200112L
-#endif
-
-#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200809L
-#define ___POSIX_C_DEPRECATED_STARTING_200809L __deprecated
-#else
-#define ___POSIX_C_DEPRECATED_STARTING_200809L
-#endif
-
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_attr_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_attr_t.h
index cba5882afb..a71842cb99 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_attr_t.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_attr_t.h
@@ -29,4 +29,4 @@
#define _PTHREAD_ATTR_T
#include <sys/_pthread/_pthread_types.h> /* __darwin_pthread_attr_t */
typedef __darwin_pthread_attr_t pthread_attr_t;
-#endif /* _PTHREAD_ATTR_T */
+#endif /* _PTHREAD_ATTR_T */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_cond_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_cond_t.h
index b6a7b42f4a..3eceff6274 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_cond_t.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_cond_t.h
@@ -29,4 +29,4 @@
#define _PTHREAD_COND_T
#include <sys/_pthread/_pthread_types.h> /* __darwin_pthread_cond_t */
typedef __darwin_pthread_cond_t pthread_cond_t;
-#endif /* _PTHREAD_COND_T */
+#endif /* _PTHREAD_COND_T */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_condattr_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_condattr_t.h
index 6e9227a8a3..7fd62badd7 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_condattr_t.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_condattr_t.h
@@ -29,4 +29,4 @@
#define _PTHREAD_CONDATTR_T
#include <sys/_pthread/_pthread_types.h> /* __darwin_pthread_condattr_t */
typedef __darwin_pthread_condattr_t pthread_condattr_t;
-#endif /* _PTHREAD_CONDATTR_T */
+#endif /* _PTHREAD_CONDATTR_T */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_key_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_key_t.h
deleted file mode 100644
index 20d7a0a444..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_key_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _PTHREAD_KEY_T
-#define _PTHREAD_KEY_T
-#include <sys/_pthread/_pthread_types.h> /* __darwin_pthread_key_t */
-typedef __darwin_pthread_key_t pthread_key_t;
-#endif /* _PTHREAD_KEY_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_mutex_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_mutex_t.h
deleted file mode 100644
index e5aff0bc2e..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_mutex_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _PTHREAD_MUTEX_T
-#define _PTHREAD_MUTEX_T
-#include <sys/_pthread/_pthread_types.h> /* __darwin_pthread_mutex_t */
-typedef __darwin_pthread_mutex_t pthread_mutex_t;
-#endif /*_PTHREAD_MUTEX_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_mutexattr_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_mutexattr_t.h
deleted file mode 100644
index 218d74a91c..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_mutexattr_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _PTHREAD_MUTEXATTR_T
-#define _PTHREAD_MUTEXATTR_T
-#include <sys/_pthread/_pthread_types.h> /* __darwin_pthread_mutexattr_t */
-typedef __darwin_pthread_mutexattr_t pthread_mutexattr_t;
-#endif /* _PTHREAD_MUTEXATTR_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_once_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_once_t.h
deleted file mode 100644
index d50a6244f9..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_once_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _PTHREAD_ONCE_T
-#define _PTHREAD_ONCE_T
-#include <sys/_pthread/_pthread_types.h> /* __darwin_pthread_once_t */
-typedef __darwin_pthread_once_t pthread_once_t;
-#endif /* _PTHREAD_ONCE_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_rwlock_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_rwlock_t.h
index 75c4e350b4..dc1f013f3b 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_rwlock_t.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_rwlock_t.h
@@ -29,4 +29,4 @@
#define _PTHREAD_RWLOCK_T
#include <sys/_pthread/_pthread_types.h> /* __darwin_pthread_rwlock_t */
typedef __darwin_pthread_rwlock_t pthread_rwlock_t;
-#endif /* _PTHREAD_RWLOCK_T */
+#endif /* _PTHREAD_RWLOCK_T */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_rwlockattr_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_rwlockattr_t.h
index 6ccd234725..99fda712f4 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_rwlockattr_t.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_rwlockattr_t.h
@@ -29,4 +29,4 @@
#define _PTHREAD_RWLOCKATTR_T
#include <sys/_pthread/_pthread_types.h> /* __darwin_pthread_rwlockattr_t */
typedef __darwin_pthread_rwlockattr_t pthread_rwlockattr_t;
-#endif /* _PTHREAD_RWLOCKATTR_T */
+#endif /* _PTHREAD_RWLOCKATTR_T */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_t.h
index 4d9e3dac95..87f42ee9aa 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_t.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_t.h
@@ -29,4 +29,4 @@
#define _PTHREAD_T
#include <sys/_pthread/_pthread_types.h> /* __darwin_pthread_t */
typedef __darwin_pthread_t pthread_t;
-#endif /* _PTHREAD_T */
+#endif /* _PTHREAD_T */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_types.h b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_types.h
index d9d51b89ea..7aa42bdff1 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_types.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_pthread/_pthread_types.h
@@ -117,4 +117,4 @@ typedef struct _opaque_pthread_rwlock_t __darwin_pthread_rwlock_t;
typedef struct _opaque_pthread_rwlockattr_t __darwin_pthread_rwlockattr_t;
typedef struct _opaque_pthread_t *__darwin_pthread_t;
-#endif // _SYS__PTHREAD_TYPES_H_
+#endif // _SYS__PTHREAD_TYPES_H_ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_select.h b/lib/libc/include/x86_64-macos-gnu/sys/_select.h
index 567d621856..70842ca2f5 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_select.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_select.h
@@ -49,4 +49,4 @@ __DARWIN_ALIAS_C(select)
#endif /* _DARWIN_C_SOURCE || _DARWIN_UNLIMITED_SELECT */
;
-#endif /* !_SYS__SELECT_H_ */
+#endif /* !_SYS__SELECT_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_symbol_aliasing.h b/lib/libc/include/x86_64-macos-gnu/sys/_symbol_aliasing.h
index 1bbcd58ebd..17b4d6fe37 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_symbol_aliasing.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_symbol_aliasing.h
@@ -495,5 +495,4 @@
#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_15_1(x) x
#else
#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_15_1(x)
-#endif
-
+#endif \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types.h b/lib/libc/include/x86_64-macos-gnu/sys/_types.h
deleted file mode 100644
index 43be468d7b..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * 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@
- */
-
-#ifndef _SYS__TYPES_H_
-#define _SYS__TYPES_H_
-
-#include <sys/cdefs.h>
-#include <machine/_types.h>
-
-/*
- * 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.
- */
-
-#ifdef __cplusplus
-#ifdef __GNUG__
-#define __DARWIN_NULL __null
-#else /* ! __GNUG__ */
-#ifdef __LP64__
-#define __DARWIN_NULL (0L)
-#else /* !__LP64__ */
-#define __DARWIN_NULL 0
-#endif /* __LP64__ */
-#endif /* __GNUG__ */
-#else /* ! __cplusplus */
-#define __DARWIN_NULL ((void *)0)
-#endif /* __cplusplus */
-
-typedef __int64_t __darwin_blkcnt_t; /* total blocks */
-typedef __int32_t __darwin_blksize_t; /* preferred block size */
-typedef __int32_t __darwin_dev_t; /* dev_t */
-typedef unsigned int __darwin_fsblkcnt_t; /* Used by statvfs and fstatvfs */
-typedef unsigned int __darwin_fsfilcnt_t; /* Used by statvfs and fstatvfs */
-typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
-typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
-typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
-#if __DARWIN_64_BIT_INO_T
-typedef __darwin_ino64_t __darwin_ino_t; /* [???] Used for inodes */
-#else /* !__DARWIN_64_BIT_INO_T */
-typedef __uint32_t __darwin_ino_t; /* [???] Used for inodes */
-#endif /* __DARWIN_64_BIT_INO_T */
-typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
-typedef __darwin_mach_port_name_t __darwin_mach_port_t; /* Used by mach */
-typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
-typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
-typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
-typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
-typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
-typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
-typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
-typedef unsigned char __darwin_uuid_t[16];
-typedef char __darwin_uuid_string_t[37];
-
-#include <sys/_pthread/_pthread_types.h>
-
-#if defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 5 || __GNUC__ > 3)
-#define __offsetof(type, field) __builtin_offsetof(type, field)
-#else /* !(gcc >= 3.5) */
-#define __offsetof(type, field) ((size_t)(&((type *)0)->field))
-#endif /* (gcc >= 3.5) */
-
-
-#endif /* _SYS__TYPES_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_blkcnt_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_blkcnt_t.h
deleted file mode 100644
index 9d4d1ee883..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_blkcnt_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _BLKCNT_T
-#define _BLKCNT_T
-#include <sys/_types.h> /* __darwin_blkcnt_t */
-typedef __darwin_blkcnt_t blkcnt_t;
-#endif /* _BLKCNT_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_blksize_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_blksize_t.h
deleted file mode 100644
index 82931f7bfa..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_blksize_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _BLKSIZE_T
-#define _BLKSIZE_T
-#include <sys/_types.h> /* __darwin_blksize_t */
-typedef __darwin_blksize_t blksize_t;
-#endif /* _BLKSIZE_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_caddr_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_caddr_t.h
deleted file mode 100644
index 159e186d39..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_caddr_t.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017 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@
- */
-#ifndef _CADDR_T
-#define _CADDR_T
-typedef char * caddr_t;
-#endif /* _CADDR_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_clock_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_clock_t.h
deleted file mode 100644
index 991d2cd528..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_clock_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _CLOCK_T
-#define _CLOCK_T
-#include <machine/types.h> /* __darwin_clock_t */
-typedef __darwin_clock_t clock_t;
-#endif /* _CLOCK_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_ct_rune_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_ct_rune_t.h
deleted file mode 100644
index 3878dff806..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_ct_rune_t.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-
-#ifndef _CT_RUNE_T
-#define _CT_RUNE_T
-#include <machine/_types.h> /* __darwin_ct_rune_t */
-typedef __darwin_ct_rune_t ct_rune_t;
-#endif /* _CT_RUNE_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_dev_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_dev_t.h
deleted file mode 100644
index be5c73ee50..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_dev_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _DEV_T
-#define _DEV_T
-#include <sys/_types.h> /* __darwin_dev_t */
-typedef __darwin_dev_t dev_t; /* device number */
-#endif /* _DEV_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_errno_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_errno_t.h
deleted file mode 100644
index 557282a2d3..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_errno_t.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * 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@
- */
-#ifndef _ERRNO_T
-#define _ERRNO_T
-typedef int errno_t;
-#endif /* _ERRNO_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_clr.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_clr.h
deleted file mode 100644
index eeb65b3627..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_clr.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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@
- */
-#ifndef FD_CLR
-#define FD_CLR(n, p) __DARWIN_FD_CLR(n, p)
-#endif /* FD_CLR */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_copy.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_copy.h
deleted file mode 100644
index d0e9c1ec9a..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_copy.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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@
- */
-#ifndef FD_COPY
-#define FD_COPY(f, t) __DARWIN_FD_COPY(f, t)
-#endif /* FD_COPY */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_def.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_def.h
index daadcfe6ec..ec0bad4289 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_def.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_def.h
@@ -111,4 +111,4 @@ __darwin_fd_clr(int _fd, struct fd_set *const _p)
#endif
#define __DARWIN_FD_COPY(f, t) bcopy(f, t, sizeof(*(f)))
-#endif /* _FD_SET */
+#endif /* _FD_SET */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_isset.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_isset.h
deleted file mode 100644
index e3b3d98561..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_isset.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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@
- */
-#ifndef FD_ISSET
-#define FD_ISSET(n, p) __DARWIN_FD_ISSET(n, p)
-#endif /* FD_ISSET */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_set.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_set.h
deleted file mode 100644
index 67f4fa4df3..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_set.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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@
- */
-#ifndef FD_SET
-#define FD_SET(n, p) __DARWIN_FD_SET(n, p)
-#endif /* FD_SET */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_setsize.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_setsize.h
deleted file mode 100644
index c5c3ec9d8f..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_setsize.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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@
- */
-#ifndef FD_SETSIZE
-#define FD_SETSIZE __DARWIN_FD_SETSIZE
-#endif /* FD_SETSIZE */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_zero.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_zero.h
deleted file mode 100644
index 8363df3bd7..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fd_zero.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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@
- */
-#ifndef FD_ZERO
-#define FD_ZERO(p) __DARWIN_FD_ZERO(p)
-#endif /* FD_ZERO */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_filesec_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_filesec_t.h
deleted file mode 100644
index 6812eba467..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_filesec_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _FILESEC_T
-#define _FILESEC_T
-struct _filesec;
-typedef struct _filesec *filesec_t;
-#endif /* _FILESEC_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsblkcnt_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsblkcnt_t.h
deleted file mode 100644
index a80d02f671..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsblkcnt_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _FSBLKCNT_T
-#define _FSBLKCNT_T
-#include <sys/_types.h> /* __darwin_fsblkcnt_t */
-typedef __darwin_fsblkcnt_t fsblkcnt_t;
-#endif /* _FSBLKCNT_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsfilcnt_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsfilcnt_t.h
deleted file mode 100644
index be5e9b4aba..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsfilcnt_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _FSFILCNT_T
-#define _FSFILCNT_T
-#include <sys/_types.h> /* __darwin_fsfilcnt_t */
-typedef __darwin_fsfilcnt_t fsfilcnt_t;
-#endif /* _FSFILCNT_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsid_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsid_t.h
deleted file mode 100644
index d4e70f2997..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsid_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2014 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@
- */
-#ifndef _FSID_T
-#define _FSID_T
-#include <sys/_types/_int32_t.h> /* int32_t */
-typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */
-#endif /* _FSID_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsobj_id_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsobj_id_t.h
deleted file mode 100644
index a396cdff9e..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_fsobj_id_t.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2016 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@
- */
-#ifndef _FSOBJ_ID_T
-#define _FSOBJ_ID_T
-
-#include <sys/_types/_u_int32_t.h> /* u_int32_t */
-
-typedef struct fsobj_id {
- u_int32_t fid_objno;
- u_int32_t fid_generation;
-} fsobj_id_t;
-
-#endif /* _FSOBJ_ID_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_gid_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_gid_t.h
deleted file mode 100644
index ebf4970689..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_gid_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _GID_T
-#define _GID_T
-#include <sys/_types.h> /* __darwin_gid_t */
-typedef __darwin_gid_t gid_t;
-#endif
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_guid_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_guid_t.h
deleted file mode 100644
index df29f9ca39..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_guid_t.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * 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@
- */
-#ifndef _KAUTH_GUID
-#define _KAUTH_GUID
-/* Apple-style globally unique identifier */
-typedef union {
-#define KAUTH_GUID_SIZE 16 /* 128-bit identifier */
- unsigned char g_guid[KAUTH_GUID_SIZE];
- unsigned int g_guid_asint[KAUTH_GUID_SIZE / sizeof(unsigned int)];
-} guid_t;
-#define _GUID_T
-#endif /* _KAUTH_GUID */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_id_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_id_t.h
deleted file mode 100644
index 9af9610a27..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_id_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _ID_T
-#define _ID_T
-#include <sys/_types.h> /* __darwin_id_t */
-typedef __darwin_id_t id_t; /* can hold pid_t, gid_t, or uid_t */
-#endif /* _ID_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_in_addr_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_in_addr_t.h
deleted file mode 100644
index edcf66e507..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_in_addr_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _IN_ADDR_T
-#define _IN_ADDR_T
-#include <machine/types.h> /* __uint32_t */
-typedef __uint32_t in_addr_t; /* base type for internet address */
-#endif /* _IN_ADDR_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_in_port_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_in_port_t.h
deleted file mode 100644
index 8b102566c9..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_in_port_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _IN_PORT_T
-#define _IN_PORT_T
-#include <machine/types.h> /* __uint16_t */
-typedef __uint16_t in_port_t;
-#endif /* _IN_PORT_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_ino64_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_ino64_t.h
deleted file mode 100644
index c142b1baec..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_ino64_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _INO64_T
-#define _INO64_T
-#include <sys/_types.h> /* __darwin_ino64_t */
-typedef __darwin_ino64_t ino64_t; /* 64bit inode number */
-#endif /* _INO64_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_ino_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_ino_t.h
deleted file mode 100644
index 2a693ddbfd..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_ino_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _INO_T
-#define _INO_T
-#include <sys/_types.h> /* __darwin_ino_t */
-typedef __darwin_ino_t ino_t; /* inode number */
-#endif /* _INO_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_int16_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_int16_t.h
deleted file mode 100644
index 3bf3da0681..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_int16_t.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-#ifndef _INT16_T
-#define _INT16_T
-typedef short int16_t;
-#endif /* _INT16_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_int32_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_int32_t.h
deleted file mode 100644
index 9b1d72ba74..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_int32_t.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-#ifndef _INT32_T
-#define _INT32_T
-typedef int int32_t;
-#endif /* _INT32_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_int64_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_int64_t.h
deleted file mode 100644
index 4f3e7de38a..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_int64_t.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-#ifndef _INT64_T
-#define _INT64_T
-typedef long long int64_t;
-#endif /* _INT64_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_int8_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_int8_t.h
index 9176298a5f..15b281d533 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_int8_t.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_types/_int8_t.h
@@ -28,4 +28,4 @@
#ifndef _INT8_T
#define _INT8_T
typedef __signed char int8_t;
-#endif /* _INT8_T */
+#endif /* _INT8_T */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_intptr_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_intptr_t.h
deleted file mode 100644
index 0f494b9e5c..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_intptr_t.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * 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@
- */
-#ifndef _INTPTR_T
-#define _INTPTR_T
-#include <machine/types.h> /* __darwin_intptr_t */
-
-typedef __darwin_intptr_t intptr_t;
-#endif /* _INTPTR_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_iovec_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_iovec_t.h
deleted file mode 100644
index f89c7306f2..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_iovec_t.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * 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@
- */
-#ifndef _STRUCT_IOVEC
-#define _STRUCT_IOVEC
-#include <sys/_types/_size_t.h> /* size_t */
-struct iovec {
- void * iov_base; /* [XSI] Base address of I/O memory region */
- size_t iov_len; /* [XSI] Size of region iov_base points to */
-};
-#endif /* _STRUCT_IOVEC */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_key_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_key_t.h
deleted file mode 100644
index ec093d7699..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_key_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _KEY_T
-#define _KEY_T
-#include <machine/types.h> /* __int32_t */
-typedef __int32_t key_t; /* IPC key (for Sys V IPC) */
-#endif /* _KEY_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_mach_port_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_mach_port_t.h
deleted file mode 100644
index fa96565f66..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_mach_port_t.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * 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@
- */
-
-/*
- * mach_port_t - a named port right
- *
- * In user-space, "rights" are represented by the name of the
- * right in the Mach port namespace. Even so, this type is
- * presented as a unique one to more clearly denote the presence
- * of a right coming along with the name.
- *
- * Often, various rights for a port held in a single name space
- * will coalesce and are, therefore, be identified by a single name
- * [this is the case for send and receive rights]. But not
- * always [send-once rights currently get a unique name for
- * each right].
- *
- * This definition of mach_port_t is only for user-space.
- *
- */
-
-#ifndef _MACH_PORT_T
-#define _MACH_PORT_T
-#include <sys/_types.h> /* __darwin_mach_port_t */
-typedef __darwin_mach_port_t mach_port_t;
-#endif /* _MACH_PORT_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_mbstate_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_mbstate_t.h
deleted file mode 100644
index 771728bfa7..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_mbstate_t.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-
-#ifndef _MBSTATE_T
-#define _MBSTATE_T
-#include <machine/types.h> /* __darwin_mbstate_t */
-typedef __darwin_mbstate_t mbstate_t;
-#endif /* _MBSTATE_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_mode_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_mode_t.h
deleted file mode 100644
index 36f8d2b324..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_mode_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _MODE_T
-#define _MODE_T
-#include <sys/_types.h> /* __darwin_mode_t */
-typedef __darwin_mode_t mode_t;
-#endif /* _MODE_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_nlink_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_nlink_t.h
deleted file mode 100644
index c3f83365ff..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_nlink_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _NLINK_T
-#define _NLINK_T
-#include <machine/types.h> /* __uint16_t */
-typedef __uint16_t nlink_t; /* link count */
-#endif /* _NLINK_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_null.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_null.h
deleted file mode 100644
index 9c21571ea4..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_null.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * 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@
- */
-#ifndef NULL
-#include <sys/_types.h> /* __DARWIN_NULL */
-#define NULL __DARWIN_NULL
-#endif /* NULL */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_o_dsync.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_o_dsync.h
deleted file mode 100644
index bd4f2884fa..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_o_dsync.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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@
- */
-#ifndef O_DSYNC
-#define O_DSYNC 0x400000 /* synch I/O data integrity */
-#endif /* O_DSYNC */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_o_sync.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_o_sync.h
deleted file mode 100644
index a3952cc35f..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_o_sync.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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@
- */
-#ifndef O_SYNC
-#define O_SYNC 0x0080 /* synch I/O file integrity */
-#endif /* O_SYNC */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_off_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_off_t.h
deleted file mode 100644
index bdc3d5e383..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_off_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _OFF_T
-#define _OFF_T
-#include <sys/_types.h> /* __darwin_off_t */
-typedef __darwin_off_t off_t;
-#endif /* _OFF_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_os_inline.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_os_inline.h
deleted file mode 100644
index fd68cff47a..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_os_inline.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * 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@
- */
-#if !defined(OS_INLINE)
-# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
-# define OS_INLINE static inline
-# else
-# define OS_INLINE static __inline__
-# endif
-#endif /* OS_INLINE */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_pid_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_pid_t.h
deleted file mode 100644
index 994f84e87d..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_pid_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _PID_T
-#define _PID_T
-#include <sys/_types.h> /* __darwin_pid_t */
-typedef __darwin_pid_t pid_t;
-#endif /* _PID_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_posix_vdisable.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_posix_vdisable.h
deleted file mode 100644
index 970f1b5d73..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_posix_vdisable.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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@
- */
-#ifndef _POSIX_VDISABLE
-#define _POSIX_VDISABLE ((unsigned char)'\377')
-#endif /* POSIX_VDISABLE */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_rsize_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_rsize_t.h
deleted file mode 100644
index 6aa2f6b320..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_rsize_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _RSIZE_T
-#define _RSIZE_T
-#include <machine/types.h> /* __darwin_size_t */
-typedef __darwin_size_t rsize_t;
-#endif /* _RSIZE_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_rune_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_rune_t.h
deleted file mode 100644
index bd10ef1ba5..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_rune_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-#ifndef _RUNE_T
-#define _RUNE_T
-#include <machine/_types.h> /* __darwin_rune_t */
-typedef __darwin_rune_t rune_t;
-#endif /* _RUNE_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_s_ifmt.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_s_ifmt.h
deleted file mode 100644
index 1139cb25b7..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_s_ifmt.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * 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@
- */
-
-/*
- * [XSI] The symbolic names for file modes for use as values of mode_t
- * shall be defined as described in <sys/stat.h>
- */
-#ifndef S_IFMT
-/* File type */
-#define S_IFMT 0170000 /* [XSI] type of file mask */
-#define S_IFIFO 0010000 /* [XSI] named pipe (fifo) */
-#define S_IFCHR 0020000 /* [XSI] character special */
-#define S_IFDIR 0040000 /* [XSI] directory */
-#define S_IFBLK 0060000 /* [XSI] block special */
-#define S_IFREG 0100000 /* [XSI] regular */
-#define S_IFLNK 0120000 /* [XSI] symbolic link */
-#define S_IFSOCK 0140000 /* [XSI] socket */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define S_IFWHT 0160000 /* OBSOLETE: whiteout */
-#endif
-
-/* File mode */
-/* Read, write, execute/search by owner */
-#define S_IRWXU 0000700 /* [XSI] RWX mask for owner */
-#define S_IRUSR 0000400 /* [XSI] R for owner */
-#define S_IWUSR 0000200 /* [XSI] W for owner */
-#define S_IXUSR 0000100 /* [XSI] X for owner */
-/* Read, write, execute/search by group */
-#define S_IRWXG 0000070 /* [XSI] RWX mask for group */
-#define S_IRGRP 0000040 /* [XSI] R for group */
-#define S_IWGRP 0000020 /* [XSI] W for group */
-#define S_IXGRP 0000010 /* [XSI] X for group */
-/* Read, write, execute/search by others */
-#define S_IRWXO 0000007 /* [XSI] RWX mask for other */
-#define S_IROTH 0000004 /* [XSI] R for other */
-#define S_IWOTH 0000002 /* [XSI] W for other */
-#define S_IXOTH 0000001 /* [XSI] X for other */
-
-#define S_ISUID 0004000 /* [XSI] set user id on execution */
-#define S_ISGID 0002000 /* [XSI] set group id on execution */
-#define S_ISVTX 0001000 /* [XSI] directory restrcted delete */
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define S_ISTXT S_ISVTX /* sticky bit: not supported */
-#define S_IREAD S_IRUSR /* backward compatability */
-#define S_IWRITE S_IWUSR /* backward compatability */
-#define S_IEXEC S_IXUSR /* backward compatability */
-#endif
-#endif /* !S_IFMT */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_sa_family_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_sa_family_t.h
deleted file mode 100644
index 857cdd09c3..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_sa_family_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _SA_FAMILY_T
-#define _SA_FAMILY_T
-#include <machine/types.h> /* __uint8_t */
-typedef __uint8_t sa_family_t;
-#endif /* _SA_FAMILY_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_seek_set.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_seek_set.h
deleted file mode 100644
index f55175ad1f..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_seek_set.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * 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@
- */
-
-#include <sys/cdefs.h>
-
-/* whence values for lseek(2) */
-#ifndef SEEK_SET
-#define SEEK_SET 0 /* set file offset to offset */
-#define SEEK_CUR 1 /* set file offset to current plus offset */
-#define SEEK_END 2 /* set file offset to EOF plus offset */
-#endif /* !SEEK_SET */
-
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#ifndef SEEK_HOLE
-#define SEEK_HOLE 3 /* set file offset to the start of the next hole greater than or equal to the supplied offset */
-#endif
-
-#ifndef SEEK_DATA
-#define SEEK_DATA 4 /* set file offset to the start of the next non-hole file region greater than or equal to the supplied offset */
-#endif
-#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_sigaltstack.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_sigaltstack.h
deleted file mode 100644
index 8c34305842..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_sigaltstack.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * 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@
- */
-
-/* Structure used in sigaltstack call. */
-#ifndef _STRUCT_SIGALTSTACK
-
-#include <sys/cdefs.h> /* __DARWIN_UNIX03 */
-
-#if __DARWIN_UNIX03
-#define _STRUCT_SIGALTSTACK struct __darwin_sigaltstack
-#else /* !__DARWIN_UNIX03 */
-#define _STRUCT_SIGALTSTACK struct sigaltstack
-#endif /* __DARWIN_UNIX03 */
-
-#include <machine/types.h> /* __darwin_size_t */
-
-_STRUCT_SIGALTSTACK
-{
- void *ss_sp; /* signal stack base */
- __darwin_size_t ss_size; /* signal stack length */
- int ss_flags; /* SA_DISABLE and/or SA_ONSTACK */
-};
-typedef _STRUCT_SIGALTSTACK stack_t; /* [???] signal stack */
-
-#endif /* _STRUCT_SIGALTSTACK */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_sigset_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_sigset_t.h
deleted file mode 100644
index 51844dddbb..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_sigset_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _SIGSET_T
-#define _SIGSET_T
-#include <sys/_types.h> /* __darwin_sigset_t */
-typedef __darwin_sigset_t sigset_t;
-#endif /* _SIGSET_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_size_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_size_t.h
deleted file mode 100644
index a14a8885fa..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_size_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _SIZE_T
-#define _SIZE_T
-#include <machine/_types.h> /* __darwin_size_t */
-typedef __darwin_size_t size_t;
-#endif /* _SIZE_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_socklen_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_socklen_t.h
deleted file mode 100644
index a7b8431561..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_socklen_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _SOCKLEN_T
-#define _SOCKLEN_T
-#include <machine/types.h> /* __darwin_socklen_t */
-typedef __darwin_socklen_t socklen_t;
-#endif
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_ssize_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_ssize_t.h
deleted file mode 100644
index 056607814d..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_ssize_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _SSIZE_T
-#define _SSIZE_T
-#include <machine/types.h> /* __darwin_ssize_t */
-typedef __darwin_ssize_t ssize_t;
-#endif /* _SSIZE_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_suseconds_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_suseconds_t.h
deleted file mode 100644
index 3980dfedf5..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_suseconds_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _SUSECONDS_T
-#define _SUSECONDS_T
-#include <sys/_types.h> /* __darwin_suseconds_t */
-typedef __darwin_suseconds_t suseconds_t;
-#endif /* _SUSECONDS_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_time_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_time_t.h
deleted file mode 100644
index 2a91ef225a..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_time_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _TIME_T
-#define _TIME_T
-#include <machine/types.h> /* __darwin_time_t */
-typedef __darwin_time_t time_t;
-#endif /* _TIME_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_timespec.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_timespec.h
deleted file mode 100644
index 82cc723ec6..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_timespec.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * 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@
- */
-#ifndef _STRUCT_TIMESPEC
-#define _STRUCT_TIMESPEC struct timespec
-
-#include <machine/types.h> /* __darwin_time_t */
-
-_STRUCT_TIMESPEC
-{
- __darwin_time_t tv_sec;
- long tv_nsec;
-};
-#endif /* _STRUCT_TIMESPEC */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval.h
deleted file mode 100644
index 1b9a000a6b..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * 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@
- */
-#ifndef _STRUCT_TIMEVAL
-#define _STRUCT_TIMEVAL struct timeval
-
-#include <machine/types.h> /* __darwin_time_t */
-#include <sys/_types.h> /* __darwin_suseconds_t */
-
-_STRUCT_TIMEVAL
-{
- __darwin_time_t tv_sec; /* seconds */
- __darwin_suseconds_t tv_usec; /* and microseconds */
-};
-#endif /* _STRUCT_TIMEVAL */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval32.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval32.h
deleted file mode 100644
index 71518173a3..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval32.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * 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@
- */
-#ifndef _STRUCT_TIMEVAL32
-#define _STRUCT_TIMEVAL32 struct timeval32
-
-#include <machine/types.h> /* __int32_t */
-
-_STRUCT_TIMEVAL32
-{
- __int32_t tv_sec; /* seconds */
- __int32_t tv_usec; /* and microseconds */
-};
-#endif /* _STRUCT_TIMEVAL32 */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval64.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval64.h
deleted file mode 100644
index 2eb3c434fb..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_timeval64.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2015 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@
- */
-
-#ifndef _STRUCT_TIMEVAL64
-#define _STRUCT_TIMEVAL64
-
-#include <machine/types.h> /* __int64_t */
-
-struct timeval64 {
- __int64_t tv_sec; /* seconds */
- __int64_t tv_usec; /* and microseconds */
-};
-#endif /* _STRUCT_TIMEVAL32 */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_char.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_char.h
deleted file mode 100644
index b6add3feb3..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_char.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017 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@
- */
-#ifndef _U_CHAR
-#define _U_CHAR
-typedef unsigned char u_char;
-#endif /* _U_CHAR */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int.h
deleted file mode 100644
index 161b3baf14..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017 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@
- */
-#ifndef _U_INT
-#define _U_INT
-typedef unsigned int u_int;
-#endif /* _U_INT */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int16_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int16_t.h
deleted file mode 100644
index 5a01fc450b..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int16_t.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-#ifndef _U_INT16_T
-#define _U_INT16_T
-typedef unsigned short u_int16_t;
-#endif /* _U_INT16_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int32_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int32_t.h
deleted file mode 100644
index 4f01b22bd2..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int32_t.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-#ifndef _U_INT32_T
-#define _U_INT32_T
-typedef unsigned int u_int32_t;
-#endif /* _U_INT32_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int64_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int64_t.h
deleted file mode 100644
index bd866cbc2a..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int64_t.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-#ifndef _U_INT64_T
-#define _U_INT64_T
-typedef unsigned long long u_int64_t;
-#endif /* _U_INT64_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int8_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int8_t.h
deleted file mode 100644
index ac9bf77111..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_int8_t.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2016 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@
- */
-#ifndef _U_INT8_T
-#define _U_INT8_T
-typedef unsigned char u_int8_t;
-#endif /* _U_INT8_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_short.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_short.h
deleted file mode 100644
index 58816d3576..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_u_short.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017 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@
- */
-#ifndef _U_SHORT
-#define _U_SHORT
-typedef unsigned short u_short;
-#endif /* _U_SHORT */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_ucontext.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_ucontext.h
index 65184e44e4..1e563f4581 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_ucontext.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/_types/_ucontext.h
@@ -55,4 +55,4 @@ _STRUCT_UCONTEXT
/* user context */
typedef _STRUCT_UCONTEXT ucontext_t; /* [???] user context */
-#endif /* _STRUCT_UCONTEXT */
+#endif /* _STRUCT_UCONTEXT */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_uid_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_uid_t.h
deleted file mode 100644
index a9769db30d..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_uid_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _UID_T
-#define _UID_T
-#include <sys/_types.h> /* __darwin_uid_t */
-typedef __darwin_uid_t uid_t;
-#endif /* _UID_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_uintptr_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_uintptr_t.h
deleted file mode 100644
index c22d02b1cc..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_uintptr_t.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * 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@
- */
-#ifndef _UINTPTR_T
-#define _UINTPTR_T
-typedef unsigned long uintptr_t;
-#endif /* _UINTPTR_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_useconds_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_useconds_t.h
deleted file mode 100644
index 1b020a3bd2..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_useconds_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _USECONDS_T
-#define _USECONDS_T
-#include <sys/_types.h> /* __darwin_useconds_t */
-typedef __darwin_useconds_t useconds_t;
-#endif /* _USECONDS_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_uuid_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_uuid_t.h
deleted file mode 100644
index 66e7da7949..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_uuid_t.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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@
- */
-#ifndef _UUID_T
-#define _UUID_T
-#include <sys/_types.h> /* __darwin_uuid_t */
-typedef __darwin_uuid_t uuid_t;
-#endif /* _UUID_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_va_list.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_va_list.h
deleted file mode 100644
index f7687baea9..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_va_list.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-
-#ifndef _VA_LIST_T
-#define _VA_LIST_T
-#include <machine/types.h> /* __darwin_va_list */
-typedef __darwin_va_list va_list;
-#endif /* _VA_LIST_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_wchar_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_wchar_t.h
deleted file mode 100644
index d67cfcdd23..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_wchar_t.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-
-/* wchar_t is a built-in type in C++ */
-#ifndef __cplusplus
-#ifndef _WCHAR_T
-#define _WCHAR_T
-#include <machine/_types.h> /* __darwin_wchar_t */
-typedef __darwin_wchar_t wchar_t;
-#endif /* _WCHAR_T */
-#endif /* __cplusplus */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/_types/_wint_t.h b/lib/libc/include/x86_64-macos-gnu/sys/_types/_wint_t.h
deleted file mode 100644
index caad07fdb0..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/_types/_wint_t.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-
-#ifndef _WINT_T
-#define _WINT_T
-#include <machine/_types.h> /* __darwin_wint_t */
-typedef __darwin_wint_t wint_t;
-#endif /* _WINT_T */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/acl.h b/lib/libc/include/x86_64-macos-gnu/sys/acl.h
index 62240bfc87..dc134613d1 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/acl.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/acl.h
@@ -208,4 +208,4 @@ extern ssize_t acl_size(acl_t acl);
extern char *acl_to_text(acl_t acl, ssize_t *len_p);
__END_DECLS
-#endif /* _SYS_ACL_H */
+#endif /* _SYS_ACL_H */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/aio.h b/lib/libc/include/x86_64-macos-gnu/sys/aio.h
deleted file mode 100644
index 6f8f36d7a7..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/aio.h
+++ /dev/null
@@ -1,248 +0,0 @@
-/*
- * Copyright (c) 2003-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@
- */
-/*
- * File: sys/aio.h
- * Author: Umesh Vaishampayan [umeshv@apple.com]
- * 05-Feb-2003 umeshv Created.
- *
- * Header file for POSIX Asynchronous IO APIs
- *
- */
-
-#ifndef _SYS_AIO_H_
-#define _SYS_AIO_H_
-
-#include <sys/signal.h>
-#include <sys/_types.h>
-#include <sys/cdefs.h>
-
-/*
- * [XSI] Inclusion of the <aio.h> header may make visible symbols defined
- * in the headers <fcntl.h>, <signal.h>, <sys/types.h>, and <time.h>.
- *
- * In our case, this is limited to struct timespec, off_t and ssize_t.
- */
-#include <sys/_types/_timespec.h>
-
-#include <sys/_types/_off_t.h>
-#include <sys/_types/_ssize_t.h>
-
-/*
- * A aio_fsync() options that the calling thread is to continue execution
- * while the lio_listio() operation is being performed, and no notification
- * is given when the operation is complete
- *
- * [XSI] from <fcntl.h>
- */
-#include <sys/_types/_o_sync.h>
-#include <sys/_types/_o_dsync.h>
-
-struct aiocb {
- int aio_fildes; /* File descriptor */
- off_t aio_offset; /* File offset */
- volatile void *aio_buf; /* Location of buffer */
- size_t aio_nbytes; /* Length of transfer */
- int aio_reqprio; /* Request priority offset */
- struct sigevent aio_sigevent; /* Signal number and value */
- int aio_lio_opcode; /* Operation to be performed */
-};
-
-
-/*
- * aio_cancel() return values
- */
-
-/*
- * none of the requested operations could be canceled since they are
- * already complete.
- */
-#define AIO_ALLDONE 0x1
-
-/* all requested operations have been canceled */
-#define AIO_CANCELED 0x2
-
-/*
- * some of the requested operations could not be canceled since
- * they are in progress
- */
-#define AIO_NOTCANCELED 0x4
-
-
-/*
- * lio_listio operation options
- */
-
-#define LIO_NOP 0x0 /* option indicating that no transfer is requested */
-#define LIO_READ 0x1 /* option requesting a read */
-#define LIO_WRITE 0x2 /* option requesting a write */
-
-/*
- * lio_listio() modes
- */
-
-/*
- * A lio_listio() synchronization operation indicating
- * that the calling thread is to continue execution while
- * the lio_listio() operation is being performed, and no
- * notification is given when the operation is complete
- */
-#define LIO_NOWAIT 0x1
-
-/*
- * A lio_listio() synchronization operation indicating
- * that the calling thread is to suspend until the
- * lio_listio() operation is complete.
- */
-#define LIO_WAIT 0x2
-
-/*
- * Maximum number of operations in single lio_listio call
- */
-#define AIO_LISTIO_MAX 16
-
-
-/*
- * Prototypes
- */
-
-__BEGIN_DECLS
-
-/*
- * Attempt to cancel one or more asynchronous I/O requests currently outstanding
- * against file descriptor fd. The aiocbp argument points to the asynchronous I/O
- * control block for a particular request to be canceled. If aiocbp is NULL, then
- * all outstanding cancelable asynchronous I/O requests against fd shall be canceled.
- */
-int aio_cancel( int fd,
- struct aiocb * aiocbp );
-
-/*
- * Return the error status associated with the aiocb structure referenced by the
- * aiocbp argument. The error status for an asynchronous I/O operation is the errno
- * value that would be set by the corresponding read(), write(), or fsync()
- * operation. If the operation has not yet completed, then the error status shall
- * be equal to [EINPROGRESS].
- */
-int aio_error( const struct aiocb * aiocbp );
-
-/*
- * Asynchronously force all I/O operations associated with the file indicated by
- * the file descriptor aio_fildes member of the aiocb structure referenced by the
- * aiocbp argument and queued at the time of the call to aio_fsync() to the
- * synchronized I/O completion state. The function call shall return when the
- * synchronization request has been initiated or queued. op O_SYNC is the only
- * supported opertation at this time.
- * The aiocbp argument refers to an asynchronous I/O control block. The aiocbp
- * value may be used as an argument to aio_error() and aio_return() in order to
- * determine the error status and return status, respectively, of the asynchronous
- * operation while it is proceeding. When the request is queued, the error status
- * for the operation is [EINPROGRESS]. When all data has been successfully
- * transferred, the error status shall be reset to reflect the success or failure
- * of the operation.
- */
-int aio_fsync( int op,
- struct aiocb * aiocbp );
-
-/*
- * Read aiocbp->aio_nbytes from the file associated with aiocbp->aio_fildes into
- * the buffer pointed to by aiocbp->aio_buf. The function call shall return when
- * the read request has been initiated or queued.
- * The aiocbp value may be used as an argument to aio_error() and aio_return() in
- * order to determine the error status and return status, respectively, of the
- * asynchronous operation while it is proceeding. If an error condition is
- * encountered during queuing, the function call shall return without having
- * initiated or queued the request. The requested operation takes place at the
- * absolute position in the file as given by aio_offset, as if lseek() were called
- * immediately prior to the operation with an offset equal to aio_offset and a
- * whence equal to SEEK_SET. After a successful call to enqueue an asynchronous
- * I/O operation, the value of the file offset for the file is unspecified.
- */
-int aio_read( struct aiocb * aiocbp );
-
-/*
- * Return the return status associated with the aiocb structure referenced by
- * the aiocbp argument. The return status for an asynchronous I/O operation is
- * the value that would be returned by the corresponding read(), write(), or
- * fsync() function call. If the error status for the operation is equal to
- * [EINPROGRESS], then the return status for the operation is undefined. The
- * aio_return() function may be called exactly once to retrieve the return status
- * of a given asynchronous operation; thereafter, if the same aiocb structure
- * is used in a call to aio_return() or aio_error(), an error may be returned.
- * When the aiocb structure referred to by aiocbp is used to submit another
- * asynchronous operation, then aio_return() may be successfully used to
- * retrieve the return status of that operation.
- */
-ssize_t aio_return( struct aiocb * aiocbp );
-
-/*
- * Suspend the calling thread until at least one of the asynchronous I/O
- * operations referenced by the aiocblist argument has completed, until a signal
- * interrupts the function, or, if timeout is not NULL, until the time
- * interval specified by timeout has passed. If any of the aiocb structures
- * in the aiocblist correspond to completed asynchronous I/O operations (that is,
- * the error status for the operation is not equal to [EINPROGRESS]) at the
- * time of the call, the function shall return without suspending the calling
- * thread. The aiocblist argument is an array of pointers to asynchronous I/O
- * control blocks. The nent argument indicates the number of elements in the
- * array. Each aiocb structure pointed to has been used in initiating an
- * asynchronous I/O request via aio_read(), aio_write(), or lio_listio(). This
- * array may contain NULL pointers, which are ignored.
- */
-int aio_suspend( const struct aiocb *const aiocblist[],
- int nent,
- const struct timespec * timeoutp ) __DARWIN_ALIAS_C(aio_suspend);
-
-/*
- * Write aiocbp->aio_nbytes to the file associated with aiocbp->aio_fildes from
- * the buffer pointed to by aiocbp->aio_buf. The function shall return when the
- * write request has been initiated or, at a minimum, queued.
- * The aiocbp argument may be used as an argument to aio_error() and aio_return()
- * in order to determine the error status and return status, respectively, of the
- * asynchronous operation while it is proceeding.
- */
-int aio_write( struct aiocb * aiocbp );
-
-/*
- * Initiate a list of I/O requests with a single function call. The mode
- * argument takes one of the values LIO_WAIT or LIO_NOWAIT and determines whether
- * the function returns when the I/O operations have been completed, or as soon
- * as the operations have been queued. If the mode argument is LIO_WAIT, the
- * function shall wait until all I/O is complete and the sig argument shall be
- * ignored.
- * If the mode argument is LIO_NOWAIT, the function shall return immediately, and
- * asynchronous notification shall occur, according to the sig argument, when all
- * the I/O operations complete. If sig is NULL, then no asynchronous notification
- * shall occur.
- */
-int lio_listio( int mode,
- struct aiocb *const aiocblist[],
- int nent,
- struct sigevent *sigp );
-__END_DECLS
-
-#endif /* _SYS_AIO_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/appleapiopts.h b/lib/libc/include/x86_64-macos-gnu/sys/appleapiopts.h
deleted file mode 100644
index 92e9fd6919..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/appleapiopts.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-
-#ifndef __SYS_APPLEAPIOPTS_H__
-#define __SYS_APPLEAPIOPTS_H__
-
-
-#ifndef __APPLE_API_STANDARD
-#define __APPLE_API_STANDARD
-#endif /* __APPLE_API_STANDARD */
-
-#ifndef __APPLE_API_STABLE
-#define __APPLE_API_STABLE
-#endif /* __APPLE_API_STABLE */
-
-#ifndef __APPLE_API_STRICT_CONFORMANCE
-
-#ifndef __APPLE_API_EVOLVING
-#define __APPLE_API_EVOLVING
-#endif /* __APPLE_API_EVOLVING */
-
-#ifndef __APPLE_API_UNSTABLE
-#define __APPLE_API_UNSTABLE
-#endif /* __APPLE_API_UNSTABLE */
-
-#ifndef __APPLE_API_PRIVATE
-#define __APPLE_API_PRIVATE
-#endif /* __APPLE_API_PRIVATE */
-
-#ifndef __APPLE_API_OBSOLETE
-#define __APPLE_API_OBSOLETE
-#endif /* __APPLE_API_OBSOLETE */
-
-#endif /* __APPLE_API_STRICT_CONFORMANCE */
-
-#endif /* __SYS_APPLEAPIOPTS_H__ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/attr.h b/lib/libc/include/x86_64-macos-gnu/sys/attr.h
index c9b825b0ae..7de047ec5b 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/attr.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/attr.h
@@ -576,4 +576,4 @@ struct searchstate {
#define FST_EOF (-1) /* end-of-file offset */
#endif /* __APPLE_API_UNSTABLE */
-#endif /* !_SYS_ATTR_H_ */
+#endif /* !_SYS_ATTR_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/cdefs.h b/lib/libc/include/x86_64-macos-gnu/sys/cdefs.h
index 443b7496a5..b2b091e28e 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/cdefs.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/cdefs.h
@@ -852,4 +852,4 @@
typedef _type _name; enum __VA_ARGS__ __enum_closed __enum_options
#endif
-#endif /* !_CDEFS_H_ */
+#endif /* !_CDEFS_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/dirent.h b/lib/libc/include/x86_64-macos-gnu/sys/dirent.h
deleted file mode 100644
index 9a107a016c..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/dirent.h
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (c) 2000-2008 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) 1995 NeXT Computer, Inc. All Rights Reserved */
-/*-
- * Copyright (c) 1989, 1993
- * 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.
- *
- * @(#)dirent.h 8.3 (Berkeley) 8/10/94
- */
-
-/*
- * The dirent structure defines the format of directory entries.
- *
- * A directory entry has a struct dirent at the front of it, containing its
- * inode number, the length of the entry, and the length of the name
- * contained in the entry. These are followed by the name padded to a 4
- * byte boundary with null bytes. All names are guaranteed null terminated.
- * The maximum length of a name in a directory is MAXNAMLEN when 32-bit
- * ino_t is in effect; (MAXPATHLEN - 1) when 64-bit ino_t is in effect.
- */
-
-#ifndef _SYS_DIRENT_H
-#define _SYS_DIRENT_H
-
-#include <sys/_types.h>
-#include <sys/cdefs.h>
-
-#include <sys/_types/_ino_t.h>
-
-
-#define __DARWIN_MAXNAMLEN 255
-
-#pragma pack(4)
-
-#if !__DARWIN_64_BIT_INO_T
-struct dirent {
- ino_t d_ino; /* file number of entry */
- __uint16_t d_reclen; /* length of this record */
- __uint8_t d_type; /* file type, see below */
- __uint8_t d_namlen; /* length of string in d_name */
- char d_name[__DARWIN_MAXNAMLEN + 1]; /* name must be no longer than this */
-};
-#endif /* !__DARWIN_64_BIT_INO_T */
-
-#pragma pack()
-
-#define __DARWIN_MAXPATHLEN 1024
-
-#define __DARWIN_STRUCT_DIRENTRY { \
- __uint64_t d_ino; /* file number of entry */ \
- __uint64_t d_seekoff; /* seek offset (optional, used by servers) */ \
- __uint16_t d_reclen; /* length of this record */ \
- __uint16_t d_namlen; /* length of string in d_name */ \
- __uint8_t d_type; /* file type, see below */ \
- char d_name[__DARWIN_MAXPATHLEN]; /* entry name (up to MAXPATHLEN bytes) */ \
-}
-
-#if __DARWIN_64_BIT_INO_T
-struct dirent __DARWIN_STRUCT_DIRENTRY;
-#endif /* __DARWIN_64_BIT_INO_T */
-
-
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define d_fileno d_ino /* backward compatibility */
-#define MAXNAMLEN __DARWIN_MAXNAMLEN
-/*
- * File types
- */
-#define DT_UNKNOWN 0
-#define DT_FIFO 1
-#define DT_CHR 2
-#define DT_DIR 4
-#define DT_BLK 6
-#define DT_REG 8
-#define DT_LNK 10
-#define DT_SOCK 12
-#define DT_WHT 14
-
-/*
- * Convert between stat structure types and directory types.
- */
-#define IFTODT(mode) (((mode) & 0170000) >> 12)
-#define DTTOIF(dirtype) ((dirtype) << 12)
-#endif
-
-
-#endif /* _SYS_DIRENT_H */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/errno.h b/lib/libc/include/x86_64-macos-gnu/sys/errno.h
deleted file mode 100644
index 0360a496f0..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/errno.h
+++ /dev/null
@@ -1,266 +0,0 @@
-/*
- * Copyright (c) 2000-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) 1995 NeXT Computer, Inc. All Rights Reserved */
-/*
- * Copyright (c) 1982, 1986, 1989, 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.
- *
- * @(#)errno.h 8.5 (Berkeley) 1/21/94
- */
-
-#ifndef _SYS_ERRNO_H_
-#define _SYS_ERRNO_H_
-
-#include <sys/cdefs.h>
-
-
-#if defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1
-#include <sys/_types/_errno_t.h>
-#endif
-
-__BEGIN_DECLS
-extern int * __error(void);
-#define errno (*__error())
-__END_DECLS
-
-/*
- * Error codes
- */
-
-#define EPERM 1 /* Operation not permitted */
-#define ENOENT 2 /* No such file or directory */
-#define ESRCH 3 /* No such process */
-#define EINTR 4 /* Interrupted system call */
-#define EIO 5 /* Input/output error */
-#define ENXIO 6 /* Device not configured */
-#define E2BIG 7 /* Argument list too long */
-#define ENOEXEC 8 /* Exec format error */
-#define EBADF 9 /* Bad file descriptor */
-#define ECHILD 10 /* No child processes */
-#define EDEADLK 11 /* Resource deadlock avoided */
- /* 11 was EAGAIN */
-#define ENOMEM 12 /* Cannot allocate memory */
-#define EACCES 13 /* Permission denied */
-#define EFAULT 14 /* Bad address */
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#define ENOTBLK 15 /* Block device required */
-#endif
-#define EBUSY 16 /* Device / Resource busy */
-#define EEXIST 17 /* File exists */
-#define EXDEV 18 /* Cross-device link */
-#define ENODEV 19 /* Operation not supported by device */
-#define ENOTDIR 20 /* Not a directory */
-#define EISDIR 21 /* Is a directory */
-#define EINVAL 22 /* Invalid argument */
-#define ENFILE 23 /* Too many open files in system */
-#define EMFILE 24 /* Too many open files */
-#define ENOTTY 25 /* Inappropriate ioctl for device */
-#define ETXTBSY 26 /* Text file busy */
-#define EFBIG 27 /* File too large */
-#define ENOSPC 28 /* No space left on device */
-#define ESPIPE 29 /* Illegal seek */
-#define EROFS 30 /* Read-only file system */
-#define EMLINK 31 /* Too many links */
-#define EPIPE 32 /* Broken pipe */
-
-/* math software */
-#define EDOM 33 /* Numerical argument out of domain */
-#define ERANGE 34 /* Result too large */
-
-/* non-blocking and interrupt i/o */
-#define EAGAIN 35 /* Resource temporarily unavailable */
-#define EWOULDBLOCK EAGAIN /* Operation would block */
-#define EINPROGRESS 36 /* Operation now in progress */
-#define EALREADY 37 /* Operation already in progress */
-
-/* ipc/network software -- argument errors */
-#define ENOTSOCK 38 /* Socket operation on non-socket */
-#define EDESTADDRREQ 39 /* Destination address required */
-#define EMSGSIZE 40 /* Message too long */
-#define EPROTOTYPE 41 /* Protocol wrong type for socket */
-#define ENOPROTOOPT 42 /* Protocol not available */
-#define EPROTONOSUPPORT 43 /* Protocol not supported */
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#define ESOCKTNOSUPPORT 44 /* Socket type not supported */
-#endif
-#define ENOTSUP 45 /* Operation not supported */
-#if !__DARWIN_UNIX03 && !defined(KERNEL)
-/*
- * This is the same for binary and source copmpatability, unless compiling
- * the kernel itself, or compiling __DARWIN_UNIX03; if compiling for the
- * kernel, the correct value will be returned. If compiling non-POSIX
- * source, the kernel return value will be converted by a stub in libc, and
- * if compiling source with __DARWIN_UNIX03, the conversion in libc is not
- * done, and the caller gets the expected (discrete) value.
- */
-#define EOPNOTSUPP ENOTSUP /* Operation not supported on socket */
-#endif /* !__DARWIN_UNIX03 && !KERNEL */
-
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#define EPFNOSUPPORT 46 /* Protocol family not supported */
-#endif
-#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */
-#define EADDRINUSE 48 /* Address already in use */
-#define EADDRNOTAVAIL 49 /* Can't assign requested address */
-
-/* ipc/network software -- operational errors */
-#define ENETDOWN 50 /* Network is down */
-#define ENETUNREACH 51 /* Network is unreachable */
-#define ENETRESET 52 /* Network dropped connection on reset */
-#define ECONNABORTED 53 /* Software caused connection abort */
-#define ECONNRESET 54 /* Connection reset by peer */
-#define ENOBUFS 55 /* No buffer space available */
-#define EISCONN 56 /* Socket is already connected */
-#define ENOTCONN 57 /* Socket is not connected */
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#define ESHUTDOWN 58 /* Can't send after socket shutdown */
-#define ETOOMANYREFS 59 /* Too many references: can't splice */
-#endif
-#define ETIMEDOUT 60 /* Operation timed out */
-#define ECONNREFUSED 61 /* Connection refused */
-
-#define ELOOP 62 /* Too many levels of symbolic links */
-#define ENAMETOOLONG 63 /* File name too long */
-
-/* should be rearranged */
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#define EHOSTDOWN 64 /* Host is down */
-#endif
-#define EHOSTUNREACH 65 /* No route to host */
-#define ENOTEMPTY 66 /* Directory not empty */
-
-/* quotas & mush */
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#define EPROCLIM 67 /* Too many processes */
-#define EUSERS 68 /* Too many users */
-#endif
-#define EDQUOT 69 /* Disc quota exceeded */
-
-/* Network File System */
-#define ESTALE 70 /* Stale NFS file handle */
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#define EREMOTE 71 /* Too many levels of remote in path */
-#define EBADRPC 72 /* RPC struct is bad */
-#define ERPCMISMATCH 73 /* RPC version wrong */
-#define EPROGUNAVAIL 74 /* RPC prog. not avail */
-#define EPROGMISMATCH 75 /* Program version wrong */
-#define EPROCUNAVAIL 76 /* Bad procedure for program */
-#endif
-
-#define ENOLCK 77 /* No locks available */
-#define ENOSYS 78 /* Function not implemented */
-
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#define EFTYPE 79 /* Inappropriate file type or format */
-#define EAUTH 80 /* Authentication error */
-#define ENEEDAUTH 81 /* Need authenticator */
-
-/* Intelligent device errors */
-#define EPWROFF 82 /* Device power is off */
-#define EDEVERR 83 /* Device error, e.g. paper out */
-#endif
-
-#define EOVERFLOW 84 /* Value too large to be stored in data type */
-
-/* Program loading errors */
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#define EBADEXEC 85 /* Bad executable */
-#define EBADARCH 86 /* Bad CPU type in executable */
-#define ESHLIBVERS 87 /* Shared library version mismatch */
-#define EBADMACHO 88 /* Malformed Macho file */
-#endif
-
-#define ECANCELED 89 /* Operation canceled */
-
-#define EIDRM 90 /* Identifier removed */
-#define ENOMSG 91 /* No message of desired type */
-#define EILSEQ 92 /* Illegal byte sequence */
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#define ENOATTR 93 /* Attribute not found */
-#endif
-
-#define EBADMSG 94 /* Bad message */
-#define EMULTIHOP 95 /* Reserved */
-#define ENODATA 96 /* No message available on STREAM */
-#define ENOLINK 97 /* Reserved */
-#define ENOSR 98 /* No STREAM resources */
-#define ENOSTR 99 /* Not a STREAM */
-#define EPROTO 100 /* Protocol error */
-#define ETIME 101 /* STREAM ioctl timeout */
-
-#if __DARWIN_UNIX03 || defined(KERNEL)
-/* This value is only discrete when compiling __DARWIN_UNIX03, or KERNEL */
-#define EOPNOTSUPP 102 /* Operation not supported on socket */
-#endif /* __DARWIN_UNIX03 || KERNEL */
-
-#define ENOPOLICY 103 /* No such policy registered */
-
-#if __DARWIN_C_LEVEL >= 200809L
-#define ENOTRECOVERABLE 104 /* State not recoverable */
-#define EOWNERDEAD 105 /* Previous owner died */
-#endif
-
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-#define EQFULL 106 /* Interface output queue is full */
-#define ELAST 106 /* Must be equal largest errno */
-#endif
-
-#endif /* _SYS_ERRNO_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/event.h b/lib/libc/include/x86_64-macos-gnu/sys/event.h
index de14e54236..1fbce9a75c 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/event.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/event.h
@@ -393,4 +393,4 @@ __END_DECLS
-#endif /* !_SYS_EVENT_H_ */
+#endif /* !_SYS_EVENT_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/fcntl.h b/lib/libc/include/x86_64-macos-gnu/sys/fcntl.h
index ef0db5a3cf..9326ed0dab 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/fcntl.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/fcntl.h
@@ -554,4 +554,4 @@ int filesec_unset_property(filesec_t, filesec_property_t) __OSX_AVAILABLE_ST
#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
__END_DECLS
-#endif /* !_SYS_FCNTL_H_ */
+#endif /* !_SYS_FCNTL_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/file.h b/lib/libc/include/x86_64-macos-gnu/sys/file.h
deleted file mode 100644
index b24ec6a292..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/file.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Copyright (c) 2000-2008 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, 1997 Apple Computer, Inc. All Rights Reserved */
-/*
- * Copyright (c) 1982, 1986, 1989, 1993
- * 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.
- *
- * @(#)file.h 8.3 (Berkeley) 1/9/95
- */
-
-#ifndef _SYS_FILE_H_
-#define _SYS_FILE_H_
-
-#include <sys/appleapiopts.h>
-#include <sys/types.h>
-#include <sys/fcntl.h>
-#include <sys/unistd.h>
-#include <sys/queue.h>
-#include <sys/cdefs.h>
-
-
-#ifndef _KAUTH_CRED_T
-#define _KAUTH_CRED_T
-struct ucred;
-typedef struct ucred *kauth_cred_t;
-struct posix_cred;
-typedef struct posix_cred *posix_cred_t;
-#endif /* !_KAUTH_CRED_T */
-
-__BEGIN_DECLS
-
-__END_DECLS
-#endif /* !_SYS_FILE_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/filio.h b/lib/libc/include/x86_64-macos-gnu/sys/filio.h
deleted file mode 100644
index 81e4b89474..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/filio.h
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * 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.
- * (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.
- *
- * @(#)filio.h 8.1 (Berkeley) 3/28/94
- */
-
-#ifndef _SYS_FILIO_H_
-#define _SYS_FILIO_H_
-
-#include <sys/ioccom.h>
-
-/* Generic file-descriptor ioctl's. */
-#define FIOCLEX _IO('f', 1) /* set close on exec on fd */
-#define FIONCLEX _IO('f', 2) /* remove close on exec */
-#define FIONREAD _IOR('f', 127, int) /* get # bytes to read */
-#define FIONBIO _IOW('f', 126, int) /* set/clear non-blocking i/o */
-#define FIOASYNC _IOW('f', 125, int) /* set/clear async i/o */
-#define FIOSETOWN _IOW('f', 124, int) /* set owner */
-#define FIOGETOWN _IOR('f', 123, int) /* get owner */
-#define FIODTYPE _IOR('f', 122, int) /* get d_type */
-
-
-#endif /* !_SYS_FILIO_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/ioccom.h b/lib/libc/include/x86_64-macos-gnu/sys/ioccom.h
index cabce8cf7e..39c6964568 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/ioccom.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/ioccom.h
@@ -96,4 +96,4 @@
/* this should be _IORW, but stdio got there first */
#define _IOWR(g, n, t) _IOC(IOC_INOUT, (g), (n), sizeof(t))
-#endif /* !_SYS_IOCCOM_H_ */
+#endif /* !_SYS_IOCCOM_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/ioctl.h b/lib/libc/include/x86_64-macos-gnu/sys/ioctl.h
deleted file mode 100644
index aee7d6163f..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/ioctl.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * 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.
- * (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.
- *
- * @(#)ioctl.h 8.6 (Berkeley) 3/28/94
- */
-
-#ifndef _SYS_IOCTL_H_
-#define _SYS_IOCTL_H_
-
-#include <sys/ttycom.h>
-
-/*
- * Pun for SunOS prior to 3.2. SunOS 3.2 and later support TIOCGWINSZ
- * and TIOCSWINSZ (yes, even 3.2-3.5, the fact that it wasn't documented
- * nonwithstanding).
- */
-struct ttysize {
- unsigned short ts_lines;
- unsigned short ts_cols;
- unsigned short ts_xxx;
- unsigned short ts_yyy;
-};
-#define TIOCGSIZE TIOCGWINSZ
-#define TIOCSSIZE TIOCSWINSZ
-
-#include <sys/ioccom.h>
-
-#include <sys/filio.h>
-#include <sys/sockio.h>
-
-
-#include <sys/cdefs.h>
-
-__BEGIN_DECLS
-int ioctl(int, unsigned long, ...);
-__END_DECLS
-#endif /* !_SYS_IOCTL_H_ */
-
-/*
- * Keep outside _SYS_IOCTL_H_
- * Compatability with old terminal driver
- *
- * Source level -> #define USE_OLD_TTY
- * Kernel level -> always on
- */
-#if defined(USE_OLD_TTY) || defined(BSD_KERNEL_PRIVATE)
-#include <sys/ioctl_compat.h>
-#endif /* !_SYS_IOCTL_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/ipc.h b/lib/libc/include/x86_64-macos-gnu/sys/ipc.h
deleted file mode 100644
index b2ce992a7c..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/ipc.h
+++ /dev/null
@@ -1,176 +0,0 @@
-/*
- * 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) 1988 University of Utah.
- * Copyright (c) 1990, 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.
- *
- * This code is derived from software contributed to Berkeley by
- * the Systems Programming Group of the University of Utah Computer
- * Science Department.
- *
- * 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.
- *
- * @(#)ipc.h 8.4 (Berkeley) 2/19/95
- */
-
-/*
- * SVID compatible ipc.h file
- */
-#ifndef _SYS_IPC_H_
-#define _SYS_IPC_H_
-
-#include <sys/appleapiopts.h>
-#include <sys/cdefs.h>
-
-#include <sys/_types.h>
-
-/*
- * [XSI] The uid_t, gid_t, mode_t, and key_t types SHALL be defined as
- * described in <sys/types.h>.
- */
-#include <sys/_types/_uid_t.h>
-#include <sys/_types/_gid_t.h>
-#include <sys/_types/_mode_t.h>
-#include <sys/_types/_key_t.h>
-
-
-#pragma pack(4)
-
-/*
- * Technically, we should force all code references to the new structure
- * definition, not in just the standards conformance case, and leave the
- * legacy interface there for binary compatibility only. Currently, we
- * are only forcing this for programs requesting standards conformance.
- */
-#if __DARWIN_UNIX03 || defined(KERNEL)
-/*
- * [XSI] Information used in determining permission to perform an IPC
- * operation
- */
-struct ipc_perm {
- uid_t uid; /* [XSI] Owner's user ID */
- gid_t gid; /* [XSI] Owner's group ID */
- uid_t cuid; /* [XSI] Creator's user ID */
- gid_t cgid; /* [XSI] Creator's group ID */
- mode_t mode; /* [XSI] Read/write permission */
- unsigned short _seq; /* Reserved for internal use */
- key_t _key; /* Reserved for internal use */
-};
-#define __ipc_perm_new ipc_perm
-#else /* !__DARWIN_UNIX03 */
-#define ipc_perm __ipc_perm_old
-#endif /* !__DARWIN_UNIX03 */
-
-#if !__DARWIN_UNIX03
-/*
- * Legacy structure; this structure is maintained for binary backward
- * compatability with previous versions of the interface. New code
- * should not use this interface, since ID values may be truncated.
- */
-struct __ipc_perm_old {
- __uint16_t cuid; /* Creator's user ID */
- __uint16_t cgid; /* Creator's group ID */
- __uint16_t uid; /* Owner's user ID */
- __uint16_t gid; /* Owner's group ID */
- mode_t mode; /* Read/Write permission */
- __uint16_t seq; /* Reserved for internal use */
- key_t key; /* Reserved for internal use */
-};
-#endif /* !__DARWIN_UNIX03 */
-
-#pragma pack()
-
-/*
- * [XSI] Definitions shall be provided for the following constants:
- */
-
-/* Mode bits */
-#define IPC_CREAT 001000 /* Create entry if key does not exist */
-#define IPC_EXCL 002000 /* Fail if key exists */
-#define IPC_NOWAIT 004000 /* Error if request must wait */
-
-/* Keys */
-#define IPC_PRIVATE ((key_t)0) /* Private key */
-
-/* Control commands */
-#define IPC_RMID 0 /* Remove identifier */
-#define IPC_SET 1 /* Set options */
-#define IPC_STAT 2 /* Get options */
-
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-
-/* common mode bits */
-#define IPC_R 000400 /* Read permission */
-#define IPC_W 000200 /* Write/alter permission */
-#define IPC_M 010000 /* Modify control info permission */
-
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-
-
-
-
-__BEGIN_DECLS
-/* [XSI] */
-key_t ftok(const char *, int);
-__END_DECLS
-
-
-#endif /* !_SYS_IPC_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/kauth.h b/lib/libc/include/x86_64-macos-gnu/sys/kauth.h
index d2f1916262..99784e35c8 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/kauth.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/kauth.h
@@ -404,4 +404,4 @@ typedef struct kauth_filesec *kauth_filesec_t;
#endif /* __APPLE_API_EVOLVING */
-#endif /* _SYS_KAUTH_H */
+#endif /* _SYS_KAUTH_H */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/lock.h b/lib/libc/include/x86_64-macos-gnu/sys/lock.h
deleted file mode 100644
index cafc4e04d8..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/lock.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * 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) 1995, 1997 Apple Computer, Inc. All Rights Reserved */
-/*
- * Copyright (c) 1995
- * The Regents of the University of California. All rights reserved.
- *
- * This code contains ideas from software contributed to Berkeley by
- * Avadis Tevanian, Jr., Michael Wayne Young, and the Mach Operating
- * System project at Carnegie-Mellon University.
- *
- * 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.
- *
- * @(#)lock.h 8.12 (Berkeley) 5/19/95
- */
-
-#ifndef _SYS_LOCK_H_
-#define _SYS_LOCK_H_
-
-#include <sys/appleapiopts.h>
-#include <sys/types.h>
-#include <sys/cdefs.h>
-
-
-#endif /* _SYS_LOCK_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/mman.h b/lib/libc/include/x86_64-macos-gnu/sys/mman.h
index 45ed2b8f8c..fec1caac71 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/mman.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/mman.h
@@ -247,4 +247,4 @@ int minherit(void *, size_t, int);
__END_DECLS
-#endif /* !_SYS_MMAN_H_ */
+#endif /* !_SYS_MMAN_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/mount.h b/lib/libc/include/x86_64-macos-gnu/sys/mount.h
index b1d5386eae..0a77b455a6 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/mount.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/mount.h
@@ -420,4 +420,4 @@ int unmount(const char *, int);
int getvfsbyname(const char *, struct vfsconf *);
__END_DECLS
-#endif /* !_SYS_MOUNT_H_ */
+#endif /* !_SYS_MOUNT_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/msg.h b/lib/libc/include/x86_64-macos-gnu/sys/msg.h
deleted file mode 100644
index 3bbe9e1e1d..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/msg.h
+++ /dev/null
@@ -1,225 +0,0 @@
-/*
- * Copyright (c) 2000-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@
- */
-/* $NetBSD: msg.h,v 1.4 1994/06/29 06:44:43 cgd Exp $ */
-
-/*
- * SVID compatible msg.h file
- *
- * Author: Daniel Boulet
- *
- * Copyright 1993 Daniel Boulet and RTMX Inc.
- *
- * This system call was implemented by Daniel Boulet under contract from RTMX.
- *
- * Redistribution and use in source forms, with and without modification,
- * are permitted provided that this entire comment appears intact.
- *
- * Redistribution in binary form may occur without any restrictions.
- * Obviously, it would be nice if you gave credit where credit is due
- * but requiring it would be too onerous.
- *
- * This software is provided ``AS IS'' without any warranties of any kind.
- */
-/*
- * NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
- * support for mandatory and extensible security protections. This notice
- * is included in support of clause 2.2 (b) of the Apple Public License,
- * Version 2.0.
- */
-
-#ifndef _SYS_MSG_H_
-#define _SYS_MSG_H_
-
-#include <sys/appleapiopts.h>
-
-#include <sys/_types.h>
-#include <sys/cdefs.h>
-
-/*
- * [XSI] All of the symbols from <sys/ipc.h> SHALL be defined when this
- * header is included
- */
-#include <sys/ipc.h>
-
-
-/*
- * [XSI] The pid_t, time_t, key_t, size_t, and ssize_t types shall be
- * defined as described in <sys/types.h>.
- *
- * NOTE: The definition of the key_t type is implicit from the
- * inclusion of <sys/ipc.h>
- */
-#include <sys/_types/_pid_t.h>
-#include <sys/_types/_time_t.h>
-#include <sys/_types/_size_t.h>
-#include <sys/_types/_ssize_t.h>
-
-/* [XSI] Used for the number of messages in the message queue */
-typedef unsigned long msgqnum_t;
-
-/* [XSI] Used for the number of bytes allowed in a message queue */
-typedef unsigned long msglen_t;
-
-/*
- * Possible values for the fifth parameter to msgrcv(), in addition to the
- * IPC_NOWAIT flag, which is permitted.
- */
-#define MSG_NOERROR 010000 /* [XSI] No error if big message */
-
-
-/*
- * Technically, we should force all code references to the new structure
- * definition, not in just the standards conformance case, and leave the
- * legacy interface there for binary compatibility only. Currently, we
- * are only forcing this for programs requesting standards conformance.
- */
-#if __DARWIN_UNIX03 || defined(KERNEL)
-#pragma pack(4)
-/*
- * Structure used internally.
- *
- * Structure whose address is passed as the third parameter to msgctl()
- * when the second parameter is IPC_SET or IPC_STAT. In the case of the
- * IPC_SET command, only the msg_perm.{uid|gid|perm} and msg_qbytes are
- * honored. In the case of IPC_STAT, only the fields indicated as [XSI]
- * mandated fields are guaranteed to meaningful: DO NOT depend on the
- * contents of the other fields.
- *
- * NOTES: Reserved fields are not preserved across IPC_SET/IPC_STAT.
- */
-#if (defined(_POSIX_C_SOURCE) && !defined(_DARWIN_C_SOURCE))
-struct msqid_ds
-#else
-#define msqid_ds __msqid_ds_new
-struct __msqid_ds_new
-#endif
-{
- struct __ipc_perm_new msg_perm; /* [XSI] msg queue permissions */
- __int32_t msg_first; /* RESERVED: kernel use only */
- __int32_t msg_last; /* RESERVED: kernel use only */
- msglen_t msg_cbytes; /* # of bytes on the queue */
- msgqnum_t msg_qnum; /* [XSI] number of msgs on the queue */
- msglen_t msg_qbytes; /* [XSI] max bytes on the queue */
- pid_t msg_lspid; /* [XSI] pid of last msgsnd() */
- pid_t msg_lrpid; /* [XSI] pid of last msgrcv() */
- time_t msg_stime; /* [XSI] time of last msgsnd() */
- __int32_t msg_pad1; /* RESERVED: DO NOT USE */
- time_t msg_rtime; /* [XSI] time of last msgrcv() */
- __int32_t msg_pad2; /* RESERVED: DO NOT USE */
- time_t msg_ctime; /* [XSI] time of last msgctl() */
- __int32_t msg_pad3; /* RESERVED: DO NOT USE */
- __int32_t msg_pad4[4]; /* RESERVED: DO NOT USE */
-};
-#pragma pack()
-#else /* !__DARWIN_UNIX03 */
-#define msqid_ds __msqid_ds_old
-#endif /* !__DARWIN_UNIX03 */
-
-#if !__DARWIN_UNIX03
-struct __msqid_ds_old {
- struct __ipc_perm_old msg_perm; /* [XSI] msg queue permissions */
- __int32_t msg_first; /* RESERVED: kernel use only */
- __int32_t msg_last; /* RESERVED: kernel use only */
- msglen_t msg_cbytes; /* # of bytes on the queue */
- msgqnum_t msg_qnum; /* [XSI] number of msgs on the queue */
- msglen_t msg_qbytes; /* [XSI] max bytes on the queue */
- pid_t msg_lspid; /* [XSI] pid of last msgsnd() */
- pid_t msg_lrpid; /* [XSI] pid of last msgrcv() */
- time_t msg_stime; /* [XSI] time of last msgsnd() */
- __int32_t msg_pad1; /* RESERVED: DO NOT USE */
- time_t msg_rtime; /* [XSI] time of last msgrcv() */
- __int32_t msg_pad2; /* RESERVED: DO NOT USE */
- time_t msg_ctime; /* [XSI] time of last msgctl() */
- __int32_t msg_pad3; /* RESERVED: DO NOT USE */
- __int32_t msg_pad4[4]; /* RESERVED: DO NOT USE */
-};
-#endif /* !__DARWIN_UNIX03 */
-
-
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#ifdef __APPLE_API_UNSTABLE
-/* XXX kernel only; protect with macro later */
-
-struct msg {
- struct msg *msg_next; /* next msg in the chain */
- long msg_type; /* type of this message */
- /* >0 -> type of this message */
- /* 0 -> free header */
- unsigned short msg_ts; /* size of this message */
- short msg_spot; /* location of msg start in buffer */
- struct label *label; /* MAC label */
-};
-
-/*
- * Example structure describing a message whose address is to be passed as
- * the second argument to the functions msgrcv() and msgsnd(). The only
- * actual hard requirement is that the first field be of type long, and
- * contain the message type. The user is encouraged to define their own
- * application specific structure; this definition is included solely for
- * backward compatability with existing source code.
- */
-struct mymsg {
- long mtype; /* message type (+ve integer) */
- char mtext[1]; /* message body */
-};
-
-/*
- * Based on the configuration parameters described in an SVR2 (yes, two)
- * config(1m) man page.
- *
- * Each message is broken up and stored in segments that are msgssz bytes
- * long. For efficiency reasons, this should be a power of two. Also,
- * it doesn't make sense if it is less than 8 or greater than about 256.
- * Consequently, msginit in kern/sysv_msg.c checks that msgssz is a power of
- * two between 8 and 1024 inclusive (and panic's if it isn't).
- */
-struct msginfo {
- int msgmax, /* max chars in a message */
- msgmni, /* max message queue identifiers */
- msgmnb, /* max chars in a queue */
- msgtql, /* max messages in system */
- msgssz, /* size of a message segment (see notes above) */
- msgseg; /* number of message segments */
-};
-#endif /* __APPLE_API_UNSTABLE */
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-
-
-__BEGIN_DECLS
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-int msgsys(int, ...);
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-int msgctl(int, int, struct msqid_ds *) __DARWIN_ALIAS(msgctl);
-int msgget(key_t, int);
-ssize_t msgrcv(int, void *, size_t, long, int) __DARWIN_ALIAS_C(msgrcv);
-int msgsnd(int, const void *, size_t, int) __DARWIN_ALIAS_C(msgsnd);
-__END_DECLS
-
-
-#endif /* !_SYS_MSG_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/param.h b/lib/libc/include/x86_64-macos-gnu/sys/param.h
index e271b592b3..88330ebbe7 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/param.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/param.h
@@ -250,4 +250,4 @@
#define FSHIFT 11 /* bits to right of fixed binary point */
#define FSCALE (1<<FSHIFT)
-#endif /* _SYS_PARAM_H_ */
+#endif /* _SYS_PARAM_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/poll.h b/lib/libc/include/x86_64-macos-gnu/sys/poll.h
deleted file mode 100644
index 7467936a9b..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/poll.h
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * Copyright (c) 2000-2004 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 Peter Wemm <peter@freebsd.org>
- * 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. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
- *
- */
-
-#ifndef _SYS_POLL_H_
-#define _SYS_POLL_H_
-
-/*
- * This file is intended to be compatible with the traditional poll.h.
- */
-
-/*
- * Requestable events. If poll(2) finds any of these set, they are
- * copied to revents on return.
- */
-#define POLLIN 0x0001 /* any readable data available */
-#define POLLPRI 0x0002 /* OOB/Urgent readable data */
-#define POLLOUT 0x0004 /* file descriptor is writeable */
-#define POLLRDNORM 0x0040 /* non-OOB/URG data available */
-#define POLLWRNORM POLLOUT /* no write type differentiation */
-#define POLLRDBAND 0x0080 /* OOB/Urgent readable data */
-#define POLLWRBAND 0x0100 /* OOB/Urgent data can be written */
-
-/*
- * FreeBSD extensions: polling on a regular file might return one
- * of these events (currently only supported on local filesystems).
- */
-#define POLLEXTEND 0x0200 /* file may have been extended */
-#define POLLATTRIB 0x0400 /* file attributes may have changed */
-#define POLLNLINK 0x0800 /* (un)link/rename may have happened */
-#define POLLWRITE 0x1000 /* file's contents may have changed */
-
-/*
- * These events are set if they occur regardless of whether they were
- * requested.
- */
-#define POLLERR 0x0008 /* some poll error occurred */
-#define POLLHUP 0x0010 /* file descriptor was "hung up" */
-#define POLLNVAL 0x0020 /* requested events "invalid" */
-
-#define POLLSTANDARD (POLLIN|POLLPRI|POLLOUT|POLLRDNORM|POLLRDBAND|\
- POLLWRBAND|POLLERR|POLLHUP|POLLNVAL)
-
-struct pollfd {
- int fd;
- short events;
- short revents;
-};
-
-typedef unsigned int nfds_t;
-
-
-#include <sys/cdefs.h>
-
-__BEGIN_DECLS
-
-/*
- * This is defined here (instead of <poll.h>) because this is where
- * traditional SVR4 code will look to find it.
- */
-extern int poll(struct pollfd *, nfds_t, int) __DARWIN_ALIAS_C(poll);
-
-__END_DECLS
-
-
-#endif /* !_SYS_POLL_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/proc.h b/lib/libc/include/x86_64-macos-gnu/sys/proc.h
index ff25bdd61b..56d8b874d5 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/proc.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/proc.h
@@ -220,4 +220,4 @@ struct extern_proc {
-#endif /* !_SYS_PROC_H_ */
+#endif /* !_SYS_PROC_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/qos.h b/lib/libc/include/x86_64-macos-gnu/sys/qos.h
deleted file mode 100644
index 2aa7dcd5c6..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/qos.h
+++ /dev/null
@@ -1,200 +0,0 @@
-/*
- * Copyright (c) 2013-2014 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@
- */
-
-#ifndef _SYS_QOS_H
-#define _SYS_QOS_H
-
-#include <sys/cdefs.h>
-#include <Availability.h>
-
-/*!
- * @typedef qos_class_t
- *
- * @abstract
- * An abstract thread quality of service (QOS) classification.
- *
- * @discussion
- * Thread quality of service (QOS) classes are ordered abstract representations
- * of the nature of work that is expected to be performed by a pthread, dispatch
- * queue, or NSOperation. Each class specifies a maximum thread scheduling
- * priority for that band (which may be used in combination with a relative
- * priority offset within the band), as well as quality of service
- * characteristics for timer latency, CPU throughput, I/O throughput, network
- * socket traffic management behavior and more.
- *
- * A best effort is made to allocate available system resources to every QOS
- * class. Quality of service degredation only occurs during system resource
- * contention, proportionally to the QOS class. That said, QOS classes
- * representing user-initiated work attempt to achieve peak throughput while
- * QOS classes for other work attempt to achieve peak energy and thermal
- * efficiency, even in the absence of contention. Finally, the use of QOS
- * classes does not allow threads to supersede any limits that may be applied
- * to the overall process.
- */
-
-/*!
- * @constant QOS_CLASS_USER_INTERACTIVE
- * @abstract A QOS class which indicates work performed by this thread
- * is interactive with the user.
- * @discussion Such work is requested to run at high priority relative to other
- * work on the system. Specifying this QOS class is a request to run with
- * nearly all available system CPU and I/O bandwidth even under contention.
- * This is not an energy-efficient QOS class to use for large tasks. The use of
- * this QOS class should be limited to critical interaction with the user such
- * as handling events on the main event loop, view drawing, animation, etc.
- *
- * @constant QOS_CLASS_USER_INITIATED
- * @abstract A QOS class which indicates work performed by this thread
- * was initiated by the user and that the user is likely waiting for the
- * results.
- * @discussion Such work is requested to run at a priority below critical user-
- * interactive work, but relatively higher than other work on the system. This
- * is not an energy-efficient QOS class to use for large tasks. Its use
- * should be limited to operations of short enough duration that the user is
- * unlikely to switch tasks while waiting for the results. Typical
- * user-initiated work will have progress indicated by the display of
- * placeholder content or modal user interface.
- *
- * @constant QOS_CLASS_DEFAULT
- * @abstract A default QOS class used by the system in cases where more specific
- * QOS class information is not available.
- * @discussion Such work is requested to run at a priority below critical user-
- * interactive and user-initiated work, but relatively higher than utility and
- * background tasks. Threads created by pthread_create() without an attribute
- * specifying a QOS class will default to QOS_CLASS_DEFAULT. This QOS class
- * value is not intended to be used as a work classification, it should only be
- * set when propagating or restoring QOS class values provided by the system.
- *
- * @constant QOS_CLASS_UTILITY
- * @abstract A QOS class which indicates work performed by this thread
- * may or may not be initiated by the user and that the user is unlikely to be
- * immediately waiting for the results.
- * @discussion Such work is requested to run at a priority below critical user-
- * interactive and user-initiated work, but relatively higher than low-level
- * system maintenance tasks. The use of this QOS class indicates the work
- * should be run in an energy and thermally-efficient manner. The progress of
- * utility work may or may not be indicated to the user, but the effect of such
- * work is user-visible.
- *
- * @constant QOS_CLASS_BACKGROUND
- * @abstract A QOS class which indicates work performed by this thread was not
- * initiated by the user and that the user may be unaware of the results.
- * @discussion Such work is requested to run at a priority below other work.
- * The use of this QOS class indicates the work should be run in the most energy
- * and thermally-efficient manner.
- *
- * @constant QOS_CLASS_UNSPECIFIED
- * @abstract A QOS class value which indicates the absence or removal of QOS
- * class information.
- * @discussion As an API return value, may indicate that threads or pthread
- * attributes were configured with legacy API incompatible or in conflict with
- * the QOS class system.
- */
-
-#define __QOS_ENUM(name, type, ...) enum { __VA_ARGS__ }; typedef type name##_t
-#define __QOS_CLASS_AVAILABLE(...)
-
-#if defined(__cplusplus) || defined(__OBJC__) || __LP64__
-#if defined(__has_feature) && defined(__has_extension)
-#if __has_feature(objc_fixed_enum) || __has_extension(cxx_strong_enums)
-#undef __QOS_ENUM
-#define __QOS_ENUM(name, type, ...) typedef enum : type { __VA_ARGS__ } name##_t
-#endif
-#endif
-#if __has_feature(enumerator_attributes)
-#undef __QOS_CLASS_AVAILABLE
-#define __QOS_CLASS_AVAILABLE __API_AVAILABLE
-#endif
-#endif
-
-__QOS_ENUM(qos_class, unsigned int,
- QOS_CLASS_USER_INTERACTIVE
- __QOS_CLASS_AVAILABLE(macos(10.10), ios(8.0)) = 0x21,
- QOS_CLASS_USER_INITIATED
- __QOS_CLASS_AVAILABLE(macos(10.10), ios(8.0)) = 0x19,
- QOS_CLASS_DEFAULT
- __QOS_CLASS_AVAILABLE(macos(10.10), ios(8.0)) = 0x15,
- QOS_CLASS_UTILITY
- __QOS_CLASS_AVAILABLE(macos(10.10), ios(8.0)) = 0x11,
- QOS_CLASS_BACKGROUND
- __QOS_CLASS_AVAILABLE(macos(10.10), ios(8.0)) = 0x09,
- QOS_CLASS_UNSPECIFIED
- __QOS_CLASS_AVAILABLE(macos(10.10), ios(8.0)) = 0x00,
-);
-
-#undef __QOS_ENUM
-
-/*!
- * @constant QOS_MIN_RELATIVE_PRIORITY
- * @abstract The minimum relative priority that may be specified within a
- * QOS class. These priorities are relative only within a given QOS class
- * and meaningful only for the current process.
- */
-#define QOS_MIN_RELATIVE_PRIORITY (-15)
-
-/* Userspace (only) definitions */
-
-#ifndef KERNEL
-
-__BEGIN_DECLS
-
-/*!
- * @function qos_class_self
- *
- * @abstract
- * Returns the requested QOS class of the current thread.
- *
- * @return
- * One of the QOS class values in qos_class_t.
- */
-__API_AVAILABLE(macos(10.10), ios(8.0))
-qos_class_t
-qos_class_self(void);
-
-/*!
- * @function qos_class_main
- *
- * @abstract
- * Returns the initial requested QOS class of the main thread.
- *
- * @discussion
- * The QOS class that the main thread of a process is created with depends on
- * the type of process (e.g. application or daemon) and on how it has been
- * launched.
- *
- * This function returns that initial requested QOS class value chosen by the
- * system to enable propagation of that classification to matching work not
- * executing on the main thread.
- *
- * @return
- * One of the QOS class values in qos_class_t.
- */
-__API_AVAILABLE(macos(10.10), ios(8.0))
-qos_class_t
-qos_class_main(void);
-
-__END_DECLS
-
-#endif // KERNEL
-
-#endif // _SYS_QOS_H
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/queue.h b/lib/libc/include/x86_64-macos-gnu/sys/queue.h
deleted file mode 100644
index 4ae79ffc23..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/queue.h
+++ /dev/null
@@ -1,909 +0,0 @@
-/*
- * 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) 1991, 1993
- * 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.
- * 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.
- *
- * @(#)queue.h 8.5 (Berkeley) 8/20/94
- */
-
-#ifndef _SYS_QUEUE_H_
-#define _SYS_QUEUE_H_
-
-#ifndef __improbable
-#define __improbable(x) (x) /* noop in userspace */
-#endif /* __improbable */
-
-/*
- * This file defines five types of data structures: singly-linked lists,
- * singly-linked tail queues, lists, tail queues, and circular queues.
- *
- * A singly-linked list is headed by a single forward pointer. The elements
- * are singly linked for minimum space and pointer manipulation overhead at
- * the expense of O(n) removal for arbitrary elements. New elements can be
- * added to the list after an existing element or at the head of the list.
- * Elements being removed from the head of the list should use the explicit
- * macro for this purpose for optimum efficiency. A singly-linked list may
- * only be traversed in the forward direction. Singly-linked lists are ideal
- * for applications with large datasets and few or no removals or for
- * implementing a LIFO queue.
- *
- * A singly-linked tail queue is headed by a pair of pointers, one to the
- * head of the list and the other to the tail of the list. The elements are
- * singly linked for minimum space and pointer manipulation overhead at the
- * expense of O(n) removal for arbitrary elements. New elements can be added
- * to the list after an existing element, at the head of the list, or at the
- * end of the list. Elements being removed from the head of the tail queue
- * should use the explicit macro for this purpose for optimum efficiency.
- * A singly-linked tail queue may only be traversed in the forward direction.
- * Singly-linked tail queues are ideal for applications with large datasets
- * and few or no removals or for implementing a FIFO queue.
- *
- * A list is headed by a single forward pointer (or an array of forward
- * pointers for a hash table header). The elements are doubly linked
- * so that an arbitrary element can be removed without a need to
- * traverse the list. New elements can be added to the list before
- * or after an existing element or at the head of the list. A list
- * may only be traversed in the forward direction.
- *
- * A tail queue is headed by a pair of pointers, one to the head of the
- * list and the other to the tail of the list. The elements are doubly
- * linked so that an arbitrary element can be removed without a need to
- * traverse the list. New elements can be added to the list before or
- * after an existing element, at the head of the list, or at the end of
- * the list. A tail queue may be traversed in either direction.
- *
- * A circle queue is headed by a pair of pointers, one to the head of the
- * list and the other to the tail of the list. The elements are doubly
- * linked so that an arbitrary element can be removed without a need to
- * traverse the list. New elements can be added to the list before or after
- * an existing element, at the head of the list, or at the end of the list.
- * A circle queue may be traversed in either direction, but has a more
- * complex end of list detection.
- * Note that circle queues are deprecated, because, as the removal log
- * in FreeBSD states, "CIRCLEQs are a disgrace to everything Knuth taught
- * us in Volume 1 Chapter 2. [...] Use TAILQ instead, it provides the same
- * functionality." Code using them will continue to compile, but they
- * are no longer documented on the man page.
- *
- * For details on the use of these macros, see the queue(3) manual page.
- *
- *
- * SLIST LIST STAILQ TAILQ CIRCLEQ
- * _HEAD + + + + +
- * _HEAD_INITIALIZER + + + + -
- * _ENTRY + + + + +
- * _INIT + + + + +
- * _EMPTY + + + + +
- * _FIRST + + + + +
- * _NEXT + + + + +
- * _PREV - - - + +
- * _LAST - - + + +
- * _FOREACH + + + + +
- * _FOREACH_SAFE + + + + -
- * _FOREACH_REVERSE - - - + -
- * _FOREACH_REVERSE_SAFE - - - + -
- * _INSERT_HEAD + + + + +
- * _INSERT_BEFORE - + - + +
- * _INSERT_AFTER + + + + +
- * _INSERT_TAIL - - + + +
- * _CONCAT - - + + -
- * _REMOVE_AFTER + - + - -
- * _REMOVE_HEAD + - + - -
- * _REMOVE_HEAD_UNTIL - - + - -
- * _REMOVE + + + + +
- * _SWAP - + + + -
- *
- */
-#ifdef QUEUE_MACRO_DEBUG
-/* Store the last 2 places the queue element or head was altered */
-struct qm_trace {
- char * lastfile;
- int lastline;
- char * prevfile;
- int prevline;
-};
-
-#define TRACEBUF struct qm_trace trace;
-#define TRASHIT(x) do {(x) = (void *)-1;} while (0)
-
-#define QMD_TRACE_HEAD(head) do { \
- (head)->trace.prevline = (head)->trace.lastline; \
- (head)->trace.prevfile = (head)->trace.lastfile; \
- (head)->trace.lastline = __LINE__; \
- (head)->trace.lastfile = __FILE__; \
-} while (0)
-
-#define QMD_TRACE_ELEM(elem) do { \
- (elem)->trace.prevline = (elem)->trace.lastline; \
- (elem)->trace.prevfile = (elem)->trace.lastfile; \
- (elem)->trace.lastline = __LINE__; \
- (elem)->trace.lastfile = __FILE__; \
-} while (0)
-
-#else
-#define QMD_TRACE_ELEM(elem)
-#define QMD_TRACE_HEAD(head)
-#define TRACEBUF
-#define TRASHIT(x)
-#endif /* QUEUE_MACRO_DEBUG */
-
-/*
- * Horrible macros to enable use of code that was meant to be C-specific
- * (and which push struct onto type) in C++; without these, C++ code
- * that uses these macros in the context of a class will blow up
- * due to "struct" being preprended to "type" by the macros, causing
- * inconsistent use of tags.
- *
- * This approach is necessary because these are macros; we have to use
- * these on a per-macro basis (because the queues are implemented as
- * macros, disabling this warning in the scope of the header file is
- * insufficient), whuch means we can't use #pragma, and have to use
- * _Pragma. We only need to use these for the queue macros that
- * prepend "struct" to "type" and will cause C++ to blow up.
- */
-#if defined(__clang__) && defined(__cplusplus)
-#define __MISMATCH_TAGS_PUSH \
- _Pragma("clang diagnostic push") \
- _Pragma("clang diagnostic ignored \"-Wmismatched-tags\"")
-#define __MISMATCH_TAGS_POP \
- _Pragma("clang diagnostic pop")
-#else
-#define __MISMATCH_TAGS_PUSH
-#define __MISMATCH_TAGS_POP
-#endif
-
-/*!
- * Ensures that these macros can safely be used in structs when compiling with
- * clang. The macros do not allow for nullability attributes to be specified due
- * to how they are expanded. For example:
- *
- * SLIST_HEAD(, foo _Nullable) bar;
- *
- * expands to
- *
- * struct {
- * struct foo _Nullable *slh_first;
- * }
- *
- * which is not valid because the nullability specifier has to apply to the
- * pointer. So just ignore nullability completeness in all the places where this
- * is an issue.
- */
-#if defined(__clang__)
-#define __NULLABILITY_COMPLETENESS_PUSH \
- _Pragma("clang diagnostic push") \
- _Pragma("clang diagnostic ignored \"-Wnullability-completeness\"")
-#define __NULLABILITY_COMPLETENESS_POP \
- _Pragma("clang diagnostic pop")
-#else
-#define __NULLABILITY_COMPLETENESS_PUSH
-#define __NULLABILITY_COMPLETENESS_POP
-#endif
-
-/*
- * Singly-linked List declarations.
- */
-#define SLIST_HEAD(name, type) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-struct name { \
- struct type *slh_first; /* first element */ \
-} \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-#define SLIST_HEAD_INITIALIZER(head) \
- { NULL }
-
-#define SLIST_ENTRY(type) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-struct { \
- struct type *sle_next; /* next element */ \
-} \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-/*
- * Singly-linked List functions.
- */
-#define SLIST_EMPTY(head) ((head)->slh_first == NULL)
-
-#define SLIST_FIRST(head) ((head)->slh_first)
-
-#define SLIST_FOREACH(var, head, field) \
- for ((var) = SLIST_FIRST((head)); \
- (var); \
- (var) = SLIST_NEXT((var), field))
-
-#define SLIST_FOREACH_SAFE(var, head, field, tvar) \
- for ((var) = SLIST_FIRST((head)); \
- (var) && ((tvar) = SLIST_NEXT((var), field), 1); \
- (var) = (tvar))
-
-#define SLIST_FOREACH_PREVPTR(var, varp, head, field) \
- for ((varp) = &SLIST_FIRST((head)); \
- ((var) = *(varp)) != NULL; \
- (varp) = &SLIST_NEXT((var), field))
-
-#define SLIST_INIT(head) do { \
- SLIST_FIRST((head)) = NULL; \
-} while (0)
-
-#define SLIST_INSERT_AFTER(slistelm, elm, field) do { \
- SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \
- SLIST_NEXT((slistelm), field) = (elm); \
-} while (0)
-
-#define SLIST_INSERT_HEAD(head, elm, field) do { \
- SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
- SLIST_FIRST((head)) = (elm); \
-} while (0)
-
-#define SLIST_NEXT(elm, field) ((elm)->field.sle_next)
-
-#define SLIST_REMOVE(head, elm, type, field) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-do { \
- if (SLIST_FIRST((head)) == (elm)) { \
- SLIST_REMOVE_HEAD((head), field); \
- } \
- else { \
- struct type *curelm = SLIST_FIRST((head)); \
- while (SLIST_NEXT(curelm, field) != (elm)) \
- curelm = SLIST_NEXT(curelm, field); \
- SLIST_REMOVE_AFTER(curelm, field); \
- } \
- TRASHIT((elm)->field.sle_next); \
-} while (0) \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-#define SLIST_REMOVE_AFTER(elm, field) do { \
- SLIST_NEXT(elm, field) = \
- SLIST_NEXT(SLIST_NEXT(elm, field), field); \
-} while (0)
-
-#define SLIST_REMOVE_HEAD(head, field) do { \
- SLIST_FIRST((head)) = SLIST_NEXT(SLIST_FIRST((head)), field); \
-} while (0)
-
-/*
- * Singly-linked Tail queue declarations.
- */
-#define STAILQ_HEAD(name, type) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-struct name { \
- struct type *stqh_first;/* first element */ \
- struct type **stqh_last;/* addr of last next element */ \
-} \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-#define STAILQ_HEAD_INITIALIZER(head) \
- { NULL, &(head).stqh_first }
-
-#define STAILQ_ENTRY(type) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-struct { \
- struct type *stqe_next; /* next element */ \
-} \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-/*
- * Singly-linked Tail queue functions.
- */
-#define STAILQ_CONCAT(head1, head2) do { \
- if (!STAILQ_EMPTY((head2))) { \
- *(head1)->stqh_last = (head2)->stqh_first; \
- (head1)->stqh_last = (head2)->stqh_last; \
- STAILQ_INIT((head2)); \
- } \
-} while (0)
-
-#define STAILQ_EMPTY(head) ((head)->stqh_first == NULL)
-
-#define STAILQ_FIRST(head) ((head)->stqh_first)
-
-#define STAILQ_FOREACH(var, head, field) \
- for((var) = STAILQ_FIRST((head)); \
- (var); \
- (var) = STAILQ_NEXT((var), field))
-
-
-#define STAILQ_FOREACH_SAFE(var, head, field, tvar) \
- for ((var) = STAILQ_FIRST((head)); \
- (var) && ((tvar) = STAILQ_NEXT((var), field), 1); \
- (var) = (tvar))
-
-#define STAILQ_INIT(head) do { \
- STAILQ_FIRST((head)) = NULL; \
- (head)->stqh_last = &STAILQ_FIRST((head)); \
-} while (0)
-
-#define STAILQ_INSERT_AFTER(head, tqelm, elm, field) do { \
- if ((STAILQ_NEXT((elm), field) = STAILQ_NEXT((tqelm), field)) == NULL)\
- (head)->stqh_last = &STAILQ_NEXT((elm), field); \
- STAILQ_NEXT((tqelm), field) = (elm); \
-} while (0)
-
-#define STAILQ_INSERT_HEAD(head, elm, field) do { \
- if ((STAILQ_NEXT((elm), field) = STAILQ_FIRST((head))) == NULL) \
- (head)->stqh_last = &STAILQ_NEXT((elm), field); \
- STAILQ_FIRST((head)) = (elm); \
-} while (0)
-
-#define STAILQ_INSERT_TAIL(head, elm, field) do { \
- STAILQ_NEXT((elm), field) = NULL; \
- *(head)->stqh_last = (elm); \
- (head)->stqh_last = &STAILQ_NEXT((elm), field); \
-} while (0)
-
-#define STAILQ_LAST(head, type, field) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
- (STAILQ_EMPTY((head)) ? \
- NULL : \
- ((struct type *)(void *) \
- ((char *)((head)->stqh_last) - __offsetof(struct type, field))))\
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-#define STAILQ_NEXT(elm, field) ((elm)->field.stqe_next)
-
-#define STAILQ_REMOVE(head, elm, type, field) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-do { \
- if (STAILQ_FIRST((head)) == (elm)) { \
- STAILQ_REMOVE_HEAD((head), field); \
- } \
- else { \
- struct type *curelm = STAILQ_FIRST((head)); \
- while (STAILQ_NEXT(curelm, field) != (elm)) \
- curelm = STAILQ_NEXT(curelm, field); \
- STAILQ_REMOVE_AFTER(head, curelm, field); \
- } \
- TRASHIT((elm)->field.stqe_next); \
-} while (0) \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-#define STAILQ_REMOVE_HEAD(head, field) do { \
- if ((STAILQ_FIRST((head)) = \
- STAILQ_NEXT(STAILQ_FIRST((head)), field)) == NULL) \
- (head)->stqh_last = &STAILQ_FIRST((head)); \
-} while (0)
-
-#define STAILQ_REMOVE_HEAD_UNTIL(head, elm, field) do { \
- if ((STAILQ_FIRST((head)) = STAILQ_NEXT((elm), field)) == NULL) \
- (head)->stqh_last = &STAILQ_FIRST((head)); \
-} while (0)
-
-#define STAILQ_REMOVE_AFTER(head, elm, field) do { \
- if ((STAILQ_NEXT(elm, field) = \
- STAILQ_NEXT(STAILQ_NEXT(elm, field), field)) == NULL) \
- (head)->stqh_last = &STAILQ_NEXT((elm), field); \
-} while (0)
-
-#define STAILQ_SWAP(head1, head2, type) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-do { \
- struct type *swap_first = STAILQ_FIRST(head1); \
- struct type **swap_last = (head1)->stqh_last; \
- STAILQ_FIRST(head1) = STAILQ_FIRST(head2); \
- (head1)->stqh_last = (head2)->stqh_last; \
- STAILQ_FIRST(head2) = swap_first; \
- (head2)->stqh_last = swap_last; \
- if (STAILQ_EMPTY(head1)) \
- (head1)->stqh_last = &STAILQ_FIRST(head1); \
- if (STAILQ_EMPTY(head2)) \
- (head2)->stqh_last = &STAILQ_FIRST(head2); \
-} while (0) \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-
-/*
- * List declarations.
- */
-#define LIST_HEAD(name, type) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-struct name { \
- struct type *lh_first; /* first element */ \
-} \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-#define LIST_HEAD_INITIALIZER(head) \
- { NULL }
-
-#define LIST_ENTRY(type) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-struct { \
- struct type *le_next; /* next element */ \
- struct type **le_prev; /* address of previous next element */ \
-} \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-/*
- * List functions.
- */
-
-#define LIST_CHECK_HEAD(head, field)
-#define LIST_CHECK_NEXT(elm, field)
-#define LIST_CHECK_PREV(elm, field)
-
-#define LIST_EMPTY(head) ((head)->lh_first == NULL)
-
-#define LIST_FIRST(head) ((head)->lh_first)
-
-#define LIST_FOREACH(var, head, field) \
- for ((var) = LIST_FIRST((head)); \
- (var); \
- (var) = LIST_NEXT((var), field))
-
-#define LIST_FOREACH_SAFE(var, head, field, tvar) \
- for ((var) = LIST_FIRST((head)); \
- (var) && ((tvar) = LIST_NEXT((var), field), 1); \
- (var) = (tvar))
-
-#define LIST_INIT(head) do { \
- LIST_FIRST((head)) = NULL; \
-} while (0)
-
-#define LIST_INSERT_AFTER(listelm, elm, field) do { \
- LIST_CHECK_NEXT(listelm, field); \
- if ((LIST_NEXT((elm), field) = LIST_NEXT((listelm), field)) != NULL)\
- LIST_NEXT((listelm), field)->field.le_prev = \
- &LIST_NEXT((elm), field); \
- LIST_NEXT((listelm), field) = (elm); \
- (elm)->field.le_prev = &LIST_NEXT((listelm), field); \
-} while (0)
-
-#define LIST_INSERT_BEFORE(listelm, elm, field) do { \
- LIST_CHECK_PREV(listelm, field); \
- (elm)->field.le_prev = (listelm)->field.le_prev; \
- LIST_NEXT((elm), field) = (listelm); \
- *(listelm)->field.le_prev = (elm); \
- (listelm)->field.le_prev = &LIST_NEXT((elm), field); \
-} while (0)
-
-#define LIST_INSERT_HEAD(head, elm, field) do { \
- LIST_CHECK_HEAD((head), field); \
- if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \
- LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field);\
- LIST_FIRST((head)) = (elm); \
- (elm)->field.le_prev = &LIST_FIRST((head)); \
-} while (0)
-
-#define LIST_NEXT(elm, field) ((elm)->field.le_next)
-
-#define LIST_REMOVE(elm, field) do { \
- LIST_CHECK_NEXT(elm, field); \
- LIST_CHECK_PREV(elm, field); \
- if (LIST_NEXT((elm), field) != NULL) \
- LIST_NEXT((elm), field)->field.le_prev = \
- (elm)->field.le_prev; \
- *(elm)->field.le_prev = LIST_NEXT((elm), field); \
- TRASHIT((elm)->field.le_next); \
- TRASHIT((elm)->field.le_prev); \
-} while (0)
-
-#define LIST_SWAP(head1, head2, type, field) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-do { \
- struct type *swap_tmp = LIST_FIRST((head1)); \
- LIST_FIRST((head1)) = LIST_FIRST((head2)); \
- LIST_FIRST((head2)) = swap_tmp; \
- if ((swap_tmp = LIST_FIRST((head1))) != NULL) \
- swap_tmp->field.le_prev = &LIST_FIRST((head1)); \
- if ((swap_tmp = LIST_FIRST((head2))) != NULL) \
- swap_tmp->field.le_prev = &LIST_FIRST((head2)); \
-} while (0) \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-/*
- * Tail queue declarations.
- */
-#define TAILQ_HEAD(name, type) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-struct name { \
- struct type *tqh_first; /* first element */ \
- struct type **tqh_last; /* addr of last next element */ \
- TRACEBUF \
-} \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-#define TAILQ_HEAD_INITIALIZER(head) \
- { NULL, &(head).tqh_first }
-
-#define TAILQ_ENTRY(type) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-struct { \
- struct type *tqe_next; /* next element */ \
- struct type **tqe_prev; /* address of previous next element */ \
- TRACEBUF \
-} \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-/*
- * Tail queue functions.
- */
-#define TAILQ_CHECK_HEAD(head, field)
-#define TAILQ_CHECK_NEXT(elm, field)
-#define TAILQ_CHECK_PREV(elm, field)
-
-#define TAILQ_CONCAT(head1, head2, field) do { \
- if (!TAILQ_EMPTY(head2)) { \
- *(head1)->tqh_last = (head2)->tqh_first; \
- (head2)->tqh_first->field.tqe_prev = (head1)->tqh_last; \
- (head1)->tqh_last = (head2)->tqh_last; \
- TAILQ_INIT((head2)); \
- QMD_TRACE_HEAD(head1); \
- QMD_TRACE_HEAD(head2); \
- } \
-} while (0)
-
-#define TAILQ_EMPTY(head) ((head)->tqh_first == NULL)
-
-#define TAILQ_FIRST(head) ((head)->tqh_first)
-
-#define TAILQ_FOREACH(var, head, field) \
- for ((var) = TAILQ_FIRST((head)); \
- (var); \
- (var) = TAILQ_NEXT((var), field))
-
-#define TAILQ_FOREACH_SAFE(var, head, field, tvar) \
- for ((var) = TAILQ_FIRST((head)); \
- (var) && ((tvar) = TAILQ_NEXT((var), field), 1); \
- (var) = (tvar))
-
-#define TAILQ_FOREACH_REVERSE(var, head, headname, field) \
- for ((var) = TAILQ_LAST((head), headname); \
- (var); \
- (var) = TAILQ_PREV((var), headname, field))
-
-#define TAILQ_FOREACH_REVERSE_SAFE(var, head, headname, field, tvar) \
- for ((var) = TAILQ_LAST((head), headname); \
- (var) && ((tvar) = TAILQ_PREV((var), headname, field), 1); \
- (var) = (tvar))
-
-
-#define TAILQ_INIT(head) do { \
- TAILQ_FIRST((head)) = NULL; \
- (head)->tqh_last = &TAILQ_FIRST((head)); \
- QMD_TRACE_HEAD(head); \
-} while (0)
-
-
-#define TAILQ_INSERT_AFTER(head, listelm, elm, field) do { \
- TAILQ_CHECK_NEXT(listelm, field); \
- if ((TAILQ_NEXT((elm), field) = TAILQ_NEXT((listelm), field)) != NULL)\
- TAILQ_NEXT((elm), field)->field.tqe_prev = \
- &TAILQ_NEXT((elm), field); \
- else { \
- (head)->tqh_last = &TAILQ_NEXT((elm), field); \
- QMD_TRACE_HEAD(head); \
- } \
- TAILQ_NEXT((listelm), field) = (elm); \
- (elm)->field.tqe_prev = &TAILQ_NEXT((listelm), field); \
- QMD_TRACE_ELEM(&(elm)->field); \
- QMD_TRACE_ELEM(&listelm->field); \
-} while (0)
-
-#define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \
- TAILQ_CHECK_PREV(listelm, field); \
- (elm)->field.tqe_prev = (listelm)->field.tqe_prev; \
- TAILQ_NEXT((elm), field) = (listelm); \
- *(listelm)->field.tqe_prev = (elm); \
- (listelm)->field.tqe_prev = &TAILQ_NEXT((elm), field); \
- QMD_TRACE_ELEM(&(elm)->field); \
- QMD_TRACE_ELEM(&listelm->field); \
-} while (0)
-
-#define TAILQ_INSERT_HEAD(head, elm, field) do { \
- TAILQ_CHECK_HEAD(head, field); \
- if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \
- TAILQ_FIRST((head))->field.tqe_prev = \
- &TAILQ_NEXT((elm), field); \
- else \
- (head)->tqh_last = &TAILQ_NEXT((elm), field); \
- TAILQ_FIRST((head)) = (elm); \
- (elm)->field.tqe_prev = &TAILQ_FIRST((head)); \
- QMD_TRACE_HEAD(head); \
- QMD_TRACE_ELEM(&(elm)->field); \
-} while (0)
-
-#define TAILQ_INSERT_TAIL(head, elm, field) do { \
- TAILQ_NEXT((elm), field) = NULL; \
- (elm)->field.tqe_prev = (head)->tqh_last; \
- *(head)->tqh_last = (elm); \
- (head)->tqh_last = &TAILQ_NEXT((elm), field); \
- QMD_TRACE_HEAD(head); \
- QMD_TRACE_ELEM(&(elm)->field); \
-} while (0)
-
-#define TAILQ_LAST(head, headname) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
- (*(((struct headname *)((head)->tqh_last))->tqh_last)) \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-#define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next)
-
-#define TAILQ_PREV(elm, headname, field) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
- (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last)) \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-#define TAILQ_REMOVE(head, elm, field) do { \
- TAILQ_CHECK_NEXT(elm, field); \
- TAILQ_CHECK_PREV(elm, field); \
- if ((TAILQ_NEXT((elm), field)) != NULL) \
- TAILQ_NEXT((elm), field)->field.tqe_prev = \
- (elm)->field.tqe_prev; \
- else { \
- (head)->tqh_last = (elm)->field.tqe_prev; \
- QMD_TRACE_HEAD(head); \
- } \
- *(elm)->field.tqe_prev = TAILQ_NEXT((elm), field); \
- TRASHIT((elm)->field.tqe_next); \
- TRASHIT((elm)->field.tqe_prev); \
- QMD_TRACE_ELEM(&(elm)->field); \
-} while (0)
-
-/*
- * Why did they switch to spaces for this one macro?
- */
-#define TAILQ_SWAP(head1, head2, type, field) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-do { \
- struct type *swap_first = (head1)->tqh_first; \
- struct type **swap_last = (head1)->tqh_last; \
- (head1)->tqh_first = (head2)->tqh_first; \
- (head1)->tqh_last = (head2)->tqh_last; \
- (head2)->tqh_first = swap_first; \
- (head2)->tqh_last = swap_last; \
- if ((swap_first = (head1)->tqh_first) != NULL) \
- swap_first->field.tqe_prev = &(head1)->tqh_first; \
- else \
- (head1)->tqh_last = &(head1)->tqh_first; \
- if ((swap_first = (head2)->tqh_first) != NULL) \
- swap_first->field.tqe_prev = &(head2)->tqh_first; \
- else \
- (head2)->tqh_last = &(head2)->tqh_first; \
-} while (0) \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-/*
- * Circular queue definitions.
- */
-#define CIRCLEQ_HEAD(name, type) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-struct name { \
- struct type *cqh_first; /* first element */ \
- struct type *cqh_last; /* last element */ \
-} \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-#define CIRCLEQ_ENTRY(type) \
-__MISMATCH_TAGS_PUSH \
-__NULLABILITY_COMPLETENESS_PUSH \
-struct { \
- struct type *cqe_next; /* next element */ \
- struct type *cqe_prev; /* previous element */ \
-} \
-__NULLABILITY_COMPLETENESS_POP \
-__MISMATCH_TAGS_POP
-
-/*
- * Circular queue functions.
- */
-#define CIRCLEQ_CHECK_HEAD(head, field)
-#define CIRCLEQ_CHECK_NEXT(head, elm, field)
-#define CIRCLEQ_CHECK_PREV(head, elm, field)
-
-#define CIRCLEQ_EMPTY(head) ((head)->cqh_first == (void *)(head))
-
-#define CIRCLEQ_FIRST(head) ((head)->cqh_first)
-
-#define CIRCLEQ_FOREACH(var, head, field) \
- for((var) = (head)->cqh_first; \
- (var) != (void *)(head); \
- (var) = (var)->field.cqe_next)
-
-#define CIRCLEQ_INIT(head) do { \
- (head)->cqh_first = (void *)(head); \
- (head)->cqh_last = (void *)(head); \
-} while (0)
-
-#define CIRCLEQ_INSERT_AFTER(head, listelm, elm, field) do { \
- CIRCLEQ_CHECK_NEXT(head, listelm, field); \
- (elm)->field.cqe_next = (listelm)->field.cqe_next; \
- (elm)->field.cqe_prev = (listelm); \
- if ((listelm)->field.cqe_next == (void *)(head)) \
- (head)->cqh_last = (elm); \
- else \
- (listelm)->field.cqe_next->field.cqe_prev = (elm); \
- (listelm)->field.cqe_next = (elm); \
-} while (0)
-
-#define CIRCLEQ_INSERT_BEFORE(head, listelm, elm, field) do { \
- CIRCLEQ_CHECK_PREV(head, listelm, field); \
- (elm)->field.cqe_next = (listelm); \
- (elm)->field.cqe_prev = (listelm)->field.cqe_prev; \
- if ((listelm)->field.cqe_prev == (void *)(head)) \
- (head)->cqh_first = (elm); \
- else \
- (listelm)->field.cqe_prev->field.cqe_next = (elm); \
- (listelm)->field.cqe_prev = (elm); \
-} while (0)
-
-#define CIRCLEQ_INSERT_HEAD(head, elm, field) do { \
- CIRCLEQ_CHECK_HEAD(head, field); \
- (elm)->field.cqe_next = (head)->cqh_first; \
- (elm)->field.cqe_prev = (void *)(head); \
- if ((head)->cqh_last == (void *)(head)) \
- (head)->cqh_last = (elm); \
- else \
- (head)->cqh_first->field.cqe_prev = (elm); \
- (head)->cqh_first = (elm); \
-} while (0)
-
-#define CIRCLEQ_INSERT_TAIL(head, elm, field) do { \
- (elm)->field.cqe_next = (void *)(head); \
- (elm)->field.cqe_prev = (head)->cqh_last; \
- if ((head)->cqh_first == (void *)(head)) \
- (head)->cqh_first = (elm); \
- else \
- (head)->cqh_last->field.cqe_next = (elm); \
- (head)->cqh_last = (elm); \
-} while (0)
-
-#define CIRCLEQ_LAST(head) ((head)->cqh_last)
-
-#define CIRCLEQ_NEXT(elm, field) ((elm)->field.cqe_next)
-
-#define CIRCLEQ_PREV(elm, field) ((elm)->field.cqe_prev)
-
-#define CIRCLEQ_REMOVE(head, elm, field) do { \
- CIRCLEQ_CHECK_NEXT(head, elm, field); \
- CIRCLEQ_CHECK_PREV(head, elm, field); \
- if ((elm)->field.cqe_next == (void *)(head)) \
- (head)->cqh_last = (elm)->field.cqe_prev; \
- else \
- (elm)->field.cqe_next->field.cqe_prev = \
- (elm)->field.cqe_prev; \
- if ((elm)->field.cqe_prev == (void *)(head)) \
- (head)->cqh_first = (elm)->field.cqe_next; \
- else \
- (elm)->field.cqe_prev->field.cqe_next = \
- (elm)->field.cqe_next; \
-} while (0)
-
-#ifdef _KERNEL
-
-#if NOTFB31
-
-/*
- * XXX insque() and remque() are an old way of handling certain queues.
- * They bogusly assumes that all queue heads look alike.
- */
-
-struct quehead {
- struct quehead *qh_link;
- struct quehead *qh_rlink;
-};
-
-#ifdef __GNUC__
-#define chkquenext(a)
-#define chkqueprev(a)
-
-static __inline void
-insque(void *a, void *b)
-{
- struct quehead *element = (struct quehead *)a,
- *head = (struct quehead *)b;
- chkquenext(head);
-
- element->qh_link = head->qh_link;
- element->qh_rlink = head;
- head->qh_link = element;
- element->qh_link->qh_rlink = element;
-}
-
-static __inline void
-remque(void *a)
-{
- struct quehead *element = (struct quehead *)a;
- chkquenext(element);
- chkqueprev(element);
-
- element->qh_link->qh_rlink = element->qh_rlink;
- element->qh_rlink->qh_link = element->qh_link;
- element->qh_rlink = 0;
-}
-
-#else /* !__GNUC__ */
-
-void insque(void *a, void *b);
-void remque(void *a);
-
-#endif /* __GNUC__ */
-
-#endif /* NOTFB31 */
-#endif /* _KERNEL */
-
-#endif /* !_SYS_QUEUE_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/resource.h b/lib/libc/include/x86_64-macos-gnu/sys/resource.h
index a1d512cb2e..b6bf678d37 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/resource.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/resource.h
@@ -455,4 +455,4 @@ int setiopolicy_np(int, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPH
int setrlimit(int, const struct rlimit *) __DARWIN_ALIAS(setrlimit);
__END_DECLS
-#endif /* !_SYS_RESOURCE_H_ */
+#endif /* !_SYS_RESOURCE_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/select.h b/lib/libc/include/x86_64-macos-gnu/sys/select.h
deleted file mode 100644
index 50c5ce98d6..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/select.h
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * Copyright (c) 2000-2005 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) 1992, 1993
- * 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.
- *
- * @(#)select.h 8.2 (Berkeley) 1/4/94
- */
-
-#ifndef _SYS_SELECT_H_
-#define _SYS_SELECT_H_
-
-#include <sys/appleapiopts.h>
-#include <sys/cdefs.h>
-#include <sys/_types.h>
-
-/*
- * [XSI] The <sys/select.h> header shall define the fd_set type as a structure.
- * The timespec structure shall be defined as described in <time.h>
- * The <sys/select.h> header shall define the timeval structure.
- */
-#include <sys/_types/_fd_def.h>
-#include <sys/_types/_timespec.h>
-#include <sys/_types/_timeval.h>
-
-/*
- * The time_t and suseconds_t types shall be defined as described in
- * <sys/types.h>
- * The sigset_t type shall be defined as described in <signal.h>
- */
-#include <sys/_types/_time_t.h>
-#include <sys/_types/_suseconds_t.h>
-#include <sys/_types/_sigset_t.h>
-
-/*
- * [XSI] FD_CLR, FD_ISSET, FD_SET, FD_ZERO may be declared as a function, or
- * defined as a macro, or both
- * [XSI] FD_SETSIZE shall be defined as a macro
- */
-
-/*
- * Select uses bit masks of file descriptors in longs. These macros
- * manipulate such bit fields (the filesystem macros use chars). The
- * extra protection here is to permit application redefinition above
- * the default size.
- */
-#include <sys/_types/_fd_setsize.h>
-#include <sys/_types/_fd_set.h>
-#include <sys/_types/_fd_clr.h>
-#include <sys/_types/_fd_isset.h>
-#include <sys/_types/_fd_zero.h>
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#include <sys/_types/_fd_copy.h>
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-
-
-__BEGIN_DECLS
-
-#ifndef __MWERKS__
-int pselect(int, fd_set * __restrict, fd_set * __restrict,
- fd_set * __restrict, const struct timespec * __restrict,
- const sigset_t * __restrict)
-#if defined(_DARWIN_C_SOURCE) || defined(_DARWIN_UNLIMITED_SELECT)
-__DARWIN_EXTSN_C(pselect)
-#else /* !_DARWIN_C_SOURCE && !_DARWIN_UNLIMITED_SELECT */
-# if defined(__LP64__) && !__DARWIN_NON_CANCELABLE
-__DARWIN_1050(pselect)
-# else /* !__LP64__ || __DARWIN_NON_CANCELABLE */
-__DARWIN_ALIAS_C(pselect)
-# endif /* __LP64__ && !__DARWIN_NON_CANCELABLE */
-#endif /* _DARWIN_C_SOURCE || _DARWIN_UNLIMITED_SELECT */
-;
-#endif /* __MWERKS__ */
-
-#include <sys/_select.h> /* select() prototype */
-
-__END_DECLS
-
-
-#endif /* !_SYS_SELECT_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/sem.h b/lib/libc/include/x86_64-macos-gnu/sys/sem.h
deleted file mode 100644
index 32777590d6..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/sem.h
+++ /dev/null
@@ -1,206 +0,0 @@
-/*
- * Copyright (c) 2000-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@
- */
-/* $NetBSD: sem.h,v 1.5 1994/06/29 06:45:15 cgd Exp $ */
-
-/*
- * SVID compatible sem.h file
- *
- * Author: Daniel Boulet
- * John Bellardo modified the implementation for Darwin. 12/2000
- */
-
-#ifndef _SYS_SEM_H_
-#define _SYS_SEM_H_
-
-
-#include <sys/cdefs.h>
-#include <sys/_types.h>
-#include <machine/types.h> /* __int32_t */
-
-/*
- * [XSI] All of the symbols from <sys/ipc.h> SHALL be defined
- * when this header is included
- */
-#include <sys/ipc.h>
-
-
-/*
- * [XSI] The pid_t, time_t, key_t, and size_t types shall be defined as
- * described in <sys/types.h>.
- *
- * NOTE: The definition of the key_t type is implicit from the
- * inclusion of <sys/ipc.h>
- */
-#include <sys/_types/_pid_t.h>
-#include <sys/_types/_time_t.h>
-#include <sys/_types/_size_t.h>
-
-/*
- * Technically, we should force all code references to the new structure
- * definition, not in just the standards conformance case, and leave the
- * legacy interface there for binary compatibility only. Currently, we
- * are only forcing this for programs requesting standards conformance.
- */
-#if __DARWIN_UNIX03 || defined(KERNEL)
-#pragma pack(4)
-/*
- * Structure used internally.
- *
- * This structure is exposed because standards dictate that it is used as
- * the semun union member 'buf' as the fourth argment to semctl() when the
- * third argument is IPC_STAT or IPC_SET.
- *
- * Note: only the fields sem_perm, sem_nsems, sem_otime, and sem_ctime
- * are meaningful in user space.
- */
-#if (defined(_POSIX_C_SOURCE) && !defined(_DARWIN_C_SOURCE))
-struct semid_ds
-#else
-#define semid_ds __semid_ds_new
-struct __semid_ds_new
-#endif
-{
- struct __ipc_perm_new sem_perm; /* [XSI] operation permission struct */
- __int32_t sem_base; /* 32 bit base ptr for semaphore set */
- unsigned short sem_nsems; /* [XSI] number of sems in set */
- time_t sem_otime; /* [XSI] last operation time */
- __int32_t sem_pad1; /* RESERVED: DO NOT USE! */
- time_t sem_ctime; /* [XSI] last change time */
- /* Times measured in secs since */
- /* 00:00:00 GMT, Jan. 1, 1970 */
- __int32_t sem_pad2; /* RESERVED: DO NOT USE! */
- __int32_t sem_pad3[4]; /* RESERVED: DO NOT USE! */
-};
-#pragma pack()
-#else /* !__DARWIN_UNIX03 */
-#define semid_ds __semid_ds_old
-#endif /* __DARWIN_UNIX03 */
-
-#if !__DARWIN_UNIX03
-struct __semid_ds_old {
- struct __ipc_perm_old sem_perm; /* [XSI] operation permission struct */
- __int32_t sem_base; /* 32 bit base ptr for semaphore set */
- unsigned short sem_nsems; /* [XSI] number of sems in set */
- time_t sem_otime; /* [XSI] last operation time */
- __int32_t sem_pad1; /* RESERVED: DO NOT USE! */
- time_t sem_ctime; /* [XSI] last change time */
- /* Times measured in secs since */
- /* 00:00:00 GMT, Jan. 1, 1970 */
- __int32_t sem_pad2; /* RESERVED: DO NOT USE! */
- __int32_t sem_pad3[4]; /* RESERVED: DO NOT USE! */
-};
-#endif /* !__DARWIN_UNIX03 */
-
-/*
- * Possible values for the third argument to semctl()
- */
-#define GETNCNT 3 /* [XSI] Return the value of semncnt {READ} */
-#define GETPID 4 /* [XSI] Return the value of sempid {READ} */
-#define GETVAL 5 /* [XSI] Return the value of semval {READ} */
-#define GETALL 6 /* [XSI] Return semvals into arg.array {READ} */
-#define GETZCNT 7 /* [XSI] Return the value of semzcnt {READ} */
-#define SETVAL 8 /* [XSI] Set the value of semval to arg.val {ALTER} */
-#define SETALL 9 /* [XSI] Set semvals from arg.array {ALTER} */
-
-
-/* A semaphore; this is an anonymous structure, not for external use */
-struct sem {
- unsigned short semval; /* semaphore value */
- pid_t sempid; /* pid of last operation */
- unsigned short semncnt; /* # awaiting semval > cval */
- unsigned short semzcnt; /* # awaiting semval == 0 */
-};
-
-
-/*
- * Structure of array element for second argument to semop()
- */
-struct sembuf {
- unsigned short sem_num; /* [XSI] semaphore # */
- short sem_op; /* [XSI] semaphore operation */
- short sem_flg; /* [XSI] operation flags */
-};
-
-/*
- * Possible flag values for sem_flg
- */
-#define SEM_UNDO 010000 /* [XSI] Set up adjust on exit entry */
-
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-
-/*
- * Union used as the fourth argment to semctl() in all cases. Specific
- * member values are used for different values of the third parameter:
- *
- * Command Member
- * ------------------------------------------- ------
- * GETALL, SETALL array
- * SETVAL val
- * IPC_STAT, IPC_SET buf
- *
- * The union definition is intended to be defined by the user application
- * in conforming applications; it is provided here for two reasons:
- *
- * 1) Historical source compatability for non-conforming applications
- * expecting this header to declare the union type on their behalf
- *
- * 2) Documentation; specifically, 64 bit applications that do not pass
- * this structure for 'val', or, alternately, a 64 bit type, will
- * not function correctly
- */
-union semun {
- int val; /* value for SETVAL */
- struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */
- unsigned short *array; /* array for GETALL & SETALL */
-};
-typedef union semun semun_t;
-
-
-/*
- * Permissions
- */
-#define SEM_A 0200 /* alter permission */
-#define SEM_R 0400 /* read permission */
-
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-
-
-
-
-__BEGIN_DECLS
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-int semsys(int, ...);
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-int semctl(int, int, int, ...) __DARWIN_ALIAS(semctl);
-int semget(key_t, int, int);
-int semop(int, struct sembuf *, size_t);
-__END_DECLS
-
-
-#endif /* !_SEM_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/semaphore.h b/lib/libc/include/x86_64-macos-gnu/sys/semaphore.h
deleted file mode 100644
index 6e945f6906..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/semaphore.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * 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@
- */
-/* @(#)semaphore.h 1.0 2/29/00 */
-
-
-
-/*
- * semaphore.h - POSIX semaphores
- *
- * HISTORY
- * 29-Feb-00 A.Ramesh at Apple
- * Created for Mac OS X
- */
-
-#ifndef _SYS_SEMAPHORE_H_
-#define _SYS_SEMAPHORE_H_
-
-typedef int sem_t;
-
-/* this should go in limits.h> */
-#define SEM_VALUE_MAX 32767
-#define SEM_FAILED ((sem_t *)-1)
-
-#include <sys/cdefs.h>
-
-__BEGIN_DECLS
-int sem_close(sem_t *);
-int sem_destroy(sem_t *) __deprecated;
-int sem_getvalue(sem_t * __restrict, int * __restrict) __deprecated;
-int sem_init(sem_t *, int, unsigned int) __deprecated;
-sem_t * sem_open(const char *, int, ...);
-int sem_post(sem_t *);
-int sem_trywait(sem_t *);
-int sem_unlink(const char *);
-int sem_wait(sem_t *) __DARWIN_ALIAS_C(sem_wait);
-__END_DECLS
-
-
-#endif /* _SYS_SEMAPHORE_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/shm.h b/lib/libc/include/x86_64-macos-gnu/sys/shm.h
index ab138cf564..0e5070a03b 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/shm.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/shm.h
@@ -183,4 +183,4 @@ int shmget(key_t, size_t, int);
__END_DECLS
-#endif /* !_SYS_SHM_H_ */
+#endif /* !_SYS_SHM_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/signal.h b/lib/libc/include/x86_64-macos-gnu/sys/signal.h
deleted file mode 100644
index 7c5de71a10..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/signal.h
+++ /dev/null
@@ -1,392 +0,0 @@
-/*
- * 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) 1995 NeXT Computer, Inc. All Rights Reserved */
-/*
- * Copyright (c) 1982, 1986, 1989, 1991, 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.
- *
- * @(#)signal.h 8.2 (Berkeley) 1/21/94
- */
-
-#ifndef _SYS_SIGNAL_H_
-#define _SYS_SIGNAL_H_
-
-#include <sys/cdefs.h>
-#include <sys/appleapiopts.h>
-#include <Availability.h>
-
-#define __DARWIN_NSIG 32 /* counting 0; could be 33 (mask is 1-32) */
-
-#if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
-#define NSIG __DARWIN_NSIG
-#endif
-
-#include <machine/signal.h> /* sigcontext; codes for SIGILL, SIGFPE */
-
-#define SIGHUP 1 /* hangup */
-#define SIGINT 2 /* interrupt */
-#define SIGQUIT 3 /* quit */
-#define SIGILL 4 /* illegal instruction (not reset when caught) */
-#define SIGTRAP 5 /* trace trap (not reset when caught) */
-#define SIGABRT 6 /* abort() */
-#if (defined(_POSIX_C_SOURCE) && !defined(_DARWIN_C_SOURCE))
-#define SIGPOLL 7 /* pollable event ([XSR] generated, not supported) */
-#else /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-#define SIGIOT SIGABRT /* compatibility */
-#define SIGEMT 7 /* EMT instruction */
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-#define SIGFPE 8 /* floating point exception */
-#define SIGKILL 9 /* kill (cannot be caught or ignored) */
-#define SIGBUS 10 /* bus error */
-#define SIGSEGV 11 /* segmentation violation */
-#define SIGSYS 12 /* bad argument to system call */
-#define SIGPIPE 13 /* write on a pipe with no one to read it */
-#define SIGALRM 14 /* alarm clock */
-#define SIGTERM 15 /* software termination signal from kill */
-#define SIGURG 16 /* urgent condition on IO channel */
-#define SIGSTOP 17 /* sendable stop signal not from tty */
-#define SIGTSTP 18 /* stop signal from tty */
-#define SIGCONT 19 /* continue a stopped process */
-#define SIGCHLD 20 /* to parent on child stop or exit */
-#define SIGTTIN 21 /* to readers pgrp upon background tty read */
-#define SIGTTOU 22 /* like TTIN for output if (tp->t_local&LTOSTOP) */
-#if (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
-#define SIGIO 23 /* input/output possible signal */
-#endif
-#define SIGXCPU 24 /* exceeded CPU time limit */
-#define SIGXFSZ 25 /* exceeded file size limit */
-#define SIGVTALRM 26 /* virtual time alarm */
-#define SIGPROF 27 /* profiling time alarm */
-#if (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
-#define SIGWINCH 28 /* window size changes */
-#define SIGINFO 29 /* information request */
-#endif
-#define SIGUSR1 30 /* user defined signal 1 */
-#define SIGUSR2 31 /* user defined signal 2 */
-
-#if defined(_ANSI_SOURCE) || __DARWIN_UNIX03 || defined(__cplusplus)
-/*
- * Language spec sez we must list exactly one parameter, even though we
- * actually supply three. Ugh!
- * SIG_HOLD is chosen to avoid KERN_SIG_* values in <sys/signalvar.h>
- */
-#define SIG_DFL (void (*)(int))0
-#define SIG_IGN (void (*)(int))1
-#define SIG_HOLD (void (*)(int))5
-#define SIG_ERR ((void (*)(int))-1)
-#else
-/* DO NOT REMOVE THE COMMENTED OUT int: fixincludes needs to see them */
-#define SIG_DFL (void (*)( /*int*/ ))0
-#define SIG_IGN (void (*)( /*int*/ ))1
-#define SIG_HOLD (void (*)( /*int*/ ))5
-#define SIG_ERR ((void (*)( /*int*/ ))-1)
-#endif
-
-#ifndef _ANSI_SOURCE
-#include <sys/_types.h>
-
-#include <machine/_mcontext.h>
-
-#include <sys/_pthread/_pthread_attr_t.h>
-
-#include <sys/_types/_sigaltstack.h>
-#include <sys/_types/_ucontext.h>
-
-#include <sys/_types/_pid_t.h>
-#include <sys/_types/_sigset_t.h>
-#include <sys/_types/_size_t.h>
-#include <sys/_types/_uid_t.h>
-
-union sigval {
- /* Members as suggested by Annex C of POSIX 1003.1b. */
- int sival_int;
- void *sival_ptr;
-};
-
-#define SIGEV_NONE 0 /* No async notification */
-#define SIGEV_SIGNAL 1 /* aio - completion notification */
-#define SIGEV_THREAD 3 /* [NOTIMP] [RTS] call notification function */
-
-struct sigevent {
- int sigev_notify; /* Notification type */
- int sigev_signo; /* Signal number */
- union sigval sigev_value; /* Signal value */
- void (*sigev_notify_function)(union sigval); /* Notification function */
- pthread_attr_t *sigev_notify_attributes; /* Notification attributes */
-};
-
-
-typedef struct __siginfo {
- int si_signo; /* signal number */
- int si_errno; /* errno association */
- int si_code; /* signal code */
- pid_t si_pid; /* sending process */
- uid_t si_uid; /* sender's ruid */
- int si_status; /* exit value */
- void *si_addr; /* faulting instruction */
- union sigval si_value; /* signal value */
- long si_band; /* band event for SIGPOLL */
- unsigned long __pad[7]; /* Reserved for Future Use */
-} siginfo_t;
-
-
-/*
- * When the signal is SIGILL or SIGFPE, si_addr contains the address of
- * the faulting instruction.
- * When the signal is SIGSEGV or SIGBUS, si_addr contains the address of
- * the faulting memory reference. Although for x86 there are cases of SIGSEGV
- * for which si_addr cannot be determined and is NULL.
- * If the signal is SIGCHLD, the si_pid field will contain the child process ID,
- * si_status contains the exit value or signal and
- * si_uid contains the real user ID of the process that sent the signal.
- */
-
-/* Values for si_code */
-
-/* Codes for SIGILL */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define ILL_NOOP 0 /* if only I knew... */
-#endif
-#define ILL_ILLOPC 1 /* [XSI] illegal opcode */
-#define ILL_ILLTRP 2 /* [XSI] illegal trap */
-#define ILL_PRVOPC 3 /* [XSI] privileged opcode */
-#define ILL_ILLOPN 4 /* [XSI] illegal operand -NOTIMP */
-#define ILL_ILLADR 5 /* [XSI] illegal addressing mode -NOTIMP */
-#define ILL_PRVREG 6 /* [XSI] privileged register -NOTIMP */
-#define ILL_COPROC 7 /* [XSI] coprocessor error -NOTIMP */
-#define ILL_BADSTK 8 /* [XSI] internal stack error -NOTIMP */
-
-/* Codes for SIGFPE */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define FPE_NOOP 0 /* if only I knew... */
-#endif
-#define FPE_FLTDIV 1 /* [XSI] floating point divide by zero */
-#define FPE_FLTOVF 2 /* [XSI] floating point overflow */
-#define FPE_FLTUND 3 /* [XSI] floating point underflow */
-#define FPE_FLTRES 4 /* [XSI] floating point inexact result */
-#define FPE_FLTINV 5 /* [XSI] invalid floating point operation */
-#define FPE_FLTSUB 6 /* [XSI] subscript out of range -NOTIMP */
-#define FPE_INTDIV 7 /* [XSI] integer divide by zero */
-#define FPE_INTOVF 8 /* [XSI] integer overflow */
-
-/* Codes for SIGSEGV */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define SEGV_NOOP 0 /* if only I knew... */
-#endif
-#define SEGV_MAPERR 1 /* [XSI] address not mapped to object */
-#define SEGV_ACCERR 2 /* [XSI] invalid permission for mapped object */
-
-/* Codes for SIGBUS */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define BUS_NOOP 0 /* if only I knew... */
-#endif
-#define BUS_ADRALN 1 /* [XSI] Invalid address alignment */
-#define BUS_ADRERR 2 /* [XSI] Nonexistent physical address -NOTIMP */
-#define BUS_OBJERR 3 /* [XSI] Object-specific HW error - NOTIMP */
-
-/* Codes for SIGTRAP */
-#define TRAP_BRKPT 1 /* [XSI] Process breakpoint -NOTIMP */
-#define TRAP_TRACE 2 /* [XSI] Process trace trap -NOTIMP */
-
-/* Codes for SIGCHLD */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define CLD_NOOP 0 /* if only I knew... */
-#endif
-#define CLD_EXITED 1 /* [XSI] child has exited */
-#define CLD_KILLED 2 /* [XSI] terminated abnormally, no core file */
-#define CLD_DUMPED 3 /* [XSI] terminated abnormally, core file */
-#define CLD_TRAPPED 4 /* [XSI] traced child has trapped */
-#define CLD_STOPPED 5 /* [XSI] child has stopped */
-#define CLD_CONTINUED 6 /* [XSI] stopped child has continued */
-
-/* Codes for SIGPOLL */
-#define POLL_IN 1 /* [XSR] Data input available */
-#define POLL_OUT 2 /* [XSR] Output buffers available */
-#define POLL_MSG 3 /* [XSR] Input message available */
-#define POLL_ERR 4 /* [XSR] I/O error */
-#define POLL_PRI 5 /* [XSR] High priority input available */
-#define POLL_HUP 6 /* [XSR] Device disconnected */
-
-/* union for signal handlers */
-union __sigaction_u {
- void (*__sa_handler)(int);
- void (*__sa_sigaction)(int, struct __siginfo *,
- void *);
-};
-
-/* Signal vector template for Kernel user boundary */
-struct __sigaction {
- union __sigaction_u __sigaction_u; /* signal handler */
- void (*sa_tramp)(void *, int, int, siginfo_t *, void *);
- sigset_t sa_mask; /* signal mask to apply */
- int sa_flags; /* see signal options below */
-};
-
-/*
- * Signal vector "template" used in sigaction call.
- */
-struct sigaction {
- union __sigaction_u __sigaction_u; /* signal handler */
- sigset_t sa_mask; /* signal mask to apply */
- int sa_flags; /* see signal options below */
-};
-
-
-
-/* if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler. */
-#define sa_handler __sigaction_u.__sa_handler
-#define sa_sigaction __sigaction_u.__sa_sigaction
-
-#define SA_ONSTACK 0x0001 /* take signal on signal stack */
-#define SA_RESTART 0x0002 /* restart system on signal return */
-#define SA_RESETHAND 0x0004 /* reset to SIG_DFL when taking signal */
-#define SA_NOCLDSTOP 0x0008 /* do not generate SIGCHLD on child stop */
-#define SA_NODEFER 0x0010 /* don't mask the signal we're delivering */
-#define SA_NOCLDWAIT 0x0020 /* don't keep zombies around */
-#define SA_SIGINFO 0x0040 /* signal handler with SA_SIGINFO args */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define SA_USERTRAMP 0x0100 /* do not bounce off kernel's sigtramp */
-/* This will provide 64bit register set in a 32bit user address space */
-#define SA_64REGSET 0x0200 /* signal handler with SA_SIGINFO args with 64bit regs information */
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-
-/* the following are the only bits we support from user space, the
- * rest are for kernel use only.
- */
-#define SA_USERSPACE_MASK (SA_ONSTACK | SA_RESTART | SA_RESETHAND | SA_NOCLDSTOP | SA_NODEFER | SA_NOCLDWAIT | SA_SIGINFO)
-
-/*
- * Flags for sigprocmask:
- */
-#define SIG_BLOCK 1 /* block specified signal set */
-#define SIG_UNBLOCK 2 /* unblock specified signal set */
-#define SIG_SETMASK 3 /* set specified signal set */
-
-/* POSIX 1003.1b required values. */
-#define SI_USER 0x10001 /* [CX] signal from kill() */
-#define SI_QUEUE 0x10002 /* [CX] signal from sigqueue() */
-#define SI_TIMER 0x10003 /* [CX] timer expiration */
-#define SI_ASYNCIO 0x10004 /* [CX] aio request completion */
-#define SI_MESGQ 0x10005 /* [CX] from message arrival on empty queue */
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-typedef void (*sig_t)(int); /* type of signal function */
-#endif
-
-/*
- * Structure used in sigaltstack call.
- */
-
-#define SS_ONSTACK 0x0001 /* take signal on signal stack */
-#define SS_DISABLE 0x0004 /* disable taking signals on alternate stack */
-#define MINSIGSTKSZ 32768 /* (32K)minimum allowable stack */
-#define SIGSTKSZ 131072 /* (128K)recommended stack size */
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-/*
- * 4.3 compatibility:
- * Signal vector "template" used in sigvec call.
- */
-struct sigvec {
- void (*sv_handler)(int); /* signal handler */
- int sv_mask; /* signal mask to apply */
- int sv_flags; /* see signal options below */
-};
-
-#define SV_ONSTACK SA_ONSTACK
-#define SV_INTERRUPT SA_RESTART /* same bit, opposite sense */
-#define SV_RESETHAND SA_RESETHAND
-#define SV_NODEFER SA_NODEFER
-#define SV_NOCLDSTOP SA_NOCLDSTOP
-#define SV_SIGINFO SA_SIGINFO
-
-#define sv_onstack sv_flags /* isn't compatibility wonderful! */
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-
-/*
- * Structure used in sigstack call.
- */
-struct sigstack {
- char *ss_sp; /* signal stack pointer */
- int ss_onstack; /* current status */
-};
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-/*
- * Macro for converting signal number to a mask suitable for
- * sigblock().
- */
-#define sigmask(m) (1 << ((m)-1))
-
-
-#define BADSIG SIG_ERR
-
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-#endif /* !_ANSI_SOURCE */
-
-/*
- * For historical reasons; programs expect signal's return value to be
- * defined by <sys/signal.h>.
- */
-__BEGIN_DECLS
- void(*signal(int, void (*)(int)))(int);
-__END_DECLS
-#endif /* !_SYS_SIGNAL_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/socket.h b/lib/libc/include/x86_64-macos-gnu/sys/socket.h
index eb4bf144a1..c8a0d27615 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/socket.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/socket.h
@@ -729,4 +729,4 @@ int disconnectx(int, sae_associd_t, sae_connid_t);
__END_DECLS
-#endif /* !_SYS_SOCKET_H_ */
+#endif /* !_SYS_SOCKET_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/sockio.h b/lib/libc/include/x86_64-macos-gnu/sys/sockio.h
index 367b96d498..c18d55b522 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/sockio.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/sockio.h
@@ -177,4 +177,4 @@
#define SIOCGIF6LOWPAN _IOWR('i', 197, struct ifreq) /* get 6LOWPAN config */
-#endif /* !_SYS_SOCKIO_H_ */
+#endif /* !_SYS_SOCKIO_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/spawn.h b/lib/libc/include/x86_64-macos-gnu/sys/spawn.h
index 498e6a9476..483f017b69 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/spawn.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/spawn.h
@@ -74,4 +74,4 @@
#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-#endif /* _SYS_SPAWN_H_ */
+#endif /* _SYS_SPAWN_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/stat.h b/lib/libc/include/x86_64-macos-gnu/sys/stat.h
index 79dbd1dc95..7f2a490ee1 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/stat.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/stat.h
@@ -427,4 +427,4 @@ int stat64(const char *, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__M
#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
__END_DECLS
-#endif /* !_SYS_STAT_H_ */
+#endif /* !_SYS_STAT_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/statvfs.h b/lib/libc/include/x86_64-macos-gnu/sys/statvfs.h
deleted file mode 100644
index a8d661a5c6..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/statvfs.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * 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@
- */
-
-/*
- * sys/statvfs.h
- */
-#ifndef _SYS_STATVFS_H_
-#define _SYS_STATVFS_H_
-
-#include <sys/_types.h>
-#include <sys/cdefs.h>
-
-#include <sys/_types/_fsblkcnt_t.h>
-#include <sys/_types/_fsfilcnt_t.h>
-
-/* Following structure is used as a statvfs/fstatvfs function parameter */
-struct statvfs {
- unsigned long f_bsize; /* File system block size */
- unsigned long f_frsize; /* Fundamental file system block size */
- fsblkcnt_t f_blocks; /* Blocks on FS in units of f_frsize */
- fsblkcnt_t f_bfree; /* Free blocks */
- fsblkcnt_t f_bavail; /* Blocks available to non-root */
- fsfilcnt_t f_files; /* Total inodes */
- fsfilcnt_t f_ffree; /* Free inodes */
- fsfilcnt_t f_favail; /* Free inodes for non-root */
- unsigned long f_fsid; /* Filesystem ID */
- unsigned long f_flag; /* Bit mask of values */
- unsigned long f_namemax; /* Max file name length */
-};
-
-/* Defined bits for f_flag field value */
-#define ST_RDONLY 0x00000001 /* Read-only file system */
-#define ST_NOSUID 0x00000002 /* Does not honor setuid/setgid */
-
-__BEGIN_DECLS
-int fstatvfs(int, struct statvfs *);
-int statvfs(const char * __restrict, struct statvfs * __restrict);
-__END_DECLS
-
-#endif /* _SYS_STATVFS_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/stdio.h b/lib/libc/include/x86_64-macos-gnu/sys/stdio.h
deleted file mode 100644
index 5b42672c01..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/stdio.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 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@
- */
-
-#ifndef _SYS_STDIO_H_
-#define _SYS_STDIO_H_
-
-#include <sys/cdefs.h>
-
-#if __DARWIN_C_LEVEL >= 200809L
-#include <Availability.h>
-
-__BEGIN_DECLS
-
-int renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
-
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-
-#define RENAME_SECLUDE 0x00000001
-#define RENAME_SWAP 0x00000002
-#define RENAME_EXCL 0x00000004
-int renamex_np(const char *, const char *, unsigned int) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0);
-int renameatx_np(int, const char *, int, const char *, unsigned int) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0);
-
-#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
-
-__END_DECLS
-
-#endif /* __DARWIN_C_LEVEL >= 200809L */
-
-#endif /* _SYS_STDIO_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/sysctl.h b/lib/libc/include/x86_64-macos-gnu/sys/sysctl.h
index 73293ac8f4..9e3d84e04c 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/sysctl.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/sysctl.h
@@ -772,4 +772,4 @@ __END_DECLS
#endif /* SYSCTL_DEF_ENABLED */
-#endif /* !_SYS_SYSCTL_H_ */
+#endif /* !_SYS_SYSCTL_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/syslimits.h b/lib/libc/include/x86_64-macos-gnu/sys/syslimits.h
index 28424700fa..ff60b66ff5 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/syslimits.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/syslimits.h
@@ -114,4 +114,4 @@
#endif /* __DARWIN_UNIX03 */
#endif /* !_ANSI_SOURCE */
-#endif /* !_SYS_SYSLIMITS_H_ */
+#endif /* !_SYS_SYSLIMITS_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/syslog.h b/lib/libc/include/x86_64-macos-gnu/sys/syslog.h
deleted file mode 100644
index c72d998b8f..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/syslog.h
+++ /dev/null
@@ -1,236 +0,0 @@
-/*
- * Copyright (c) 2000-2005 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, 1988, 1993
- * 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.
- * 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.
- *
- * @(#)syslog.h 8.1 (Berkeley) 6/2/93
- * $FreeBSD: src/sys/sys/syslog.h,v 1.27.2.1.4.1 2010/06/14 02:09:06 kensmith Exp $
- */
-
-#ifndef _SYS_SYSLOG_H_
-#define _SYS_SYSLOG_H_
-
-#include <sys/appleapiopts.h>
-#include <sys/cdefs.h>
-
-#define _PATH_LOG "/var/run/syslog"
-
-/*
- * priorities/facilities are encoded into a single 32-bit quantity, where the
- * bottom 3 bits are the priority (0-7) and the top 28 bits are the facility
- * (0-big number). Both the priorities and the facilities map roughly
- * one-to-one to strings in the syslogd(8) source code. This mapping is
- * included in this file.
- *
- * priorities (these are ordered)
- */
-#define LOG_EMERG 0 /* system is unusable */
-#define LOG_ALERT 1 /* action must be taken immediately */
-#define LOG_CRIT 2 /* critical conditions */
-#define LOG_ERR 3 /* error conditions */
-#define LOG_WARNING 4 /* warning conditions */
-#define LOG_NOTICE 5 /* normal but significant condition */
-#define LOG_INFO 6 /* informational */
-#define LOG_DEBUG 7 /* debug-level messages */
-
-#define LOG_PRIMASK 0x07 /* mask to extract priority part (internal) */
-/* extract priority */
-#define LOG_PRI(p) ((p) & LOG_PRIMASK)
-#define LOG_MAKEPRI(fac, pri) ((fac) | (pri))
-
-#ifdef SYSLOG_NAMES
-#define INTERNAL_NOPRI 0x10 /* the "no priority" priority */
-/* mark "facility" */
-#define INTERNAL_MARK LOG_MAKEPRI((LOG_NFACILITIES<<3), 0)
-typedef struct _code {
- const char *c_name;
- int c_val;
-} CODE;
-
-CODE prioritynames[] = {
- { "alert", LOG_ALERT, },
- { "crit", LOG_CRIT, },
- { "debug", LOG_DEBUG, },
- { "emerg", LOG_EMERG, },
- { "err", LOG_ERR, },
- { "error", LOG_ERR, }, /* DEPRECATED */
- { "info", LOG_INFO, },
- { "none", INTERNAL_NOPRI, }, /* INTERNAL */
- { "notice", LOG_NOTICE, },
- { "panic", LOG_EMERG, }, /* DEPRECATED */
- { "warn", LOG_WARNING, }, /* DEPRECATED */
- { "warning", LOG_WARNING, },
- { NULL, -1, }
-};
-#endif
-
-/* facility codes */
-#define LOG_KERN (0<<3) /* kernel messages */
-#define LOG_USER (1<<3) /* random user-level messages */
-#define LOG_MAIL (2<<3) /* mail system */
-#define LOG_DAEMON (3<<3) /* system daemons */
-#define LOG_AUTH (4<<3) /* authorization messages */
-#define LOG_SYSLOG (5<<3) /* messages generated internally by syslogd */
-#define LOG_LPR (6<<3) /* line printer subsystem */
-#define LOG_NEWS (7<<3) /* network news subsystem */
-#define LOG_UUCP (8<<3) /* UUCP subsystem */
-#define LOG_CRON (9<<3) /* clock daemon */
-#define LOG_AUTHPRIV (10<<3) /* authorization messages (private) */
-/* Facility #10 clashes in DEC UNIX, where */
-/* it's defined as LOG_MEGASAFE for AdvFS */
-/* event logging. */
-#define LOG_FTP (11<<3) /* ftp daemon */
-//#define LOG_NTP (12<<3) /* NTP subsystem */
-//#define LOG_SECURITY (13<<3) /* security subsystems (firewalling, etc.) */
-//#define LOG_CONSOLE (14<<3) /* /dev/console output */
-#define LOG_NETINFO (12<<3) /* NetInfo */
-#define LOG_REMOTEAUTH (13<<3) /* remote authentication/authorization */
-#define LOG_INSTALL (14<<3) /* installer subsystem */
-#define LOG_RAS (15<<3) /* Remote Access Service (VPN / PPP) */
-
-/* other codes through 15 reserved for system use */
-#define LOG_LOCAL0 (16<<3) /* reserved for local use */
-#define LOG_LOCAL1 (17<<3) /* reserved for local use */
-#define LOG_LOCAL2 (18<<3) /* reserved for local use */
-#define LOG_LOCAL3 (19<<3) /* reserved for local use */
-#define LOG_LOCAL4 (20<<3) /* reserved for local use */
-#define LOG_LOCAL5 (21<<3) /* reserved for local use */
-#define LOG_LOCAL6 (22<<3) /* reserved for local use */
-#define LOG_LOCAL7 (23<<3) /* reserved for local use */
-
-#define LOG_LAUNCHD (24<<3) /* launchd - general bootstrap daemon */
-
-#define LOG_NFACILITIES 25 /* current number of facilities */
-#define LOG_FACMASK 0x03f8 /* mask to extract facility part */
-/* facility of pri */
-#define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3)
-
-#ifdef SYSLOG_NAMES
-CODE facilitynames[] = {
- { "auth", LOG_AUTH, },
- { "authpriv", LOG_AUTHPRIV, },
- { "cron", LOG_CRON, },
- { "daemon", LOG_DAEMON, },
- { "ftp", LOG_FTP, },
- { "install", LOG_INSTALL },
- { "kern", LOG_KERN, },
- { "lpr", LOG_LPR, },
- { "mail", LOG_MAIL, },
- { "mark", INTERNAL_MARK, }, /* INTERNAL */
- { "netinfo", LOG_NETINFO, },
- { "ras", LOG_RAS },
- { "remoteauth", LOG_REMOTEAUTH },
- { "news", LOG_NEWS, },
- { "security", LOG_AUTH }, /* DEPRECATED */
- { "syslog", LOG_SYSLOG, },
- { "user", LOG_USER, },
- { "uucp", LOG_UUCP, },
- { "local0", LOG_LOCAL0, },
- { "local1", LOG_LOCAL1, },
- { "local2", LOG_LOCAL2, },
- { "local3", LOG_LOCAL3, },
- { "local4", LOG_LOCAL4, },
- { "local5", LOG_LOCAL5, },
- { "local6", LOG_LOCAL6, },
- { "local7", LOG_LOCAL7, },
- { "launchd", LOG_LAUNCHD },
- { NULL, -1, }
-};
-#endif
-
-
-/*
- * arguments to setlogmask.
- */
-#define LOG_MASK(pri) (1 << (pri)) /* mask for one priority */
-#define LOG_UPTO(pri) ((1 << ((pri)+1)) - 1) /* all priorities through pri */
-
-/*
- * Option flags for openlog.
- *
- * LOG_ODELAY no longer does anything.
- * LOG_NDELAY is the inverse of what it used to be.
- */
-#define LOG_PID 0x01 /* log the pid with each message */
-#define LOG_CONS 0x02 /* log on the console if errors in sending */
-#define LOG_ODELAY 0x04 /* delay open until first syslog() (default) */
-#define LOG_NDELAY 0x08 /* don't delay open */
-#define LOG_NOWAIT 0x10 /* don't wait for console forks: DEPRECATED */
-#define LOG_PERROR 0x20 /* log to stderr as well */
-
-
-/*
- * Don't use va_list in the vsyslog() prototype. Va_list is typedef'd in two
- * places (<machine/varargs.h> and <machine/stdarg.h>), so if we include one
- * of them here we may collide with the utility's includes. It's unreasonable
- * for utilities to have to include one of them to include syslog.h, so we get
- * __va_list from <sys/_types.h> and use it.
- */
-#include <sys/_types.h>
-
-__BEGIN_DECLS
-void closelog(void);
-void openlog(const char *, int, int);
-int setlogmask(int);
-#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-void syslog(int, const char *, ...) __DARWIN_ALIAS_STARTING(__MAC_10_13, __IPHONE_NA, __DARWIN_EXTSN(syslog)) __printflike(2, 3) __not_tail_called;
-#else
-void syslog(int, const char *, ...) __printflike(2, 3) __not_tail_called;
-#endif
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-void vsyslog(int, const char *, __darwin_va_list) __printflike(2, 0) __not_tail_called;
-#endif
-__END_DECLS
-
-#endif /* !_SYS_SYSLOG_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/termios.h b/lib/libc/include/x86_64-macos-gnu/sys/termios.h
deleted file mode 100644
index 3d7778bdff..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/termios.h
+++ /dev/null
@@ -1,366 +0,0 @@
-/*
- * 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
- */
-
-#ifndef _SYS_TERMIOS_H_
-#define _SYS_TERMIOS_H_
-
-#include <sys/cdefs.h>
-
-/*
- * Special Control Characters
- *
- * Index into c_cc[] character array.
- *
- * Name Subscript Enabled by
- */
-#define VEOF 0 /* ICANON */
-#define VEOL 1 /* ICANON */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define VEOL2 2 /* ICANON together with IEXTEN */
-#endif
-#define VERASE 3 /* ICANON */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define VWERASE 4 /* ICANON together with IEXTEN */
-#endif
-#define VKILL 5 /* ICANON */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define VREPRINT 6 /* ICANON together with IEXTEN */
-#endif
-/* 7 spare 1 */
-#define VINTR 8 /* ISIG */
-#define VQUIT 9 /* ISIG */
-#define VSUSP 10 /* ISIG */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define VDSUSP 11 /* ISIG together with IEXTEN */
-#endif
-#define VSTART 12 /* IXON, IXOFF */
-#define VSTOP 13 /* IXON, IXOFF */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define VLNEXT 14 /* IEXTEN */
-#define VDISCARD 15 /* IEXTEN */
-#endif
-#define VMIN 16 /* !ICANON */
-#define VTIME 17 /* !ICANON */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define VSTATUS 18 /* ICANON together with IEXTEN */
-/* 19 spare 2 */
-#endif
-#define NCCS 20
-
-#include <sys/_types/_posix_vdisable.h>
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define CCEQ(val, c) ((c) == (val) ? (val) != _POSIX_VDISABLE : 0)
-#endif
-
-/*
- * Input flags - software input processing
- */
-#define IGNBRK 0x00000001 /* ignore BREAK condition */
-#define BRKINT 0x00000002 /* map BREAK to SIGINTR */
-#define IGNPAR 0x00000004 /* ignore (discard) parity errors */
-#define PARMRK 0x00000008 /* mark parity and framing errors */
-#define INPCK 0x00000010 /* enable checking of parity errors */
-#define ISTRIP 0x00000020 /* strip 8th bit off chars */
-#define INLCR 0x00000040 /* map NL into CR */
-#define IGNCR 0x00000080 /* ignore CR */
-#define ICRNL 0x00000100 /* map CR to NL (ala CRMOD) */
-#define IXON 0x00000200 /* enable output flow control */
-#define IXOFF 0x00000400 /* enable input flow control */
-#define IXANY 0x00000800 /* any char will restart after stop */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define IMAXBEL 0x00002000 /* ring bell on input queue full */
-#define IUTF8 0x00004000 /* maintain state for UTF-8 VERASE */
-#endif /*(_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */
-
-/*
- * Output flags - software output processing
- */
-#define OPOST 0x00000001 /* enable following output processing */
-#define ONLCR 0x00000002 /* map NL to CR-NL (ala CRMOD) */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define OXTABS 0x00000004 /* expand tabs to spaces */
-#define ONOEOT 0x00000008 /* discard EOT's (^D) on output) */
-#endif /*(_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */
-/*
- * The following block of features is unimplemented. Use of these flags in
- * programs will currently result in unexpected behaviour.
- *
- * - Begin unimplemented features
- */
-#define OCRNL 0x00000010 /* map CR to NL on output */
-#define ONOCR 0x00000020 /* no CR output at column 0 */
-#define ONLRET 0x00000040 /* NL performs CR function */
-#define OFILL 0x00000080 /* use fill characters for delay */
-#define NLDLY 0x00000300 /* \n delay */
-#define TABDLY 0x00000c04 /* horizontal tab delay */
-#define CRDLY 0x00003000 /* \r delay */
-#define FFDLY 0x00004000 /* form feed delay */
-#define BSDLY 0x00008000 /* \b delay */
-#define VTDLY 0x00010000 /* vertical tab delay */
-#define OFDEL 0x00020000 /* fill is DEL, else NUL */
-#if !defined(_SYS_IOCTL_COMPAT_H_) || __DARWIN_UNIX03
-/*
- * 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.
- */
-#define NL0 0x00000000
-#define NL1 0x00000100
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define NL2 0x00000200
-#define NL3 0x00000300
-#endif /* (_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */
-#define TAB0 0x00000000
-#define TAB1 0x00000400
-#define TAB2 0x00000800
-/* not in sys/ioctl_compat.h, use OXTABS value */
-#define TAB3 0x00000004
-#define CR0 0x00000000
-#define CR1 0x00001000
-#define CR2 0x00002000
-#define CR3 0x00003000
-#define FF0 0x00000000
-#define FF1 0x00004000
-#define BS0 0x00000000
-#define BS1 0x00008000
-#define VT0 0x00000000
-#define VT1 0x00010000
-#endif /* !_SYS_IOCTL_COMPAT_H_ */
-/*
- * + End unimplemented features
- */
-
-/*
- * Control flags - hardware control of terminal
- */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define CIGNORE 0x00000001 /* ignore control flags */
-#endif
-#define CSIZE 0x00000300 /* character size mask */
-#define CS5 0x00000000 /* 5 bits (pseudo) */
-#define CS6 0x00000100 /* 6 bits */
-#define CS7 0x00000200 /* 7 bits */
-#define CS8 0x00000300 /* 8 bits */
-#define CSTOPB 0x00000400 /* send 2 stop bits */
-#define CREAD 0x00000800 /* enable receiver */
-#define PARENB 0x00001000 /* parity enable */
-#define PARODD 0x00002000 /* odd parity, else even */
-#define HUPCL 0x00004000 /* hang up on last close */
-#define CLOCAL 0x00008000 /* ignore modem status lines */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define CCTS_OFLOW 0x00010000 /* CTS flow control of output */
-#define CRTSCTS (CCTS_OFLOW | CRTS_IFLOW)
-#define CRTS_IFLOW 0x00020000 /* RTS flow control of input */
-#define CDTR_IFLOW 0x00040000 /* DTR flow control of input */
-#define CDSR_OFLOW 0x00080000 /* DSR flow control of output */
-#define CCAR_OFLOW 0x00100000 /* DCD flow control of output */
-#define MDMBUF 0x00100000 /* old name for CCAR_OFLOW */
-#endif
-
-
-/*
- * "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.
- */
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define ECHOKE 0x00000001 /* visual erase for line kill */
-#endif /*(_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */
-#define ECHOE 0x00000002 /* visually erase chars */
-#define ECHOK 0x00000004 /* echo NL after line kill */
-#define ECHO 0x00000008 /* enable echoing */
-#define ECHONL 0x00000010 /* echo NL even if ECHO is off */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define ECHOPRT 0x00000020 /* visual erase mode for hardcopy */
-#define ECHOCTL 0x00000040 /* echo control chars as ^(Char) */
-#endif /*(_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */
-#define ISIG 0x00000080 /* enable signals INTR, QUIT, [D]SUSP */
-#define ICANON 0x00000100 /* canonicalize input lines */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define ALTWERASE 0x00000200 /* use alternate WERASE algorithm */
-#endif /*(_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */
-#define IEXTEN 0x00000400 /* enable DISCARD and LNEXT */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define EXTPROC 0x00000800 /* external processing */
-#endif /*(_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */
-#define TOSTOP 0x00400000 /* stop background jobs from output */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define FLUSHO 0x00800000 /* output being flushed (state) */
-#define NOKERNINFO 0x02000000 /* no kernel output from VSTATUS */
-#define PENDIN 0x20000000 /* XXX retype pending input (state) */
-#endif /*(_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */
-#define NOFLSH 0x80000000 /* don't flush after interrupt */
-
-typedef unsigned long tcflag_t;
-typedef unsigned char cc_t;
-typedef unsigned long speed_t;
-
-struct termios {
- tcflag_t c_iflag; /* input flags */
- tcflag_t c_oflag; /* output flags */
- tcflag_t c_cflag; /* control flags */
- tcflag_t c_lflag; /* local flags */
- cc_t c_cc[NCCS]; /* control chars */
- speed_t c_ispeed; /* input speed */
- speed_t c_ospeed; /* output speed */
-};
-
-
-/*
- * Commands passed to tcsetattr() for setting the termios structure.
- */
-#define TCSANOW 0 /* make change immediate */
-#define TCSADRAIN 1 /* drain output, then change */
-#define TCSAFLUSH 2 /* drain output, flush input */
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define TCSASOFT 0x10 /* flag - don't alter h.w. state */
-#endif
-
-/*
- * Standard speeds
- */
-#define B0 0
-#define B50 50
-#define B75 75
-#define B110 110
-#define B134 134
-#define B150 150
-#define B200 200
-#define B300 300
-#define B600 600
-#define B1200 1200
-#define B1800 1800
-#define B2400 2400
-#define B4800 4800
-#define B9600 9600
-#define B19200 19200
-#define B38400 38400
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define B7200 7200
-#define B14400 14400
-#define B28800 28800
-#define B57600 57600
-#define B76800 76800
-#define B115200 115200
-#define B230400 230400
-#define EXTA 19200
-#define EXTB 38400
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-
-
-#define TCIFLUSH 1
-#define TCOFLUSH 2
-#define TCIOFLUSH 3
-#define TCOOFF 1
-#define TCOON 2
-#define TCIOFF 3
-#define TCION 4
-
-#include <sys/cdefs.h>
-
-__BEGIN_DECLS
-speed_t cfgetispeed(const struct termios *);
-speed_t cfgetospeed(const struct termios *);
-int cfsetispeed(struct termios *, speed_t);
-int cfsetospeed(struct termios *, speed_t);
-int tcgetattr(int, struct termios *);
-int tcsetattr(int, int, const struct termios *);
-int tcdrain(int) __DARWIN_ALIAS_C(tcdrain);
-int tcflow(int, int);
-int tcflush(int, int);
-int tcsendbreak(int, int);
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-void cfmakeraw(struct termios *);
-int cfsetspeed(struct termios *, speed_t);
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-__END_DECLS
-
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-
-/*
- * 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>.
- */
-#include <sys/ttycom.h>
-#endif
-
-/*
- * END OF PROTECTED INCLUDE.
- */
-#endif /* !_SYS_TERMIOS_H_ */
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#include <sys/ttydefaults.h>
-#endif
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/time.h b/lib/libc/include/x86_64-macos-gnu/sys/time.h
deleted file mode 100644
index 9c35edb9f1..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/time.h
+++ /dev/null
@@ -1,208 +0,0 @@
-/*
- * 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) 1995 NeXT Computer, Inc. All Rights Reserved */
-/*
- * Copyright (c) 1982, 1986, 1993
- * 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.
- *
- * @(#)time.h 8.2 (Berkeley) 7/10/94
- */
-
-#ifndef _SYS_TIME_H_
-#define _SYS_TIME_H_
-
-#include <sys/cdefs.h>
-#include <sys/_types.h>
-#include <Availability.h>
-
-/*
- * [XSI] The fd_set type shall be defined as described in <sys/select.h>.
- * The timespec structure shall be defined as described in <time.h>
- */
-#include <sys/_types/_fd_def.h>
-#include <sys/_types/_timespec.h>
-#include <sys/_types/_timeval.h>
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#include <sys/_types/_timeval64.h>
-#endif /* !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) */
-
-
-#include <sys/_types/_time_t.h>
-#include <sys/_types/_suseconds_t.h>
-
-/*
- * Structure used as a parameter by getitimer(2) and setitimer(2) system
- * calls.
- */
-struct itimerval {
- struct timeval it_interval; /* timer interval */
- struct timeval it_value; /* current value */
-};
-
-/*
- * Names of the interval timers, and structure
- * defining a timer setting.
- */
-#define ITIMER_REAL 0
-#define ITIMER_VIRTUAL 1
-#define ITIMER_PROF 2
-
-/*
- * Select uses bit masks of file descriptors in longs. These macros
- * manipulate such bit fields (the filesystem macros use chars). The
- * extra protection here is to permit application redefinition above
- * the default size.
- */
-#include <sys/_types/_fd_setsize.h>
-#include <sys/_types/_fd_set.h>
-#include <sys/_types/_fd_clr.h>
-#include <sys/_types/_fd_isset.h>
-#include <sys/_types/_fd_zero.h>
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-
-#include <sys/_types/_fd_copy.h>
-
-#define TIMEVAL_TO_TIMESPEC(tv, ts) { \
- (ts)->tv_sec = (tv)->tv_sec; \
- (ts)->tv_nsec = (tv)->tv_usec * 1000; \
-}
-#define TIMESPEC_TO_TIMEVAL(tv, ts) { \
- (tv)->tv_sec = (ts)->tv_sec; \
- (tv)->tv_usec = (ts)->tv_nsec / 1000; \
-}
-
-struct timezone {
- int tz_minuteswest; /* minutes west of Greenwich */
- int tz_dsttime; /* type of dst correction */
-};
-#define DST_NONE 0 /* not on dst */
-#define DST_USA 1 /* USA style dst */
-#define DST_AUST 2 /* Australian style dst */
-#define DST_WET 3 /* Western European dst */
-#define DST_MET 4 /* Middle European dst */
-#define DST_EET 5 /* Eastern European dst */
-#define DST_CAN 6 /* Canada */
-
-/* Operations on timevals. */
-#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
-#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
-#define timercmp(tvp, uvp, cmp) \
- (((tvp)->tv_sec == (uvp)->tv_sec) ? \
- ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
- ((tvp)->tv_sec cmp (uvp)->tv_sec))
-#define timeradd(tvp, uvp, vvp) \
- do { \
- (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
- (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
- if ((vvp)->tv_usec >= 1000000) { \
- (vvp)->tv_sec++; \
- (vvp)->tv_usec -= 1000000; \
- } \
- } while (0)
-#define timersub(tvp, uvp, vvp) \
- do { \
- (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
- (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
- if ((vvp)->tv_usec < 0) { \
- (vvp)->tv_sec--; \
- (vvp)->tv_usec += 1000000; \
- } \
- } while (0)
-
-#define timevalcmp(l, r, cmp) timercmp(l, r, cmp) /* freebsd */
-
-/*
- * Getkerninfo clock information structure
- */
-struct clockinfo {
- int hz; /* clock frequency */
- int tick; /* micro-seconds per hz tick */
- int tickadj; /* clock skew rate for adjtime() */
- int stathz; /* statistics clock frequency */
- int profhz; /* profiling clock frequency */
-};
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-
-
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#include <time.h>
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-
-__BEGIN_DECLS
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-int adjtime(const struct timeval *, struct timeval *);
-int futimes(int, const struct timeval *);
-int lutimes(const char *, const struct timeval *) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
-int settimeofday(const struct timeval *, const struct timezone *);
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-
-int getitimer(int, struct itimerval *);
-int gettimeofday(struct timeval * __restrict, void * __restrict);
-
-#include <sys/_select.h> /* select() prototype */
-
-int setitimer(int, const struct itimerval * __restrict,
- struct itimerval * __restrict);
-int utimes(const char *, const struct timeval *);
-
-__END_DECLS
-
-
-#endif /* !_SYS_TIME_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/times.h b/lib/libc/include/x86_64-macos-gnu/sys/times.h
deleted file mode 100644
index 3fc3000281..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/times.h
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * 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) 1990, 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.
- *
- * @(#)times.h 8.4 (Berkeley) 1/21/94
- */
-
-#ifndef _SYS_TIMES_H_
-#define _SYS_TIMES_H_
-
-#include <sys/appleapiopts.h>
-#include <sys/cdefs.h>
-#include <sys/_types.h>
-
-/* [XSI] The clock_t type shall be defined as described in <sys/types.h> */
-#include <sys/_types/_clock_t.h>
-
-/*
- * [XSI] Structure whose address is passed as the first parameter to times()
- */
-struct tms {
- clock_t tms_utime; /* [XSI] User CPU time */
- clock_t tms_stime; /* [XSI] System CPU time */
- clock_t tms_cutime; /* [XSI] Terminated children user CPU time */
- clock_t tms_cstime; /* [XSI] Terminated children System CPU time */
-};
-
-__BEGIN_DECLS
-clock_t times(struct tms *);
-__END_DECLS
-#endif /* !_SYS_TIMES_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/ttycom.h b/lib/libc/include/x86_64-macos-gnu/sys/ttycom.h
deleted file mode 100644
index 547dd3c180..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/ttycom.h
+++ /dev/null
@@ -1,173 +0,0 @@
-/*
- * 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
- */
-
-#ifndef _SYS_TTYCOM_H_
-#define _SYS_TTYCOM_H_
-
-#include <sys/ioccom.h>
-/*
- * 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.
- */
-struct winsize {
- unsigned short ws_row; /* rows, in characters */
- unsigned short ws_col; /* columns, in characters */
- unsigned short ws_xpixel; /* horizontal size, pixels */
- unsigned short ws_ypixel; /* vertical size, pixels */
-};
-
-#define TIOCMODG _IOR('t', 3, int) /* get modem control state */
-#define TIOCMODS _IOW('t', 4, int) /* set modem control state */
-#define TIOCM_LE 0001 /* line enable */
-#define TIOCM_DTR 0002 /* data terminal ready */
-#define TIOCM_RTS 0004 /* request to send */
-#define TIOCM_ST 0010 /* secondary transmit */
-#define TIOCM_SR 0020 /* secondary receive */
-#define TIOCM_CTS 0040 /* clear to send */
-#define TIOCM_CAR 0100 /* carrier detect */
-#define TIOCM_CD TIOCM_CAR
-#define TIOCM_RNG 0200 /* ring */
-#define TIOCM_RI TIOCM_RNG
-#define TIOCM_DSR 0400 /* data set ready */
- /* 8-10 compat */
-#define TIOCEXCL _IO('t', 13) /* set exclusive use of tty */
-#define TIOCNXCL _IO('t', 14) /* reset exclusive use of tty */
- /* 15 unused */
-#define TIOCFLUSH _IOW('t', 16, int) /* flush buffers */
- /* 17-18 compat */
-#define TIOCGETA _IOR('t', 19, struct termios) /* get termios struct */
-#define TIOCSETA _IOW('t', 20, struct termios) /* set termios struct */
-#define TIOCSETAW _IOW('t', 21, struct termios) /* drain output, set */
-#define TIOCSETAF _IOW('t', 22, struct termios) /* drn out, fls in, set */
-#define TIOCGETD _IOR('t', 26, int) /* get line discipline */
-#define TIOCSETD _IOW('t', 27, int) /* set line discipline */
-#define TIOCIXON _IO('t', 129) /* internal input VSTART */
-#define TIOCIXOFF _IO('t', 128) /* internal input VSTOP */
- /* 127-124 compat */
-#define TIOCSBRK _IO('t', 123) /* set break bit */
-#define TIOCCBRK _IO('t', 122) /* clear break bit */
-#define TIOCSDTR _IO('t', 121) /* set data terminal ready */
-#define TIOCCDTR _IO('t', 120) /* clear data terminal ready */
-#define TIOCGPGRP _IOR('t', 119, int) /* get pgrp of tty */
-#define TIOCSPGRP _IOW('t', 118, int) /* set pgrp of tty */
- /* 117-116 compat */
-#define TIOCOUTQ _IOR('t', 115, int) /* output queue size */
-#define TIOCSTI _IOW('t', 114, char) /* simulate terminal input */
-#define TIOCNOTTY _IO('t', 113) /* void tty association */
-#define TIOCPKT _IOW('t', 112, int) /* pty: set/clear packet mode */
-#define TIOCPKT_DATA 0x00 /* data packet */
-#define TIOCPKT_FLUSHREAD 0x01 /* flush packet */
-#define TIOCPKT_FLUSHWRITE 0x02 /* flush packet */
-#define TIOCPKT_STOP 0x04 /* stop output */
-#define TIOCPKT_START 0x08 /* start output */
-#define TIOCPKT_NOSTOP 0x10 /* no more ^S, ^Q */
-#define TIOCPKT_DOSTOP 0x20 /* now do ^S ^Q */
-#define TIOCPKT_IOCTL 0x40 /* state change of pty driver */
-#define TIOCSTOP _IO('t', 111) /* stop output, like ^S */
-#define TIOCSTART _IO('t', 110) /* start output, like ^Q */
-#define TIOCMSET _IOW('t', 109, int) /* set all modem bits */
-#define TIOCMBIS _IOW('t', 108, int) /* bis modem bits */
-#define TIOCMBIC _IOW('t', 107, int) /* bic modem bits */
-#define TIOCMGET _IOR('t', 106, int) /* get all modem bits */
-#define TIOCREMOTE _IOW('t', 105, int) /* remote input editing */
-#define TIOCGWINSZ _IOR('t', 104, struct winsize) /* get window size */
-#define TIOCSWINSZ _IOW('t', 103, struct winsize) /* set window size */
-#define TIOCUCNTL _IOW('t', 102, int) /* pty: set/clr usr cntl mode */
-#define TIOCSTAT _IO('t', 101) /* simulate ^T status message */
-#define UIOCCMD(n) _IO('u', n) /* usr cntl op "n" */
-#define TIOCSCONS _IO('t', 99) /* 4.2 compatibility */
-#define TIOCCONS _IOW('t', 98, int) /* become virtual console */
-#define TIOCSCTTY _IO('t', 97) /* become controlling tty */
-#define TIOCEXT _IOW('t', 96, int) /* pty: external processing */
-#define TIOCSIG _IO('t', 95) /* pty: generate signal */
-#define TIOCDRAIN _IO('t', 94) /* wait till output drained */
-#define TIOCMSDTRWAIT _IOW('t', 91, int) /* modem: set wait on close */
-#define TIOCMGDTRWAIT _IOR('t', 90, int) /* modem: get wait on close */
-#define TIOCTIMESTAMP _IOR('t', 89, struct timeval) /* enable/get timestamp
- * of last input event */
-#define TIOCDCDTIMESTAMP _IOR('t', 88, struct timeval) /* enable/get timestamp
- * of last DCd rise */
-#define TIOCSDRAINWAIT _IOW('t', 87, int) /* set ttywait timeout */
-#define TIOCGDRAINWAIT _IOR('t', 86, int) /* get ttywait timeout */
-#define TIOCDSIMICROCODE _IO('t', 85) /* download microcode to
- * DSI Softmodem */
-#define TIOCPTYGRANT _IO('t', 84) /* grantpt(3) */
-#define TIOCPTYGNAME _IOC(IOC_OUT, 't', 83, 128) /* ptsname(3) */
-#define TIOCPTYUNLK _IO('t', 82) /* unlockpt(3) */
-
-#define TTYDISC 0 /* termios tty line discipline */
-#define TABLDISC 3 /* tablet discipline */
-#define SLIPDISC 4 /* serial IP discipline */
-#define PPPDISC 5 /* PPP discipline */
-
-#endif /* !_SYS_TTYCOM_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/ttydefaults.h b/lib/libc/include/x86_64-macos-gnu/sys/ttydefaults.h
deleted file mode 100644
index eed46dded2..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/ttydefaults.h
+++ /dev/null
@@ -1,124 +0,0 @@
-/*
- * 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.
- */
-#ifndef _SYS_TTYDEFAULTS_H_
-#define _SYS_TTYDEFAULTS_H_
-
-/*
- * Defaults on "first" open.
- */
-#define TTYDEF_IFLAG (BRKINT | ICRNL | IMAXBEL | IXON | IXANY)
-#define TTYDEF_OFLAG (OPOST | ONLCR)
-#define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
-#define TTYDEF_CFLAG (CREAD | CS8 | HUPCL)
-#define TTYDEF_SPEED (B9600)
-
-/*
- * Control Character Defaults
- */
-#define CTRL(x) (x&037)
-#define CEOF CTRL('d')
-#define CEOL 0xff /* XXX avoid _POSIX_VDISABLE */
-#define CERASE 0177
-#define CINTR CTRL('c')
-#define CSTATUS CTRL('t')
-#define CKILL CTRL('u')
-#define CMIN 1
-#define CQUIT 034 /* FS, ^\ */
-#define CSUSP CTRL('z')
-#define CTIME 0
-#define CDSUSP CTRL('y')
-#define CSTART CTRL('q')
-#define CSTOP CTRL('s')
-#define CLNEXT CTRL('v')
-#define CDISCARD CTRL('o')
-#define CWERASE CTRL('w')
-#define CREPRINT CTRL('r')
-#define CEOT CEOF
-/* compat */
-#define CBRK CEOL
-#define CRPRNT CREPRINT
-#define CFLUSH CDISCARD
-
-/* PROTECTED INCLUSION ENDS HERE */
-#endif /* !_SYS_TTYDEFAULTS_H_ */
-
-/*
- * #define TTYDEFCHARS to include an array of default control characters.
- */
-#ifdef TTYDEFCHARS
-static cc_t ttydefchars[NCCS] = {
- CEOF, CEOL, CEOL, CERASE, CWERASE, CKILL, CREPRINT,
- _POSIX_VDISABLE, CINTR, CQUIT, CSUSP, CDSUSP, CSTART, CSTOP, CLNEXT,
- CDISCARD, CMIN, CTIME, CSTATUS, _POSIX_VDISABLE
-};
-#undef TTYDEFCHARS
-#endif
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/types.h b/lib/libc/include/x86_64-macos-gnu/sys/types.h
deleted file mode 100644
index 6e06f7dee5..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/types.h
+++ /dev/null
@@ -1,235 +0,0 @@
-/*
- * Copyright (c) 2000-2008 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) 1995 NeXT Computer, Inc. All Rights Reserved */
-/*
- * Copyright (c) 1982, 1986, 1991, 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.
- *
- * @(#)types.h 8.4 (Berkeley) 1/21/94
- */
-
-#ifndef _SYS_TYPES_H_
-#define _SYS_TYPES_H_
-
-#include <sys/appleapiopts.h>
-
-#ifndef __ASSEMBLER__
-#include <sys/cdefs.h>
-
-/* Machine type dependent parameters. */
-#include <machine/types.h>
-#include <sys/_types.h>
-
-#include <machine/endian.h>
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#include <sys/_types/_u_char.h>
-#include <sys/_types/_u_short.h>
-#include <sys/_types/_u_int.h>
-#ifndef _U_LONG
-typedef unsigned long u_long;
-#define _U_LONG
-#endif
-typedef unsigned short ushort; /* Sys V compatibility */
-typedef unsigned int uint; /* Sys V compatibility */
-#endif
-
-typedef u_int64_t u_quad_t; /* quads */
-typedef int64_t quad_t;
-typedef quad_t * qaddr_t;
-
-#include <sys/_types/_caddr_t.h> /* core address */
-
-typedef int32_t daddr_t; /* disk address */
-
-#include <sys/_types/_dev_t.h> /* device number */
-
-typedef u_int32_t fixpt_t; /* fixed point number */
-
-#include <sys/_types/_blkcnt_t.h>
-#include <sys/_types/_blksize_t.h>
-#include <sys/_types/_gid_t.h>
-#include <sys/_types/_in_addr_t.h>
-#include <sys/_types/_in_port_t.h>
-#include <sys/_types/_ino_t.h>
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#include <sys/_types/_ino64_t.h> /* 64bit inode number */
-#endif /* !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) */
-
-#include <sys/_types/_key_t.h>
-#include <sys/_types/_mode_t.h>
-#include <sys/_types/_nlink_t.h>
-#include <sys/_types/_id_t.h>
-#include <sys/_types/_pid_t.h>
-#include <sys/_types/_off_t.h>
-
-typedef int32_t segsz_t; /* segment size */
-typedef int32_t swblk_t; /* swap offset */
-
-#include <sys/_types/_uid_t.h>
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-/* Major, minor numbers, dev_t's. */
-#if defined(__cplusplus)
-/*
- * These lowercase macros tend to match member functions in some C++ code,
- * so for C++, we must use inline functions instead.
- */
-
-static inline __int32_t
-major(__uint32_t _x)
-{
- return (__int32_t)(((__uint32_t)_x >> 24) & 0xff);
-}
-
-static inline __int32_t
-minor(__uint32_t _x)
-{
- return (__int32_t)((_x) & 0xffffff);
-}
-
-static inline dev_t
-makedev(__uint32_t _major, __uint32_t _minor)
-{
- return (dev_t)(((_major) << 24) | (_minor));
-}
-
-#else /* !__cplusplus */
-
-#define major(x) ((int32_t)(((u_int32_t)(x) >> 24) & 0xff))
-#define minor(x) ((int32_t)((x) & 0xffffff))
-#define makedev(x, y) ((dev_t)(((x) << 24) | (y)))
-
-#endif /* !__cplusplus */
-#endif /* !_POSIX_C_SOURCE */
-
-#include <sys/_types/_clock_t.h>
-#include <sys/_types/_size_t.h>
-#include <sys/_types/_ssize_t.h>
-#include <sys/_types/_time_t.h>
-
-#include <sys/_types/_useconds_t.h>
-#include <sys/_types/_suseconds_t.h>
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#include <sys/_types/_rsize_t.h>
-#include <sys/_types/_errno_t.h>
-#endif
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-/*
- * This code is present here in order to maintain historical backward
- * compatability, and is intended to be removed at some point in the
- * future; please include <sys/select.h> instead.
- */
-#include <sys/_types/_fd_def.h>
-
-#define NBBY __DARWIN_NBBY /* bits in a byte */
-#define NFDBITS __DARWIN_NFDBITS /* bits per mask */
-#define howmany(x, y) __DARWIN_howmany(x, y) /* # y's == x bits? */
-typedef __int32_t fd_mask;
-
-/*
- * Select uses bit masks of file descriptors in longs. These macros
- * manipulate such bit fields (the filesystem macros use chars). The
- * extra protection here is to permit application redefinition above
- * the default size.
- */
-#include <sys/_types/_fd_setsize.h>
-#include <sys/_types/_fd_set.h>
-#include <sys/_types/_fd_clr.h>
-#include <sys/_types/_fd_zero.h>
-#include <sys/_types/_fd_isset.h>
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#include <sys/_types/_fd_copy.h>
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-
-
-
-#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-#endif /* __ASSEMBLER__ */
-
-
-#ifndef __POSIX_LIB__
-
-#include <sys/_pthread/_pthread_attr_t.h>
-#include <sys/_pthread/_pthread_cond_t.h>
-#include <sys/_pthread/_pthread_condattr_t.h>
-#include <sys/_pthread/_pthread_mutex_t.h>
-#include <sys/_pthread/_pthread_mutexattr_t.h>
-#include <sys/_pthread/_pthread_once_t.h>
-#include <sys/_pthread/_pthread_rwlock_t.h>
-#include <sys/_pthread/_pthread_rwlockattr_t.h>
-#include <sys/_pthread/_pthread_t.h>
-
-#endif /* __POSIX_LIB__ */
-
-#include <sys/_pthread/_pthread_key_t.h>
-
-
-/* statvfs and fstatvfs */
-
-#include <sys/_types/_fsblkcnt_t.h>
-#include <sys/_types/_fsfilcnt_t.h>
-
-#endif /* !_SYS_TYPES_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/ucred.h b/lib/libc/include/x86_64-macos-gnu/sys/ucred.h
deleted file mode 100644
index 1a4c10dd88..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/ucred.h
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * Copyright (c) 2000-2004 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, 1997 Apple Computer, Inc. All Rights Reserved */
-/*
- * Copyright (c) 1989, 1993
- * 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.
- *
- * @(#)ucred.h 8.4 (Berkeley) 1/9/95
- */
-/*
- * NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
- * support for mandatory and extensible security protections. This notice
- * is included in support of clause 2.2 (b) of the Apple Public License,
- * Version 2.0.
- */
-
-#ifndef _SYS_UCRED_H_
-#define _SYS_UCRED_H_
-
-#include <sys/appleapiopts.h>
-#include <sys/cdefs.h>
-#include <sys/param.h>
-#include <bsm/audit.h>
-
-struct label;
-
-#ifdef __APPLE_API_UNSTABLE
-struct ucred;
-struct posix_cred;
-
-#ifndef _KAUTH_CRED_T
-#define _KAUTH_CRED_T
-typedef struct ucred *kauth_cred_t;
-typedef struct posix_cred *posix_cred_t;
-#endif /* !_KAUTH_CRED_T */
-
-/*
- * Credential flags that can be set on a credential
- */
-#define CRF_NOMEMBERD 0x00000001 /* memberd opt out by setgroups() */
-#define CRF_MAC_ENFORCE 0x00000002 /* force entry through MAC Framework */
- /* also forces credential cache miss */
-
-/*
- * This is the external representation of struct ucred.
- */
-struct xucred {
- u_int cr_version; /* structure layout version */
- uid_t cr_uid; /* effective user id */
- short cr_ngroups; /* number of advisory groups */
- gid_t cr_groups[NGROUPS]; /* advisory group list */
-};
-#define XUCRED_VERSION 0
-
-#define cr_gid cr_groups[0]
-#define NOCRED ((kauth_cred_t )0) /* no credential available */
-#define FSCRED ((kauth_cred_t )-1) /* filesystem credential */
-
-#define IS_VALID_CRED(_cr) ((_cr) != NOCRED && (_cr) != FSCRED)
-
-#endif /* __APPLE_API_UNSTABLE */
-
-#endif /* !_SYS_UCRED_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/uio.h b/lib/libc/include/x86_64-macos-gnu/sys/uio.h
index 40305923fa..a5b1bad7cf 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/uio.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/uio.h
@@ -97,4 +97,4 @@ ssize_t readv(int, const struct iovec *, int) __DARWIN_ALIAS_C(readv);
ssize_t writev(int, const struct iovec *, int) __DARWIN_ALIAS_C(writev);
__END_DECLS
-#endif /* !_SYS_UIO_H_ */
+#endif /* !_SYS_UIO_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/un.h b/lib/libc/include/x86_64-macos-gnu/sys/un.h
index 93d37f9e6e..a27ead5406 100644
--- a/lib/libc/include/x86_64-macos-gnu/sys/un.h
+++ b/lib/libc/include/x86_64-macos-gnu/sys/un.h
@@ -102,4 +102,4 @@ struct sockaddr_un {
#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
-#endif /* !_SYS_UN_H_ */
+#endif /* !_SYS_UN_H_ */ \ No newline at end of file
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/unistd.h b/lib/libc/include/x86_64-macos-gnu/sys/unistd.h
deleted file mode 100644
index e8105ea007..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/unistd.h
+++ /dev/null
@@ -1,218 +0,0 @@
-/*
- * Copyright (c) 2000-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) 1995 NeXT Computer, Inc. All Rights Reserved */
-/*
- * Copyright (c) 1989, 1993
- * 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.
- *
- * @(#)unistd.h 8.2 (Berkeley) 1/7/94
- */
-
-#ifndef _SYS_UNISTD_H_
-#define _SYS_UNISTD_H_
-
-#include <sys/cdefs.h>
-
-/*
- * Although we have saved user/group IDs, we do not use them in setuid
- * as described in POSIX 1003.1, because the feature does not work for
- * root. We use the saved IDs in seteuid/setegid, which are not currently
- * part of the POSIX 1003.1 specification.
- */
-#ifdef _NOT_AVAILABLE
-#define _POSIX_SAVED_IDS /* saved set-user-ID and set-group-ID */
-#endif
-
-#define _POSIX_VERSION 200112L
-#define _POSIX2_VERSION 200112L
-
-/* execution-time symbolic constants */
-/* may disable terminal special characters */
-#include <sys/_types/_posix_vdisable.h>
-
-#define _POSIX_THREAD_KEYS_MAX 128
-
-/* access function */
-#define F_OK 0 /* test for existence of file */
-#define X_OK (1<<0) /* test for execute or search permission */
-#define W_OK (1<<1) /* test for write permission */
-#define R_OK (1<<2) /* test for read permission */
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-/*
- * Extended access functions.
- * Note that we depend on these matching the definitions in sys/kauth.h,
- * but with the bits shifted left by 8.
- */
-#define _READ_OK (1<<9) /* read file data / read directory */
-#define _WRITE_OK (1<<10) /* write file data / add file to directory */
-#define _EXECUTE_OK (1<<11) /* execute file / search in directory*/
-#define _DELETE_OK (1<<12) /* delete file / delete directory */
-#define _APPEND_OK (1<<13) /* append to file / add subdirectory to directory */
-#define _RMFILE_OK (1<<14) /* - / remove file from directory */
-#define _RATTR_OK (1<<15) /* read basic attributes */
-#define _WATTR_OK (1<<16) /* write basic attributes */
-#define _REXT_OK (1<<17) /* read extended attributes */
-#define _WEXT_OK (1<<18) /* write extended attributes */
-#define _RPERM_OK (1<<19) /* read permissions */
-#define _WPERM_OK (1<<20) /* write permissions */
-#define _CHOWN_OK (1<<21) /* change ownership */
-
-#define _ACCESS_EXTENDED_MASK (_READ_OK | _WRITE_OK | _EXECUTE_OK | \
- _DELETE_OK | _APPEND_OK | \
- _RMFILE_OK | _REXT_OK | \
- _WEXT_OK | _RATTR_OK | _WATTR_OK | _RPERM_OK | \
- _WPERM_OK | _CHOWN_OK)
-#endif
-
-/* whence values for lseek(2) */
-#include <sys/_types/_seek_set.h>
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-/* whence values for lseek(2); renamed by POSIX 1003.1 */
-#define L_SET SEEK_SET
-#define L_INCR SEEK_CUR
-#define L_XTND SEEK_END
-#endif
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-struct accessx_descriptor {
- unsigned int ad_name_offset;
- int ad_flags;
- int ad_pad[2];
-};
-#define ACCESSX_MAX_DESCRIPTORS 100
-#define ACCESSX_MAX_TABLESIZE (16 * 1024)
-#endif
-
-/* configurable pathname variables */
-#define _PC_LINK_MAX 1
-#define _PC_MAX_CANON 2
-#define _PC_MAX_INPUT 3
-#define _PC_NAME_MAX 4
-#define _PC_PATH_MAX 5
-#define _PC_PIPE_BUF 6
-#define _PC_CHOWN_RESTRICTED 7
-#define _PC_NO_TRUNC 8
-#define _PC_VDISABLE 9
-
-#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
-#define _PC_NAME_CHARS_MAX 10
-#define _PC_CASE_SENSITIVE 11
-#define _PC_CASE_PRESERVING 12
-#define _PC_EXTENDED_SECURITY_NP 13
-#define _PC_AUTH_OPAQUE_NP 14
-#endif
-
-#define _PC_2_SYMLINKS 15 /* Symlink supported in directory */
-#define _PC_ALLOC_SIZE_MIN 16 /* Minimum storage actually allocated */
-#define _PC_ASYNC_IO 17 /* Async I/O [AIO] supported? */
-#define _PC_FILESIZEBITS 18 /* # of bits to represent file size */
-#define _PC_PRIO_IO 19 /* Priority I/O [PIO] supported? */
-#define _PC_REC_INCR_XFER_SIZE 20 /* Recommended increment for next two */
-#define _PC_REC_MAX_XFER_SIZE 21 /* Recommended max file transfer size */
-#define _PC_REC_MIN_XFER_SIZE 22 /* Recommended min file transfer size */
-#define _PC_REC_XFER_ALIGN 23 /* Recommended buffer alignment */
-#define _PC_SYMLINK_MAX 24 /* Max # of bytes in symlink name */
-#define _PC_SYNC_IO 25 /* Sync I/O [SIO] supported? */
-#define _PC_XATTR_SIZE_BITS 26 /* # of bits to represent maximum xattr size */
-#define _PC_MIN_HOLE_SIZE 27 /* Recommended minimum hole size for sparse files */
-
-/* configurable system strings */
-#define _CS_PATH 1
-
-#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
-
-#include <machine/_types.h>
-#include <sys/_types/_size_t.h>
-#include <_types/_uint64_t.h>
-#include <_types/_uint32_t.h>
-#include <Availability.h>
-
-__BEGIN_DECLS
-
-int getattrlistbulk(int, void *, void *, size_t, uint64_t) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
-int getattrlistat(int, const char *, void *, void *, size_t, unsigned long) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
-int setattrlistat(int, const char *, void *, void *, size_t, uint32_t) __OSX_AVAILABLE(10.13) __IOS_AVAILABLE(11.0) __TVOS_AVAILABLE(11.0) __WATCHOS_AVAILABLE(4.0);
-
-__END_DECLS
-
-#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
-
-#if __DARWIN_C_LEVEL >= 200809L
-
-#include <machine/_types.h>
-#include <sys/_types/_size_t.h>
-#include <sys/_types/_ssize_t.h>
-#include <sys/_types.h>
-#include <sys/_types/_uid_t.h>
-#include <sys/_types/_gid_t.h>
-#include <Availability.h>
-
-__BEGIN_DECLS
-
-int faccessat(int, const char *, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
-int fchownat(int, const char *, uid_t, gid_t, int) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
-int linkat(int, const char *, int, const char *, int) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
-ssize_t readlinkat(int, const char *, char *, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
-int symlinkat(const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
-int unlinkat(int, const char *, int) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
-
-__END_DECLS
-
-#endif /* __DARWIN_C_LEVEL >= 200809L */
-
-#endif /* !_SYS_UNISTD_H_ */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/utsname.h b/lib/libc/include/x86_64-macos-gnu/sys/utsname.h
deleted file mode 100644
index b4ae9f4c49..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/utsname.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * 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 1993,1995 NeXT Computer Inc. All Rights Reserved */
-/*-
- * Copyright (c) 1994
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Chuck Karish of Mindcraft, 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.
- *
- * @(#)utsname.h 8.1 (Berkeley) 1/4/94
- */
-
-#ifndef _SYS_UTSNAME_H
-#define _SYS_UTSNAME_H
-
-#include <sys/cdefs.h>
-
-#define _SYS_NAMELEN 256
-
-struct utsname {
- char sysname[_SYS_NAMELEN]; /* [XSI] Name of OS */
- char nodename[_SYS_NAMELEN]; /* [XSI] Name of this network node */
- char release[_SYS_NAMELEN]; /* [XSI] Release level */
- char version[_SYS_NAMELEN]; /* [XSI] Version level */
- char machine[_SYS_NAMELEN]; /* [XSI] Hardware type */
-};
-
-__BEGIN_DECLS
-int uname(struct utsname *);
-__END_DECLS
-
-#endif /* !_SYS_UTSNAME_H */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/vm.h b/lib/libc/include/x86_64-macos-gnu/sys/vm.h
deleted file mode 100644
index 52152e8a8b..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/vm.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * 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) 1995 NeXT Computer, Inc. All Rights Reserved */
-/*
- * Copyright (c) 1991, 1993
- * 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.
- *
- * @(#)vm.h 8.5 (Berkeley) 5/11/95
- */
-/* HISTORY
- * 05-Jun-95 Mac Gillon (mgillon) at NeXT
- * 4.4 code uses this file to import MACH API
- */
-
-#ifndef _SYS_VM_H
-#define _SYS_VM_H
-
-#include <sys/appleapiopts.h>
-#include <sys/cdefs.h>
-
-
-#include <sys/_types/_caddr_t.h> /* caddr_t */
-#include <sys/_types/_int32_t.h> /* int32_t */
-
-/* just to keep kinfo_proc happy */
-/* NOTE: Pointer fields are size variant for LP64 */
-struct vmspace {
- int32_t dummy;
- caddr_t dummy2;
- int32_t dummy3[5];
- caddr_t dummy4[3];
-};
-
-
-
-#endif /* _SYS_VM_H */
diff --git a/lib/libc/include/x86_64-macos-gnu/sys/wait.h b/lib/libc/include/x86_64-macos-gnu/sys/wait.h
deleted file mode 100644
index e3cbb5833f..0000000000
--- a/lib/libc/include/x86_64-macos-gnu/sys/wait.h
+++ /dev/null
@@ -1,258 +0,0 @@
-/*
- * 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, 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.
- *
- * @(#)wait.h 8.2 (Berkeley) 7/10/94
- */
-
-#ifndef _SYS_WAIT_H_
-#define _SYS_WAIT_H_
-
-#include <sys/cdefs.h>
-#include <sys/_types.h>
-
-/*
- * This file holds definitions relevent to the wait4 system call
- * and the alternate interfaces that use it (wait, wait3, waitpid).
- */
-
-/*
- * [XSI] The type idtype_t shall be defined as an enumeration type whose
- * possible values shall include at least P_ALL, P_PID, and P_PGID.
- */
-typedef enum {
- P_ALL,
- P_PID,
- P_PGID
-} idtype_t;
-
-/*
- * [XSI] The id_t and pid_t types shall be defined as described
- * in <sys/types.h>
- */
-#include <sys/_types/_pid_t.h>
-#include <sys/_types/_id_t.h>
-
-/*
- * [XSI] The siginfo_t type shall be defined as described in <signal.h>
- * [XSI] The rusage structure shall be defined as described in <sys/resource.h>
- * [XSI] Inclusion of the <sys/wait.h> header may also make visible all
- * symbols from <signal.h> and <sys/resource.h>
- *
- * NOTE: This requirement is currently being satisfied by the direct
- * inclusion of <sys/signal.h> and <sys/resource.h>, below.
- *
- * Software should not depend on the exposure of anything other
- * than the types siginfo_t and struct rusage as a result of
- * this inclusion. If you depend on any types or manifest
- * values othe than siginfo_t and struct rusage from either of
- * those files, you should explicitly include them yourself, as
- * well, or in future releases your stware may not compile
- * without modification.
- */
-#include <sys/signal.h> /* [XSI] for siginfo_t */
-#include <sys/resource.h> /* [XSI] for struct rusage */
-
-/*
- * Option bits for the third argument of wait4. WNOHANG causes the
- * wait to not hang if there are no stopped or terminated processes, rather
- * returning an error indication in this case (pid==0). WUNTRACED
- * indicates that the caller should receive status about untraced children
- * which stop due to signals. If children are stopped and a wait without
- * this option is done, it is as though they were still running... nothing
- * about them is returned.
- */
-#define WNOHANG 0x00000001 /* [XSI] no hang in wait/no child to reap */
-#define WUNTRACED 0x00000002 /* [XSI] notify on stop, untraced child */
-
-/*
- * Macros to test the exit status returned by wait
- * and extract the relevant values.
- */
-#if defined(_POSIX_C_SOURCE) && !defined(_DARWIN_C_SOURCE)
-#define _W_INT(i) (i)
-#else
-#define _W_INT(w) (*(int *)&(w)) /* convert union wait to int */
-#define WCOREFLAG 0200
-#endif /* (_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */
-
-/* These macros are permited, as they are in the implementation namespace */
-#define _WSTATUS(x) (_W_INT(x) & 0177)
-#define _WSTOPPED 0177 /* _WSTATUS if process is stopped */
-
-/*
- * [XSI] The <sys/wait.h> header shall define the following macros for
- * analysis of process status values
- */
-#if __DARWIN_UNIX03
-#define WEXITSTATUS(x) ((_W_INT(x) >> 8) & 0x000000ff)
-#else /* !__DARWIN_UNIX03 */
-#define WEXITSTATUS(x) (_W_INT(x) >> 8)
-#endif /* !__DARWIN_UNIX03 */
-/* 0x13 == SIGCONT */
-#define WSTOPSIG(x) (_W_INT(x) >> 8)
-#define WIFCONTINUED(x) (_WSTATUS(x) == _WSTOPPED && WSTOPSIG(x) == 0x13)
-#define WIFSTOPPED(x) (_WSTATUS(x) == _WSTOPPED && WSTOPSIG(x) != 0x13)
-#define WIFEXITED(x) (_WSTATUS(x) == 0)
-#define WIFSIGNALED(x) (_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0)
-#define WTERMSIG(x) (_WSTATUS(x))
-#if (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
-#define WCOREDUMP(x) (_W_INT(x) & WCOREFLAG)
-
-#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
-#define W_STOPCODE(sig) ((sig) << 8 | _WSTOPPED)
-#endif /* (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) */
-
-/*
- * [XSI] The following symbolic constants shall be defined as possible
- * values for the fourth argument to waitid().
- */
-/* WNOHANG already defined for wait4() */
-/* WUNTRACED defined for wait4() but not for waitid() */
-#define WEXITED 0x00000004 /* [XSI] Processes which have exitted */
-#if __DARWIN_UNIX03
-/* waitid() parameter */
-#define WSTOPPED 0x00000008 /* [XSI] Any child stopped by signal */
-#endif
-#define WCONTINUED 0x00000010 /* [XSI] Any child stopped then continued */
-#define WNOWAIT 0x00000020 /* [XSI] Leave process returned waitable */
-
-
-#if (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
-/* POSIX extensions and 4.2/4.3 compatability: */
-
-/*
- * Tokens for special values of the "pid" parameter to wait4.
- */
-#define WAIT_ANY (-1) /* any process */
-#define WAIT_MYPGRP 0 /* any process in my process group */
-
-#include <machine/endian.h>
-
-/*
- * Deprecated:
- * Structure of the information in the status word returned by wait4.
- * If w_stopval==_WSTOPPED, then the second structure describes
- * the information returned, else the first.
- */
-union wait {
- int w_status; /* used in syscall */
- /*
- * Terminated process status.
- */
- struct {
-#if __DARWIN_BYTE_ORDER == __DARWIN_LITTLE_ENDIAN
- unsigned int w_Termsig:7, /* termination signal */
- w_Coredump:1, /* core dump indicator */
- w_Retcode:8, /* exit code if w_termsig==0 */
- w_Filler:16; /* upper bits filler */
-#endif
-#if __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN
- unsigned int w_Filler:16, /* upper bits filler */
- w_Retcode:8, /* exit code if w_termsig==0 */
- w_Coredump:1, /* core dump indicator */
- w_Termsig:7; /* termination signal */
-#endif
- } w_T;
- /*
- * Stopped process status. Returned
- * only for traced children unless requested
- * with the WUNTRACED option bit.
- */
- struct {
-#if __DARWIN_BYTE_ORDER == __DARWIN_LITTLE_ENDIAN
- unsigned int w_Stopval:8, /* == W_STOPPED if stopped */
- w_Stopsig:8, /* signal that stopped us */
- w_Filler:16; /* upper bits filler */
-#endif
-#if __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN
- unsigned int w_Filler:16, /* upper bits filler */
- w_Stopsig:8, /* signal that stopped us */
- w_Stopval:8; /* == W_STOPPED if stopped */
-#endif
- } w_S;
-};
-#define w_termsig w_T.w_Termsig
-#define w_coredump w_T.w_Coredump
-#define w_retcode w_T.w_Retcode
-#define w_stopval w_S.w_Stopval
-#define w_stopsig w_S.w_Stopsig
-
-#endif /* (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) */
-
-#if !(__DARWIN_UNIX03 - 0)
-/*
- * Stopped state value; cannot use waitid() parameter of the same name
- * in the same scope
- */
-#define WSTOPPED _WSTOPPED
-#endif /* !__DARWIN_UNIX03 */
-
-__BEGIN_DECLS
-pid_t wait(int *) __DARWIN_ALIAS_C(wait);
-pid_t waitpid(pid_t, int *, int) __DARWIN_ALIAS_C(waitpid);
-#ifndef _ANSI_SOURCE
-int waitid(idtype_t, id_t, siginfo_t *, int) __DARWIN_ALIAS_C(waitid);
-#endif /* !_ANSI_SOURCE */
-#if (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
-pid_t wait3(int *, int, struct rusage *);
-pid_t wait4(pid_t, int *, int, struct rusage *);
-#endif /* (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) */
-__END_DECLS
-#endif /* !_SYS_WAIT_H_ */