1161 Commits

Author SHA1 Message Date
sankaku
545f67d129 Add binding for mremap. 2016-12-27 18:40:18 -05:00
bors
e49e9bb7c3 Auto merge of #478 - jackpot51:patch-1, r=alexcrichton
Add memalign to Redox (for use in allocator)

This is required to satisfy a review item here: https://github.com/rust-lang/rust/pull/38401
2016-12-21 16:38:10 +00:00
Jeremy Soller
6ff14a97e6 Add memalign to Redox (for use in allocator) 2016-12-21 09:10:36 -07:00
zethra
8471a4c1d7 Removed comments and fixed PR_SET_PTRACER_ANY 2016-12-21 01:08:34 -05:00
zethra
d072da59a6 Added constants from prctl.h 2016-12-20 19:30:16 -05:00
bors
b21b709ef1 Auto merge of #476 - glaxx:master, r=alexcrichton
Added AF_UNSPEC and several consts from netdb.h
2016-12-20 17:11:57 +00:00
Stefan Luecke
d37d42a634 Moved consts to /linux/mod.rs 2016-12-20 15:29:17 +01:00
Stefan Luecke
49f647296d Removed double blank line 2016-12-18 15:46:40 +01:00
Stefan Luecke
af0317cedd Removed duplicate EAI_SYSTEM 2016-12-18 15:41:28 +01:00
Stefan Luecke
cff7c36958 Added several consts from netdb.h 2016-12-18 12:56:01 +01:00
Stefan Luecke
345d505ae9 Added AF_UNSPEC const to unix/notbsd 2016-12-18 11:31:14 +01:00
bors
335cff9f8b Auto merge of #474 - LegNeato:fix-docs, r=alexcrichton
Fix doc generation on travis.

Documentation generation appears to be failing on master (https://travis-ci.org/rust-lang/libc/jobs/183483333):

```
Collecting ghp-import
  Downloading ghp-import-0.4.1.tar.gz
Collecting travis
  Could not find a version that satisfies the requirement travis (from versions: )
No matching distribution found for travis
```

Basically `--user` doesn't appear to take an option, so `pip install ghp_import --user $USER` makes pip think the user is a package that needs to be installed (in this case `travis`). As there is no `travis` package, it dies.
2016-12-15 17:05:36 +00:00
Christian Legnitto
a41c074645 Fix doc generation on travis.
Documentation generation appears to be failing on master (https://travis-ci.org/rust-lang/libc/jobs/183483333):

```
Collecting ghp-import
  Downloading ghp-import-0.4.1.tar.gz
Collecting travis
  Could not find a version that satisfies the requirement travis (from versions: )
No matching distribution found for travis
```

Basically `--user` doesn't appear to take an option, so `pip install ghp_import --user $USER` makes pip think the user is a package that needs to be installed (in this case `travis`). As there is no `travis` package, it dies.
2016-12-14 23:35:58 -08:00
bors
17ad72e2d8 Auto merge of #473 - LegNeato:master, r=alexcrichton
Add clock_settime()

See http://www.catb.org/esr/time-programming/#_clock_gettime_2_clock_settime_2_clock_getres_2
2016-12-15 06:59:44 +00:00
Christian Legnitto
d563089d58 Add clock_settime()
See http://www.catb.org/esr/time-programming/#_clock_gettime_2_clock_settime_2_clock_getres_2
2016-12-14 22:47:52 -08:00
bors
fb8587d327 Auto merge of #472 - BrandonSchaefer:wifsignaled-fix, r=alexcrichton
When checking the status from waitpid on a kill -STOP <child_pid> WIFSIGNALED returns true

Currently in WIFSIGNALED rust is doing:
(status & 0x7f) + 1
where status is i32

As defined in /usr/include/x86_64-linux-gnu/bits/waitstatus.h
#define __WIFSIGNALED(status) \
  (((signed char) (((status) & 0x7f) + 1) >> 1) > 0)

Here is an example of the issue:
http://paste2.org/fXc8BxJ0

Run it, and it'll print the child pid then:
kill -STOP <child_pid>

Expect:
  Stopped by signal print statement
Results:
  Killed by signal print statement

Using the i32, it wont overflow leaving you with 128 returning true, using the waitstatus define you'll end up with -64 (since it shifts 1 right) which would return false. Though the C version shifts right once not really sure *why* but theres most likely a reason somewhere.

For the fix, just cast to i8 (signed char pretty much) as the C version is doing.

RUNNING ALL TESTS
PASSED 7356 tests
2016-12-13 03:01:58 +00:00
Brandon Schaefer
9f6f374a7c x86_64-linux-gnu waitstatus.h casts the results to a signed char 2016-12-12 16:46:29 -08:00
bors
2d86489460 Auto merge of #466 - shahn:clearenv, r=alexcrichton
Add clearenv()
2016-12-07 08:03:44 +00:00
bors
a73910c43b Auto merge of #465 - GuillaumeGomez:fd-passing, r=alexcrichton
Add needed structs for fd passing
2016-12-06 07:51:16 +00:00
bors
411cafc47c Auto merge of #464 - mneumann:dragonfly-fixes-2016-12, r=alexcrichton
Dragonfly fixes 2016-12

This fixes libc again for DragonFly.
2016-12-06 01:20:34 +00:00
Michael Neumann
51cc3b7d38 Fix style 2016-12-05 23:51:35 +01:00
Guillaume Gomez
7d2aea94a1 Add needed structs for fd passing 2016-12-05 12:48:15 -08:00
bors
3274c923e4 Auto merge of #467 - jakllsch:netbsd-sparc64-20161205, r=alexcrichton
Recognize NetBSD/sparc64 as a generic 64-bit NetBSD
2016-12-05 16:44:34 +00:00
Jonathan A. Kollasch
29f4a99d1c Recognize NetBSD/sparc64 as a generic 64-bit NetBSD 2016-12-05 10:30:32 -06:00
Sebastian Hahn
3cb1e4a4e5 Add clearenv() 2016-12-05 08:54:06 +01:00
Michael Neumann
0cb0a3a7dd Fix sigevent on DragonFly.
The union which contains a void* has to be aligned at a 8-byte boundary.
2016-12-04 13:21:47 +01:00
Michael Neumann
75fd3a37b3 Fix LC_*_MASK constants for DragonFly 2016-12-04 13:12:20 +01:00
Michael Neumann
5c8400746c Fix utmpx constants for DragonFly 2016-12-04 13:08:48 +01:00
Michael Neumann
7134822dd2 Skip signedness test for sem_t on DragonFly 2016-12-04 13:05:01 +01:00
Michael Neumann
db62b9755a EVFILT_PROCDESC does not exist on DragonFly 2016-12-04 13:03:25 +01:00
Michael Neumann
aab39f930d freelocale() has no return value on DragonFly 2016-12-04 13:02:10 +01:00
Michael Neumann
306e5e65f5 Fix setutxdb() for DragonFly 2016-12-04 13:00:01 +01:00
Michael Neumann
07e6e20649 aio_waitcomplete returns a c_int on DragonFly 2016-12-04 12:57:34 +01:00
Michael Neumann
73a2380b65 Fix utx related functions for DragonFly 2016-12-04 12:55:25 +01:00
Michael Neumann
97eed0eb7c No SHUTDOWN_TIME and PTHREAD_MUTEX_ADAPTIVE_NP on DragonFly
Keep them in the freebsdlike/mod.rs together with related constants.
2016-12-04 12:50:19 +01:00
Michael Neumann
09bff052a9 Include aio.h on DragonFly as well 2016-12-04 12:46:17 +01:00
Michael Neumann
b9dad06f8c Fix utmpx struct on DragonFly 2016-12-04 12:39:50 +01:00
Michael Neumann
4e3d0821ba Use opaque type for semaphore on DragonFly 2016-12-04 12:21:46 +01:00
Michael Neumann
18c11223e1 MSG_NOSIGNAL is expected to be of type c_int 2016-12-04 12:17:40 +01:00
bors
b2e56d5832 Auto merge of #463 - alexcrichton:musl-update, r=alexcrichton
Update both mips musl download locations
2016-12-03 00:27:54 +00:00
Alex Crichton
b9430b034d Update both mips musl download locations 2016-12-02 16:22:11 -08:00
bors
0ac39c5ccf Auto merge of #462 - semarie:openbsd-i686-correct, r=alexcrichton
i686-unknown-openbsd libc correction

Now I had been able to run testsuite on i686-unknown-openbsd, here a batch of corrections.

- `suseconds_t` is `c_long` (`i64` or `i32` depending the arch)
- struct siginfo_t padding adjustment (the pointer `si_addr` makes the pad to change depending pointer size)

I tested the PR on i686-unknown-openbsd and x86_64-unknown-openbsd.
2016-12-02 22:06:40 +00:00
bors
ab9a0112c7 Auto merge of #461 - alexcrichton:bump, r=alexcrichton
Bump to 0.2.18
2016-12-02 21:04:38 +00:00
Alex Crichton
93dbca015f Bump to 0.2.18 2016-12-02 12:57:44 -08:00
Sébastien Marie
2126c45354 adapt padding size of struct siginfo_t to pointer size 2016-12-02 13:26:56 +01:00
Sébastien Marie
69afc3aa9f suseconds_t is a long (i64 or i32 depending arch) 2016-12-02 12:20:26 +01:00
Alex Crichton
94848c1907 Merge pull request #459 from semarie/openbsd-i686
Make openbsdlike to support 64 and 32 bits archs
2016-11-29 14:02:23 -07:00
Sébastien Marie
00648e11c7 Make openbsdlike to support 64 and 32 bits archs 2016-11-28 12:05:13 +01:00
Alex Crichton
e324291aa4 Merge pull request #458 from frewsxcv/patch-1
Fix appveyor badge.
2016-11-26 16:26:51 -06:00
Corey Farwell
15dcbb5dad Fix appveyor badge. 2016-11-26 13:49:49 -05:00