Commit Graph

623 Commits

Author SHA1 Message Date
bors 61ae4865b0 Auto merge of #223 - alexcrichton:run-all, r=alexcrichton
Run CI on all branches

Only running them against auto-libc unfortunately means that PRs don't run CI.
2016-03-11 09:36:59 -08:00
Alex Crichton 81ba7f05a8 Run CI on all branches
Only running them against auto-libc unfortunately means that PRs don't run CI.
2016-03-11 09:35:56 -08:00
bors 8543d5f7c6 Auto merge of #221 - alexcrichton:bors, r=alexcrichton
Prep repo to be bors-compatible

In... theory this is what we need? Let's try it out.
2016-03-11 09:13:06 -08:00
Michael Neumann 378bb73bcc Fix DragonFly: clock_gettime() expects CLOCK_* constants as ulong.
While there add all CLOCK_ constants as found on DragonFly.
2016-03-11 16:01:56 +01:00
Alex Crichton 2ff0e52d53 Add webhooks to travis 2016-03-10 17:26:44 -08:00
Alex Crichton 8a4e72e159 Merge pull request #219 from kamalmarhubi/perf_event_open
linux: Add SYS_perf_event_open syscall numbers
2016-03-10 16:44:22 -08:00
Kamal Marhubi a63cd45a36 linux: Add SYS_perf_event_open syscall numbers
The associated `perf_event_attr` struct is not included as it contains
unions and a bitfield making it unrepresentable in Rust. Additionally,
it is not entirely stable, and has changed size several times.
2016-03-10 15:36:48 -05:00
Kamal Marhubi f934724bba musl: Add architecture specific modules for 64 bit 2016-03-10 15:32:18 -05:00
Alex Crichton 04213bbac5 Merge pull request #202 from kamalmarhubi/openpty
apple: Add openpty(3) and forkpty(3)
2016-03-08 21:43:44 -08:00
Kamal Marhubi 89a7700e23 apple: Add openpty(3) and forkpty(3) 2016-03-08 23:47:03 -05:00
Alex Crichton b47bc673ba Merge pull request #218 from alexcrichton/bump
Bump to 0.2.8
2016-03-07 14:42:21 -08:00
Alex Crichton 95a56522db Update the libc-test lockfile 2016-03-07 13:12:43 -08:00
Alex Crichton 7426d35119 Bump to 0.2.8 2016-03-07 13:11:58 -08:00
Alex Crichton 2278a54955 Merge pull request #217 from gabrielesvelto/master
Add MAP_STACK and MAP_HUGETLB entries to MIPS so that the nix crate can be built
2016-03-07 09:09:06 -08:00
Gabriele Svelto 30dfc4b7ff Add MAP_STACK and MAP_HUGETLB entries to MIPS so that the nix crate can be built 2016-03-07 15:49:20 +01:00
Alex Crichton 08f816f745 Merge pull request #216 from alexcrichton/merge
Merging more PRs in the queue
2016-03-06 23:44:27 -08:00
Alex Crichton c01ec7ebfe Merge branch 'master' of https://github.com/fpgaminer/libc into merge 2016-03-06 23:18:11 -08:00
Alex Crichton ba516ff2c2 Merge branch 'musl-arm' of https://github.com/joerg-krause/libc into merge 2016-03-06 23:18:01 -08:00
fpgaminer f5885eec25 Add utimensat 2016-03-06 19:49:06 -08:00
Jörg Krause 8ad252009a musl: opt for dynamic linking for arm arch
When building with musl for an arm target link with a shared libc (like mips
already does).
2016-03-07 00:26:12 +01:00
Dave Hylands 0b0a17d139 Fix SYS_gettid type to match first argument of syscall. 2016-03-06 13:13:57 -08:00
Alex Crichton e19309c8b4 Merge pull request #212 from alexcrichton/merge
Merge a few PRs together
2016-03-06 12:21:33 -08:00
Alex Crichton dd3b423faa Fix some more style 2016-03-06 11:23:13 -08:00
Alex Crichton 518e09f8b7 Merge branch 'style' of https://github.com/alexcrichton/libc into merge
Conflicts:
	src/unix/notbsd/linux/musl/b32/arm.rs
	src/unix/notbsd/linux/musl/b32/asmjs.rs
	src/unix/notbsd/linux/musl/b32/x86.rs
	src/unix/notbsd/linux/musl/b64/mod.rs
	src/unix/notbsd/linux/other/b32/x86.rs
	src/unix/notbsd/linux/other/b64/aarch64.rs
	src/unix/notbsd/linux/other/b64/powerpc64.rs
	src/unix/notbsd/linux/other/b64/x86_64.rs
2016-03-06 11:22:42 -08:00
Alex Crichton 8b98b812cf Merge branch 'i686-musl-stat' of https://github.com/japaric/libc into merge 2016-03-06 11:19:47 -08:00
Alex Crichton 735863afba Merge branch 'fdatasync' of https://github.com/kamalmarhubi/libc into merge 2016-03-06 11:19:35 -08:00
Jorge Aparicio 689fee5696 same treatment for arm and asmjs 2016-03-06 13:17:45 -05:00
Kamal Marhubi a3d4884897 unix: Include fdatasync(2) on non-Apple systems
The function is defined in POSIX [0], but according to Gnulib docs [1],
it is missing or not declared on at least some versions of OS X and
FreeBSD. On Solaris, it is not a system call but is present as
fdatasync(3) [2].

[0] http://www.opengroup.org/onlinepubs/9699919799/functions/fdatasync.html
[1] https://www.gnu.org/software/gnulib/manual/html_node/fdatasync.html
[2] http://docs.oracle.com/cd/E36784_01/html/E36874/fdatasync-3c.html
2016-03-06 13:15:25 -05:00
Alex Crichton 88396acecb Merge pull request #209 from dhylands/SYS_gettid
Add SYS_gettid
2016-03-06 10:04:37 -08:00
Jorge Aparicio 37db5af016 i686-musl: split timespec fields into (time_t, c_long) pairs
This is how MetadaExt expects these fields to be named.

See c116ae35cf/src/libstd/os/linux/fs.rs (L107-L121)
2016-03-06 08:12:22 -05:00
Dave Hylands 3e4c019a73 Add SYS_gettid 2016-03-06 00:23:19 -08:00
Alex Crichton 5f527b07f4 Merge pull request #208 from alexcrichton/moar-nightlies
Use nightlies for iOS and rumprun
2016-03-05 23:21:52 -08:00
Alex Crichton c02a5c237a Use nightlies for iOS and rumprun
iOS was fixed awhile back and we should have rumprun nightlies now, so let's use
them!
2016-03-03 13:40:09 -08:00
Alex Crichton 8a8bc668d0 Add a style checking script to CI
It's tough to have PRs bounce or to have a back and forth with contributors
about minor style quibbles. Sometimes it ends up just being easier to fix style
after the fact, but let's add some automation to help this!

This commit adds a script to run on CI and locally to verify the style of this
repository. There's a few stylistic guidelines to ensure that definitions are
understandable across the jungle of modules. This consistency should help assist
readability for any future readers!
2016-03-01 22:03:34 -08:00
Alex Crichton 91ef172b00 Merge pull request #207 from alexcrichton/android-select
Add select() to Android bindings
2016-03-01 22:03:23 -08:00
Alex Crichton 993ea7e71e Add select() to Android bindings 2016-03-01 13:23:53 -08:00
Alex Crichton 07a9206793 Merge pull request #205 from alexcrichton/merge
Rebase a few PRs in the queue
2016-02-29 22:22:19 -08:00
Alex Crichton 87d00768ee Unfortunately Android doesn't have futimes 2016-02-29 21:12:44 -08:00
Alex Crichton a569520b6f Merge branch 'futimens' of https://github.com/pitdicker/libc into merge 2016-02-29 21:12:28 -08:00
Alex Crichton c173d9c5d5 Merge branch 'ucontext' of https://github.com/fiveop/libc into merge 2016-02-29 21:12:03 -08:00
Alex Crichton d8a037c325 Merge branch 'various-rumprun-fixes' of https://github.com/gandro/libc into merge 2016-02-29 21:11:59 -08:00
Paul Dicker 9853b463ab Move futimens to the right module and add futimes 2016-02-29 21:10:29 +01:00
Alex Crichton 2a48d49c22 Merge pull request #201 from fiveop/sigwait
Add sigwait/sigwaitinfo/sigtimedwait.
2016-02-29 11:04:20 -08:00
Philipp Matthias Schaefer 7e3a151289 Add ucontext struct for Linux/x86 2016-02-29 19:44:41 +01:00
Sebastian Wicki 35420e2e03 Re-enable some Rumprun tests 2016-02-29 19:32:51 +01:00
Sebastian Wicki c007127674 Move pthread_*_np functions to correct BSD modules
These functions were never available on NetBSD, they belong to
OpenBSD/Bitrig.
2016-02-29 19:32:46 +01:00
Sebastian Wicki 37d4bb95f2 Don't link against lib{c,rt} on Rumprun for libstd
The Rumprun linker wrapper already includes -lc when linking. Passing it
twice unfortunately causes binutils to crash with an assertion failure.

Rumprun does currently not provide librt.
2016-02-29 19:32:43 +01:00
Sebastian Wicki 5d514b6c6a Fix evaluation order of the cfg_if! macro
Since #[cfg] attributes are short-circuting, cfg_if! should not change
the order in which the predicates are listed. This enables the use of
unstable cfg attributes in cfg_if!, which is useful when building libstd.
2016-02-29 19:32:27 +01:00
Paul Dicker b0c679f5c0 Add futimens 2016-02-29 18:17:50 +01:00
Philipp Matthias Schaefer c1982a4c53 Add sigwait/sigwaitinfo/sigtimedwait. 2016-02-29 17:56:04 +01:00