Commit 1e8c55c
committed
Auto merge of #2935 - bossmc:alias-lfs64-symbols-on-musl, r=Amanieu
Alias all LFS64 symbols to their non-LFS64 counterparts on musl
As per #2934 the LFS64 symbols on musl-libc are simply aliases to the non-LFS64 symbols. Currently this is done both in the header files (as `#define` entries) and in the library (as aliasing symbols). There is a desire in musl to drop the ABI compatibility shims (the symbol aliases) - currently the `libc` crate exports the LFS64 symbols by `extern`-ing the compatibility shims which will fail if musl removes them.
This changes the musl build of libc to replicate the aliasing that's in the C header files (with `pub use xxx as xxx64`) so the API from the `libc` crate is unchanged, but the crate is now compatible with the upcoming musl release.
I've also checked and all the LFS64 types (e.g. `off64_t`) are already the same as their non-LFS64 equivalents.
This is an annoying change to test, `libc-test` seems expect to build against `musl 1.1.24` (in fact, does Rust even support `musl 1.2`? It's not obvious that it does... e.g. see https://github.com/rust-lang/libc/blob/d99c37d97c7a075ffc7f4260f2dd134d1ee3daaa/src/unix/linux_like/linux/musl/mod.rs#L288-L292)7 files changed
+398
-127
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3333 | 3333 | | |
3334 | 3334 | | |
3335 | 3335 | | |
3336 | | - | |
3337 | | - | |
| 3336 | + | |
| 3337 | + | |
3338 | 3338 | | |
3339 | 3339 | | |
3340 | 3340 | | |
| |||
3399 | 3399 | | |
3400 | 3400 | | |
3401 | 3401 | | |
3402 | | - | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
3403 | 3410 | | |
3404 | 3411 | | |
3405 | 3412 | | |
| |||
3411 | 3418 | | |
3412 | 3419 | | |
3413 | 3420 | | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
3414 | 3425 | | |
3415 | 3426 | | |
3416 | 3427 | | |
| |||
3528 | 3539 | | |
3529 | 3540 | | |
3530 | 3541 | | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
3531 | 3546 | | |
3532 | 3547 | | |
3533 | 3548 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 64 | | |
70 | 65 | | |
71 | 66 | | |
| |||
685 | 680 | | |
686 | 681 | | |
687 | 682 | | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | 706 | | |
715 | 707 | | |
716 | 708 | | |
| |||
804 | 796 | | |
805 | 797 | | |
806 | 798 | | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
| |||
4299 | 4299 | | |
4300 | 4300 | | |
4301 | 4301 | | |
4302 | | - | |
4303 | | - | |
4304 | | - | |
4305 | | - | |
4306 | | - | |
4307 | | - | |
4308 | | - | |
4309 | | - | |
4310 | | - | |
4311 | | - | |
4312 | | - | |
4313 | 4302 | | |
4314 | | - | |
4315 | 4303 | | |
4316 | | - | |
4317 | 4304 | | |
4318 | 4305 | | |
4319 | 4306 | | |
| |||
4614 | 4601 | | |
4615 | 4602 | | |
4616 | 4603 | | |
4617 | | - | |
4618 | | - | |
4619 | | - | |
4620 | | - | |
4621 | | - | |
4622 | | - | |
4623 | 4604 | | |
4624 | 4605 | | |
4625 | 4606 | | |
| |||
4871 | 4852 | | |
4872 | 4853 | | |
4873 | 4854 | | |
| 4855 | + | |
| 4856 | + | |
| 4857 | + | |
| 4858 | + | |
| 4859 | + | |
| 4860 | + | |
| 4861 | + | |
| 4862 | + | |
| 4863 | + | |
| 4864 | + | |
| 4865 | + | |
| 4866 | + | |
| 4867 | + | |
| 4868 | + | |
| 4869 | + | |
| 4870 | + | |
| 4871 | + | |
| 4872 | + | |
| 4873 | + | |
| 4874 | + | |
| 4875 | + | |
| 4876 | + | |
| 4877 | + | |
| 4878 | + | |
| 4879 | + | |
| 4880 | + | |
| 4881 | + | |
| 4882 | + | |
| 4883 | + | |
| 4884 | + | |
| 4885 | + | |
| 4886 | + | |
| 4887 | + | |
| 4888 | + | |
4874 | 4889 | | |
4875 | 4890 | | |
4876 | 4891 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 187 | | |
204 | 188 | | |
205 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 176 | | |
193 | 177 | | |
194 | 178 | | |
| |||
0 commit comments