Commit Graph

1482 Commits

Author SHA1 Message Date
Alex Crichton f68d9a53b5 Restore SYS_* constants to the c_long type 2017-07-19 07:35:36 -07:00
bors ec1e5ab1ef Auto merge of #672 - marmistrz:master, r=alexcrichton
Add syscall table for x86 and x86_64

I'm wondering if we should use `SYS_write` or `__NR_write`. Both are available to C programs.
2017-07-18 15:47:19 +00:00
Marcin Mielniczuk c0aaf42b3d Remove existing SYS_* entires
There were previous definitions of SYS_gettid and SYS_perf_event_open
2017-07-18 15:39:28 +02:00
bors 1445dbd405 Auto merge of #675 - asomers:preadv, r=alexcrichton
Enable preadv and pwritev on the BSDs
2017-07-18 13:33:31 +00:00
Marcin Mielniczuk a4a1687361 Rename __NR_ to SYS_, move before extern fn 2017-07-18 11:33:54 +02:00
Alan Somers 3e5b0748fe Enable preadv and pwritev on the BSDs 2017-07-17 21:40:18 -06:00
Alex Crichton 73873315c2 Merge pull request #674 from ids1024/off_t
Redox: Use c_long instead of usize for off_t
2017-07-17 21:54:07 -05:00
bors 12e22cf5a5 Auto merge of #669 - GuillaumeGomez:mac-consts, r=alexcrichton
Add missing constants for mac

I didn't find these constants on other systems than mac so only mac is updated...
2017-07-17 23:45:11 +00:00
Ian Douglas Scott 9a4bd72c17
Redox: Use c_long instead of usize for off_t 2017-07-17 16:15:54 -07:00
bors c00686f3a2 Auto merge of #670 - Susurrus:execvpe, r=alexcrichton
Add execvpe for support *nix platforms
2017-07-17 14:09:34 +00:00
Marcin Mielniczuk 1f81fa018e Add syscall table for x86 and x86_64 2017-07-17 12:59:42 +02:00
Bryant Mairs fef784e26a Add execvpe for support *nix platforms 2017-07-16 21:53:32 -07:00
Guillaume Gomez e7df808d68 Add header for mac targets 2017-07-16 22:22:32 +02:00
Guillaume Gomez 3a2d34779f Add missing constants for mac 2017-07-16 20:40:58 +02:00
bors 8e5152a4ee Auto merge of #667 - GuillaumeGomez:if_msghdr, r=alexcrichton
Add missing if_data and if_msghdr structs
2017-07-16 16:12:20 +00:00
Guillaume Gomez 396bad810b Add missing if_data and if_msghdr structs 2017-07-15 16:21:30 +02:00
bors c43c0770db Auto merge of #668 - Susurrus:s390x_termios, r=alexcrichton
Add more termios s390x constants

These are all that remain for nix to compile on s390x.
2017-07-14 03:26:28 +00:00
Bryant Mairs 79cae41d25 Add more termios s390x constants
These are all that remain for nix to compile on s390x
2017-07-13 18:54:28 -07:00
bors e7bf0a3d55 Auto merge of #661 - Susurrus:mips_cmspar, r=alexcrichton
Add CMSPAR to linux/mips
2017-07-13 19:37:22 +00:00
Bryant Mairs f04b44292e Add CMSPAR to linux/mips
It needs to be skipped during testing because there's no way to include
a combination of headers that will expose it without giving a "type has
already been defined" error.
2017-07-13 11:18:00 -07:00
bors 4f44ccfe48 Auto merge of #666 - ndusart:master, r=alexcrichton
merge poll constants in BSD platforms

Sorry for the different PR about the same constants, the miss in the different architectures appeared progressively as I modify nix source to expose the poll function for the different platforms.

Hopefully, it should be the last one !
2017-07-13 14:12:03 +00:00
Nicolas Dusart 463e23e161 merge poll constants in BSD platforms 2017-07-13 15:27:07 +02:00
bors 9daed6e19a Auto merge of #664 - ndusart:master, r=alexcrichton
add poll constants to FreeBSD and DragonFly
2017-07-12 17:27:28 +00:00
Nicolas Dusart 67e1c1b24c add poll constants to FreeBSD and DragonFly 2017-07-12 17:55:41 +02:00
bors 1b22d01a4e Auto merge of #663 - ndusart:master, r=alexcrichton
add poll constants to Android

Adding `POLLRDNORM`, `POLLRDBAND`, `POLLWRBAND` and `POLLWRNORM` for Android
2017-07-12 13:56:02 +00:00
Nicolas Dusart bc79f4fc49 add poll constants to Android 2017-07-12 15:30:36 +02:00
bors 3f903a1da3 Auto merge of #658 - FenrirWolf:newlib-memalign, r=alexcrichton
Add memalign for newlib

Newlib doesn't have `posix_memalign`
2017-07-10 14:52:20 +00:00
bors 472ffbb75f Auto merge of #656 - ndusart:socket-consts, r=alexcrichton
add missing socket constants

Add some missing socket constants that are hardcoded by `nix` (nix-rust/nix#647)

I took the opportunity to merge some constants in a upper module when applicable.
2017-07-10 14:23:25 +00:00
Nicolas Dusart 9f5766fb3f add missing socket constants 2017-07-10 10:52:20 +02:00
Fenrir 5c38f427ec Add memalign for newlib 2017-07-09 22:30:28 -06:00
bors e5fd61e98e Auto merge of #653 - redox-os:redox, r=alexcrichton
Add read/write to Redox

These functions are required for alloc_system now
2017-07-09 15:38:08 +00:00
Jeremy Soller 7d57f039c4 Update redox.rs 2017-07-09 08:14:52 -06:00
bors 21101f9b3c Auto merge of #654 - Susurrus:moarmoar, r=alexcrichton
Various constants for mips64 and s390x

Now that these platforms were added to `libc`, we'd like to support them for `nix`. Here's some missing constants for us. We'll see if this passes CI...
2017-07-09 04:22:35 +00:00
Bryant Mairs f260fa0d0f Various constants for mips/mips64 and s390x 2017-07-08 20:42:33 -07:00
Jeremy Soller 800d799453 Add read/write to Redox 2017-07-08 17:26:49 -06:00
bors 288942e685 Auto merge of #652 - alexcrichton:s390xci, r=alexcrichton
Clean up CI configuration and add s390x

We can't test s390x because qemu segfaults but we can at least verify that it
compiles.

Closes #650
2017-07-07 21:19:37 +00:00
Alex Crichton 7d74c0993c Clean up CI configuration and add s390x
We can't test s390x because qemu segfaults but we can at least verify that it
compiles.

Closes #650
2017-07-07 14:19:06 -07:00
bors e8140b86ab Auto merge of #649 - FenrirWolf:bump-version, r=alexcrichton
Bump to 0.2.25

To get newlib bindings (#646) and other stuff on crates.io
2017-07-07 14:56:08 +00:00
Fenrir fa23a9bc42 Bump to 0.2.25 2017-07-07 08:35:54 -06:00
bors cc4d65995f Auto merge of #648 - aidanhs:aphs-no-docker-privileged, r=alexcrichton
Remove --privileged from docker

Per #43091

r? @alexcrichton
2017-07-07 14:04:32 +00:00
Aidan Hobson Sayers f305647377 Remove --privileged from docker 2017-07-07 15:01:29 +01:00
bors 375d773428 Auto merge of #646 - FenrirWolf:newlib, r=alexcrichton
Add experimental newlib bindings

I'm not sure how much desire there is for something like this in the libc crate, but I've been working with a newlib-based toolchain for a while and thought I'd throw this PR up and see what happens.

These bindings are more specifically targeted towards the devkitARM toolchain from http://devkitpro.org rather than newlib in general. I'd be happy to try making things more platform and toolchain-agnostic, but I'm not completely sure what the best way to do that is. I can move more of the arch-specific bindings to the `arm` folder, but should there also be a `devkitarm` subdirectory to further separate specific bindings from other newlib implementations?

There's also the question of if the bindings should live in the `unix` directory in the first place. Newlib aims to provide a unix/posix-like environment and it would be nice to inherit common unix definitions by default, but it can target anything from embedded devices to custom userlands, and as such it often lacks APIs that are common in other libc variants, such as pthreads.
2017-07-06 19:09:22 +00:00
Fenrir 91f66733ca Add experimental newlib bindings 2017-07-06 12:58:18 -06:00
bors 30564181bf Auto merge of #645 - Susurrus:android_extproc, r=alexcrichton
Add EXTPROC for android

Needed for nix-rust/nix#527.
2017-07-06 05:27:58 +00:00
Bryant Mairs 2008668c12 Add EXTPROC for android 2017-07-05 19:45:20 -07:00
bors 50bc03daa4 Auto merge of #643 - mneumann:fix-dragonfly-pthread-stack-min, r=alexcrichton
DragonFly - Change PTHREAD_STACK_MIN from 1 to 16k

This is probably related to cargo failing on DragonFly when running with
multiple jobs.

The minimum pthread stack size has been increase as shown here [1],
which was needed to fix nodejs.

[1]: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/592912cde1dc358bf080ae9aff3eca491688f47c
2017-07-04 16:10:04 +00:00
bors 44034f0777 Auto merge of #644 - roblabla:feature-missing-SO_PASSCRED-arm, r=alexcrichton
Add missing flags in glibc arm

Adds two missing flags that are defined everywhere except for arm-linux-gnueabi for some reason : SO_PASSCRED and SO_SNDBUFFORCE.

Also adds MAP_32BIT on x86_64-linux-android and i686-linux-android.
2017-07-04 15:50:03 +00:00
roblabla 0ea2040f13 Add missing constant MAP_32BIT on x86_64-linux-android and i686-linux-android 2017-07-04 17:19:32 +02:00
roblabla ba8ffc8ef7 Add missing flags in glibc arm 2017-07-04 14:33:24 +02:00
Michael Neumann 9fe906c72e DragonFly - Change PTHREAD_STACK_MIN from 1 to 16k
This is probably related to cargo failing on DragonFly when running with
multiple jobs.

The minimum pthread stack size has been increase as shown here [1],
which was needed to fix nodejs.

[1]: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/592912cde1dc358bf080ae9aff3eca491688f47c
2017-07-04 09:36:22 +02:00