Commit bca2f46
[6.1] Fix WASI build of
* Fix WASI build of `_copyDirectoryMetadata` (#1094)
Extended attributes don't exist in WASI, so we need to exclude the use
of xattr-related APIs including `flistxattr`.
* Follow-up fixes to make it work with wasi-libc (#1095)
* Gate `fchown` and `fchmod` calls behind `os(WASI)`
They are not available on WASI, so we gate them behind `os(WASI)`.
* Add missing constant shims for wasi-libc
* Use `futimens` instead of legacy `futimes`
wasi-libc does not provide `futimes` as it is a legacy function.
https://github.com/WebAssembly/wasi-libc/blob/574b88da481569b65a237cb80daf9a2d5aeaf82d/libc-top-half/musl/include/sys/time.h#L34
* Don't try to set extended attributes on Android (#1106)
Normal users don't have permission to change these, even for their own files.
---------
Co-authored-by: finagolfin <finagolfin@tuta.io>_copyDirectoryMetadata (#1099)1 parent ca7070f commit bca2f46
File tree
3 files changed
+22
-3
lines changed- Sources
- FoundationEssentials
- FileManager
- _FoundationCShims/include
3 files changed
+22
-3
lines changedLines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
| 914 | + | |
914 | 915 | | |
915 | 916 | | |
916 | 917 | | |
| |||
936 | 937 | | |
937 | 938 | | |
938 | 939 | | |
| 940 | + | |
939 | 941 | | |
940 | 942 | | |
| 943 | + | |
941 | 944 | | |
942 | 945 | | |
943 | 946 | | |
944 | 947 | | |
| 948 | + | |
945 | 949 | | |
946 | 950 | | |
947 | | - | |
| 951 | + | |
948 | 952 | | |
949 | 953 | | |
950 | | - | |
951 | | - | |
| 954 | + | |
| 955 | + | |
952 | 956 | | |
953 | 957 | | |
954 | 958 | | |
955 | 959 | | |
956 | 960 | | |
| 961 | + | |
957 | 962 | | |
958 | 963 | | |
959 | 964 | | |
960 | 965 | | |
| 966 | + | |
961 | 967 | | |
962 | 968 | | |
963 | 969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
52 | 61 | | |
53 | 62 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
0 commit comments