Commit Graph

745 Commits

Author SHA1 Message Date
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
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
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
bors
505575f8b6 Auto merge of #288 - lemonrock:sysinfo, r=alexcrichton
Adding sysinfo() and sysinfo struct for Linux and Android.

Sadly, the sysinfo struct varies slightly between Musl and Glibc / Bionic.

This means that users need to be careful when using the uptime, and should
always cast it to a signed value. Why uptime can be signed is beyond me...
2016-05-25 08:55:51 -07:00
Raphael Cohn
f5df6b9142 Adding sched_getcpu() for Android and Linux 2016-05-25 11:37:01 +01:00
Raphael Cohn
4d37980fc3 Merge branch 'master' into sysinfo 2016-05-25 10:58:31 +01:00
Raphael Cohn
cbc88ca0d5 Adjustments for latest merge 2016-05-25 09:13:46 +01:00
bors
1f870b8073 Auto merge of #297 - Amanieu:mutex_types, r=alexcrichton
Add pthread mutex type constants

These are needed to create a pthread mutex that doesn't use lock elision on glibc.
2016-05-22 11:07:24 -07:00
bors
e0202b84e7 Auto merge of #298 - peterhj:peterhj-pthread-affinity, r=alexcrichton
linux: Support getting and setting the cpu affinity for the current pthread.

This implements `pthread_getaffinity_np` and `pthread_setaffinity_np` for linux.
2016-05-22 10:10:54 -07:00
Peter Jin
0b3635fda8 linux: Support getting and setting the cpu affinity for the current
pthread.
2016-05-21 20:50:20 -07:00
Raphael Cohn
bf5b72be85 Changing android to not use id_t 2016-05-21 09:49:31 +01:00
Amanieu d'Antras
b2b9f29eec Add pthread mutex type constants 2016-05-21 06:40:14 +01:00
Severen Redwood
fa53abb748 Add the TIOCGWINSZ and TIOCSWINSZ constants 2016-05-20 12:23:19 +01:00
Raphael Cohn
ad2d42601c Merge branch 'master' into sysinfo 2016-05-20 11:18:01 +01:00
Raphael Cohn
e6150ae2b9 Adding sysinfo() and sysinfo struct for Linux and Android.
Sadly, the sysinfo struct varies slightly between Musl and Glibc / Bionic.

This means that users need to be careful when using the uptime, and should
always cast it to a signed value. Why uptime can be signed is beyond me...
2016-05-20 11:17:22 +01:00
Raphael Cohn
a2d2b0cbe6 Redefining id_t because it is differently sized and has a different meaning across BSD platforms 2016-05-20 10:59:03 +01:00
Raphael Cohn
2de25f81a4 glibc defines __priority_which_t two different ways 2016-05-20 10:35:40 +01:00