Commit e30319c
committed
ffi/posix_h: updated and corrected version
Use the new 2.0.0 version of ffi-cdecl to generate POSIX cdecls for each
platform variant, and our updated helper to merge those individual files.
This fix a number of issues, particularly with macOS (including a
number of important constants: `EAGAIN`, `O_CLOEXEC`, `MAP_ANONYMOUS`,
etc…).
Some unused declarations have been removed, some new declarations
have been added:
- those used by the terminal plugin
- those necessary for turbo, so its code can be patched to rely on `ffi/posix_h`
NOTE:
- `ffi/pthread_h` has been removed: pthread declarations are now included in `ffi/posix_h`
- the frontend generic device code for retrieving network information will need updating:
Linux only IOCTL values are not available to macOS anymore
- Linux x86 support has been dropped (Android x86 support is still provided)
- *BSD support has been dropped too1 parent e266128 commit e30319c
21 files changed
Lines changed: 6202 additions & 1095 deletions
File tree
- cmake
- ffi-cdecl
- appimage
- ffi
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | | - | |
| 750 | + | |
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
766 | 800 | | |
767 | 801 | | |
768 | 802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
0 commit comments