Skip to content

Commit 5ae8020

Browse files
committed
Add pthread.h and dispatch/dispatch.h
Note the libdispatch library as a whole is licensed under the Apache 2.0 license, even though some header files don't include this notice.
1 parent 9b69407 commit 5ae8020

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+12109
-330
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ This is only rarely needed: macOS binaries will usually run just fine on a newer
7676
7777
This project is licensed under APSL 2.0, a variety of BSD style licenses, and public domain code:
7878
79-
* `src/usr/include` is extracted from the Libc, xnu, libpthread, Libm, and CarbonHeaders. The source files are under a mix of the APSL 2.0 and a variety of BSD-style licenses. There are a few files that just say "all rights reserved". All those files have been replaced with a public domain version so they are also in effect open source.
79+
* `src/usr/include` is extracted from the Libc, xnu, libpthread, libdispatch, and Libm. The source files are under a mix of the APSL 2.0 and a variety of BSD-style licenses. There are a few files that just say "all rights reserved". All those files have been replaced with a public domain version so they are also in effect open source.
8080
* `src/*/libSystem.s` is extracted from the above, but because it's only a list of function names I don't believe it is covered by copyright and therefore can be considered public domain. If it is covered by copyright (I'm not a lawyer), it is covered by the same copyright as `src/usr/include` above.
8181
* Other files like the various update scripts are placed in the public domain.
8282

generate-stubs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
def generateStubs(sysroot, outfile, target):
3333
# These symbols are not defined in the header files, but must be declared
3434
# anyway.
35-
symbols = {'dyld_stub_binder', '___bzero'}
35+
symbols = {'dyld_stub_binder', '___bzero', '__tlv_bootstrap'}
3636

3737
# Parse the src/libSystem.h file to get a list of functions declared in libSystem.
3838
index = clang.cindex.Index.create()

src/_types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ typedef __UINT64_TYPE__ u_int64_t;
2424

2525
// Some typedefs for types that have since been standardized.
2626
typedef __INTPTR_TYPE__ __darwin_intptr_t;
27+
typedef __PTRDIFF_TYPE__ __darwin_ptrdiff_t;
2728
typedef __SIZE_TYPE__ __darwin_size_t;
2829
typedef __builtin_va_list __darwin_va_list;
2930
typedef __WCHAR_TYPE__ __darwin_wchar_t;
31+
typedef __WINT_TYPE__ __darwin_wint_t;
3032

3133
// These types are defined separately for i386 and arm, but are actually
3234
// defined as the same type.

0 commit comments

Comments
 (0)