Commit Graph

3357 Commits

Author SHA1 Message Date
bors 58b2706e75 Auto merge of #1518 - gnzlbg:freebsd10support, r=gnzlbg
Add FreeBSD10 support

This adds libc-test support for Freebsd10 and a CI build job that tests
FreeBSD10 with LIBC_CI only.

cc @asomers this is a follow up to #1491 .
2019-09-21 09:34:21 +00:00
Baoshan Pang c60e31dd1d Merge branch 'master' of https://github.com/Wind-River/libc 2019-09-20 16:44:55 -07:00
n-salim 78a16cbaab
Merge pull request #13 from Wind-River/master_rebase_salim
VxWorks libc cleanups and fixes for some libc-test issues that were p…
2019-09-20 16:17:42 -07:00
Salim Nasser 4fed980263 VxWorks libc cleanups and fixes for some libc-test issues 2019-09-20 16:18:47 -07:00
bors 77aa3e5368 Auto merge of #1519 - gnzlbg:max_align_t, r=gnzlbg
Implement max_align_t

Implement `max_align_t` for windows and unix targets.

WIP: at this stage I just want to see what breaks.
2019-09-20 16:39:48 +00:00
gnzlbg 974f550e1c Implement max_align_t 2019-09-20 17:17:22 +02:00
bors 2f5ed5d9b3 Auto merge of #1525 - newpavlov:patch-4, r=gnzlbg
pthread_exit return type fix

Closes: #1520
2019-09-20 09:43:36 +00:00
Artyom Pavlov 7d1907eaae
fuchsia 2019-09-20 06:16:08 +00:00
Artyom Pavlov d0ffed6fd5
vxworks 2019-09-20 06:15:34 +00:00
Artyom Pavlov e51a79f3d3
pthread_exit fix 2019-09-20 06:13:48 +00:00
Baoshan 5dd6292404
Merge pull request #12 from rust-lang/master
Sync to rust-lang/libc branch master
2019-09-19 22:10:59 -07:00
bors c443f1a9aa Auto merge of #1522 - gnzlbg:rt, r=gnzlbg
Re-enable all roundtrip tests
2019-09-19 18:23:07 +00:00
gnzlbg e7bcb7aff2 Re-enable all roundtrip tests 2019-09-19 16:20:33 +02:00
Philipp Gesang 9a09cb4ff3
update example path
Signed-off-by: Philipp Gesang <phg@phi-gamma.net>
2019-09-18 23:31:33 +02:00
Philipp Gesang 165161bec3
fix argument names in the mq_* family of functions
It's *msg_prio* in both manpages and posix.
2019-09-18 23:29:34 +02:00
bors 56850068dc Auto merge of #1521 - Wind-River:master_rebase, r=gnzlbg
Fix building error at backtrace

I get this error when builind backtrace:

error[E0308]: mismatched types
  --> /folk/prj-rust-dev/bpang/ala-diab-pb19l/fix_bugs/latest/.cargo/git/checkouts/backtrace-rs-fb1f822361417489/e745627/src/symboli\
ze/dladdr.rs:38:73
   |
38 |                         Some(SymbolName::new(slice::from_raw_parts(ptr, len)))
   |                                                                         ^^^ expected usize, found u64
help: you can convert an `u64` to `usize` and panic if the converted value wouldn't fit

It shows the 'size_t' is expected to be defined as "usize".
2019-09-18 06:44:14 +00:00
Baoshan Pang ea0a512079 defining uintptr_t = usize and intptr_t/ptrdiff_t = isize, and using uintptr_t to define size_t, and intptr_t to define ssize_t. 2019-09-17 12:58:26 -07:00
Baoshan 134f120722
Merge pull request #11 from rust-lang/master
Sync with rust-lang/libc branch master
2019-09-17 10:13:45 -07:00
bors b17f22d62f Auto merge of #1517 - Wind-River:master_rebase, r=gnzlbg
updates for vxworks

fix problems found in testing
VxWorks socket and epoll definitions needed by mio and related crates; epoll only supported in VxWorks kernel; just provide stub definitions for user mode for now
Fixed usage of isize
libc VxWorks cleanups and additions
remove copyright notice
2019-09-17 14:57:52 +00:00
Baoshan Pang 676d9fb420 1. use s_no_extra_traits! for structs with big size(>32 bytes) arrary
2. implement Debug for big size array
3. remove code related to epoll
4. use 'pub enum' for _Vx_semaphore
2019-09-16 16:02:49 -07:00
gnzlbg 3843c7dba1 Add FreeBSD10 support
This adds libc-test support for Freebsd10 and a CI build job that tests
FreeBSD10 with LIBC_CI only.
2019-09-16 20:50:55 +02:00
bors 49c1d138e3 Auto merge of #1513 - mulimoen:master, r=gnzlbg
add isblank

Fixes #1509
2019-09-16 18:15:40 +00:00
Magnus Ulimoen e7f11345d1 add isblank 2019-09-16 17:54:13 +02:00
Baoshan Pang f35970f5c7 fix errors reported by rustfmt 2019-09-13 19:18:31 -07:00
bors 9b936e3011 Auto merge of #1512 - padenot:reset-on-fork, r=gnzlbg
Add SCHED_RESET_ON_FORK

This is a fix for #1511, and is valid for musl and glibc.
2019-09-13 23:37:47 +00:00
Baoshan Pang b3dba42373 fix problems found in testing 2019-09-13 14:56:00 -07:00
Salim Nasser cc6ff3212b epoll only supported in VxWorks kernel; just provide stub definitions for user mode for now 2019-09-13 14:55:34 -07:00
Salim Nasser 6f7f9e313d VxWorks socket and epoll definitions needed by mio and related crates 2019-09-13 14:55:13 -07:00
Salim Nasser d737592426 Fixed usage of isize 2019-09-13 14:55:13 -07:00
Salim Nasser e9a2eb5630 libc VxWorks cleanups and additions 2019-09-13 14:55:13 -07:00
bors b156fb3306 Auto merge of #1507 - mati865:patch-2, r=gnzlbg
Test FreeBSD 12 on latest nightly

~~Let's see if [libc update](https://github.com/rust-lang/rust/pull/63806) for Rust fixed it.~~

Fixes https://github.com/rust-lang/libc/issues/1489
2019-09-13 21:22:26 +00:00
bors 36566a7720 Auto merge of #1493 - lucab:ups/bsd-utmpx, r=gnzlbg
freebsdlike: add several utmpx constants

This adds several `utmpx.h` constants for FreeBSD and DragonflyBSD.

Ref: a1d2b51873/include/utmpx.h
Ref: http://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/include/utmpx.h
2019-09-13 20:01:35 +00:00
bors 43cb5b3af7 Auto merge of #1510 - gnzlbg:selfupdate, r=gnzlbg
Workaround Azure images not supporting rustup self update
2019-09-13 16:28:30 +00:00
gnzlbg 423300242a Fix formatting 2019-09-13 00:00:04 +02:00
gnzlbg 9258ea17ec Fix line length 2019-09-12 23:49:55 +02:00
gnzlbg 005e64b663 Do not require using extern instead of extern C 2019-09-12 15:45:43 +02:00
gnzlbg 939a2e5a3a Formatting 2019-09-12 15:12:33 +02:00
Paul Adenot 829992510c Add SCHED_RESET_ON_FORK 2019-09-12 14:51:13 +02:00
gnzlbg c25c36025d Workaround Azure images not supporting rustup self update 2019-09-12 11:41:26 +02:00
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