Commit Graph

1682 Commits

Author SHA1 Message Date
Jack Pappas
e8dd192440 Define additional IPPROTO_* constants. 2017-09-17 13:05:20 -04:00
bors
82cae67621 Auto merge of #759 - slyrz:master, r=alexcrichton
Add timerfd API on Linux

This change adds the Linux-specific timerfd API to libc.

```C
#include <sys/timerfd.h>

int timerfd_create(int clockid, int flags);
int timerfd_gettime(int fd, struct itimerspec *curr_value);
int timerfd_settime(int fd, int flags,
                    const struct itimerspec *new_value,
                    struct itimerspec *old_value);
```

The timerfd API has been available since kernel 2.6.25 and in glibc since version 2.8.

I'm not sure if I put the changes in the right places, so please review with great care.
2017-09-09 21:51:54 +00:00
slyrz
de6fa494af Map timerfd constants to their fcntl counterparts 2017-09-09 20:41:09 +02:00
bors
1f2748a58e Auto merge of #760 - JayH5:linux-initgroups, r=alexcrichton
Linux/Android: re-add initgroups

This was removed in #742
2017-09-09 16:06:01 +00:00
Jamie Hewland
6da0389cba Linux/Android: re-add initgroups 2017-09-09 15:38:15 +02:00
slyrz
340cbbfe75 Add timerfd API on Linux
This change adds the Linux-specific timerfd API to libc.
2017-09-09 13:02:29 +02:00
Alex Crichton
95848f9622 Merge pull request #758 from humenda/uclibc_networking
Add networking symbols for uclibc/x86_64
2017-09-06 13:39:22 -05:00
Alex Crichton
39dba5f15a Merge pull request #755 from bgermann/master
Add Solaris 10 support
2017-09-06 13:39:10 -05:00
Alex Crichton
2d934159ee Merge pull request #756 from jessicah/haiku-updates
Haiku updates
2017-09-06 13:38:59 -05:00
Sebastian Humenda
dee3699228 Add networking symbols for uclibc/x86_64 2017-09-06 16:26:18 +02:00
bors
db2c565a4a Auto merge of #757 - alexcrichton:no-cache, r=alexcrichton
Remove caching and fix FreeBSD tests
2017-09-06 13:57:15 +00:00
Alex Crichton
d2044231dc Remove caching and fix FreeBSD tests 2017-09-05 20:18:21 -07:00
bgermann
eac505625b Add pthread_create for Solaris 2017-09-04 20:55:50 +02:00
Jessica Hamilton
17c74f499d haiku: res_init link name is __res_init. 2017-09-03 16:29:19 -05:00
Jessica Hamilton
07a430325c haiku: add missing POSIX errors, reorder to match header. 2017-09-03 16:29:19 -05:00
Jessica Hamilton
b24c5888cd haiku: add missing SOCK_SEQPACKET. 2017-09-03 16:29:19 -05:00
Jessica Hamilton
ab7925f8ea haiku: add missing pthread_create. 2017-09-03 16:29:19 -05:00
Jessica Hamilton
dc2e747b2a haiku: time_t is now 64-bit on x86_64. 2017-09-03 16:29:19 -05:00
bgermann
deb61c8709 Add memalign for Solaris
Unlike Illumos and Solaris 11, Solaris 10 does not support posix_memalign, so this change is needed for Solaris 10 support.
2017-09-03 15:11:24 +02:00
bors
e102a72651 Auto merge of #749 - joshlf:mach-vm-flags, r=alexcrichton
apple: Add VM_* constants from mach/vm_statistics.h

Closes #736.
2017-08-31 00:37:07 +00:00
bors
04a5e75c99 Auto merge of #751 - alexcrichton:sparc, r=alexcrichton
Fix compile on sparc64
2017-08-30 23:59:39 +00:00
Alex Crichton
e5d4c13941 Fix compile on sparc64 2017-08-30 16:59:05 -07:00
Joshua Liebow-Feeser
f8bfc6eaa4 apple: Add VM_* constants from mach/vm_statistics.h
Closes #736
2017-08-30 16:04:21 -07:00
bors
9100c0fde9 Auto merge of #750 - agrover:fix-devt-minor, r=alexcrichton
Fix dev_t minor() bitmasking on Linux

This code appears to be modeled on the macros in glibc bits/sysmacros.h
(since Glibc 2.26). Fix the masking of bits for minor() to match that
implementation, which also corresponds with the explanatory comment in
that file.
2017-08-30 22:51:38 +00:00
Andy Grover
b5bb3b4a1d Fix dev_t minor() bitmasking on Linux
This code appears to be modeled on the macros in glibc bits/sysmacros.h
(since Glibc 2.26). Fix the masking of bits for minor() to match that
implementation, which also corresponds with the explanatory comment in
that file.
2017-08-30 14:49:19 -07:00
bors
c17711e5fb Auto merge of #748 - Susurrus:QCMD, r=alexcrichton
Add QCMD() for available platforms

Exists where `Q_QUOTAON` also exists, so added it for those same platforms.
2017-08-30 04:15:37 +00:00
bors
f2fa55176a Auto merge of #747 - Susurrus:qfmt, r=alexcrichton
Add QFMT_VFS_V1 on MIPS and test all QFMT_ constants
2017-08-30 03:57:19 +00:00
Bryant Mairs
aa74435141 Add QCMD() for available platforms 2017-08-29 20:14:29 -07:00
Bryant Mairs
bd4c3489e5 Add QFMT_VFS_V1 on MIPS and test all QFMT_ constants 2017-08-29 19:33:22 -07:00
bors
3520512a8c Auto merge of #746 - alexcrichton:bump, r=alexcrichton
Bump to 0.2.30
2017-08-27 17:49:25 +00:00
Alex Crichton
938252cba7 Bump to 0.2.30 2017-08-27 10:34:33 -07:00
bors
1c1413e961 Auto merge of #745 - xd009642:master, r=alexcrichton
Updated types of PTRACE requests for musl to be consistent.

For some reason the type of ptrace request constants in musl change for the register based requests. As they are used in the same way and this doesn't mimic musl this has been changed for consistency and ease of use.

First raised in issue #744
2017-08-27 17:32:11 +00:00
bors
d64716407e Auto merge of #742 - alexcrichton:wasm, r=alexcrichton
Add asmjs/wasm32 to CI

Rebase of #610 and also move emscripten up much higher in the hierarchy to
ensure that it doesn't have too much of a ripple effect on other platforms.

This involved moving down a good number of definitions, but hopefully was done
with care to not break anything!
2017-08-27 17:00:24 +00:00
bors
edb7c11c70 Auto merge of #743 - Susurrus:syscalls, r=alexcrichton
Add syscall constants to more Android/Linux targets

Primarily adding `SYS_memfd_create` and `SYS_pivot_root` for `nix`. But I also equalized a few constants across platforms so some of the other ones that were defined on some targets are now defined across all linux/android targets.
2017-08-27 16:28:38 +00:00
Alex Crichton
305cec31fb Fix musl build 2017-08-27 09:28:17 -07:00
xd009642
86b1213196 Updated types of PTRACE requests for musl to be consistent.
For some reason the type of ptrace request constants in musl change for the register based requests. As they are used in the same way and this doesn't mimic musl this has been changed for consistency and ease of use.
2017-08-27 17:21:44 +01:00
Alex Crichton
5822645eb8 Update emscripten to latest 2017-08-27 08:37:15 -07:00
Alex Crichton
4c90a7350e Add emscripten/wasm to dox builds 2017-08-27 08:36:18 -07:00
Alex Crichton
1ee80568ef Fix style 2017-08-27 08:33:58 -07:00
Alex Crichton
a4ce3a8755 Merge branch 'wasm-rebase' into wasm 2017-08-27 08:32:54 -07:00
Bryant Mairs
deb30e5b39 Add syscall constants to more Android/Linux targets 2017-08-27 01:12:39 -07:00
Alex Crichton
22b98dedfe Add asmjs/wasm32 to CI
Rebase of #610 and also move emscripten up much higher in the hierarchy to
ensure that it doesn't have too much of a ripple effect on other platforms.

This involved moving down a good number of definitions, but hopefully was done
with care to not break anything!
2017-08-26 22:15:29 -07:00
bors
2f4ca8788b Auto merge of #741 - kallisti5:haiku-sigfix, r=alexcrichton
haiku: Add missing signals

* Now a complete signal list on Haiku minus reserved.
* Fixes build failure due to missing SIGUSR1
2017-08-26 01:57:41 +00:00
Alexander von Gluck IV
177d5e6fba haiku: Add missing signals
* Now a complete signal list on Haiku minus reserved.
* Fixes build failure due to missing SIGUSR1
2017-08-25 20:28:03 -05:00
bors
e7ce47a6bb Auto merge of #740 - alexcrichton:more64, r=alexcrichton
Add {,f}stat{,v}fs64 API bindings

Closes https://github.com/rust-lang/libc/issues/738
2017-08-26 01:26:56 +00:00
Alex Crichton
a36da11fb9 Add {,f}stat{,v}fs64 API bindings 2017-08-25 18:26:38 -07:00
bors
33873fa92b Auto merge of #739 - kallisti5:haiku-fix, r=alexcrichton
haiku: Correct typo
2017-08-25 21:30:09 +00:00
Alexander von Gluck IV
c9b276f1ce haiku: Correct typo 2017-08-25 16:13:01 -05:00
bors
2a322c716c Auto merge of #720 - Susurrus:fcntl, r=alexcrichton
Add more fcntl and seal constants for Android/Linux
2017-08-25 00:33:20 +00:00
bors
f4bbd7ffae Auto merge of #737 - Susurrus:android_fcntl, r=alexcrichton
Add more fcntl constants for android
2017-08-23 00:04:23 +00:00