Commit Graph

398 Commits

Author SHA1 Message Date
Alex Crichton
0422dbaabd Merge branch 'add_ioctl_constants' of https://github.com/derekdreery/libc into merge 2016-01-10 14:43:08 -08:00
Alex Crichton
a5d830a8a0 Move docker container and don't re-symlink mips compilers 2016-01-10 14:36:27 -08:00
Alex Crichton
4506d29557 Merge branch 'mips3' of https://github.com/polachok/libc into merge 2016-01-10 14:23:28 -08:00
Alex Crichton
fc1b0ad67c Merge branch 'master' of https://github.com/diwic/libc into merge 2016-01-10 14:21:13 -08:00
Alex Crichton
0e67fabda3 Merge branch 'openbsd-cleanup' of https://github.com/semarie/libc into merge 2016-01-10 14:19:17 -08:00
Alexander Polakov
6ac75c16b1 Fix mips fallout on new toolchain 2016-01-05 22:44:01 +03:00
Richard Dodd
0a64d24137 Add ioctl constants 2015-12-31 12:51:50 +00:00
Simon Sapin
52f4f39a77 Add SO_REUSEPORT for Android
The `net2` crate currently fails to cross-compile to Android with
``error: unresolved name `libc::SO_REUSEPORT` ``

According to http://stackoverflow.com/a/14388707/1162888,
Android is essentially the same as Linux for the purpose of
socket features support, and the Linux kernel has supported
`SO_REUSEPORT` since version 3.9.

According to http://android.stackexchange.com/a/51656,
Android has had more recent kernels than that since version 4.4 Kit Kat.
2015-12-28 00:25:07 +01:00
Alexander Polakov
2cdb21ea2b Use docker for MIPS 2015-12-27 12:22:59 +03:00
David Henningsson
9d2493e8bf Add poll API
Signed-off-by: David Henningsson <diwic@ubuntu.com>
2015-12-25 23:06:37 +01:00
Sébastien Marie
6c8a63a9e2 keep openbsd name for dirent field member 2015-12-23 20:23:06 +01:00
Sébastien Marie
6b847426de provide getentropy(2) instead of SYS_entropy
SYS_entropy is internal and may more easily change than getentropy(2).
2015-12-23 11:03:14 +01:00
Sébastien Marie
ee8c050071 define NI_MAXHOST per system
- under openbsd/bitrig it is 256
- change type to `size_t` where system have `getnameinfo()` with
  `hostlen` as `size_t`
2015-12-23 11:03:13 +01:00
Sébastien Marie
3de62ef5a7 define TMP_MAX differently for openbsdlike 2015-12-23 11:03:13 +01:00
Sébastien Marie
0f8571b63d properly define SIGSTKSZ under openbsd 2015-12-23 11:03:13 +01:00
Sébastien Marie
6dc38681a6 use proper type of si_addr in siginfo_t
under openbsd it is a `caddr_t` which expand to `char *`.
as the size of the type change, adjust the padding too.
2015-12-23 11:03:13 +01:00
Sébastien Marie
b1a108c245 change sign for blksize_t type under openbsd 2015-12-23 11:03:12 +01:00
Sébastien Marie
d732678ddc change type size to match openbsd C 2015-12-23 11:03:12 +01:00
Sébastien Marie
c5eadb3293 remove backtrace() prototype that don't exists under
- openbsd
- bitrig
- netbsd
2015-12-23 11:03:12 +01:00
Sébastien Marie
5f75552056 change proto for getnameinfo()
arguments `hostlen' and `servlen' are `socklen_t' or `size_t' depending
the platform

- apple: I don't known, so I don't change the original definition (socklen_t)
- netbsd: socklen_t
- freebsd: size_t
- dragonfly: size_t
- openbsd: size_t
- bitrig: size_t
2015-12-23 11:03:12 +01:00
Sébastien Marie
3465481a8c more proto change on openbsd
- sysctl: *mut -> *const
- mprotect: *const -> *mut
- remove sysctlbyname() that don't exists under openbsd
2015-12-23 11:03:11 +01:00
Sébastien Marie
040976b20f change proto (uint -> int) for pthread_*_np() functions
- same prototype on bitrig and openbsd
- for netbsd, I did found it at all (?)
2015-12-23 11:03:11 +01:00
Sébastien Marie
27fd4f8661 rename syscalls constants to follow name under openbsd 2015-12-23 11:03:11 +01:00
Sébastien Marie
85008bd38e drop undefined constants under openbsd
- IPV6_{ADD,DROP}_MEMBERSHIP
- HW_AVAILCPU
2015-12-23 11:03:11 +01:00
Sébastien Marie
15cb33670d move Dl_info struct per system
- under openbsd and bitrig: dli_saddr member is *mut ::c_void
- under netbsd: it is *const ::c_void
2015-12-23 11:03:10 +01:00
Sébastien Marie
9e8707902f there are no pw_fields in struct passwd under openbsd 2015-12-23 11:03:10 +01:00
Sébastien Marie
c618f366f3 add openbsd support to libc-test 2015-12-23 11:03:10 +01:00
Alex Crichton
fb83189000 Merge pull request #107 from brson/emscripten
Add emscripten support
2015-12-21 17:19:30 -08:00
Brian Anderson
9d014e9d40 Remove emscripten docs 2015-12-22 00:03:11 +00:00
Brian Anderson
7d1d57521a Add emscripten support 2015-12-21 23:34:02 +00:00
Alex Crichton
e0c0bf439a Merge pull request #109 from semarie/openbsd-si_addr
openbsd: map `si_addr` inside `struct siginfo_t`
2015-12-20 08:41:16 -08:00
Sébastien Marie
73a2dbce11 openbsd: map si_addr inside struct siginfo_t
formally, under OpenBSD, `si_addr` is part of a C union. As we don't use
others members of the union inside `struct siginfo_t`, it should be safe
to directly map the field.
2015-12-20 06:58:07 +01:00
Alex Crichton
4b9b07c719 Merge pull request #88 from alexcrichton/update-android
Update the android CI image
2015-12-18 13:51:06 -08:00
Alex Crichton
881ef9b966 Update the android CI image
It's got a new toolchain which should hopefully support some more modern
definitions.
2015-12-18 13:15:09 -08:00
Alex Crichton
2c7e08c959 Merge pull request #108 from mmcco/sc
Add getentropy(2)'s syscall number as a const
2015-12-18 09:19:55 -08:00
Michael McConville
3d372e605a Fix build by adding type prefix colons 2015-12-18 00:19:00 -05:00
Michael McConville
405e557d6c Add getentropy(2)'s syscall number as a const
I'm not convinced that the NR_* naming scheme is ideal, but it's pretty
good.

I didn't recognize any other syscall numbers in the file, so I started a
new section.
2015-12-18 00:09:43 -05:00
Alex Crichton
31423a3e24 Merge pull request #106 from alexcrichton/bump
Bump to 0.2.4
2015-12-17 15:20:36 -08:00
Alex Crichton
ff38c3a121 Bump to 0.2.4 2015-12-17 14:44:50 -08:00
Alex Crichton
9863d5645f Merge pull request #105 from alexcrichton/fix-bsd
Fix compiles on various BSDs
2015-12-17 13:58:05 -08:00
Alex Crichton
37b71423c9 Fix compiles on various BSDs
Also document them to prevent future regressions
2015-12-17 10:50:53 -08:00
Alex Crichton
3e1791cf98 Merge pull request #102 from fhahn/add-memrchr
Add binding for memrchr on Linux
2015-12-17 10:33:20 -08:00
Florian Hahn
6bb23a162c Add binding for memrchr on Linux, FreeBSD, OpenBSD and NetBSD 2015-12-16 23:23:16 +01:00
Alex Crichton
ab53d5e957 Merge pull request #103 from alexcrichton/bump
Bump to 0.2.3
2015-12-16 13:01:09 -08:00
Alex Crichton
79d989996b Bump to 0.2.3 2015-12-16 11:46:54 -08:00
Alex Crichton
0ac0bc0cce Merge pull request #93 from alexcrichton/nix-additions
Add a load of constants/definitions from nix
2015-12-16 09:03:14 -08:00
Alex Crichton
8dce9ada5c Add a load of constants/definitions from nix
This is a blanket import of lots of constants and function from nix-rust
2015-12-16 08:16:41 -08:00
Alex Crichton
4920c7e88a Merge pull request #101 from maghoff/master
Expose functionality to get peer credentials for a Unix socket on Linux
2015-12-16 08:12:55 -08:00
Magnus Hoff
4b320654ba Expose functionality to get peer credentials for a Unix socket on Linux 2015-12-16 11:23:54 +01:00
Alex Crichton
64da6d22ba Merge pull request #98 from j16r/master
Add PATH_MAX for FreeBSDlike, defined in /usr/src/sys/sys/syslimits.h
2015-12-15 17:15:40 -08:00