Commit Graph

785 Commits

Author SHA1 Message Date
Alex Crichton
609693dae1 Update winapi 2016-03-14 21:59:21 -07:00
Kamal Marhubi
10bfe07651 linux: Move some MS_ flags for mount(2) up
These flags are available on Android.
2016-03-14 19:25:06 -04:00
Kamal Marhubi
4ff4acec36 linux: Comment distinction between msync and mount MS_ flags
They have different types and should be visually separated for ease of
reading.
2016-03-14 19:25:06 -04:00
bors
722fedd5bb Auto merge of #227 - kamalmarhubi:clone-flags, r=alexcrichton
linux: Move namespace clone flags up one level

The flags are available in Android, and should be defined higher up.
2016-03-13 13:39:33 -07:00
Kamal Marhubi
ae69a167ac linux: Move namespace clone flags up one level
The flags are available in Android, and should be defined higher up.
2016-03-13 16:26:49 -04:00
Martin Wernstål
f500051a99 apple: TIOCTIMESTAMP and TIOCDCDTIMESTAMP differ on 32 bit 2016-03-13 20:35:56 +01:00
Martin Wernstål
8e85797c3d apple: Add TIOC* constants
From sys/ioctl.h
2016-03-13 16:41:06 +01:00
bors
d9f256ec37 Auto merge of #225 - posborne:netlink-android, r=alexcrichton
Pull sockaddr_nl up a layer as it is present for Android

The addition of sockaddr_nl seems to be a fairly recent
addition to bionic, although it would appear that its lack
of presence in previous versions is more of an oversight than
anything else.

831c8a5249/libc/kernel/uapi/linux/netlink.h (L54)
2016-03-11 22:43:11 -08:00
Paul Osborne
9e94d5b777 Pull sockaddr_nl up a layer as it is present for Android
The addition of sockaddr_nl seems to be a fairly recent
addition to bionic, although it would appear that its lack
of presence in previous versions is more of an oversight than
anything else.

831c8a5249/libc/kernel/uapi/linux/netlink.h (L54)

This change is motivated by failures to build nix under Android.

Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-03-12 00:13:31 -06:00
bors
493d79b2ea Auto merge of #224 - kamalmarhubi:safer-cfg, r=alexcrichton
Make cfg_if uses more explicit and consistent

This commit changes most uses of cfg_if as follows:
- fallthrough `else` usage is avoided for architecture or OS specific
  items
- a comment is added in the final `else` clause to signal intent someone
  modifying

It is safer to omit items than include ones for the wrong platform or
architecture.
2016-03-11 12:31:39 -08:00
Kamal Marhubi
66c3375326 Make cfg_if uses more explicit and consistent
This commit changes most uses of cfg_if as follows:
- fallthrough `else` usage is avoided for architecture or OS specific
  items
- a comment is added in the final `else` clause to signal intent someone
  modifying

It is safer to omit items than include ones for the wrong platform or
architecture.
2016-03-11 14:06:21 -05:00
bors
ef979ef4d8 Auto merge of #222 - mneumann:dragonfly_clock_gettime, r=alexcrichton
Fix DragonFly: clock_gettime() expects CLOCK_* constants as ulong.

While there add all CLOCK_ constants as found on DragonFly.
2016-03-11 11:00:34 -08:00
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