Commit 8c2daae
committed
Limit macOS
The new ARM-based platform doesn't need these as there's no legacy
constraints.
Tested via
**demo.c**
```c
int main() {
fstat(0, NULL);
fstatat(0, NULL, NULL, 0);
lstat(NULL, NULL);
stat(NULL, NULL);
readdir(NULL);
readdir_r(NULL, NULL, NULL);
}
```
**Compilation**
```none
% SDKROOT=/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk MACOSX_DEPLOYMENT_TARGET=11.5 cc -arch arm64 demo.c
% nm a.out
0000000100008030 d __dyld_private
0000000100000000 T __mh_execute_header
U _fstat
U _fstatat
U _lstat
0000000100003e64 T _main
U _readdir
U _readdir_r
U _stat
U dyld_stub_binder
```
This has also been experimentally compiled on a Developer Transition Kit.$INODE64 symbol names to x86 and x86_641 parent 62ccff6 commit 8c2daae
1 file changed
+22
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
689 | 692 | | |
690 | 693 | | |
691 | 694 | | |
| |||
695 | 698 | | |
696 | 699 | | |
697 | 700 | | |
698 | | - | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
699 | 705 | | |
700 | 706 | | |
701 | 707 | | |
| |||
738 | 744 | | |
739 | 745 | | |
740 | 746 | | |
741 | | - | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
742 | 751 | | |
743 | 752 | | |
744 | 753 | | |
| |||
774 | 783 | | |
775 | 784 | | |
776 | 785 | | |
777 | | - | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
778 | 790 | | |
779 | 791 | | |
780 | 792 | | |
| |||
1007 | 1019 | | |
1008 | 1020 | | |
1009 | 1021 | | |
1010 | | - | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
1011 | 1026 | | |
1012 | 1027 | | |
1013 | 1028 | | |
| |||
1483 | 1498 | | |
1484 | 1499 | | |
1485 | 1500 | | |
1486 | | - | |
| 1501 | + | |
| 1502 | + | |
1487 | 1503 | | |
1488 | 1504 | | |
1489 | 1505 | | |
| |||
0 commit comments