Commit Graph

4424 Commits

Author SHA1 Message Date
bors a91546f20f Auto merge of #2110 - GuillaumeGomez:cpu-state, r=JohnTitor
Add CPU_STATE_* constants
2021-03-13 21:01:54 +00:00
Guillaume Gomez fbba2bb34c Add CPU_STATE_* constants 2021-03-13 21:51:01 +01:00
bors 9bd88759e0 Auto merge of #2106 - coolreader18:uinput-structs, r=coolreader18
Add structs from linux/uinput.h + a couple of input-related constants

I could also add the full constant list from `input-event-codes.h`, but that's about 1000 lines of constants and it's not necessary to interact with the ioctls, just to interpret the values they return/accept. Also, I made the `_CNT` constants usize instead of u16 since they're intended to be buffer lengths, not actual `input_event.code` (or whatever else) values.
2021-03-13 05:14:24 +00:00
Noah ed45c2649b
Move some structs to s_no_extra_traits due to large arrays 2021-03-12 23:14:05 -06:00
Noah 3f6b151eed
Skip uinput tests on musl+mips+ppc64+sparc64 2021-03-12 20:45:32 -06:00
Noah e45454f20d
Add structs from linux/uinput.h + a couple of input-related constants 2021-03-12 12:51:55 -06:00
bors 32457ddd8f Auto merge of #2108 - nielx:fix/haiku-typefixes, r=JohnTitor
Haiku: some type fixes for ioctl() arguments and readv()/writev(), and some missing constants

These two commits fix some issues that became visible while building libstd.
2021-03-12 15:10:27 +00:00
Niels Sascha Reedijk d4e4814f32 Haiku: change argument types for readv() and writev()
This crate's definition was recently updated to conform to the actual type
definition in the header files. However, this deviates from the standard,
and thus breaks building - amongst others - libstd. This reverts to the
original definition. Parallel to this, there is an effort to fix the
definition on Haiku. In the interim, the disparity between the definitions
should not cause any issues for users that pass valid vector sizes.
2021-03-12 11:10:52 +00:00
Niels Sascha Reedijk 0687d245f7 Haiku: change type of ioctl() argument to c_ulong and add missing 2021-03-12 11:10:51 +00:00
bors 24ce55f72e Auto merge of #2105 - tormol:udx, r=JohnTitor
Add more unix domain socket peer information to more targets

* Add NetBSD peer credentials struct `unpcbid` and socket option `SO_PEEREID` (similar to Linux struct `ucred`).
  (and some other socket options too along the way)
* Add `struct xucred`, `LOCAL_PEERCRED` and related to DragonFly BSD too.
* Add new `cr_pid` field to FreeBSD `struct xucred` (added in FreeBSD 13).
  It is added through an union as in the C header to make sure the alignment is correct, but could probably be a simple field with padding too.
* Add `SO_PEERSEC` and `SO_PASSEC` to Android and all Linux architectures that they hadn't already been added to.
2021-03-08 19:40:40 +00:00
Torbjørn Birch Moltu 3f62e51d24 Add cr_pid to FreeBSD xucred - an unreleased addition in FreeBSD 13
definition: https://svnweb.freebsd.org/base/head/sys/sys/ucred.h?view=markup#l85
manpage: https://www.freebsd.org/cgi/man.cgi?query=unix&sektion=0&manpath=FreeBSD+13-current&format=html

Continue comparing and hashing __cr_unused1 for backwards compatibility.
2021-03-08 19:37:01 +01:00
Torbjørn Birch Moltu fe4be350a8 Add SO_PEERSEC and SO_PASSSEC for all linux archs and android
SO_PASSSEC and SO_PEERSEC were already added for the most common archs
such as x86_64 and aarch64, but were missing on for example x86.

Sources:
* linux mips: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/mips/include/uapi/asm/socket.h
* linux sparc: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/sparc/include/uapi/asm/socket.h
* other linux: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/asm-generic/socket.h
* android: https://android.googlesource.com/platform/bionic.git/+/refs/heads/master/libc/kernel/uapi/asm-generic/socket.h
2021-03-08 00:10:10 +01:00
Torbjørn Birch Moltu 0f40951415 Add NetBSD unpcbid, LOCAL_PEEREID and other LOCAL_ constants 2021-03-07 21:44:23 +01:00
Torbjørn Birch Moltu adb0a34c87 Add LOCAL_PEERCRED and related to Dragonfly
https://gitweb.dragonflybsd.org/dragonfly.git/blob/cd4ac48fd186404370e0b8623530b6add4b70400:/sys/sys/ucred.h#l86

None of the other LOCAL_ constants for FreeBSD are available on Dragonfly:
https://gitweb.dragonflybsd.org/dragonfly.git/blob/master:/sys/sys/un.h
2021-03-07 21:44:17 +01:00
bors fc51a0f327 Auto merge of #2103 - JohnTitor:version-bump, r=JohnTitor
Bump up libc version to 0.2.88

This contains a regression fix (#2102).
r? `@ghost`
2021-03-05 16:12:39 +00:00
Yuki Okushi 9abcbd15de Bump up libc version to 0.2.88 2021-03-06 01:02:04 +09:00
bors 990afbb5ad Auto merge of #2102 - de-vri-es:linux-arm32-accept4, r=JohnTitor
Re-add accept4 for Android on 32 bit ARM.

`accept4` was accidentally removed from 32 bit Android targets except for x86 in https://github.com/rust-lang/libc/pull/2079. This PR adds it back using the same definition as other non-x86 platforms.
2021-03-05 14:41:08 +00:00
Maarten de Vries b98d5292b8 Re-add accept4 for Android on 32 bit ARM. 2021-03-05 14:54:34 +01:00
bors 3a7135f491 Auto merge of #2100 - TheDoctor314:gettid, r=JohnTitor
Add gettid() for Linux

Fixes #2076
2021-03-04 16:57:45 +00:00
Yuki Okushi b719be4150 Skip tests for `gettid` on musl
It requires musl 1.2.2 or later.
2021-03-05 01:45:03 +09:00
TheDoctor314 2de2cb74c8 Add gettid() for Linux and Android
Fixes #2076
2021-03-05 01:45:03 +09:00
bors ec86e5fb32 Auto merge of #2097 - cmusser:topic/dfly-waitid, r=JohnTitor
dragonflybsd: expose waitid() prototype + related constants

This exposes the POSIX waitid() process management function and some related defined constants for dragonflybsd. It includes one correction: WSTOPPED which previously had the wrong value. Noticed this when a crate that depended on it, process_control, wouldn't compile on this platform.
2021-03-03 16:18:04 +00:00
bors c334f98ad9 dragonflybsd: expose waitid() prototype + related constants
This exposes the POSIX waitid() process management function and some related defined constants for dragonflybsd. It includes one correction: WSTOPPED which previously had the wrong value. Noticed this when a crate that depended on it, process_control, wouldn't compile on this platform.
2021-03-03 16:18:04 +00:00
bors 6b1e6a2a72 Auto merge of #2099 - JohnTitor:fix-doc-links, r=JohnTitor
Fix platforms' links on the `Platform-specific documentation` section

Fixes #2098
r? `@ghost`
2021-03-03 15:12:54 +00:00
Yuki Okushi 58cd70390c Fix platforms' links on the `Platform-specific documentation` section 2021-03-04 00:04:29 +09:00
bors 5786455a79 Auto merge of #2096 - JohnTitor:fix-semver-check, r=JohnTitor
Revert the solaris target renaming for semver check

The semver check uses an old nightly and it doesn't have the renamed target yet, I completely forgot it.
r? `@ghost`
2021-03-02 13:59:34 +00:00
Yuki Okushi d6c42cfda4 Revert the solaris target renaming for semver check 2021-03-02 22:27:30 +09:00
bors fd68b7c5c3 Auto merge of #2094 - KentaTada:add-fsmagic-for-security, r=JohnTitor
Add definitions for security related MAGIC

This commit adds definitions for security related MAGIC.
2021-03-02 11:47:20 +00:00
bors 105b99dac3 Auto merge of #2095 - JohnTitor:add-description, r=JohnTitor
Add description metadata to libc-test

Well, I forgot to add this.
r? `@ghost`
2021-03-02 10:30:51 +00:00
Yuki Okushi 1ebc29eb2e Add description metadata to libc-test 2021-03-02 19:22:52 +09:00
Kenta Tada 6be7fa8037 Add definitions for security related MAGIC
Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
2021-03-02 18:36:02 +09:00
bors db6bf6fb5a Auto merge of #2092 - JohnTitor:version-bump, r=JohnTitor
Bump up libc version to 0.2.87

r? `@ghost`
In order to unblock https://github.com/rust-lang/rust/issues/82400.
This also closes #2065.
2021-03-02 09:05:43 +00:00
bors e313587f1e Auto merge of #2093 - JohnTitor:solaris-default-target, r=JohnTitor
Replace `x86_64-sun-solaris` with `x86_64-pc-solaris`

Address the changes by https://github.com/rust-lang/rust/pull/82216. I didn't add `x86_64-sun-solaris` as it's now deprecated.
r? `@ghost`
2021-03-02 07:34:54 +00:00
Yuki Okushi d96c9a2d8e Replace `x86_64-sun-solaris` with `x86_64-pc-solaris` 2021-03-02 16:27:20 +09:00
Yuki Okushi 5cfe0a237c Update some metadata on libc-test to publish 2021-03-02 15:16:12 +09:00
Yuki Okushi 68d1e3a2d6 Bump up libc version to 0.2.87 2021-03-02 15:14:25 +09:00
bors a6dc5bc088 Auto merge of #2089 - KentaTada:add-selinuxfs, r=JohnTitor
Add definition of SELINUX_MAGIC

This commit adds the definition of SELINUX_MAGIC.
2021-03-01 18:22:22 +00:00
bors 1dbc85d4ab Auto merge of #2090 - JohnTitor:remove-rumprun-from-ci-stuff, r=JohnTitor
Remove CI support for `x86_64-rumprun-netbsd`

That target has been removed by https://github.com/rust-lang/rust/pull/82594.
This is intended to unblock CI and we could drop the actual library support for it like CloudABI.

r? `@ghost`
2021-03-01 17:20:06 +00:00
Yuki Okushi 966f3dfe75 Remove CI support for `x86_64-rumprun-netbsd` 2021-03-02 02:10:29 +09:00
Kenta Tada bdb1ab7b01 Add definition of SELINUX_MAGIC
Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
2021-03-01 21:49:48 +09:00
bors 04db260ac4 Auto merge of #2086 - JohnTitor:s390x-musl, r=JohnTitor
Move `s390x-unknown-linux-musl` to build.sh

Fixes #2085
r? `@ghost`
2021-02-28 19:44:44 +00:00
Yuki Okushi 9f2acfaa53 Fix build for `s390x-unknown-linux-musl` 2021-03-01 04:13:17 +09:00
Yuki Okushi 9fca60945a Move `s390x-unknown-linux-musl` to build.sh 2021-02-28 17:09:06 +09:00
bors 5fd6540db9 Auto merge of #2071 - kaniini:s390x-musl, r=Amanieu
add definitions for s390x musl targets

Add support for s390x musl targets to libc.

I haven't added CI because I am not familiar with the pipelines, but would be glad to do so if somebody outlines what needs to be done.
2021-02-28 04:14:47 +00:00
Ariadne Conill 41cda2abdc bors: disable s390x-unknown-linux-musl for now 2021-02-28 02:57:59 +00:00
Ariadne Conill f23086220d add s390x-unknown-linux-musl to bors 2021-02-28 01:17:15 +00:00
Ariadne Conill dcbc3d15d1 discard no longer used s390x-linux-musl.json 2021-02-28 01:03:07 +00:00
Ariadne Conill a46111bc8e ci: install-musl: add missing ;; 2021-02-28 00:41:49 +00:00
Ariadne Conill 344b409989 ci: add support for s390x-unknown-linux-musl 2021-02-28 00:38:58 +00:00
bors 1524495dcf Auto merge of #2082 - landfillbaby:patch-1, r=Amanieu
use GNU/Linux siginfo_t on Android

Bionic uses an unchanged siginfo.h from the upstream linux so why not? :)
I literally just copied everything with siginfo_t from unix/linux_like/linux/gnu/mod.rs to unix/linux_like/android/mod.rs
2021-02-28 00:38:00 +00:00