David Carlier
21d86f5a20
solarish backtrace api
2022-02-20 08:42:54 +00:00
bors
3f035c0d5e
Auto merge of #2693 - devnexen:solarish_getisax, r=Amanieu
...
solarish getisax/auxiliary vector constants
2022-02-19 17:40:19 +00:00
David Carlier
de71d927aa
solarish getisax/auxiliary vector constants
2022-02-19 16:52:03 +00:00
bors
7fa08a441e
Auto merge of #2692 - devnexen:mempolicy_update2, r=Amanieu
...
linux/android mempolicy options update
2022-02-19 15:28:37 +00:00
David Carlier
dc6b377e34
linux/android mempolicy options update
2022-02-19 14:23:56 +00:00
bors
abb9b4bb05
Auto merge of #2691 - lyinch:libc-02119, r=Amanieu
...
Bump version to 0.2.119
I'd like a new release because https://github.com/rust-lang/rust/pull/94100 requires the merged PR: https://github.com/rust-lang/libc/pull/2689
2022-02-19 14:12:21 +00:00
lyinch
57858f7387
Bump version to 0.2.119
2022-02-18 23:31:26 +01:00
lyinch
4655f14858
Bump version to 0.2.119
2022-02-18 23:30:25 +01:00
bors
06a5677619
Auto merge of #2689 - lyinch:macos-aarch64-clock-uptime-const, r=Amanieu
...
Macos aarch64 clock uptime const
This will add the constant `CLOCK_UPTIME_RAW` from `time.h` on macos apple silicon. I don't know if the same constant also exists for other systems, so I put it into the most specific file. Background is this issue: https://github.com/rust-lang/rust/issues/91417 which might need the constant.
On my machine, it is defined as:
```C
typedef enum {
_CLOCK_REALTIME __CLOCK_AVAILABILITY = 0,
#define CLOCK_REALTIME _CLOCK_REALTIME
_CLOCK_MONOTONIC __CLOCK_AVAILABILITY = 6,
#define CLOCK_MONOTONIC _CLOCK_MONOTONIC
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
_CLOCK_MONOTONIC_RAW __CLOCK_AVAILABILITY = 4,
#define CLOCK_MONOTONIC_RAW _CLOCK_MONOTONIC_RAW
_CLOCK_MONOTONIC_RAW_APPROX __CLOCK_AVAILABILITY = 5,
#define CLOCK_MONOTONIC_RAW_APPROX _CLOCK_MONOTONIC_RAW_APPROX
_CLOCK_UPTIME_RAW __CLOCK_AVAILABILITY = 8,
#define CLOCK_UPTIME_RAW _CLOCK_UPTIME_RAW
_CLOCK_UPTIME_RAW_APPROX __CLOCK_AVAILABILITY = 9,
#define CLOCK_UPTIME_RAW_APPROX _CLOCK_UPTIME_RAW_APPROX
#endif
_CLOCK_PROCESS_CPUTIME_ID __CLOCK_AVAILABILITY = 12,
#define CLOCK_PROCESS_CPUTIME_ID _CLOCK_PROCESS_CPUTIME_ID
_CLOCK_THREAD_CPUTIME_ID __CLOCK_AVAILABILITY = 16
#define CLOCK_THREAD_CPUTIME_ID _CLOCK_THREAD_CPUTIME_ID
} clockid_t;
```
I ran the tests in `libc-test` :
```
% cargo test
Compiling libc v0.2.118 (/Users/backes/dev/libc)
Compiling libc-test v0.2.118 (/Users/backes/dev/libc/libc-test)
Finished test [unoptimized + debuginfo] target(s) in 10.40s
Running test/cmsg.rs (/Users/backes/dev/libc/target/debug/deps/cmsg-1a9cf9acb3bfd606)
running 5 tests
test t::test_cmsg_firsthdr ... ok
test t::test_cmsg_data ... ok
test t::test_cmsg_space ... ok
test t::test_cmsg_len ... ok
test t::test_cmsg_nxthdr ... ok
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.32s
Running test/errqueue.rs (/Users/backes/dev/libc/target/debug/deps/errqueue-34a57aa145f73969)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running test/linux_elf.rs (/Users/backes/dev/libc/target/debug/deps/linux_elf-0d81190c35086f0f)
PASSED 0 tests
Running test/linux_fcntl.rs (/Users/backes/dev/libc/target/debug/deps/linux_fcntl-35043d47b0ba1ab8)
PASSED 0 tests
Running test/linux_if_arp.rs (/Users/backes/dev/libc/target/debug/deps/linux_if_arp-7d13a47b02694998)
PASSED 0 tests
Running test/linux_ipv6.rs (/Users/backes/dev/libc/target/debug/deps/linux_ipv6-019e5b7c295e467b)
PASSED 0 tests
Running test/linux_strerror_r.rs (/Users/backes/dev/libc/target/debug/deps/linux_strerror_r-177f4ad6f4f31457)
PASSED 0 tests
Running test/linux_termios.rs (/Users/backes/dev/libc/target/debug/deps/linux_termios-0ef27e1d55afb4db)
PASSED 0 tests
Running test/main.rs (/Users/backes/dev/libc/target/debug/deps/main-112b28ce12de7d4b)
RUNNING ALL TESTS
PASSED 13288 tests
Running test/semver.rs (/Users/backes/dev/libc/target/debug/deps/semver-e9e1e170582c8b37)
PASSED 1 tests
Running test/sigrt.rs (/Users/backes/dev/libc/target/debug/deps/sigrt-13dc29f6aa83ea4c)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
```
2022-02-18 15:59:09 +00:00
bors
120083001d
Auto merge of #2688 - devnexen:solaris_lgrp_api_upd, r=Amanieu
...
solarish lgrp api update
2022-02-18 14:03:09 +00:00
lyinch
16214c4a1c
Fix style issue
2022-02-17 17:46:27 +01:00
lyinch
2db639b5d6
Fix linter issue
2022-02-17 17:12:59 +01:00
lyinch
2b9472b5ab
Add CLOCK_UPTIME_RAW symbol for macos aarch64
2022-02-17 17:01:31 +01:00
David Carlier
23afc03bb5
solarish lgrp api update
2022-02-15 18:32:25 +00:00
bors
f1d3d97cd7
Auto merge of #2687 - Amanieu:v118, r=Amanieu
...
Bump version to 0.2.118
2022-02-15 10:22:16 +00:00
Amanieu d'Antras
10d456601b
Bump version to 0.2.118
2022-02-15 10:21:18 +00:00
bors
c32c02573f
Auto merge of #2683 - deantvv:wasi-langinfo, r=Amanieu
...
wasi add langinfo.h
Reference: [langinfo.h](659ff41456/libc-top-half/musl/include/langinfo.h
)
2022-02-15 02:08:54 +00:00
bors
ea701b26b2
Auto merge of #2665 - devnexen:solarish_dl_phdr_api2, r=Amanieu
...
solarish systems dl_iterate_phdr support
2022-02-14 23:50:42 +00:00
David Carlier
848a12cb9c
solarish systems dl_iterate_phdr support
2022-02-14 23:01:54 +00:00
bors
31657a5241
Auto merge of #2686 - devnexen:bsd_nonsec_random_api, r=Amanieu
...
BSD add deterministic rand api
2022-02-14 22:41:22 +00:00
David Carlier
0a0158947b
BSD add deterministic rand api
2022-02-14 20:23:23 +00:00
bors
b3c9c696a3
Auto merge of #2685 - Amanieu:riscv-ucontext, r=Amanieu
...
Add ucontext_t and mcontext_t for RISC-V Linux
2022-02-14 20:10:02 +00:00
bors
e2e056bc50
Auto merge of #2682 - devnexen:solarish_processor, r=Amanieu
...
processor_info for solarish
2022-02-14 16:15:28 +00:00
bors
acd773d4a4
Auto merge of #2684 - Amanieu:fix-android-ci, r=Amanieu
...
Fix multiple symbol definitions on Android CI
The breakage was caused by https://github.com/rust-lang/rust/pull/83822 which removed `-Wl,--allow-multiple-definition` from the Android target linker flags.
2022-02-14 14:57:29 +00:00
Amanieu d'Antras
95c0d08166
Fix multiple symbol definitions on Android CI
2022-02-14 14:57:14 +00:00
Amanieu d'Antras
3fa2b561e2
Add ucontext_t and mcontext_t for RISC-V Linux
2022-02-14 14:33:44 +00:00
Dean Li
b1cb131e52
wasi add langinfo.h
2022-02-13 17:40:21 +08:00
David Carlier
b2c33f79f4
processor_info for solarish
2022-02-12 20:56:56 +00:00
bors
7cd6a6f629
Auto merge of #2681 - rtzoeller:dfly_more_errors, r=Amanieu
...
Define ENOTRECOVERABLE and EOWNERDEAD on DragonFly
Corresponds to DragonFly commit [c907b81a9d9aa73a2c8f1b41387347bc0eb66ba5](c907b81a9d
)
2022-02-12 20:53:12 +00:00
bors
6429755451
Auto merge of #2680 - glaubitz:m68k-linux, r=Amanieu
...
Build fixes for Linux/m68k
This PR contains a few fixes on top of #2414 that were not previously discovered.
I have verified that with these fixes applied, the libc module builds fine on Linux/m68k.
2022-02-12 19:43:30 +00:00
bors
f856aa6121
Auto merge of #2677 - devnexen:fbsd14_tcp_flags, r=Amanieu
...
freebsd 14 new tcp constants.
2022-02-12 18:22:40 +00:00
bors
14c9ec101d
Auto merge of #2661 - devnexen:solarish_lgrp_api, r=Amanieu
...
solarish lgrp api subset
2022-02-12 17:12:19 +00:00
John Paul Adrian Glaubitz
c63c6a64c2
m68k: Fix definitions for unimplemented syscalls on Linux
2022-02-12 17:47:49 +01:00
John Paul Adrian Glaubitz
35f8c5891f
m68k: Fix duplicate definition of st_ino inside stat64 on Linux
2022-02-12 17:47:49 +01:00
John Paul Adrian Glaubitz
0c032ab324
m68k: Fix incorrect scope of multiple struct fields on Linux
2022-02-12 17:47:49 +01:00
David Carlier
c620c5577e
solarish lgrp api subset
2022-02-12 14:58:40 +00:00
bors
f0a06e2e6d
Auto merge of #2679 - devnexen:fbsd_flopenapi, r=Amanieu
...
flopen from libutil on freebsd
2022-02-12 14:03:00 +00:00
David CARLIER
59da5c9247
flopen from libutil on freebsd
2022-02-12 13:09:49 +00:00
bors
3151997253
Auto merge of #2678 - devnexen:solarish_sysinfo, r=Amanieu
...
solarish systeminfo
2022-02-12 12:52:12 +00:00
David Carlier
65db99d465
solarish systeminfo
2022-02-11 22:03:59 +00:00
David CARLIER
edead08035
freebsd 14 new tcp constants.
2022-02-11 19:14:47 +00:00
bors
ec88c377ab
Auto merge of #2676 - Amanieu:arm_mcontext, r=Amanieu
...
Add mcontext_t and ucontext_t for ARM Linux
2022-02-11 19:08:14 +00:00
Amanieu d'Antras
26665e70d5
Implement extra traits for ucontext_t
2022-02-11 19:02:27 +00:00
Amanieu d'Antras
de8654b3a3
Add mcontext_t and ucontext_t for ARM Linux
2022-02-11 16:43:08 +00:00
bors
b30ec401fc
Auto merge of #2560 - jclulow:illumos-2021-11-22, r=Amanieu
...
several illumos fixes, and some additional termios constants
I wanted to add some of the new baud rate constants that [we added recently](https://www.illumos.org/issues/13975 ). On the way there, I had to make a variety of fixes to get the tests to pass on illumos systems.
2022-02-11 12:09:31 +00:00
Joshua M. Clulow
60213e169f
illumos: higher baud rates, more termios constants
...
We added baud rate constants that are source compatible with Linux
systems when used with the cfsetspeed() family, in:
https://www.illumos.org/issues/13975
2022-02-10 15:54:25 -08:00
Patrick Mooney
0c417e8504
solarish: Fix tests for subsequent additions
2022-02-10 15:54:25 -08:00
Joshua M. Clulow
aee5ce5e0a
illumos: fixes to get tests to pass
...
Various small fixes to the tests to include all the required headers,
and to add some constants that are now part of the "unix" semver list,
and to drop "sethostid()" which is not something we have on our
platform, etc.
2022-02-10 15:54:25 -08:00
Joshua M. Clulow
0c2ae734d9
illumos: fixes for mcontext_t and related types
...
Some of the type information in the machine context types, with
particular focus on the padding unions, was not quite right. It seems
we have used the somewhat baroque "long double" in the system headers,
and Rust does not have a type that matches that data layout. I have
adjusted the structs to omit that member, but to be explicitly aligned
to match the C version.
I also gagged a test for the "fp_reg_set" member which is of an
anonymous union type.
Portions contributed by: Patrick Mooney <pmooney@pfmooney.com>
2022-02-10 15:54:25 -08:00
Joshua M. Clulow
96e2e3aeb4
illumos does not yet have SO_REUSEPORT
...
The semver regression checks in #2109 included the "SO_REUSEPORT"
constant, which we do not yet have on illumos systems. Move it out to
platform-specific files.
2022-02-10 15:54:24 -08:00