Commit Graph

776 Commits

Author SHA1 Message Date
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
Alex Crichton
3eb4a48b1b 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:33:30 -07:00
C. Jeremiah Schneider
f14620655c Remove build specification on if_nameindex struct 2016-06-13 10:51:41 +02:00
C. Jeremiah Schneider
02d53eadef Remove android support for if_nameindex & if_freenameindex 2016-06-13 09:56:03 +02:00
C. Jeremiah Schneider
af25d0e049 remove stray link-time configuration 2016-06-13 09:14:00 +02:00
Charles J. Schneider
a4961e5ee2 Add if_nameindex() and if_freenameindex() from POSIX-2001 2016-06-13 09:04:32 +02:00
bors
70dce055eb Auto merge of #313 - alexcrichton:bump, r=alexcrichton
Bump to 0.2.12
2016-06-10 06:02:55 -07:00
Alex Crichton
91c5dbf579 Bump to 0.2.12 2016-06-10 05:19:19 -07:00
bors
fd30cfddf3 Auto merge of #307 - darnuria:relative-directory-posix2008-api, r=alexcrichton
Add Directory file descriptor relative syscall.

Add Directory file descriptor relative syscall.

I only added "*at" syscall relative to Posix2008 specification.

At the moment OSX and Android are partially supporting this API.

This include:
* `openat`
* `faccessat`
* `fchmodat`
* `fchownat`
* `fstatat`
* `linkat`
* `mkdirat`
* `mknodat` [0]
* `readlinkat`
* `renameat`
* `symlinkat`
* `unlinkat`
* `mkfifoat` [0][1]

[1] Not available on Android at the moment:
* `mkfifo`

[1] Not available on OSX at the moment:
* `mkfifoat`
* `mknodat`

And exclude operating system specific API:
* `renameat2`: Linux specific
* `execveat`: Linux specific since 3.19
* `futimesat`: GNU extension
* `name_to_handle_at`: GNU extension
* `scandirat`: GNU extension
* `fanotify_mark`: belong to fanotify API.
2016-06-10 03:07:15 -07:00