Commit Graph

2021 Commits

Author SHA1 Message Date
bors
6d5c28b75d Auto merge of #904 - alexcrichton:fix-ci, r=alexcrichton
Fix containers using ubuntu 17.04

Apparently 17.04 has gone away? Or updates are failing now?
2018-01-18 19:28:20 +00:00
Alex Crichton
ac4afe746f Switch to sparc64 to debian:stretch
Looks like ubuntu 17.04 is broken now and it fails to link on 17.10 and 18.04.
It seems to work on stretch though!
2018-01-18 11:24:40 -08:00
Alex Crichton
1f29ac3167 Move some containers to ubuntu 18.04
Apparently 17.04 is broken now?
2018-01-18 11:21:30 -08:00
gnzlbg
9908dcea17 move to linux::other 2018-01-18 17:16:33 +01:00
gnzlbg
6c63b9d8b2 fix style 2018-01-18 17:11:20 +01:00
gnzlbg
c91864394e Adds Linux's memfd_create 2018-01-18 17:07:32 +01:00
gnzlbg
b2cfdf22f9 remove getauxval and malloc_usable_size from musl 2018-01-18 17:05:59 +01:00
gnzlbg
7c074b85d4 remove gethosname, use proper types depending on bsd flavour 2018-01-18 17:02:07 +01:00
gnzlbg
f6b64f09c7 Disable mallinfo on musl 2018-01-18 16:54:49 +01:00
gnzlbg
dca8a31d00 Add gethostname.
Closes #868 .
2018-01-18 10:34:31 +01:00
gnzlbg
e4bc821548 Add {get,set}domainname 2018-01-18 10:33:37 +01:00
gnzlbg
a2c0da68c3 Adds Linux's mallinfo
Closes #901 .
2018-01-17 18:20:03 +01:00
gnzlbg
82188828e9 Adds Linux's malloc_usable_size.
Closes #900 .
2018-01-17 18:20:03 +01:00
gnzlbg
bfd3bf34bb Adds Linux's remap_file_pages .
Closes #899.
2018-01-17 18:20:02 +01:00
gnzlbg
f8db1a0f47 Adds Linux's getauxval
Closes #874 .
2018-01-17 18:19:48 +01:00
bors
041fd77ea7 Auto merge of #898 - Susurrus:sockaddr_ctl, r=alexcrichton
Add sockaddr_ctl on Mac
2018-01-15 16:11:26 +00:00
Bryant Mairs
46933f0311 Add sockaddr_ctl on Mac 2018-01-14 22:26:46 -08:00
bors
3ccb0750ff Auto merge of #879 - SanchayanMaity:kill, r=alexcrichton
Add killpg
2018-01-13 18:01:39 +00:00
bors
1e80d93800 Auto merge of #896 - cneira:master, r=alexcrichton
added EPOLL(5)  for Illumos (Solaris fork)

EPOLL(5)  is being used in crates like mio and iovec , this change allows those crates and other that depends on EPOLL(5)  to be built in illumos systems.
2018-01-12 22:12:26 +00:00
neirac
c6bb76abf2 revert changes 2018-01-12 19:41:27 +00:00
neirac
6406f18b9f fix style 2018-01-12 19:38:07 +00:00
neirac
c1df963888 epoll create syscall table numer 2018-01-12 15:25:46 +00:00
bors
16a0f4a3d6 Auto merge of #895 - GuillaumeGomez:difftime, r=alexcrichton
Difftime

Once merged, can you update the crate too please?
2018-01-12 15:08:43 +00:00
Guillaume Gomez
e91769eceb Update libc version 2018-01-11 23:32:27 +01:00
Guillaume Gomez
d5d0bdf414 Add difftime function 2018-01-11 23:32:27 +01:00
neirac
3a7294ad0e pub mod unix 2018-01-11 22:06:34 +00:00
neirac
94608b85e0 illumos defines 2018-01-11 21:12:23 +00:00
neirac
02b5a926d6 solaris mod 2018-01-11 20:38:30 +00:00
neirac
3e3c292063 solaris defs missing 2018-01-11 20:28:37 +00:00
neirac
5b6bab01f7 solaris defs missing 2018-01-11 20:27:39 +00:00
neirac
66e0bf148d pub unix 2018-01-11 20:08:46 +00:00
neirac
efc8c95296 add const 2018-01-11 18:48:13 +00:00
bors
27430bc492 Auto merge of #893 - kelseasy:ft/add_mntent, r=alexcrichton
feat(linux): add mntent struct and related functions

Useful when playing around with mounting points, sadly not a common interface. :(
2018-01-11 16:18:07 +00:00
neirac
8492b7a2d3 epoll defines 2018-01-11 15:45:59 +00:00
neirac
3092748c95 adding epoll for illumos 2018-01-11 15:25:00 +00:00
Kelsey Z
586867d39a feat(linux): add mntent struct and related functions
Useful when playing around with mounting points, sadly not a common
interface
2018-01-11 21:57:30 +13:00
bors
4939bb2224 Auto merge of #892 - EdSchouten:cloudabi-arm, r=alexcrichton
Minor fixes for CloudABI ARM support

In the initial set of fixes for CloudABI, it looks like support for 32-bit ARM was left out, even though it is supported for C/C++. While there, fix up `c_char` for ARM64, which currently has the wrong sign.
2018-01-09 15:15:59 +00:00
Ed Schouten
dad866d670 Add support for CloudABI running on 32-bit ARM systems. 2018-01-09 11:40:07 +01:00
Ed Schouten
ee3d0578e6 Correct the type of c_char.
On ARM64, it is supposed to be unsigned char:

  $ aarch64-unknown-cloudabi-cc -dM -E - < /dev/null | grep __CHAR_UNSIGNED__
  #define __CHAR_UNSIGNED__ 1
2018-01-09 11:39:21 +01:00
bors
2b4cd1016b Auto merge of #889 - EdSchouten:cloudabi-time_t, r=alexcrichton
Add time_t for CloudABI.

Even though this data type is not used by libstd in any platform
independent code, one of the unit tests in src/libstd/time/mod.rs refers
to it. Instead of making that unit test more complicated, simply add
time_t, matching the type used by the C library.
2018-01-08 15:05:51 +00:00
bors
d73af99372 Auto merge of #890 - ignatenkobrain:android-statvfs, r=malbarbo
android: add statvfs flags (ST_*)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-01-08 11:55:35 +00:00
Igor Gnatenko
2462733797 android: add statvfs flags (ST_*)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-01-08 00:38:46 +01:00
Ed Schouten
63bb3f482d Add time_t for CloudABI.
Even though this data type is not used by libstd in any platform
independent code, one of the unit tests in src/libstd/time/mod.rs refers
to it. Instead of making that unit test more complicated, simply add
time_t, matching the type used by the C library.
2018-01-07 23:36:04 +01:00
bors
84e789fa66 Auto merge of #888 - keeperofdakeys:netdb, r=alexcrichton
Bump to 0.2.35

Bump for EAI_* names.
2018-01-04 01:09:14 +00:00
Josh Driver
d61351e9c8 Bump to 0.2.35 2018-01-04 10:43:01 +10:30
bors
ea64b2cbff Auto merge of #885 - EdSchouten:nprocessors, r=alexcrichton
Add _SC_NPROCESSORS_ONLN for CloudABI.

This constant is not used by the C library, which is why I didn't add it
initially. It is, however, used by libtest to determine the parallelism
for the execution of tests.
2018-01-02 18:02:56 +00:00
Ed Schouten
bbaf0426bd Add _SC_NPROCESSORS_ONLN for CloudABI.
This constant is not used by the C library, which is why I didn't add it
initially. It is, however, used by libtest to determine the parallelism
for the execution of tests.
2018-01-02 12:37:34 +01:00
bors
f060d95ffc Auto merge of #884 - EdSchouten:cloudabi, r=alexcrichton
Add support for CloudABI.

CloudABI is a sandboxed UNIX-like runtime environment, based on the
principle of capability-based security. As CloudABI is intended to be
cross-platform, the system call layer is specified here:

    https://github.com/NuxiNL/cloudabi/blob/master/cloudabi.txt

From these definitions, we automatically generate C and Rust bindings.
The latter is published on crates.io:

    https://crates.io/crates/cloudabi

My goal is to implement libstd for CloudABI in such a way that it uses
the C library as little as possible; only in places where it would ease
interfacing with C code (e.g., thread creation). In places where
constants in the C library are directly based on the CloudABI
specification (e.g., errnos), use the constants provided by the cloudabi
crate.
2017-12-28 16:21:11 +00:00
Ed Schouten
ac0bdf9a48 Add EXIT_FAILURE and EXIT_SUCCESS for CloudABI.
These are now used by libstd's termination.rs.
2017-12-28 13:20:13 +01:00
Ed Schouten
7c36e1c305 Add arc4random_buf() for PRNG access. 2017-12-28 10:38:21 +01:00