Commit Graph

1440 Commits

Author SHA1 Message Date
Aidan Hobson Sayers f305647377 Remove --privileged from docker 2017-07-07 15:01:29 +01: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
bors ce93306c01 Auto merge of #642 - roblabla:feature-missingConstantsAndroid, r=alexcrichton
Add missing SO_ constants for android

Those constants are used by https://github.com/nix-rust/nix

I pulled them from https://android.googlesource.com/platform/prebuilts/ndk/+/dev/platform/sysroot/usr/include/asm-generic/socket.h
2017-07-03 21:27:17 +00:00
roblabla 4fcd45a96d Add missing SO_ constants for android 2017-07-03 22:35:03 +02:00
bors 3acddc7886 Auto merge of #640 - Susurrus:apple_termios_constants, r=alexcrichton
Add missing termios constants for Mac

Didn't add these the first time around, because it says they're unimplemented, but so are the `NL0` and related constants I added. This also makes testing a little easier having these constants available, and they are in the termios headers on Mac.
2017-07-03 17:32:36 +00:00
bors ab7885100e Auto merge of #634 - ndusart:master, r=alexcrichton
Update NDK to r15b and add some missing symbols

Use the new unified headers of the NDK and add some missing symbols for Android.

Fixes #632
2017-07-03 16:09:54 +00:00
bors 8ec65a1ae5 Auto merge of #638 - main--:fix, r=alexcrichton
Fix types of PTHREAD_PROCESS_* constants

Somehow these ended up with wrong types in #633.
2017-07-03 15:25:08 +00:00
Nicolas Dusart 4abc3cefef Update to NDK r15b (with unified headers) and add missing symbols needed by nix crate 2017-07-03 13:26:35 +02:00
Bryant Mairs cab41d7b4a Add missing termios constants for Mac 2017-07-02 18:31:27 -07:00
bors 158d778258 Auto merge of #639 - Susurrus:more_socket_constants, r=alexcrichton
Add socket constants for more platforms

Missing a few constants across all nix-supported platforms (see nix-rust/nix#636) so this adds them. This is still a work in progress as I wanted to make sure I didn't break anything doing most of the fixes. I'll come back and finish this up later.
2017-07-03 01:26:40 +00:00
Bryant Mairs 2a27242272 Add socket constants for more platforms 2017-07-02 16:45:27 -07:00
bors 1af26db6dd Auto merge of #636 - Susurrus:termios_ioctl, r=alexcrichton
Add constants for termios ioctls

These should be `c_int` from what I could see for Linux and I assumed the others were the same.
2017-07-02 20:24:55 +00:00
Bryant Mairs 82dc2f3322 Add constants for termios ioctls 2017-07-02 09:55:00 -07:00
main() 3636d783c7 Fix types of PTHREAD_PROCESS_* constants 2017-07-02 18:47:37 +02:00
bors 77e0da5e1d Auto merge of #635 - Susurrus:termios_again, r=alexcrichton
Finish off termios (hopefully!)

`cfmakesane` for FreeBSD and `tcgetsid` for everyone!
2017-06-30 05:57:29 +00:00
Bryant Mairs e591c6f08a Add tcfgetsid for all unices 2017-06-29 20:49:42 -07:00
Bryant Mairs 17936dc221 Add cfmakesane for FreeBSD
This doesn't appear on any other platforms
2017-06-29 20:49:38 -07:00
bors 83f5543e76 Auto merge of #633 - main--:rwlockattr, r=alexcrichton
Add pthread_rwlockattr APIs

I'm basically trying to mirror the existing code for pthread_mutexattr.

Hopefully the non-linux parts are correct - finding the right definitions is rather confusing and occasionally even contradicts existing definitions (e.g. [this](a26375e7b3/src/libpthread/src/internal.h (L295)) `pthread_condattr_t` doesn't match #335).
2017-06-29 00:58:53 +00:00
main() b2de1fd5e1 Add pthread_rwlockattr APIs 2017-06-28 17:56:37 +02:00
bors 4dd672704a Auto merge of #628 - asomers:sysconf, r=alexcrichton
Add constants for sysconf(3) and pathconf(3)
2017-06-27 00:44:14 +00:00
Alan Somers 8961292919 Add constants for pathconf(3) 2017-06-26 18:38:13 -06:00
Alan Somers 41404970a3 Add sysconf constants for Illumos 2017-06-26 18:37:48 -06:00
Alan Somers 948d36d6c4 sort sysconf constants for Illumos 2017-06-26 18:37:47 -06:00
Alan Somers db2b3d8e34 Add sysconf(2) constants for NetBSD and OpenBSD 2017-06-26 18:37:47 -06:00
Alan Somers c0b6280585 Sort sysconf constants for NetBSD and OpenBSD. No functional change. 2017-06-26 18:37:47 -06:00
Alan Somers 7b17a30954 Add sysconf constants for Linux and Android 2017-06-26 18:37:46 -06:00
Alan Somers 57fa5fab85 Add sysconf constants for FreeBSD and DragonflyBSD 2017-06-26 18:37:46 -06:00
Alan Somers 8f666d4273 Sort FreeBSD's sysconf variables. No functional changes. 2017-06-26 18:35:50 -06:00
bors f53b95a337 Auto merge of #625 - Susurrus:termios_more, r=alexcrichton
Add more termios constants

Went through and found some more termios constants that were missing and added them. I skipped some platforms (solaris, uclibc) and assumed Android has the same constants are Linux, as I couldn't find a good reference for what Android exposes, but it generally follows linux, so I assumed the same was true for some of those values.

## References:
 FreeBSD:
   * d39171bb1f/sys/sys/_termios.h
   * d39171bb1f/include/termios.h
 NetBSD: 0bff031265/sys/sys/termios.h
 musl: /usr/x86_64-linux-musl/include/bits/termios.h (identical to Linux-x86_64)
 linux: /usr/include/bits/termios.h
 OpenBSD: 5271000b44/sys/sys/termios.h
 DragonFlyBSD:
   * ddad68003a/sys/sys/_termios.h
   * ddad68003a/sys/sys/termios.h
 Android: Just use the same as Linux
 uclibc: skipped
 haiku-os: http://cgit.haiku-os.org/haiku/tree/headers/posix/termios.h
 mac: /usr/include/sys/termios.h and /usr/include/sys/_types/_posix_vdisable.h
 solaris: skipped
 bitrig (follows openbsd): d31f5220a9/sys/sys/termios.h
2017-06-26 21:54:59 +00:00
bors 46f71e2b2f Auto merge of #626 - humenda:master, r=alexcrichton
[uclibc] add more structs to x86_64

This adds more structs to the uclibc/x86_64 port.
2017-06-26 20:40:29 +00:00
Bryant Mairs 297d5b7d03 Add termios local flags 2017-06-25 08:39:19 -07:00
bors a38631f465 Auto merge of #616 - Arvamer:linux_input_types, r=alexcrichton
Add structs defined in linux/input.h

I was using definitions for these structs from `ioctl` but because @cmr decide to deprecate his crate (and yanked all versions :() I think that `libc` is the best place for them.

In original C header, primitive types uses aliases like `__u16` or `__s32`; for now I replaced them with Rust's counterparts but I'm not sure if it is ok, especially because tests were failing for `u64` (`unsigned long long` vs `unsigned long` on x86_64). Also, should I do something special with union in `ff_effect`?

I would like also to add all constants form `linux/input.h` and `linux/input-event-codes.h` if this PR will be accepted.
2017-06-25 04:55:33 +00:00
bors 2f28640dcb Auto merge of #627 - GuildMasterInfinite:master, r=alexcrichton
Add missing Android constant

This pull requests add the `_SC_NPROCESSORS_CONF` constant to `libc` for Android targets. The similar `_SC_NPROCESSORS_ONLN` already existed.

The reason for adding only this constant is to help fix an [issue with `num_cpus`](https://github.com/seanmonstar/num_cpus/issues/34).
2017-06-24 17:13:10 +00:00
Gabriel Majeri 93f897aefb Add _SC_NPROCESSORS_CONF 2017-06-24 19:48:17 +03:00
Bryant Mairs cb53d72581 Add termios control flags 2017-06-24 08:56:16 -07:00
Bryant Mairs bd7dfd133b Add termios control character indices 2017-06-24 08:56:16 -07:00
Bryant Mairs 14a3a11e24 Add more termios output flags 2017-06-24 08:56:14 -07:00
Sebastian Humenda c7a7cd831c Add more structs
This adds more structs to the uclibc/x86_64 port.
2017-06-23 14:28:38 +02:00
bors 299e3f6e66 Auto merge of #624 - equal-l2:add-bsd-flag, r=alexcrichton
Add BSD flags
2017-06-20 15:04:46 +00:00
equal-l2 00fae9ebe5 Explicitly use namespace 2017-06-20 09:46:45 +09:00
equal-l2 6294184355 Add O_TTY_INIT for FreeBSD 2017-06-19 23:46:37 +09:00
equal-l2 8394276be0 Add O_RSYNC for NetBSD and OpenBSD 2017-06-19 23:46:37 +09:00
equal-l2 cad9a69cf7 Add O_EXEC for FreeBSD 2017-06-19 23:46:37 +09:00
equal-l2 971a291414 Add O_DIRECT for NetBSD and FreeBSD-like 2017-06-19 23:46:37 +09:00