Commit Graph

809 Commits

Author SHA1 Message Date
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
bors 8a53df9f36 Auto merge of #312 - nbaksalyar:master, r=alexcrichton
Fix semaphores on Solaris/Illumos

This adds `sem_t` structure introduced in https://github.com/rust-lang/libc/pull/309 and fixes compilation on Solaris.
2016-06-10 00:51:48 -07:00
Nikita Baksalyar a1c6ad7706
Fix compilation on Solaris/Illumos 2016-06-10 05:54:16 +05:00
Axel Viala 26ee782523 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 02:33:32 +02:00
bors 9ae6227b42 Auto merge of #310 - nrc:WIF, r=alexcrichton
Add more constants from sys/wait.h

And fix WIFEXITED on Linux, which seemed to be wrong.
2016-06-09 07:13:31 -07:00
Nick Cameron 8c15a36466 Add more constants from sys/wait.h
And fix WIFEXITED on Linux, which seemed to be wrong.
2016-06-08 15:24:21 +02:00
bors d1f4c2dd37 Auto merge of #309 - sfackler:sem, r=alexcrichton
Add semaphore APIs
2016-06-06 01:21:29 -07:00
Steven Fackler 41699f7406 Add semaphore APIs 2016-06-05 17:26:11 +01:00
bors eb637d2773 Auto merge of #299 - lemonrock:sched_getcpu, r=alexcrichton
Adding sched_getcpu() for Android and Linux

None
2016-06-01 23:22:37 -07:00
Raphael Cohn ae664ff911 Removing sched_getcpu for musl as no current releases support it 2016-06-01 10:24:34 +01:00
Raphael Cohn b06c1f8345 Merge remote-tracking branch 'upstream/master' into sched_getcpu 2016-06-01 10:02:55 +01:00
bors 45d85899e9 Auto merge of #301 - Amanieu:musl_ioctl, r=alexcrichton
Fix ioctl types for non-x86 musl

This fixes up #289 by changing the type for other platforms as well.
2016-05-31 09:38:52 -07:00
Amanieu d'Antras aa4a2c6ec2 Fix ioctl types for non-x86 musl 2016-05-30 08:05:44 +01:00
Raphael Cohn a69b6c09d0 Merge remote-tracking branch 'upstream/master' into sched_getcpu 2016-05-28 10:55:50 +01:00
bors bb4dabbc73 Auto merge of #300 - rrichardson:master, r=alexcrichton
added const SOCK_SEQPACKET,  and SOCK_RDM where applicable

... which is used for UNIX Seqpacket sockets as well as SCTP IP.

I have verified in source on  a couple Linux flavours as well as freebsd and darwin source that SOCK_SEQPACKET has value 5.
Solaris is the odd one with a value of 6.  I also added RDM for solaris (value 5)
2016-05-27 13:07:17 -07:00
Rick Richardson df0a9bafda added const SOCK_SEQPACKET, which is used for unix seqpacket sockets as well as SCTP IP 2016-05-27 00:02:29 -04:00
bors a200a04d44 Auto merge of #294 - lemonrock:getpriority, r=alexcrichton
Added nice, setpriority and getpriority along with constants and type…

… definitions
2016-05-25 11:07:21 -07:00
Raphael Cohn dc98bd0fd4 Merged master 2016-05-25 18:18:26 +01:00