summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #545 - kamalmarhubi:bump, r=alexcrichton0.2.21bors2017-03-022-3/+3
|\ | | | | | | | | | | Bump to 0.2.21 closes https://github.com/rust-lang/libc/issues/539
| * Bump to 0.2.21Kamal Marhubi2017-03-012-3/+3
|/ | | | closes https://github.com/rust-lang/libc/issues/539
* Auto merge of #543 - berkowski:socket_constants, r=alexcrichtonbors2017-03-0121-62/+831
|\ | | | | | | | | | | | | | | | | | | Adds many socket related constants Started off adding a few constants to help cleaning up some `nix-rust/nix` issues. Went a little.. further. Adds lots of socket-related constants (`PF_*`, `MSG_*`, `AF_*`, `SO_*`, `SOL_*`, etc.) to linux/bsd flavors. Added constants to `bsd/frebsdlike/dragonfly` for completeness, though they aren't covered by CI. Did not touch `notbsd/linux/s390x.rs`
| * Added #[doc(hidden)] to AF_MAX, PF_MAX, others.Zac Berkowitz2017-03-014-0/+10
| |
| * Added socket constants for appleZac Berkowitz2017-03-011-10/+116
| |
| * Cleaned up unused socket constants.Zac Berkowitz2017-03-012-41/+0
| |
| * Added many socket-related constants to BSDZac Berkowitz2017-03-016-5/+323
| |
| * Added many socket-related constants to linuxZac Berkowitz2017-03-0114-47/+423
| |
* | Auto merge of #538 - malbarbo:ci-android, r=alexcrichtonbors2017-03-0121-200/+463
|\ \ | |/ |/| | | | | | | | | | | | | | | Add and fix tests for {i686, aarch64}-linux-android targets I think that these changes do not breaks compatibility. There are some types and constants changes to i686 and aarch64, but I see these changes as bug fixes instead of breaking changes. Also the type time64_t was remove from aarch64 because it is not defined in this arch. Fixes #536
| * Merge branch 'master' into ci-androidMarco A L Barbosa2017-02-271-0/+2
| |\
| * | Fix styleMarco A L Barbosa2017-02-275-5/+10
| | |
| * | Fix missing prefix ::Marco A L Barbosa2017-02-274-54/+54
| | |
| * | Merge branch 'master' into ci-androidMarco A L Barbosa2017-02-2715-1/+399
| |\ \
| * | | Remove cfg_if from src/unix/mod.rsMarco A L Barbosa2017-02-278-113/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Copy 17 functions definitions from src/unix/mod.rs to src/unix/bsd/mod.rs src/unix/haiku/mod.rs src/unix/notbsd/linux/mod.rs and src/unix/solaris/mod.rs - Add some functions to android that was cfged out - Remove cf* and tc* functions implementations for android (they are available with api >= 12, which was release in 2011)
| * | | Remove cfg_if from src/unix/notbsd/android/Marco A L Barbosa2017-02-275-69/+69
| | | |
| * | | Enable travis tests for {i686, aarch64}-linux-androidMarco A L Barbosa2017-02-241-0/+6
| | | |
| * | | Fix aarch64-linux-android failing testsMarco A L Barbosa2017-02-243-4/+19
| | | |
| * | | Make libc-tests compile for aarch64-linux-androidMarco A L Barbosa2017-02-245-78/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - some tests are failing - remove readlink, timegm and sig* functions in favor of the unix/mod.rs definitions - remove time64_t (it is not defined for aarch64) - move some definitions to android/b32.rs and create appropriated definitions in android/b64.rs
| * | | Fix i686-linux-android failing testsMarco A L Barbosa2017-02-232-6/+25
| | | |
| * | | Add test support for {aarch64, i686}-linux-androidMarco A L Barbosa2017-02-238-26/+129
| | | |
* | | | Auto merge of #542 - Susurrus:master, r=alexcrichtonbors2017-02-281-0/+2
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | Add OXTABS and ONOEOT for BSD systems According to all references I could find these are BSD extensions to POSIX and are also supported on OS X.
| * | | Add OXTABS and ONOEOT for BSD systemsBryant Mairs2017-02-281-0/+2
|/ / /
* | | Auto merge of #541 - Susurrus:more_termios, r=alexcrichtonbors2017-02-272-0/+17
|\ \ \ | |_|/ |/| | | | | | | | | | | Add cfmakeraw and cfsetspeed This includes implementations for Android. `cfsetspeed` is basically just a back-to-back call to `cfsetispeed` and `cfsetospeed`, both of which seem to do the same thing here, so I just copied that body as well for `cfsetspeed`. The implementation for `cfmakeraw` was taken from the man pages for `termios(3)`.
| * | Add cfmakeraw and cfsetspeedBryant Mairs2017-02-272-0/+17
|/ / | | | | | | This includes implementations for Android.
* | Auto merge of #537 - Susurrus:master, r=alexcrichtonbors2017-02-242-0/+8
|\ \ | | | | | | | | | | | | | | | Add ppoll() for all unix platforms I'm unsure of whether there is support in OS X for this, and I can't find anything online (so I'm betting there isn't), but I'm going to let this run through CI to confirm.
| * | Fix path for nfds_tBryant Mairs2017-02-241-1/+1
| | |
| * | Expose ppoll on some BSDsBryant Mairs2017-02-241-0/+4
| | |
| * | Unify import styleBryant Mairs2017-02-241-3/+2
| | |
| * | Only expose ppoll on non-BSD targetsBryant Mairs2017-02-242-6/+5
| | |
| * | Fix timeout argument typeBryant Mairs2017-02-231-1/+1
| | |
| * | Fix style errorsBryant Mairs2017-02-231-1/+4
| | |
| * | Add ppoll() for all unix platforms.Bryant Mairs2017-02-231-0/+3
| | | | | | | | | | | | | | | | | | I'm unsure of whether there is support in OS X for this, and I can't find anything online (I'm betting there isn't), but I'm going to let this run through CI to confirm
* | | Auto merge of #530 - berkowski:baud_constants, r=alexcrichtonbors2017-02-2413-1/+388
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added baudrate constants. Addresses #528, adding baudrate constants for `bsd` and `notbsd` flavors of `unix`. Passes `libc-test` locally on ubuntu 14.04 LTS with the additional (uncommitted) entries into in `build.rs`: ``` cfg.skip_const( move |name| { match name { # ... snip ... "PTRACE_O_SUSPEND_SECCOMP" | "CLONE_NEWCGROUP" | "NETLINK_LIST_MEMBERSHIPS" | "NETLINK_LISTEN_ALL_NSID" | "NETLINK_CAP_ACK" | "PR_CAP_AMBIENT_CLEAR_ALL" | "PR_CAP_AMBIENT_LOWER" | "PR_CAP_AMBIENT_RAISE" | "PR_CAP_AMBIENT_IS_SET" | "PR_CAP_AMBIENT" | "PR_FP_MODE_FRE" | "PR_FP_MODE_FR" | "PR_GET_FP_MODE" | "PR_SET_FP_MODE" | "PR_MPX_DISABLE_MANAGEMENT" | "PR_MPX_ENABLE_MANAGEMENT" | "PR_GET_THP_DISABLE" | "PR_SET_THP_DISABLE" | "PR_SET_MM_MAP_SIZE" | "PR_GET_MM_MAP_SIZE" | "PR_SET_MM_MAP" | "NLM_F_DUMP_FILTERED" | "EPOLLEXCLUSIVE" => true, _ => false, } }); ``` I'm assuming this is because I'm stuck using `linux-libc-dev:3.13.0-24.46` for the moment and those constants are defined in newer versions.
| * | Removed "rpcsvc/rex.h" from `build.rs` for OpenBSDZac Berkowitz2017-02-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | ``` export TARGET=x86_64-unknown-openbsd export QEMU=openbsd.qcow2 sh ci/run-docker.sh $TARGET ``` Passes when run localy.
| * | Changed CBAUDEX to 0b000020 on ppc and ppc64Zac Berkowitz2017-02-242-2/+2
| | |
| * | Changed CBAUDEX to 0o010000 for ppc and ppc64Zac Berkowitz2017-02-242-2/+2
| | |
| * | Removed "termios.h" from `build.rs` openbsd case.Zac Berkowitz2017-02-241-1/+0
| | | | | | | | | | | | | | | Adding `termios.h` behind `rpcsvc/rex.h` does not solve the #define clash since `rex.h` also defines the `_SYS_TERMIOS_H_` include guard.
| * | Removed `BOTHER` const from powerpc and powerpc64Zac Berkowitz2017-02-222-2/+0
| | |
| * | Added baud constants for powerpcZac Berkowitz2017-02-212-0/+72
| | |
| * | Moved linux baud constants into individual archs.Zac Berkowitz2017-02-218-34/+238
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having the B* constants in `unix/notbsd/mod.rs` passed CI tests except for powerpc. So we'll try moving into individual arch/ABI that the CI tests cover for now. This commit should pass for the following: - mips32 - mips64 - musl32 - musl64 - android32 - android64 - arm32 - aarch64 - x86 - x86_64 Then we can figure out the powerpc variants. This also prevents potential errors for sparc64 which is not covered by CI.
| * | Adding termios.h to openbsd headers.Zac Berkowitz2017-02-201-0/+1
| | | | | | | | | | | | Attempting to correct for conflicting defines from `rpcsvc/rex.h`
| * | Added baudrate constants.Zac Berkowitz2017-02-204-0/+114
| | |
* | | Auto merge of #527 - philippkeller:master, r=alexcrichtonbors2017-02-231-0/+2
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add tmpnam and pthread_exit tmpnam and readdir are trivial IMO. About the `pthread_create` change: It needs `unsafe` for passing `C` functions to pthread_create (with rust functions the omission of `unsafe` is working of course). `bindgen` produces this function definition: ``` pub fn pthread_create(arg1: *mut pthread_t, arg2: *const pthread_attr_t, arg3: Option<unsafe extern "C" fn(arg1: *mut c_void) -> *mut c_void>, arg4: *mut c_void) -> c_int; ``` So it would add an additional `Option` around the function. But that would break existing code which uses `libc::pthread_create` and what use is it to call pthread_create without any function pointer, so I left `Option` out. For reference: I also opened a [stackoverflow question](http://stackoverflow.com/questions/42284562) where the answers were also suggesting adding `unsafe` to the function definition.
| * | Remove duplicate readdir definitionPhilipp Keller2017-02-231-3/+0
| | |
| * | Merge branch 'master' of https://github.com/rust-lang/libcPhilipp Keller2017-02-234-3/+54
| |\ \ | |/ / |/| |
* | | Auto merge of #532 - malbarbo:fs2-android, r=alexcrichtonbors2017-02-223-3/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | Add definitions to Android to allow fs2 crate compile This is the only missing part to allow cargo to compile on android.
| * | | Add definitions to Android to allow fs2 crate compileMarco A L Barbosa2017-02-213-3/+20
| | |/ | |/|
* | | Auto merge of #533 - raphlinus:master, r=alexcrichtonbors2017-02-222-1/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make readdir available on all unix targets The readdir_r call has problems, and we'll probably want to move to readdir on many, if not most, unix targets. This patch makes readdir available in unix, rather than just solaris as before. See https://github.com/rust-lang/rust/issues/40021
| * | | Change return type of readdir to *mut ::direntRaph Levien2017-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | Apparently a lot of libc's don't put "const" on the return type for readdir, which causes type mismatch.
| * | | Make readdir available on all unix targetsRaph Levien2017-02-212-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The readdir_r call has problems, and we'll probably want to move to readdir on many, if not most, unix targets. This patch makes readdir available in unix, rather than just solaris as before. See https://github.com/rust-lang/rust/issues/40021