Andrew Balmos
99045cdc69
Re-add exceptions that are needed by old targets
...
Signed-off-by: Andrew Balmos <andrew@balmos.org>
2022-03-03 17:17:58 -05:00
Andrew Balmos
02042f05c2
Update src/unix/linux_like/linux/mod.rs
...
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
2022-03-03 15:36:32 -05:00
Andrew Balmos
d590b80766
Exempt J1939 constants and remove old exceptions
...
Signed-off-by: Andrew Balmos <Andrew Balmos>
2022-03-03 14:17:10 -05:00
Andrew Balmos
a5470ce96f
Add SocketCan J1939 constants and structs
...
Signed-off-by: Andrew Balmos <andrew@balmos.org>
2022-03-03 13:50:33 -05:00
bors
5d228ea56c
Auto merge of #2698 - devnexen:linux_glibc_getentropy, r=Amanieu
...
linux glibc add getentropy.
2022-02-26 18:30:26 +00:00
David Carlier
3044f1bc84
linux glibc add getentropy.
2022-02-26 14:34:44 +00:00
bors
de9e47704c
Auto merge of #2695 - devnexen:solarish_fcntl_update, r=Amanieu
...
illumos add few fcntl consts
2022-02-23 22:13:42 +00:00
David Carlier
0f109e209d
illumos add few fcntl consts
2022-02-23 21:03:06 +00:00
bors
13d18eeb3a
Auto merge of #2697 - pfmooney:illumos-siginfo, r=Amanieu
...
solarish: Expose siginfo_t data as functions
This will bring illumos (and Solaris) functionality in line with the other UNIX (and UNIX-like) platforms, where unions often hamper access to those data fields.
2022-02-23 18:30:40 +00:00
Patrick Mooney
52d5741a43
solarish: Expose siginfo_t data as functions
...
This will bring illumos (and Solaris) functionality in line with the
other UNIX (and UNIX-like) platforms, where unions often hamper access
to those data fields.
2022-02-23 17:52:50 +00:00
bors
225ef2f3ad
Auto merge of #2690 - lancethepants:RLIMIT, r=Amanieu
...
Set __rlimit_resource_t definition for all uclibc (c_ulong).
Bring all linux RLIMIT definitions into arch/generic/mod.rs or respective architectures.
Define all RLIMIT constants for all architectures.
Move BLKSSZGET/BLKPBSZGET with their other Ioctls Constants.
arch/generic/mod.rs No need to check for mips(64), powerpc(64), or sparc(64).
2022-02-21 23:03:12 +00:00
bors
fc52607f00
Auto merge of #2694 - devnexen:solarish_stacktrace_fn, r=Amanieu
...
solarish backtrace api
2022-02-21 18:38:46 +00:00
lancethepants
ad3f860b3c
Set __rlimit_resource_t definition for all uclibc (c_ulong).
...
Bring all linux RLIMIT definitions into arch/generic/mod.rs or respective architectures.
Define all RLIMIT constants for all architectures.
Move BLKSSZGET/BLKPBSZGET with their other Ioctls Constants.
arch/generic/mod.rs No need to check for mips(64), powerpc(64), or sparc(64).
2022-02-21 10:43:11 -07:00
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