Skip to content

Commit

Permalink
Add pthread.h and dispatch/dispatch.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aykevl committed Jan 28, 2025
1 parent 9b69407 commit 5ae8020
Show file tree
Hide file tree
Showing 50 changed files with 12,109 additions and 330 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ This is only rarely needed: macOS binaries will usually run just fine on a newer
This project is licensed under APSL 2.0, a variety of BSD style licenses, and public domain code:
* `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.
* `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.
* `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.
* Other files like the various update scripts are placed in the public domain.
Expand Down
2 changes: 1 addition & 1 deletion generate-stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
def generateStubs(sysroot, outfile, target):
# These symbols are not defined in the header files, but must be declared
# anyway.
symbols = {'dyld_stub_binder', '___bzero'}
symbols = {'dyld_stub_binder', '___bzero', '__tlv_bootstrap'}

# Parse the src/libSystem.h file to get a list of functions declared in libSystem.
index = clang.cindex.Index.create()
Expand Down
2 changes: 2 additions & 0 deletions src/_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ typedef __UINT64_TYPE__ u_int64_t;

// Some typedefs for types that have since been standardized.
typedef __INTPTR_TYPE__ __darwin_intptr_t;
typedef __PTRDIFF_TYPE__ __darwin_ptrdiff_t;
typedef __SIZE_TYPE__ __darwin_size_t;
typedef __builtin_va_list __darwin_va_list;
typedef __WCHAR_TYPE__ __darwin_wchar_t;
typedef __WINT_TYPE__ __darwin_wint_t;

// These types are defined separately for i386 and arm, but are actually
// defined as the same type.
Expand Down
Loading

0 comments on commit 5ae8020

Please sign in to comment.