summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add new sendfile flags for FreeBSDAndrew Morrow2018-05-171-0/+2
|
* Add sem_getvalue to unixJason Longshore2018-05-107-0/+14
|
* Add TIOCGWINSZ to openbsdkpcyrd2018-05-061-0/+1
|
* Auto merge of #983 - mcginty:bsd-pktinfo, r=alexcrichtonbors2018-05-014-0/+26
|\ | | | | | | | | | | add remaining pktinfo consts/structs for the other BSDs This continues the work from https://github.com/rust-lang/libc/pull/980, adding a more complete set of supported platforms for the "I want to know what destination this UDP packet had" problem.
| * add remaining pktinfo consts/structs for the other BSDsJake McGinty2018-05-014-0/+26
| |
* | define more TCP_ sockopts on bsdArvid E. Picciani2018-05-012-3/+11
|/ | | | Signed-off-by: Arvid E. Picciani <aep@exys.org>
* add pktinfo consts and structs for linux and appleJake McGinty2018-04-224-0/+33
|
* fix domain of html_root_url to be rust-lang.github.ioTrevor Spiteri2018-04-211-22/+22
|
* haiku: Add RLIMIT_STACK and fix RTLD_* definitionsCalvin Hill2018-04-201-1/+4
|
* Auto merge of #972 - gnzlbg:packed, r=alexcrichtonbors2018-04-172-3/+3
|\ | | | | | | | | | | | | | | Fix undefined-behavior on MacOSX structs in stdbuilds Some MacOSX structs have an incorrect layout that results in undefined behavior. This is because on `x86_64` the MacOSX kernel headers define these using `#pragma pack 4`. This PR fixes their layout using `repr(packed(4))` . Since it is only available on nightly, it is only enabled for stdbuilds .
| * fix this for stdbuild onlygnzlbg2018-04-152-3/+3
| |
| * fix undefined behavior due to incorrect packing on macosxgnzlbg2018-04-151-2/+2
| |
* | feat: add fread_unulock for linux真人2018-04-171-0/+5
|/
* Auto merge of #971 - faern:public-netlink-fields, r=alexcrichtonbors2018-04-124-66/+66
|\ | | | | | | | | | | | | | | Make netlink struct fields public I realized my netlink structs were a bit unusable if their fields are not public :man_facepalming: Follow up and improvement to #922
| * Make fields in all netlink related structs publicLinus Färnstrand2018-04-114-66/+66
| |
* | Fix statvfs on mips and powerpc glibcMike Hommey2018-04-1111-23/+161
|/
* Auto merge of #960 - glandium:mutex-init, r=alexcrichtonbors2018-04-1011-0/+381
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Add PTHREAD_*_MUTEX_INITIALIZER_NP for glibcMike Hommey2018-04-119-0/+378
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `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.
| * Add PTHREAD_MUTEX_ADAPTIVE_NP for glibcMike Hommey2018-04-113-0/+3
| |
* | openbsd: SIGSTKSZ has been reducedSébastien Marie2018-04-104-1/+6
| |
* | Add flock type value definitions for Linux/other/x86_64Craig M. Brandenburg2018-04-081-0/+4
| |
* | Auto merge of #952 - semarie:map_stack, r=alexcrichtonbors2018-04-071-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Add MAP_STACK constant to OpenBSDSébastien Marie2018-03-191-0/+2
| | | | | | | | | | | | | | | | | | | | | 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
* | | Default RHS to Self for Div and ShlNathaniel McCallum2018-04-061-2/+2
| | | | | | | | | | | | This fixes a consistency issue with the other operator traits.
* | | Add dox::{Copy, Clone} impls for pointer and integer types.Mike Hommey2018-04-051-0/+14
| |/ |/| | | | | Fixes: #961
* | Auto merge of #958 - draganmladjenovic:uclibc_mips32, r=alexcrichtonbors2018-04-032-2/+370
|\ \ | | | | | | | | | | | | | | | 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.
| * | Fix style for #958.dragan.mladjenovic2018-04-031-1/+0
| | |
| * | Fix libstd build for mips*-unknown-linux-uclibcdragan.mladjenovic2018-04-032-2/+371
| | |
* | | netbsdlike: add TIOCSCTTY and TIOCSWINSZ ioctls.Matt T. Proud2018-04-031-0/+2
|/ / | | | | | | | | | | 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.
* | Auto merge of #955 - afck:master, r=alexcrichton0.2.40bors2018-03-241-0/+3
|\ \ | | | | | | | | | Add MCL_CURRENT and MCL_FUTURE to s390.
| * | Add MCL_CURRENT and MCL_FUTURE to s390.Andreas Fackler2018-03-241-0/+3
| |/
* | Auto merge of #954 - cphrn:master, r=alexcrichtonbors2018-03-241-0/+3
|\ \ | | | | | | | | | | | | | | | Add strtonum to OpenBSD OpenBSD provides [strtonum](http://man.openbsd.org/strtonum) but it is not in libc, yet.
| * | Add strtonum to OpenBSDJan S2018-03-221-0/+3
| | |
* | | Rename the dox configuration option to cross_platform_docsFrancis Gagné2018-03-184-8/+8
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Define fdatasync on FreeBSD. It was introduced in FreeBSD 11.1.Alan Somers2018-03-161-0/+1
| |
* | Merge branch 'fix-build-freebsd' into update-freebsd-ci-imageWesley Moore2018-03-171-6/+8
|\ \ | |/ |/|
| * Fix test suite on FreeBSD 11Wesley Moore2018-03-121-6/+8
| |
* | redefine pthread_t for l4re-uclibcSebastian Humenda2018-03-125-2/+11
|/
* Auto merge of #946 - bgermann:master, r=alexcrichtonbors2018-03-101-0/+1
|\ | | | | | | Add ___errno() for Solaris
| * Add ___errno() for Solarisbgermann2018-03-101-0/+1
| |
* | Edit documentationbgermann2018-03-101-1/+4
|/ | | | | Add sparc64-unknown-linux-gnu and x86_64-sun-solaris. Remove aarch64-unknown-linux-musl.
* Retract ucred type alias for sockpeercred from OpenBSD and BitrigWictor Lund2018-03-081-1/+0
|
* Auto merge of #942 - wictory:pledge_changed, r=alexcrichtonbors2018-03-073-2/+4
|\ | | | | | | | | | | | | | | Arguments of pledge(2) changed. The arguments of pledge(2) have changed. However, the changes have to yet been propagated to Bitrig. https://marc.info/?l=openbsd-tech&m=151268831628549&w=2
| * Arguments of pledge(2) changed.Wictor Lund2018-03-073-2/+4
| | | | | | | | https://marc.info/?l=openbsd-tech&m=151268831628549&w=2
* | Auto merge of #943 - wictory:recycle_ffi_openbsd, r=alexcrichtonbors2018-03-073-18/+36
|\ \ | | | | | | | | | | | | | | | Recycle IFF_NOTRAILERS into IFF_STATICARP in OpenBSD but not in Bitrig. https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/net/if.h?rev=1.190&content-type=text/x-cvsweb-markup
| * | Recycle IFF_NOTRAILERS into IFF_STATICARP in OpenBSD but not in Bitrig.Wictor Lund2018-03-073-18/+36
| |/ | | | | | | https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/net/if.h?rev=1.190&content-type=text/x-cvsweb-markup
* | getpwent_r() and getgrent_r() exists in NetBSD, but not in OpenBSD and Bitrig.Wictor Lund2018-03-072-9/+13
|/
* Added ucred (sockpeercred) for OpenBSD and BitrigWictor Lund2018-03-071-0/+7
|
* Add FreeBSD `get[pw|gr]ent_r`, forgotten in #934Fredrick Brennan2018-03-051-0/+9
| | | | Sorry, accidentally forgot this when submitting #934..
* Auto merge of #934 - ctrlcctrlv:master, r=alexcrichton0.2.38bors2018-03-035-0/+40
|\ | | | | | | | | | | | | | | Add passwd/group APIs needed for nix-rust/nix#864 Hope I did this right. I only added platforms I could personally test. . . cc: @gnzlbg