Commit Graph

3324 Commits

Author SHA1 Message Date
Baoshan Pang 740ac0c2d0 Using 'Option' with :: 2019-09-25 17:19:40 -07:00
Baoshan Pang fc80bbbf98 update rtpSpawn prototype 2019-09-25 17:03:57 -07:00
Baoshan a195fd4ac6
Merge pull request #17 from rust-lang/master
Sync to rust-lang/libc branch master
2019-09-24 13:40:28 -07:00
bors 90269e85ba Auto merge of #1526 - Wind-River:master_rebase, r=gnzlbg
VxWorks libc cleanups and fixes for some libc-test issues
2019-09-24 08:22:21 +00:00
Baoshan Pang 7f753ce510 Merge branch 'union' of https://github.com/Wind-River/libc into master_rebase 2019-09-23 17:12:00 -07:00
Baoshan Pang 8d83901020 move rtpSpawn and RTP_ID_ERROR from libstd to libc 2019-09-23 17:06:22 -07:00
Baoshan Pang b4f42d5401 use union for unions 2019-09-23 17:06:17 -07:00
Baoshan d4d4d33174
Merge pull request #16 from Wind-River/union
move rtpSpawn and RTP_ID_ERROR from libstd to libc
2019-09-23 15:21:27 -07:00
Baoshan Pang 97f6c6751c move rtpSpawn and RTP_ID_ERROR from libstd to libc 2019-09-23 15:07:00 -07:00
n-salim 49f7b41550
Merge pull request #15 from Wind-River/union
use union for unions
2019-09-23 14:54:03 -07:00
Baoshan Pang d751f23712 move rtpSpawn from libstd to libc 2019-09-23 14:53:41 -07:00
Baoshan Pang 95b1e24db9 use union for unions 2019-09-23 14:27:49 -07:00
bors 3a9e5d05a6 Auto merge of #1527 - Wind-River:filter, r=gnzlbg
Add environment variable FILTER to choose which target(s) to run
2019-09-22 10:01:03 +00:00
Baoshan Pang c6c664525a use FILTER to select which target(s) to run 2019-09-21 19:52:39 -07:00
bors 74c4b1508a Auto merge of #1529 - gnzlbg:max_align_freebsd10, r=gnzlbg
Skip max_align_t in FreeBSD10

This error was able to land because FreeBSD10 is not checked by bors yet (see: RCS PR: https://github.com/rust-lang/rust-central-station/pull/481) .
2019-09-21 17:34:15 +00:00
bors cfa6c2d7ca Auto merge of #1523 - phi-gamma:fixes, r=gnzlbg
Fixes

Two patches fixing minor issues.
2019-09-21 16:03:12 +00:00
gnzlbg 9b97095acc Skip max_align_t in FreeBSD10 2019-09-21 14:45:07 +02:00
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