Commit Graph

950 Commits

Author SHA1 Message Date
bors
e3d05ca649 Auto merge of #400 - mrjana:netlink, r=alexcrichton
Add netlink constants

Add netlink constants from linux/netlink.h

Signed-off-by: Jana Radhakrishnan <mrjana@gmail.com>
2016-09-25 16:03:05 -07:00
bors
e183f93b9d Auto merge of #399 - semarie:sethostname, r=alexcrichton
define `sethostname` under OpenBSD and Bitrig

factorize the definition with NetBSD
2016-09-25 14:01:30 -07:00
Martin Muñoz
5ec771593e Add getchar_unlocked and putchar_unlocked 2016-09-25 16:47:49 -04:00
bors
d8a70464b2 Auto merge of #404 - philippkeller:master, r=alexcrichton
add time, localtime

time, localtime and strftime are all in POSIX.1 and should IMO all be part of `libc`.

I [tested the bindings](https://github.com/philippkeller/apue-rust/blob/master/src/bin/f06-11-strftime.rs) - works fine on OSX and linux.

And: I added the netbsd aliases based on `time.h` of netbsd
2016-09-25 12:36:32 -07:00
Philipp Keller
377ee7307a couldn't get strftime to work, even with help from IRC. Removing it now as it's not worth the hassle 2016-09-25 13:16:21 +02:00
Philipp Keller
04cd409c32 reverting accidental Cargo.lock commit 2016-09-24 22:28:54 +02:00
Philipp Keller
771377f746 fixing 'bad strftime function pointer' for i686-apple-darwin 2016-09-24 16:38:30 +02:00
Philipp Keller
3be2c0fadf fix double blank line 2016-09-24 11:48:46 +02:00
Philipp Keller
a77ea86392 added time, localtime, strftime 2016-09-23 22:00:18 +02:00
Alexander Schlarb
7590565993 Add System V message queue bindings for Linux (glibc/musl) 2016-09-18 13:14:28 +02:00
Jana Radhakrishnan
85be843cd1 Add netlink constants
Add netlink constants from linux/netlink.h

Signed-off-by: Jana Radhakrishnan <mrjana@gmail.com>
2016-09-17 10:21:27 -07:00
Sébastien Marie
7adbc75876 define sethostname under OpenBSD and Bitrig
factorize the definition with NetBSD
2016-09-16 13:57:30 +02:00
Jorge Aparicio
48dab1af48 don't strip some many components 2016-09-14 22:53:53 -05:00
bors
836cda9893 Auto merge of #394 - lemonrock:accept4, r=alexcrichton
Adding accept4 function

accept4 is a version of accept that takes flags.
It is more efficient for certain use cases, and has
a more modern path inside the kernel.
2016-09-14 10:42:54 -07:00
bors
a49950c179 Auto merge of #395 - lemonrock:windows_posix_errors, r=alexcrichton
Adding POSIX 'E' error code constants for Windows

Believe it or not, Windows actually defines a few POSIX
'E' error codes (eg EINVAL). By adding them to libc, the Windows
bindings for things like `read()` become useful.
2016-09-14 09:10:21 -07:00
Raphael Cohn
37849905b1 Adding POSIX 'E' error code constants for Windows
Believe it or not, Windows actually defines a few POSIX
'E' error codes (eg EINVAL). By adding them to libc, the Windows
bindings for things like `read()` become useful.
2016-09-14 14:32:16 +01:00
Raphael Cohn
cf7f8f6b54 Adding accept4 function
accept4 is a version of accept that takes flags.
It is more efficient for certain use cases, and has
a more modern path inside the kernel.
2016-09-14 13:44:20 +01:00
Jorge Aparicio
41101f2a4f linux: make statvfs.__f_unused private 2016-09-12 23:41:17 -05:00
Jorge Aparicio
56c87dedaf mips-musl SDK: peel off another layer of directories when extracting 2016-09-12 23:40:21 -05:00
Jorge Aparicio
3df0057247 add CI for mips-musl
and fix the statvfs struct for this target
2016-09-11 23:57:37 -05:00
bors
36bec35aeb Auto merge of #389 - japaric:aarch64, r=alexcrichton
aarch64: test against Ubuntu 16.04

also "backport" two glibc fixes:

- ipc_perm.mode is c_uint. [commit][1] [discussion][2]
- bump SIGSTKSZ to 16384. [commit][3] [discussion][4]

so libc-test passes.

[1]: https://sourceware.org/git/?p=glibc.git;a=commit;h=5c40c3bab2
[2]: https://www.sourceware.org/ml/libc-alpha/2014-10/msg00446.html
[3]: https://sourceware.org/git/?p=glibc.git;a=commit;h=b763f6ae859ecea70a5dacb8ad45c71d5f667e2e
[4]: https://sourceware.org/ml/libc-alpha/2015-04/msg00033.html

closes #231

r? @alexcrichton
2016-09-11 17:02:54 -07:00
bors
d3d0982488 Auto merge of #390 - japaric:ctest-up, r=alexcrichton
libc-test: cargo update

to pick up the recent changes in the ctest repo.

r? @alexcrichton
2016-09-11 16:32:33 -07:00
Jorge Aparicio
bcc44dfee8 libc-test: cargo update 2016-09-11 17:52:45 -05:00
Jorge Aparicio
be5969bca1 aarch64: test against Ubuntu 16.04
also "backport" two glibc fixes:

- ipc_perm.mode is c_uint. [commit][1] [discussion][2]
- bump SIGSTKSZ to 16384. [commit][3] [discussion][4]

so libc-test passes.

[1]: https://sourceware.org/git/?p=glibc.git;a=commit;h=5c40c3bab2
[2]: https://www.sourceware.org/ml/libc-alpha/2014-10/msg00446.html
[3]: https://sourceware.org/git/?p=glibc.git;a=commit;h=b763f6ae859ecea70a5dacb8ad45c71d5f667e2e
[4]: https://sourceware.org/ml/libc-alpha/2015-04/msg00033.html

closes #231
2016-09-11 17:07:41 -05:00
bors
8f128d86ef Auto merge of #388 - asomers:openbsd2, r=alexcrichton
Factor common code out of the bitrig and openbsd modules

The new directory structure better reflects the historical relationship
of the BSDs, and includes 400 fewer duplicative lines of code.
2016-09-11 11:11:54 -07:00
Alan Somers
b7b720b8d5 Factor common code out of the bitrig and openbsd modules
The new directory structure better reflects the historical relationship
of the BSDs, and includes 400 fewer duplicative lines of code.
2016-09-10 11:12:34 -06:00
bors
b56add32e6 Auto merge of #387 - asomers:openbsd, r=alexcrichton
Diff reduction between OpenBSD and Bitrig

Bitrig had a number of errors and omissions.
Also, fill out struct glob_t on all BSDs.

A follow-up commit will condense OpenBSD/Bitrig common code into a separate file.
2016-09-09 09:03:18 -07:00
bors
0d39c59bc3 Auto merge of #384 - semarie:openbsd-6.0-without-pkgs, r=alexcrichton
use new openbsd-6.0 qcow2 image

this version is using `openbsd-6.0-without-pkgs` image.
2016-09-08 23:56:55 -07:00
Sébastien Marie
919939451f extend QEMU image management
- allow QEMU name to have subdirectory inside (replace `/` by `__` in
  the filename)
- add a new code path for plain qcow2 image (for efficient bandwidth
  usage, the qcow2 is expected to use compressed qcow2 format)
- move freebsd image to explicitly download the gzipped QEMU
2016-09-09 06:24:46 +02:00
Sébastien Marie
958a3d02c9 under OpenBSD 6.0, KERN_RND is no more
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/sys/sysctl.h?rev=1.162&content-type=text/x-cvsweb-markup
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/sys/sysctl.h.diff?r1=1.161&r2=1.162
2016-09-09 06:24:41 +02:00
Sébastien Marie
a40adc68cd use new openbsd-6.0 qcow2 image 2016-09-09 06:24:40 +02:00
Alan Somers
410a200d6a Diff reduction between OpenBSD and Bitrig
Bitrig had a number of errors and omissions.
Also, fill out struct glob_t on all BSDs.
2016-09-08 21:38:04 -06:00
bors
b987f0ccce Auto merge of #386 - alexcrichton:bump, r=alexcrichton
Bump to 0.2.16
2016-09-08 18:16:24 -07:00
bors
b6417373b2 Auto merge of #379 - asomers:evfilt, r=alexcrichton
Move kqueue-related definitions from nix to libc

This PR moves, as much as possible, kqueue and kevent related definitions from the nix crate to libc.  There will be a companion PR to the nix repo.
2016-09-08 17:10:29 -07:00
Alex Crichton
351df2ddef Bump to 0.2.16 2016-09-08 15:01:24 -07:00
bors
d4f6a19c55 Auto merge of #383 - uweigand:master, r=alexcrichton
Add more s390x definitions

This adds more Linux-specific definitions for s390x, to match the
defines provided for other Linux targets.  Many of these will be
required to build std, rustc, and cargo.

In addition, this changes the type of sigaction.sa_flags to "int"
to match current glibc after this bug fix was applied:
https://sourceware.org/bugzilla/show_bug.cgi?id=16713

Some other (cosmetic) changes to bring types in line with the
exact types used in the glibc headers (e.g. ino64_t instead
of ino_t in statfs64).

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
2016-09-07 12:26:36 -07:00
Ulrich Weigand
0b5bdbabcb Fixed lint error (double blank line). 2016-09-07 19:54:11 +02:00
bors
574b29310a Auto merge of #382 - c-t-k:sync-file-range-support, r=alexcrichton
Add support for sync_file_range on Linux
2016-09-07 10:47:33 -07:00
Chris Kaminski
ae6cbcdcc9 SYNC_* constants should be unsigned (to reflect usage). 2016-09-07 13:15:49 -04:00
Ulrich Weigand
38569c719b Add more s390x definitions
This adds more Linux-specific definitions for s390x, to match the
defines provided for other Linux targets.  Many of these will be
required to build std, rustc, and cargo.

In addition, this changes the type of sigaction.sa_flags to "int"
to match current glibc after this bug fix was applied:
https://sourceware.org/bugzilla/show_bug.cgi?id=16713

Some other (cosmetic) changes to bring types in line with the
exact types used in the glibc headers (e.g. ino64_t instead
of ino_t in statfs64).

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
2016-09-07 15:46:45 +02:00
Alan Somers
38c4b8b753 Fix more CI errors
* Rollback FreeBSD definitions to circa 10.3-RELEASE
* Remove EVFILT_SYSCOUNT across the board.  It's value is changeable, so
  it's not safe to define with FFI.
2016-09-06 21:33:46 -06:00
Chris Kaminski
37552b7da6 Android doesn't have support for sync_file_range yet. 2016-09-06 20:20:00 -04:00
Chris Kaminski
9318594929 Add support for sync_file_range() 2016-09-06 19:35:56 -04:00
bors
44ed4873ed Auto merge of #381 - brson:wasm32, r=alexcrichton
Add prelimenary wasm32 support

For the moment there's nothing different about the emscripten libc implementations for asmjs and wasm32.
2016-09-06 16:13:56 -07:00
Brian Anderson
ab0499fc79 Add prelimenary wasm32 support 2016-09-06 00:09:30 +00:00
bors
9b757034bc Auto merge of #378 - japaric:mips, r=alexcrichton
mips: add SO_REUSEPORT

Which is required to cross compile the net2 crate. Which, in turn, is required to cross compile Cargo.

r? @alexcrichton
2016-09-03 19:30:49 -07:00
Jorge Aparicio
0ddf172d31 mips: add SO_REUSEPORT 2016-09-03 19:12:04 -05:00
bors
3635c1a939 Auto merge of #377 - japaric:s390x, r=alexcrichton
add support for s390x

tested by running libc-test on real s390x hardware.

r? @alexcrichton
2016-09-02 23:58:26 -07:00
Jorge Aparicio
756d7eeefe duplicate POSIX_FADV_* 2016-09-03 01:46:06 -05:00
Jorge Aparicio
e16b11d26c fix POSIX_FADV_* 2016-09-03 00:59:26 -05:00