Alex Crichton
09261133a0
Merge pull request #339 from asomers/master
...
Add sethostname for freebsdlike operating systems
2016-07-25 09:05:58 -07:00
Alan Somers
366509d3fd
Add sethostname for freebsdlike operating systems
2016-07-24 23:42:33 +00:00
Alex Crichton
bbf53a1f7e
Merge pull request #337 from ParadoxSpiral/master
...
Add setlocale and wsetlocale for Windows
2016-07-21 20:33:22 -07:00
ParadoxSpiral
aff822e4f6
Add setlocale and wsetlocale for Windows
2016-07-22 02:11:11 +02:00
Alex Crichton
b065b3c659
Merge pull request #335 from tmiasko/condattr
...
Add support for pthread_condattr_t on Unix platforms.
2016-07-21 09:03:05 -07:00
Tomasz Miąsko
c4947bbb6d
Define _NETBSD_SOURCE when building on NetBSD.
...
Both pthread_condattr_setclock and pthread_condattr_getclock are guarded
by #if defined(_NETBSD_SOURCE) on NetBSD.
2016-07-21 08:14:58 +02:00
Tomasz Miąsko
cb64485f27
Add support for pthread_condattr_t on Unix platforms.
...
Following types and function have been added:
* pthread_cond_init
* pthread_condattr_t
* pthread_condattr_init
* pthread_condattr_destroy
* pthread_condattr_setclock [0]
* pthread_condattr_getclock [0][1]
[0] Not available on OSX.
[1] May be unavailable on NetBSD, it is a very recent addition.
Left out from openbsdlike hierarchy for now.
2016-07-21 08:14:12 +02:00
Alex Crichton
32dc2ea910
Merge pull request #334 from fiveop/literal_overflow_warning
...
Cast unsigned literals to signed integers.
2016-07-15 14:47:37 -07:00
Philipp Matthias Schaefer
5a68b6ad38
Cast unsigned literals to signed integers.
...
This makes it explicity that we know the literals are to large and
will result in a negative number. This gets rid of a warning in
1.9.0 and younger versions, as well as an error when using the
constants as discrimintants of #[repr(i32)] enumerations in older
versions.
2016-07-15 23:19:00 +02:00
Alex Crichton
16f3a8e96c
Merge pull request #333 from bugaevc/reboot
...
Linux: add reboot() and constants
2016-07-12 12:45:58 -07:00
Sergey Bugaev
8b76797d8f
Revert "Share reboot code between Linux & Android"
...
This reverts commit ea0a870b4f
.
2016-07-12 20:56:43 +03:00
Sergey Bugaev
5d65c3f246
Revert "Fix accidental two blank lines"
...
This reverts commit 43ab51cba4
.
2016-07-12 20:55:08 +03:00
Sergey Bugaev
43ab51cba4
Fix accidental two blank lines
2016-07-12 20:26:49 +03:00
Sergey Bugaev
ea0a870b4f
Share reboot code between Linux & Android
2016-07-12 20:22:26 +03:00
Sergey Bugaev
4624510ae3
Cosmetic: fix the indentation
2016-07-12 20:20:57 +03:00
Alex Crichton
baf71f87e0
Merge pull request #317 from cjschneider2/master
...
Add `if_nameindex()` and `if_freenameindex()` from POSIX-2001
2016-07-12 08:07:50 -07:00
Sergey Bugaev
f4c3fc5417
Move LINUX_REBOOT_* constants out of common Linux code
...
Copy them into individual platform files instead. Fixes musl build.
2016-07-12 14:35:45 +03:00
Sergey Bugaev
a98c983cf0
Linux: add reboot() and constants
2016-07-12 13:22:51 +03:00
Charles J. Schneider
332bd86689
Manually exclude Android instead of compiler cfg
...
This change is due to an unfortunate interaction between the `s!` macro
and the Android abi. When the struct is defined, but excluded through a
`[cfg(not(target_os = "android"))]` the macro tries to define a
non-existent struct. This commit manually add the functions & struct to
each platform independently.
2016-07-12 09:32:42 +02:00
Charles J. Schneider
7d37642884
Merge remote-tracking branch 'upstream/master'
2016-07-12 07:55:50 +02:00
Alex Crichton
b0d62534d4
Merge pull request #332 from cuviper/solaris-rtld
...
solaris: add dlsym/dlopen RTLD constants
2016-07-11 19:09:44 -07:00
Josh Stone
f0d3ebd0c6
solaris: add dlsym/dlopen RTLD constants
...
These constants are taken from OpenIndiana's `dlfcn.h`. In particular,
`RTLD_DEFAULT` is now needed in `fetch` for std's weak symbol support.
2016-07-11 18:09:33 -07:00
Alex Crichton
caa8081c58
Merge pull request #331 from alexcrichton/bump
...
Bump to 0.2.14
2016-07-11 11:52:18 -07:00
Alex Crichton
1f946a018a
Bump to 0.2.14
2016-07-11 09:04:28 -07:00
Alex Crichton
08a2abb30a
Merge pull request #330 from danlrobertson/more_signals
...
Add SIGCHLD and other signals
2016-07-11 09:03:49 -07:00
Alex Crichton
864910a9f8
Merge pull request #329 from sateffen/master
...
Added linger struct
2016-07-11 08:34:40 -07:00
sateffen
69e89a194e
Refactored linger struct dry
2016-07-11 08:36:52 +00:00
Daniel Robertson
88cc2de5ec
Add SIGCHLD and others
...
Add SIGCHLD, SIGSTOP, SIGTSTP, SIGCONT, SIGTTIN, SIGTTOU. Improve
consistency across oses, by adding SIGEMT to relevant oses.
2016-07-11 00:11:56 +00:00
Alex Crichton
f1a3f911ad
Merge pull request #328 from kubo39/add-epoll_create1
...
Add epoll_create1.
2016-07-10 16:56:54 -07:00
Hiroki Noda
357f97f5a6
Add epoll_create1.
2016-07-10 18:00:04 +09:00
Steffen W
14a4d154a3
Added linger struct
2016-07-10 10:47:04 +02:00
csjchneider2
4f0f090ba3
Merge branch 'master' into master
2016-07-09 19:22:15 +02:00
Alex Crichton
c32ac0d25a
Merge pull request #325 from meh/master
...
Add strdup extern
2016-07-09 09:20:12 -07:00
meh
bcb7c48ca1
Add strdup extern
2016-07-08 17:22:05 +02:00
Alex Crichton
867de03f57
Merge pull request #323 from philippkeller/master
...
enhance pathconf constants to cover the most common constants
2016-07-07 09:03:43 -07:00
Alex Crichton
6264bb74c3
Merge pull request #322 from nbaksalyar/master
...
Add missing consts for Solaris/Illumos
2016-07-07 09:03:27 -07:00
Philipp Keller
2cad6ca612
enhanced the pathconf constants to cover the most common. Values taken from:
...
linux: /usr/include/bits/confname.h (taken from redhat, checked against https://github.com/cpc26/abi_linux/blob/master/linux-abi/branches/IBCS3/cxenix/pathconf.c )
android: https://android.googlesource.com/platform/development/+/android-4.3_r1.1/ndk/platforms/android-3/include/pathconf.h
mac: taken from /usr/include/sys/unistd.h
2016-07-06 21:15:38 +02:00
Nikita Baksalyar
922768d257
Add missing consts for Solaris/Illumos
2016-06-29 23:55:10 +05:00
bors
1f3c205fae
Auto merge of #321 - alexcrichton:bump, r=alexcrichton
...
Bump to 0.2.13
2016-06-28 10:03:35 -07:00
Alex Crichton
760dd0b6dc
Bump to 0.2.13
2016-06-28 10:02:55 -07:00
bors
41d135e8f1
Auto merge of #320 - knight42:lchown, r=alexcrichton
...
unix: Add lchown
2016-06-23 14:10:52 -07:00
Knight
e383ee7530
unix: Add lchown
2016-06-23 06:25:47 +08:00
bors
1e2d77ae08
Auto merge of #319 - posborne:additional-seek-constants, r=alexcrichton
...
Add SEEK_DATA/SEEK_HOLE constants
Relates to https://github.com/nix-rust/nix/pull/377 . These constants
are only available in systems running the Linux kernel.
2016-06-21 07:21:40 -07:00
Paul Osborne
45448fbee4
Add SEEK_DATA/SEEK_HOLE constants
...
Relates to https://github.com/nix-rust/nix/pull/377 . These constants
are only available in systems running the Linux kernel and are not
defined in musl libc (yet).
Signed-off-by: Paul Osborne <osbpau@gmail.com>
2016-06-21 00:55:32 -05:00
Charles J. Schneider
d02c2b6f1b
Do not compile the if_nameindex
struct for android
2016-06-17 10:03:30 +02:00
csjchneider2
73dacf775f
Merge branch 'master' into master
2016-06-17 08:37:49 +02:00
bors
f73f5c6c40
Auto merge of #318 - nikklassen:master, r=alexcrichton
...
Add missing constants for wait family
Fixes #315
2016-06-15 14:01:42 -07:00
Nik Klassen
ee3e49f8c5
Remove tab characters
2016-06-15 14:26:27 -04:00
Nik Klassen
c9e0d0e3b0
Add missing constants for wait family
2016-06-15 11:10:12 -04:00
bors
ee6613d5bc
Auto merge of #316 - alexcrichton:docker-everywhere, r=alexcrichton
...
Use docker for all CI tests and images
Previously we were somewhat half-Docker, half-Travis, half apt-get, etc. This
commit alters the CI infrastructure to use Docker images for each target. This
should make it much easier to update the images and tweak various bits and
pieces of installed software. Additionally, it's also much clearer now what's
needed for each suite of tests!
Some images were updated a bit (e.g. musl is now 1.1.14), but other images
encountered failures when updating so they're not getting updated just yet.
2016-06-15 03:59:39 -07:00