Ian Chamberlain
c8208666bf
Add fixes from libc-test results
...
(cherry picked from commit 494fc865b0544851a9b18964abf2646628be3006)
2022-03-06 12:18:35 -08:00
Ian Chamberlain
4646be7a6b
Fix uid_t and gid_t sizes on horizon
...
(cherry picked from commit e84dbb7cb3a015c9f33db9b29019975c669113de)
2022-03-06 12:17:40 -08:00
Ian Chamberlain
e99e36e8d1
Add constants for getrandom flags
...
(cherry picked from commit 4c03853dab634dccef9e5dd8b8f2177ee8c09195)
2022-03-06 12:16:57 -08:00
Ian Chamberlain
6716cdd58a
Add getrandom call on horizon OS
...
(cherry picked from commit ab957c0cbe1e08519df47180dba3f38a5681a79d)
2022-03-06 12:16:52 -08:00
bors
ac40e640ce
Auto merge of #2707 - devnexen:solarish_ninumericservconst, r=Amanieu
...
solarish adding newdb constants
2022-03-04 18:47:38 +00:00
David Carlier
d046869d82
solarish adding newdb constants
2022-03-03 21:45:25 +00:00
bors
7650116c30
Auto merge of #2705 - devnexen:obsd_lsearch_lfind, r=Amanieu
...
openbsd add lsearch/lfind fn.
2022-03-03 10:42:45 +00:00
David Carlier
13eda020dc
openbsd add lsearch/lfind fn.
2022-03-03 08:17:18 +00:00
bors
cd875d3072
Auto merge of #2704 - devnexen:fbsd_libutil_upd, r=Amanieu
...
adding getlocalbase to freebsd 13
2022-03-02 22:28:56 +00:00
David CARLIER
921130a93f
adding getlocalbase to freebsd 13
2022-03-02 22:07:20 +00:00
bors
b9d0049b76
Auto merge of #2703 - devnexen:haiku_realhostname, r=Amanieu
...
haiku realhostname api
2022-03-02 01:00:40 +00:00
bors
fd71b7d4cb
Auto merge of #2702 - stefanha:blkiomin-blkioopt, r=Amanieu
...
Add Linux BLKIOMIN and BLKIOOPT ioctl constants
These ioctl constants are used to fetch the minimum and optimal I/O
sizes for block devices.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2022-03-01 23:34:00 +00:00
David Carlier
b94d772a68
haiku realhostname api
2022-03-01 20:05:41 +00:00
Stefan Hajnoczi
496c9ccf4e
Add Linux BLKIOMIN and BLKIOOPT ioctl constants
...
These ioctl constants are used to fetch the minimum and optimal I/O
sizes for block devices.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2022-03-01 17:12:53 +00:00
bors
c029ff79e1
Auto merge of #2699 - devnexen:haiku_shadow, r=Amanieu
...
posix shadow api for haiku
2022-03-01 00:51:41 +00:00
bors
8933033325
Auto merge of #2701 - androm3da:hexagon_400_sys, r=Amanieu
...
Add 400-series syscalls to musl hexagon definitions
2022-02-28 23:49:54 +00:00
Brian Cain
356149406f
Add 400-series syscalls to musl hexagon definitions
2022-02-27 22:44:37 -06:00
David Carlier
fafbc4e6c3
posix shadow api for haiku
2022-02-27 16:34:01 +00: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