Commit Graph

3266 Commits

Author SHA1 Message Date
Mateusz Mikuła
6255a45710
Test FreeBSD 12 on latest nightly 2019-09-11 09:02:43 +02:00
bors
71e298f993 Auto merge of #1488 - loganwendholt:user-regs, r=gnzlbg
Copy structs from bits/user.h for musl x86_64

While statically compiling a binary with `musl`, I ran into the following error regarding a missing struct:

```
error[E0412]: cannot find type `user_regs_struct` in crate `libc`
  --> src/debug.rs:37:32
   |
37 | fn show_user_regs(regs: &libc::user_regs_struct) -> String {
   |                                ^^^^^^^^^^^^^^^^ not found in `libc`
```

This struct was previously added for `glibc` in #599, but was never added to `musl`, despite the data format being the same in both.

This fix simply copies `user_regs_struct` into the proper location within the `musl` files.
2019-09-07 21:55:11 +00:00
bors
fdbcc119c8 Auto merge of #1461 - newpavlov:patch-4, r=gnzlbg
Remove WASI Core API

Closes #1434

This change does not break the backwards compatibility promise since WASI Core API is unstable right now. If applications or libraries want to use Core API directly they should use [`wasi`](https://crates.io/crates/wasi) instead of `libc`.

Blocked by: rust-lang/rust#63676

cc @sunfishcode
2019-09-07 20:29:09 +00:00
bors
9c2b8397eb Auto merge of #1498 - asomers:aio_listio_max, r=gnzlbg
Deprecate AIO_LISTIO_MAX

This value can vary at runtime.  Applications should instead use
sysconf(3) with _SC_AIO_LISTIO_MAX.
2019-09-07 13:40:32 +00:00
bors
f7de365d3b Auto merge of #1497 - asomers:rlim_nlimits, r=gnzlbg
Deprecate RLIM_NLIMITS

This constant is not stable across OS versions, so it cannot be used in
any backwards- or forwards- compatible way.  It's typically used to size
arrays in the kernel and in debugging utilities that are closely tied to
the OS version.  Since libc is ignorant about OS versions, we shouldn't
even be defining it.
2019-09-07 09:38:10 +00:00
bors
e61ec827bf Auto merge of #1494 - lucab:ups/linux-gnu-utmpname, r=gnzlbg
linux/gnu: add utmpname()

This adds `utmpname(3)` on Linux with GNU libc.

Ref: https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/baselib-utmpname-3.html
2019-09-07 08:19:47 +00:00
bors
0606678d6f Auto merge of #1487 - lpetre:add_more_utime_constants, r=gnzlbg
Adding UTIME_NOW and UTIME_OMIT to dragonfly

Verified in both repos:
 - [musl](https://git.musl-libc.org/cgit/musl/tree/include/sys/stat.h#n70)
 - [dragonfly](e7ab884bd4/sys/sys/stat.h (L250))
2019-09-07 07:03:56 +00:00
bors
a131ca3534 Auto merge of #1478 - tlively:update-emscripten-types, r=gnzlbg
Update Emscripten system types

These changes bring the types up to parity with recent Emscripten
versions using the upstream LLVM wasm backend. These changes should be
coordinated with the upgrade of rustc's Emscripten support. See
https://internals.rust-lang.org/t/upgrading-rust-s-emscripten-support/10684
2019-09-07 00:04:37 +00:00
bors
c1ea7f5dbc Auto merge of #1503 - gnzlbg:fbsdci, r=gnzlbg
Fix the nightly FreeBSD12 toolchain to one without the build.rs bug
2019-09-06 22:27:00 +00:00
gnzlbg
1e769312b2 Fix the nightly FreeBSD12 toolchain to one without the build.rs bug 2019-09-06 21:40:42 +02:00
Luke Petre
600a67fe99 MUSL already actually had a definition (as part of linux_like) 2019-09-02 21:19:07 +01:00
Luke Petre
15d1047541 Adding UTIME_NOW and UTIME_OMIT to musl and dragonfly 2019-09-02 21:19:07 +01:00
Alan Somers
1be630f89c Deprecate AIO_LISTIO_MAX
This value can vary at runtime.  Applications should instead use
sysconf(3) with _SC_AIO_LISTIO_MAX.
2019-09-02 10:46:01 -06:00
Alan Somers
ac1e12409e Deprecate RLIM_NLIMITS
This constant is not stable across OS versions, so it cannot be used in
any backwards- or forwards- compatible way.  It's typically used to size
arrays in the kernel and in debugging utilities that are closely tied to
the OS version.  Since libc is ignorant about OS versions, we shouldn't
even be defining it.
2019-09-02 10:21:57 -06:00
gnzlbg
7e2f12f8ac
Merge pull request #1495 from asomers/fbsd_statfs
Fix the link_name for fstat and fstatfs on FreeBSD
2019-09-02 08:47:26 +02:00
Alan Somers
f7245fedcc Fix the link_name for fstat and fstatfs on FreeBSD 2019-09-01 11:45:33 -06:00
Luca Bruno
8a480ed9d8
linux/gnu: add utmpname()
This adds `utmpname(3)` on Linux with GNU libc.

Ref: https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/baselib-utmpname-3.html
2019-09-01 17:03:33 +00:00
Thomas Lively
06c980ef75 Remove accidental debugging config change 2019-08-29 09:50:49 -07:00
Thomas Lively
ccb0e403ea Update ino_t 2019-08-28 20:46:24 -07:00
Thomas Lively
71e47b8dce Add libxml2 to wasm32 to be safe 2019-08-27 10:14:44 -07:00
Thomas Lively
cd617d7881 Revert "Add extra debug info in emscripten-entry.sh"
This reverts commit 89e8ae6ab9.
2019-08-27 10:12:14 -07:00
Thomas Lively
89e8ae6ab9 Add extra debug info in emscripten-entry.sh 2019-08-26 19:03:59 -07:00
Thomas Lively
b7884dbe51 Add libxml2, a new Fastcomp dependency 2019-08-26 13:53:14 -07:00
Thomas Lively
e011365452 Use git to acquire emsdk 2019-08-26 13:14:38 -07:00
Logan Wendholt
9883697267 Fix rip and rdp types in user_fpregs_struct 2019-08-23 11:25:55 -04:00
Logan Wendholt
a3f8a1845f Update musl x86_64 to match bits/user.h 2019-08-23 10:31:36 -04:00
Logan Wendholt
ab4ce4945d Add user_regs_struct for musl x86_64 2019-08-22 14:36:09 -04:00
newpavlov
078a7486da add __wasi_rights_t 2019-08-21 18:16:56 +03:00
bors
9af04cebf6 Auto merge of #1485 - semarie:openbsd-utime, r=gnzlbg
UTIME_OMIT and UTIME_NOW values are inverted on OpenBSD. correct it

unbreak OpenBSD after #1474
2019-08-21 12:46:09 +00:00
bors
7869d2011a Auto merge of #1486 - pietroalbini:switch-mirrors-bucket, r=gnzlbg
ci: switch to the rust-lang-ci-mirrors bucket for mirrors

Previously mirrors were stored in the rust-lang-ci2 bucket, which is
meant to store temporary data (the CI artifacts). This switches the code
to fetch from the new mirrors bucket.

The old files won't be removed, but they won't be backed up either.

r? @gnzlbg
2019-08-21 10:09:17 +00:00
Pietro Albini
30133d9d2a
ci: switch to the rust-lang-ci-mirrors bucket for mirrors
Previously mirrors were stored in the rust-lang-ci2 bucket, which is
meant to store temporary data (the CI artifacts). This switches the code
to fetch from the new mirrors bucket.

The old files won't be removed, but they won't be backed up either.
2019-08-21 09:20:32 +02:00
Sébastien Marie
255b01e658 UTIME_OMIT and UTIME_NOW values are inverted on OpenBSD. correct it 2019-08-21 08:45:14 +02:00
bors
fd963f4d79 Auto merge of #1484 - gnzlbg:rev, r=gnzlbg
Revert breaking musl change
2019-08-20 16:22:31 +00:00
gnzlbg
8f50a261c2 Add support for musl mips64 2019-08-20 16:37:42 +02:00
gnzlbg
1dd09fbbe6 Update Cargo.toml to 0.2.64 2019-08-20 15:00:05 +02:00
gnzlbg
4051e27026 Revert "Reorganize constant declarations to make up space for MIPS64-specific ones"
This reverts commit 9df2deb33b.
2019-08-20 14:59:26 +02:00
bors
38750521a6 Auto merge of #1474 - lpetre:add_utime_constants, r=gnzlbg
Adding UTIME_NOW and UTIME_OMIT to OSes which support utimensat

I've managed to verify a handful of these:

- [FreeBSD](1d6e424741/tools/build/stat.h (L35))
- [NetBSD](64b8a48e12/sys/sys/stat.h (L235))
 - [Apple](https://opensource.apple.com/source/xnu/xnu-4903.221.2/bsd/sys/stat.h.auto.html)

I'm less confident in these:
 - [Haiku](abb59d7351/headers/posix/sys/stat.h (L105))
   - I could be wrong on this one: https://github.com/haiku/haiku/search?q=UTIME_NOW&unscoped_q=UTIME_NOW
 - [WASI](24792713d7/libc-top-half/musl/include/sys/stat.h (L71))
  - I could be wrong on this one: https://github.com/CraneStation/wasi-libc/search?q=UTIME_NOW&unscoped_q=UTIME_NOW
 - [Solarish](4e0c5eff9a/usr/src/uts/common/sys/stat.h (L478))
2019-08-20 09:45:52 +00:00
bors
afcb42e71b Auto merge of #1473 - Wind-River:master, r=gnzlbg
Some update for vxWorks

This is to address issues:
rust-lang#1469 and rust-random/getrandom#86 (comment)

What have been changed in this PR:

 1. adding randBytes(), randABytes(), randUBytes(), randSecure() and taskDelay()
 2. change armv7-wrs-vxworks to armv7-wrs-vxworks-eabihf
 3. code cleanup
2019-08-20 08:34:22 +00:00
bors
e03d9380df Auto merge of #1481 - FenrirWolf:newlib-socket-fix, r=gnzlbg
Define newlib socket types by target arch

This is a follow-up to https://github.com/rust-lang/libc/pull/1477. As mentioned in that PR, the primary (only?) users of these newlib definitions are myself and @leo60228. This PR makes it so that my arm-based 3DS target keeps using the old socket definitions while leo's aarch64-based Switch target uses the BSD versions.

The 3DS also has inverted definitions for `POLLHUP` and `POLLOUT` for whatever reason, so I figured I'd take care of that here too.
2019-08-20 07:11:44 +00:00
Thomas Lively
d3c7de896f Update emscripten, take 2 2019-08-19 14:40:46 -07:00
Thomas Lively
a5a5a90e2f Update emscripten version 2019-08-19 11:49:50 -07:00
FenrirWolf
fd037479db Define newlib socket types by target arch 2019-08-18 09:30:16 -06:00
Luke Petre
6c995607ce Fix style error in wasi.rs 2019-08-18 14:35:33 +01:00
bors
50fbf0c4a4 Auto merge of #1482 - semarie:bpf-openbsd, r=gnzlbg
several const ioctl() BPF aren't defined on OpenBSD

unbreak OpenBSD after #1448
2019-08-18 12:39:05 +00:00
Sébastien Marie
3b7be3c193 adapt ioctl() BPF for OpenBSD 2019-08-18 10:19:49 +02:00
Baoshan
e43e86347a
Merge pull request #2 from Wind-River/bpang-issue1469
remove spurious extra line
2019-08-17 17:20:51 -07:00
bors
ffbe923f92 Auto merge of #1472 - josephlr:fus, r=gnzlbg
Remove invalid Fuchsia functions

Extension of #1468

These functions are not present in Fuchsia's libc, so they cannot be
used in a program today. If Fuchsia ever decides to add these functions
to their libc, they can be added back as necessary.

These files were generated in the following manner:

1. Create a list of the current functions in Fuchsia's libc, put in `rust-functions.txt`
2. Change directory into [`fuchsia/zircon/third_party/ulib/musl/include`](https://fuchsia.googlesource.com/fuchsia/+/master/zircon/third_party/ulib/musl/include/)
3. Run a script to determine which symbols in `rust-functions.txt` are not in the include dir:
    ```bash
    for i in $(cat rust-functions.txt);
        if ! rg $i > /dev/null; then
            echo $i
        fi
    done
    ```
4. This produces [a list of 99 functions](https://github.com/rust-lang/libc/pull/1468#issuecomment-521777743), which are then removed from this crate.
2019-08-17 19:16:26 +00:00
bors
a41fc6062e Auto merge of #1471 - AdminXVII:redox-termios, r=gnzlbg
Add sys/termios.h support for Redox

Add constants for termios on Redox.

cc @jackpot51
2019-08-17 18:02:55 +00:00
bors
4b610e6321 Auto merge of #1449 - xen0n:mips64-musl-targets, r=gnzlbg
Add musl support for MIPS64 & bump to 0.2.63

Tested with patched stage2; both static and dynamic binaries confirmed working.

Initial CI support in the form of no-core targets are added.
2019-08-17 16:39:16 +00:00
bors
abd5a3cf70 Auto merge of #1448 - equal-l2:bpf-consts, r=gnzlbg
Add ioctl() constants for BPF
2019-08-17 15:25:47 +00:00