Commit Graph

2187 Commits

Author SHA1 Message Date
bors
7cac8d0c9d Auto merge of #1019 - est31:master, r=alexcrichton
Simplify the stdbuild section

Found this when encountering the code in the rustc submodule and changing the allow for the warnings to deny.

* `no_std` is stable so it does not have to be listed in the `feature` attribute
* `no_std` as an attribute for the crate is already implied by the `#![cfg_attr(not(feature = "use_std"), no_std)]` below
* `staged_api` as an attribute gives a warning. That also matches my knowledge.
2018-06-28 04:03:20 +00:00
bors
0d0a5f7510 Auto merge of #1024 - nielx:master, r=alexcrichton
Haiku: Add more IP_* and IPV6_* constants.

These are used in the socket2 library.
2018-06-28 03:31:12 +00:00
bors
ac1a1193fb Auto merge of #1022 - sfackler:phys-pages, r=alexcrichton
Add _SC_PHYS_PAGES on macOS
2018-06-28 02:58:09 +00:00
bors
42a5ad8cd9 Auto merge of #1023 - mksully22:ppc64le_libc, r=alexcrichton
libc: changes to ppc64le musl branch to support building of rust on A…

…lpine

This PR includes changes to the libc musl branch to include the correct defines & declarations to support powerpc64.  Values that needed changes to a definition for powerpc64.rs that existed higher in the branch also resulted in a change that moved the definition down to the b32/mod.rs, b64/x86_64.rs to ensure that builds continued to work on those architectures.

Verification was done building rust for both ppc64le and x86_64 on Alpine as described in the git project
https://github.com/mksully22/ppc64le_alpine_rust_1.26.2
2018-06-28 02:21:06 +00:00
bors
f36341e219 Auto merge of #1021 - redox-os:master, r=alexcrichton
Add getpid on Redox

None
2018-06-28 01:08:08 +00:00
bors
93bc59e637 Auto merge of #1018 - scottlamb:pr-fdopendir, r=alexcrichton
add fdopendir on macOS

Fixes #1017

I moved it up to src/unix/mod.rs, as it's specified in POSIX.1-2008 and
appears to be implemented on every Unix-like system.

The symbol names on macOS appear similar to those for opendir; I found
them via the commands below. I tested the x86_64 version;
fdopendir$INODE64 worked as expected.

$ nm -arch x86_64 /usr/lib/system/libsystem_c.dylib | grep fdopendir
000000000007ea6d T _fdopendir
000000000002ba97 T _fdopendir$INODE64
$ nm -arch i386 /usr/lib/system/libsystem_c.dylib | grep fdopendir
00082d1e T _fdopendir
0002b528 T _fdopendir$INODE64$UNIX2003
00082d1e T _fdopendir$UNIX2003
2018-06-28 00:14:38 +00:00
bors
23578141f2 Auto merge of #1016 - debris:fs-swap-api, r=alexcrichton
added renamex_np, renameatx_np

these function can be used to atomically swap files

- added 2 macos specific functions - `renamex_np` and `renameatx_np` and two constants `RENAME_SWAP` and `RENAME_EXCL`
  - [macos stdio.h](https://github.com/apple/darwin-xnu/blob/0ddccd8/bsd/sys/stdio.h#L45-L48)
  - [docs](http://www.manpagez.com/man/2/renameatx_np/osx-10.12.3.php)
- ~added linux specific `renameat2`. according to the [docs](http://man7.org/linux/man-pages/man2/rename.2.html#VERSIONS) it was added to Linux in kernel 3.15.~
2018-06-27 23:08:59 +00:00
bors
4bd52f5e3e Auto merge of #995 - canndrew:if_arp, r=alexcrichton
add net/if_arp.h definitions

This is based on the contents of include/net/if_arp.h on my Linux system.
2018-06-27 21:58:05 +00:00
Niels Sascha Reedijk
572f142459 Haiku: Add more IP_* and IPV6_* constants.
These are used in the socket2 library.
2018-06-20 06:47:38 +00:00
Mike Sullivan
dcff154781 libc: changes to ppc64le musl branch to support building of rust on Alpine
amend to add style changes
amend to add style changes
2018-06-18 18:53:59 +00:00
Steven Fackler
4aabb87661 Add _SC_PHYS_PAGES on macOS 2018-06-15 11:48:57 -07:00
jD91mZM2
30f6da8a64
Add getpid 2018-06-09 07:54:56 +02:00
est31
f164aa8806 Simplify the stdbuild section 2018-06-08 09:24:30 +02:00
Scott Lamb
322ba046d8 add fdopendir on macOS
Fixes #1017

I moved it up to src/unix/mod.rs, as it's specified in POSIX.1-2008 and
appears to be implemented on every Unix-like system.

The symbol names on macOS appear similar to those for opendir; I found
them via the commands below. I tested the x86_64 version;
fdopendir$INODE64 worked as expected.

$ nm -arch x86_64 /usr/lib/system/libsystem_c.dylib | grep fdopendir
000000000007ea6d T _fdopendir
000000000002ba97 T _fdopendir$INODE64
$ nm -arch i386 /usr/lib/system/libsystem_c.dylib | grep fdopendir
00082d1e T _fdopendir
0002b528 T _fdopendir$INODE64$UNIX2003
00082d1e T _fdopendir$UNIX2003
2018-06-07 21:49:10 -07:00
debris
843388ac7d glibc does not provide a wrapper for the renameat2 2018-06-04 16:37:03 +02:00
debris
7315cfda35 added renameat2, renamex_np, renameatx_np 2018-06-04 15:51:32 +02:00
Andrew Cann
1cc2f1e9b2 add net/if_arp.h definitions 2018-06-04 11:06:57 +08:00
bors
8a85d662b9 Auto merge of #1014 - Susurrus:termios_sparc64, r=alexcrichton
Add some termios constants for sparc64
2018-06-01 22:29:29 +00:00
Bryant Mairs
2aa329751a Add some termios constants for sparc64 2018-06-01 15:24:37 -07:00
bors
575832db87 Auto merge of #1012 - redox-os:master, r=alexcrichton
Bump version to 0.2.42

Closes https://github.com/rust-lang/libc/issues/1011
2018-06-01 20:32:35 +00:00
bors
a75938db01 Auto merge of #1010 - canndrew:make-size_of-const, r=alexcrichton
make dox::mem::size_of a const fn
2018-06-01 19:57:12 +00:00
bors
1fc4c57828 Auto merge of #1007 - canndrew:dox-traits, r=alexcrichton
add more built-in traits to dox.rs

Add/fix bitwise operation traits in dox.rs
2018-06-01 19:16:33 +00:00
bors
c0817817ca Auto merge of #1005 - Susurrus:s390x_fix, r=alexcrichton
Fix sparc64 builds

Partially fixes #987.
2018-06-01 18:37:36 +00:00
bors
3783f1fbf4 Auto merge of #1001 - canndrew:add-rtentry, r=alexcrichton
add rtentry
2018-06-01 18:14:56 +00:00
Jeremy Soller
a27fae96a0 Bump version to 0.2.42 2018-06-01 08:14:12 -06:00
bors
6acb091b5e Auto merge of #1008 - stratact:master, r=alexcrichton
Add `gethostname` support to Redox module

We need this for hostname support in Ion shell.
2018-06-01 13:53:40 +00:00
Andrew Cann
0198ea0d76 add const_fn feature 2018-06-01 17:31:11 +08:00
Andrew Cann
c460b376c2 make dox::mem::size_of a const fn 2018-06-01 16:58:47 +08:00
stratact
d650166116 Add gethostname support to Redox module 2018-06-01 01:01:20 -07:00
Andrew Cann
399c37d19d remove lone symbol 2018-06-01 15:39:37 +08:00
Andrew Cann
78dbddb4f1 move rtentry even further down heirarchy 2018-06-01 15:39:04 +08:00
Andrew Cann
29d944b71a move stuff into linux subdir 2018-06-01 15:37:57 +08:00
Andrew Cann
02d95f622b move some symbols down the heirarchy 2018-06-01 15:11:48 +08:00
Andrew Cann
0eaa305c71 add more built-in traits to dox.rs 2018-06-01 13:49:03 +08:00
Andrew Cann
1c00b9be5c fix type error 2018-06-01 13:38:25 +08:00
Andrew Cann
4b526c2524 move rtentry, add rest of net/route.h 2018-06-01 13:10:15 +08:00
Andrew Cann
651d6feafe add rtentry 2018-06-01 13:10:15 +08:00
Bryant Mairs
0f8a62bce6 Fail hard on sparc64 build failures 2018-05-31 19:27:03 -07:00
Bryant Mairs
d41e62ac29 Correct path for sparc64 debian image 2018-05-31 19:24:53 -07:00
bors
6578c7c7d1 Auto merge of #1002 - canndrew:add-linux-ip-defs, r=alexcrichton
Add consts from netinet/ip.h
2018-05-31 14:20:47 +00:00
bors
eb75e53f55 Auto merge of #1004 - canndrew:fix-size_of, r=alexcrichton
fix size_of function in dox.rs

I'm assuming this is meant to have the same signature as the one in core/std
2018-05-31 13:57:27 +00:00
Andrew Cann
020a68a1c4 fix size_of function in dox.rs 2018-05-31 16:47:19 +08:00
Andrew Cann
96c94839f1 make some symbols linux-specific 2018-05-31 14:21:46 +08:00
Andrew Cann
e4a50811dd remove conflicting linux/ip.h header 2018-05-31 13:53:10 +08:00
Andrew Cann
8dd5125f1e add constants from linux/ip.h 2018-05-31 13:40:05 +08:00
bors
9f3681c35c Auto merge of #998 - canndrew:linux-socket-ioctls, r=alexcrichton
Add linux socket ioctl defs
2018-05-30 12:59:32 +00:00
Andrew Cann
b02c6a328d Remove ioctl symbols for emscripten 2018-05-30 18:08:28 +08:00
Andrew Cann
dfaa8f6055 correct some ioctl request values 2018-05-30 18:04:09 +08:00
Andrew Cann
93f9167bea Add linux socket ioctl defs 2018-05-30 17:27:18 +08:00
bors
4083c89d54 Auto merge of #994 - bkchr:android_fixes, r=alexcrichton
Moves `ifaddrs` and some functions to common Linux module

The `ifaddrs` interface is available since api version 24 in android.
The function signatures are now equal to the standard Linux function
signatures.
2018-05-26 19:45:44 +00:00