Commit Graph

3141 Commits

Author SHA1 Message Date
Luca Pizzamiglio a3681f921d Merge branch 'invert-freebsd12' of github.com:pizzamig/libc into invert-freebsd12 2019-07-28 23:08:52 +02:00
Luca Pizzamiglio 64bc745405 Properly define freebsd11 attribute 2019-07-28 23:00:53 +02:00
Luca Pizzamiglio bde8b842a4 Add EINTEGRITY errno and fix style 2019-07-28 23:00:53 +02:00
Luca Pizzamiglio 4a74f1e0df Add support for FreeBSD CURRENT (aka freebsd13)
Currently, libc supports and detects freebsd11 and freebsd13
Unknown versions, like freebsd13, is treated as freebsd11.
This patch solve the issues, detecting freebsd13 and treating it like
freebsd12.
Inverting the logic not(freebsd12) -> freebsd11 where possible
2019-07-28 23:00:53 +02:00
bors 2b01f7e673 Auto merge of #1443 - androm3da:hexagon_27jul_2019, r=gnzlbg
Add support for hexagon-unknown-linux-musl
2019-07-27 11:51:54 +00:00
bors 7c8e397c0c Auto merge of #1438 - AdminXVII:extra-traits-redox, r=gnzlbg
Increase Redox & Relibc support

- Add a lot of constants from relibc
- Fix the timezone not found error found previously on Redox
- Wrap WIFEXITED _et al._ in an unsafe block to match the rest of the API
- Add support for the extra_traits feature and Redox
- Fmt

cc @jackpot51
2019-07-27 09:23:50 +00:00
Brian Cain 214d32d265 Add support for hexagon-unknown-linux-musl 2019-07-27 01:38:12 -05:00
bors d660c38cbf Auto merge of #1437 - sunfishcode:master, r=gnzlbg
Update wasmtime to the latest master.

The previous wasmtime revision is broken because one of its dependencies, `memoffset` 0.3, was yanked, which appears to make it unavailable. This was fixed by downgrading to `memoffset` 0.2.
2019-07-26 19:05:13 +00:00
Xavier L'Heureux 4d4a42319d Don't forget the cfg_attr 2019-07-26 13:32:27 -04:00
bors 737b7d6ff0 Auto merge of #1442 - gnzlbg:fix_ci2, r=gnzlbg
Disable testing that thumbv6m-none-eabi builds properly
2019-07-26 14:15:51 +00:00
gnzlbg 98dc609a79 Disable testing that thumbv6m-none-eabi builds properly 2019-07-26 15:01:00 +02:00
Dan Gohman e21be8cdcd Update wasmtime to the latest master. 2019-07-23 12:53:02 -07:00
Luca Pizzamiglio 72aa2262ca Properly define freebsd11 attribute 2019-07-21 18:10:40 +02:00
Luca Pizzamiglio c2c62cc8a4 Add EINTEGRITY errno and fix style 2019-07-21 17:55:11 +02:00
Luca Pizzamiglio 96ea9c9952 Add support for FreeBSD CURRENT (aka freebsd13)
Currently, libc supports and detects freebsd11 and freebsd13
Unknown versions, like freebsd13, is treated as freebsd11.
This patch solve the issues, detecting freebsd13 and treating it like
freebsd12.
Inverting the logic not(freebsd12) -> freebsd11 where possible
2019-07-21 17:49:08 +02:00
Xavier L'Heureux f6c0ead027 Style 2019-07-15 14:16:35 -04:00
Xavier L'Heureux 0da26d4f3a Remove some unsupported methods 2019-07-15 10:31:24 -04:00
Xavier L'Heureux 0af8f18655 Style 2019-07-15 08:24:36 -04:00
Xavier L'Heureux e6671e302e Add constants and types 2019-07-15 08:24:36 -04:00
Xavier L'Heureux fd5eb3d6e1 Add support for redox compilation with extra traits flag + fmt 2019-07-15 08:21:04 -04:00
gnzlbg c8aa8ec72d Bump patch version to 0.2.60 2019-07-15 10:51:47 +02:00
bors 47535e6d20 Auto merge of #1432 - josephlr:errno, r=gnzlbg
Add __errno_location on Redox, DragonFlyBSD, Haiku

Currently [`libstd`](909f5a0494/src/libstd/sys/unix/os.rs (L29-L49)) and the [`getrandom` crate](https://github.com/rust-random/getrandom/pull/54/files#diff-027a56068e2bf3d31dc4273ee6e07034R12) have to use external declarations in order to implement `errno_location` across all UNIX platforms. This change adds bindings for the remaining UNIX platforms, allowing everyone to just use normal `libc` bindings.

This also removes the need for a seperate [`errno-dragonfly`](https://crates.io/crates/errno-dragonfly) crate.

Links to the relevant header files:

- Redox: [`relibc`'s `bits/errno.h`](https://github.com/redox-os/relibc/blob/master/include/bits/errno.h) uses `__errno_location`
- Haiku: [`posix/errno.h`](https://github.com/luciang/haiku/blob/master/headers/posix/errno.h) uses `_errnop`
- DragonFlyBSD: [`sys/errno.h`](https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/sys/errno.h) uses `__error` just like FreeBSD (which makes sense)
  - Note that the `__error` function is inlined. I don't think this causes a problem.
2019-07-15 07:55:27 +00:00
Joe Richey df34d17bd9 Remove use of `unstable` feature 2019-07-14 22:10:05 -07:00
Joe Richey 1b4747e77b Update documentation to point to Rust issue 2019-07-12 10:24:39 -07:00
Joe Richey 3fa021d7ab Add libc_thread_local cfg and unstable feature 2019-07-10 19:47:40 -07:00
Joe Richey 956ba42753 dragonfly: Add errno behind libc_thread_local 2019-07-10 18:04:48 -07:00
Joe Richey b7a27b5c7c libc::c_int -> ::c_int 2019-07-10 18:04:48 -07:00
Joe Richey aa3578fa85 Add __errno_location on Redox, DragonFlyBSD, Haiku 2019-07-10 18:04:48 -07:00
bors 54b03c53fb Auto merge of #1436 - condy0919:linux_pthread_setname, r=gnzlbg
Support pthread_{set,get}name_np for linux with glibc
2019-07-10 07:15:58 +00:00
condy 2686cc5bd8 Support pthread_{set,get}name_np for linux with glibc 2019-07-10 14:16:20 +08:00
bors f397625c50 Auto merge of #1435 - dianpopa:master, r=gnzlbg
Add missing syscalls for aarch64-unknown-linux-musl

The list of syscalls from [rust-lang-aarch64-musl-syscalls](../blob/master/src/unix/notbsd/linux/musl/b64/aarch64.rs) misses some of the syscalls that are defined in [musl-libc-aarch64-syscalls](https://git.musl-libc.org/cgit/musl/tree/arch/aarch64/bits/syscall.h.in).
We need this so that we get rid of hardcoding them inside [our project](https://github.com/firecracker-microvm/firecracker/blob/master/vmm/src/default_syscalls/filters.rs#L16).

Signed-off-by: Diana Popa <dpopa@amazon.com>
2019-07-09 17:03:54 +00:00
Diana Popa 5b959a181c Add missing syscalls for aarch64-unknown-linux-musl
Signed-off-by: Diana Popa <dpopa@amazon.com>
2019-07-09 19:57:29 +03:00
bors 6307a0bfce Auto merge of #1421 - DoumanAsh:expose_posix_timer_value, r=gnzlbg
Expose signal value of siginfo_t

Currently exposes it for following platforms:

- Linux has it as enum _timer and it is exposed alongside sigval
- On FreeBSD like systems si_value follows after si_addr (according to headers)
- Darwin is similar to FreeBSD
- NetBSD and FreeBSD uses struct that contains pid, uid, and si_value. Exposed via it

P.s. I'd like to take a look at other platforms too, but these are what I know so far.
FreeBSD needs some testing though

cc @gnzlbg
2019-07-09 14:48:26 +00:00
Douman 0c2e7831ce Expose signal value of siginfo_t
Exposes value for most unix like platforms
2019-07-09 15:15:17 +02:00
bors 1375b1143c Auto merge of #1430 - gnzlbg:bump_v, r=gnzlbg
Bump patch version
2019-07-08 07:28:17 +00:00
gnzlbg 84c984ddb0 Bump patch version 2019-07-08 09:27:45 +02:00
bors 789c38144e Auto merge of #1423 - Susurrus:issue_665, r=gnzlbg
Remove AF_MAX, PF_MAX, NET_MAXID constants

These constants have already been deprecated for a few releases with
a deprecation notice, so they can finally be removed.

Closes rust-lang/libc#665
2019-07-06 16:47:40 +00:00
bors 2b351c2db2 Auto merge of #1429 - gnzlbg:appveyor_reduce, r=gnzlbg
Reduce appveyor churn

This should reduce the Appveyorn churn for other projects a bit more.

Please let me know if there is anything else that can be done. Maybe the infra team could discuss whether to document some general guidelines for rust-lang and rust-lang-nursery projects, and write them down somewhere. I would be willing to help.

cc @RalfJung @Mark-Simulacrum
2019-07-06 13:22:44 +00:00
gnzlbg 3f8cff745e Reduce appveyor churn 2019-07-06 15:21:16 +02:00
bors 299a73f687 Auto merge of #1419 - gnzlbg:ctest_fix, r=gnzlbg
Update ctest version

The latest ctest version enabled the ABI roundtrip test by default, in which we initialize all types in Rust by default to some random bit-pattern, pass them to C, verify, modify, pass back to Rust, and verify.

This catches issues in the call ABI / calling convention.

This PR will silence those here for now.
2019-07-05 22:55:16 +00:00
gnzlbg 9f9286331f Fix appveyor try 3 2019-07-05 18:55:42 +02:00
gnzlbg fd7a1e9f83 Fix appveyor try 2 2019-07-05 18:44:30 +02:00
gnzlbg b2dcd5c76a Fix x86_64 musl 2019-07-05 18:24:16 +02:00
gnzlbg c3ddd564c9 Allow s390x to fail - segfault 2019-07-05 18:13:03 +02:00
gnzlbg 9d58c0c14f Allow PPC to fail - segfault 2019-07-05 18:13:03 +02:00
gnzlbg 7fa6534858 Fix FreeBSD and Appveyor 2019-07-05 18:13:03 +02:00
gnzlbg ab6e4a3f18 Allow wasi to fail 2019-07-05 18:13:03 +02:00
gnzlbg 3fd4dd7ea3 Silence roundtrip errors 2019-07-05 18:13:03 +02:00
gnzlbg b81a234913 Silence roundtrip in linux 2019-07-05 18:13:03 +02:00
Bryant Mairs 215f095601 Remove AF_MAX, PF_MAX, NET_MAXID constants
These constants have already been deprecated for a few releases with
a deprecation notice, so they can finally be removed.

Closes rust-lang/libc#665
2019-07-05 07:39:00 -07:00