| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
fix: CMSG_HEADER_ALIGNMENT was not properly equal to the C Header file in illumos
A small fix for illumos so we can add more archs to the definition. This aligns the defintions in libc with the corresponding C Headers.
I ran all the steps it asked me and only got an issue with `cc1: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics` although that seems to me like I am using a different gcc that CI.
This is part of the ARM work goin on at the moment.
CC: `@richlowe` and `@jclulow` for coordination.
|
| |
| |
| |
| |
| |
| | |
illumos
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
|
|\ \
| | |
| | |
| | | |
fuchsia: add definitions for riscv64
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
freebsd i686 add ucontext/mcontext
close #3196.
|
| |/ /
| | |
| | |
| | | |
close #3196.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Upstream a few more constants from rustix.
Add a definition of `CIBAUD` for powerpc and powerpc64 on glibc.
And a definition for `RLIM64_INFINITY` on linux_like platforms.
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- And a definition for `RLIM64_INFINITY` on linux_like platforms.
- Declare the `sync` function on Android and solarish.
- Solaris: https://docs.oracle.com/cd/E26502_01/html/E29032/sync-2.html
- Illumos: https://illumos.org/man/2/sync
- Enable `FICLONE` and `FICLONERANGE` on more architectures.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add kexec_file_load system call for arm linux
This syscall was introduced in Linux 5.0. References:
- torvalds/linux@4ab65ba7a5cbad47520274d88d066bf8eb83f161
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This syscall was introduced in Linux 5.0. References:
- torvalds/linux@4ab65ba7a5cbad47520274d88d066bf8eb83f161
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
netbsd,openbsd: add more waitid related constants
`P_ALL`/`P_PID`/`WEXITED`/`WNOWAIT`/`WSTOPPED` in particular are what's required for rustix to support waitid and they were missing on OpenBSD; while here add NetBSD's custom ones.
ping `@semarie`
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
haiku adding bsd missing constants
|
| |/ / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
Remove AIX specific definition of sigval
AIX definition of sigval is actually the same as other unix. Remove the union definition as other platforms treat it like a pointer after #3185.
|
| |/ /
| | |
| | |
| | |
| | | |
AIX definition of sigval is actually the same as other unix. Remove the
union definition as other platforms treat it like a pointer.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add more declarations for AIX
Add more constants and function declarations to make it more compatible to code written for other existing unix-like systems.
All added constants are verified on 64-bit AIX system. All added function are verified as linkable symbols.
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | |
| | | | |
freebsd add MAP_ALIGNED macro
|
| | | | |
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
aix: add siginfo_t accessors for symmetry with other platforms
On other platforms it's possible to call e.g. `si_status()`, it was missing on AIX.
btw, the `#[cfg(libc_union)]` usage in the `siginfo_t` itself looks quite wrong…
|
| | | | |
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
Make CMSG_SPACE on aix const
Now `CMSG_SPACE` is const (when `libc_const_extern_fn`) on every platform that has it
|
| |/ / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
Add missing kqueue constants across BSDs
While here, reorder some to match the C headers
|
| |/ /
| | |
| | |
| | | |
While here, reorder some to match the C headers
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
Adding RTEXT_FILTER* constants from linux/rtnetlink.h
Adding some constants needed for some specific netlink-route interactions (fetching information on a network interface). They are defined at ```linux/rtnetlink.h```.
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | |
| | | | |
redox reallocarray addition
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
haku adding dl_iterate_phdr bsd extension
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Add user_regs_struct for riscv32/64
Copied from C header: https://elixir.bootlin.com/linux/latest/source/arch/riscv/include/uapi/asm/ptrace.h
|
| |/ / / / |
|
|\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | | |
mac time.h functions
I used these in https://github.com/shua/graf because I'm used to them, and don't really want to pull in time or chrono just for some stuff already present in libc.h . Compilation worked fine on my linux target, but failed on mac osx because these weren't defined in rust-lang/libc (but these are all present in 13.1 SDK).
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
add memmem GNU extension for haiku
|
| | |/ / /
| |/| | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
redox add explicit_bzero
|
| |/ / / / |
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
linux: add kexec flags
This adds `KEXEC_ARCH_MASK`, `KEXEC_FILE_NO_INITRAMFS`, `KEXEC_FILE_ON_CRASH`, `KEXEC_FILE_UNLOAD`, `KEXEC_ON_CRASH`, and `KEXEC_PRESERVE_CONTEXT` constants on Linux and Android.
Those are used by `kexec` and `kexec_file_load` syscalls.
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This adds `KEXEC_ARCH_MASK`, `KEXEC_FILE_NO_INITRAMFS`,
`KEXEC_FILE_ON_CRASH`, `KEXEC_FILE_UNLOAD`, `KEXEC_ON_CRASH`,
and `KEXEC_PRESERVE_CONTEXT` constants on Linux and Android.
Those are used by `kexec` and `kexec_file_load` syscalls, and they are
defined at:
* https://github.com/torvalds/linux/blob/v6.2/include/uapi/linux/kexec.h#L12-L26
|
|/ / / |
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
- src/unix/bsd/netbsdlike/openbsd/mod.rs: add CLOCK_* constants from
/usr/include/sys/_time.h
- libc-test/semver/openbsd.txt: update file for new constants CLOCK_*
Signed-off-by: Laurent Cheylus <foxy@free.fr>
|
|\ \
| | |
| | |
| | |
| | |
| | | |
Add LC_ constants for redox (and truncate() is now supported)
From `relibc/include/bits/locale.h` and `relibc/src/header/unistd/mod.rs`
|
| | | |
|