- Apr 15, 2018
-
-
gnzlbg authored
-
- Apr 12, 2018
-
-
bors authored
Make netlink struct fields public I realized my netlink structs were a bit unusable if their fields are not public
Follow up and improvement to #922
-
- Apr 11, 2018
-
-
bors authored
Refresh Cargo.lock Fixes #968.
-
Linus Färnstrand authored
-
Mike Hommey authored
-
Mike Hommey authored
Fixes #968.
-
- Apr 10, 2018
-
-
bors authored
Add PTHREAD_*_MUTEX_INITIALIZER_NP for glibc `pthread_mutex_t` varies across architectures, in several ways: - endianness alters the ordering of bytes, since the contents of the struct are larger than 8-bit. - its length varies. - the location of the mutex kind (`PTHREAD_MUTEX_RECURSIVE`, `PTHREAD_MUTEX_ERRORCHECK` or `PTHREAD_MUTEX_ADAPTIVE_NP`) varies between 32-bit and 64-bit: On 32-bit architectures, it is preceded by three int/unsigned int, while on 64-bit architectures, it is preceded by four of them. These initializers are only available from <pthread.h> when _GNU_SOURCE is defined.
-
Mike Hommey authored
`pthread_mutex_t` varies across architectures, in several ways: - endianness alters the ordering of bytes, since the contents of the struct are larger than 8-bit. - its length varies. - the location of the mutex kind (`PTHREAD_MUTEX_RECURSIVE`, `PTHREAD_MUTEX_ERRORCHECK` or `PTHREAD_MUTEX_ADAPTIVE_NP`) varies between 32-bit and 64-bit: On 32-bit architectures, it is preceded by three int/unsigned int, while on 64-bit architectures, it is preceded by four of them. These initializers are only available from <pthread.h> when _GNU_SOURCE is defined. Relax the cfg_if check in ci/style.rs to allow #[cfg(target_endian)] tests.
-
Mike Hommey authored
-
bors authored
openbsd: SIGSTKSZ has been reduced On OpenBSD 6.3, `SIGSTKSZ` value has changed. https://github.com/openbsd/src/commit/e211c58cc8e20862a4eaa1b91fd4bc4a2975dad3
-
Sébastien Marie authored
-
- Apr 08, 2018
-
-
bors authored
Add flock type value definitions for Linux/other/x86_64
-
Craig M. Brandenburg authored
-
- Apr 07, 2018
-
-
bors authored
Add MAP_STACK constant to OpenBSD The mmap(2) flag indicate that the mapping is used as a stack. https://man.openbsd.org/mmap.2#MAP_STACK https://marc.info/?l=openbsd-tech&m=152035796722258&w=2
-
- Apr 06, 2018
-
-
bors authored
Default RHS to Self for Div and Shl This fixes a consistency issue with the other operator traits.
-
Nathaniel McCallum authored
This fixes a consistency issue with the other operator traits.
-
- Apr 05, 2018
-
-
bors authored
Add dox::{Copy, Clone} impls for pointer and integer types. Fixes: #961
-
Mike Hommey authored
Fixes: #961
-
- Apr 03, 2018
-
-
bors authored
Fix libstd build for mips*-unknown-linux-uclibc The getrandom syscall related constant were missing. This PR adds full syscall table just in case and few other nits.
-
dragan.mladjenovic authored
-
bors authored
netbsdlike: add TIOCSCTTY and TIOCSWINSZ ioctls. Include ioctl commands for becoming controlling tty and setting window size. This enables https://github.com/jwilm/alacritty to be built and run on OpenBSD 6.3. NetBSD and kin share the same command constants.
-
dragan.mladjenovic authored
-
Matt T. Proud authored
Include ioctl commands for becoming controlling tty and setting window size. This enables https://github.com/jwilm/alacritty to be built and run on OpenBSD 6.3. NetBSD and kin share the same command constants.
-
- Mar 24, 2018
-
-
bors authored
Add MCL_CURRENT and MCL_FUTURE to s390.
-
bors authored
Add strtonum to OpenBSD OpenBSD provides [strtonum](http://man.openbsd.org/strtonum) but it is not in libc, yet.
-
bors authored
Rename the dox configuration option to cross_platform_docs The libc crate is used as a dependency of the Rust compiler. Its build system passes `--cfg dox` to all crates when generating their documentation. libc's documentation is generated when the build system is asked to generate the compiler documentation because `cargo doc` automatically documents all dependencies. When the dox configuration option is enabled, libc disables its dependency on the core crate and provides the necessary definitions itself. The dox configuration option is meant for generating documentation for a multitude of targets even if the core crate for that target is not installed. However, when documenting the compiler, it's not necessary to do that; we can just use `core` or `std` as usual. This change is motivated by the changes made to the compiler in rust-lang/rust#48171. With these changes, it's necessary to provide implementations of the `Clone` and `Copy` traits for some primitive types in the library that defines these traits (previously, these implementations were provided by the compiler). Normally, these traits (and thus the implementations) are provided by core, so any crate that uses `#![no_core]` must now provide its own copy of the implementations. Because libc doesn't provide its own copy of the implementations yet, and because the compiler's build system passes `--cfg dox` to libc, generating the documentation for the compiler fails when generating documentation for libc. By renaming the configuration option, libc will use `core` or `std` and will thus have the necessary definitions for the documentation to be generated successfully. **Note:** rust-lang/rust#48171 is blocked on this PR and on a release of libc including this change on crates.io. (Some crates in the compiler use libc as a submodule, while others use a version from crates.io.)
-
Andreas Fackler authored
-
- Mar 22, 2018
-
-
Jan S authored
-
- Mar 19, 2018
-
-
Sébastien Marie authored
The mmap(2) flag indicate that the mapping is used as a stack. https://man.openbsd.org/mmap.2#MAP_STACK https://marc.info/?l=openbsd-tech&m=152035796722258&w=2
-
Francis Gagné authored
-
- Mar 18, 2018
-
-
Francis Gagné authored
The libc crate is used as a dependency of the Rust compiler. Its build system passes `--cfg dox` to all crates when generating their documentation. libc's documentation is generated when the build system is asked to generate the compiler documentation because `cargo doc` automatically documents all dependencies. When the dox configuration option is enabled, libc disables its dependency on the core crate and provides the necessary definitions itself. The dox configuration option is meant for generating documentation for a multitude of targets even if the core crate for that target is not installed. However, when documenting the compiler, it's not necessary to do that; we can just use core or std as usual. This change is motivated by the changes made to the compiler in rust-lang/rust#48171. With these changes, it's necessary to provide implementations of the Clone and Copy traits for some primitive types in the library that defines these traits (previously, these implementations were provided by the compiler). Normally, these traits (and thus the implementations) are provided by core, so any crate that uses `#![no_core]` must now provide its own copy of the implementations. Because libc doesn't provide its own copy of the implementations yet, and because the compiler's build system passes `--cfg dox` to libc, generating the documentation for the compiler fails when generating documentation for libc. By renaming the configuration option, libc will use core or std and will thus have the necessary definitions for the documentation to be generated successfully.
-
- Mar 17, 2018
-
-
bors authored
Define fdatasync on FreeBSD. It was introduced in FreeBSD 11.1.
-
- Mar 16, 2018
-
-
Alan Somers authored
-
bors authored
Update the FreeBSD CI image As per #948 and #799 the FreeBSD CI qemu image needs to be updated to FreeBSD 11. I have done this and updated the README with the detailed steps taken. The new image is available for download at: http://bsd-ci.com/FreeBSD-11.1-RELEASE-amd64.qcow2.xz
-
Wesley Moore authored
-
- Mar 15, 2018
-
-
Wesley Moore authored
-
Wesley Moore authored
-
- Mar 12, 2018
-
-
bors authored
redefine pthread_t for l4re-uclibc
-
Sebastian Humenda authored
-
Wesley Moore authored
-