summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #3171 - Toasterson:master, r=JohnTitor,pfmooneybors2023-04-201-1/+1
|\ | | | | | | | | | | | | | | | | | | | | 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.
| * fix: CMSG_HEADER_ALIGNMENT was not properly equal to the C Header file in ↵Till Wegmueller2023-03-141-1/+1
| | | | | | | | | | | | illumos Signed-off-by: Till Wegmueller <toasterson@gmail.com>
* | Auto merge of #3204 - ComputerDruid:riscv64, r=JohnTitorbors2023-04-193-0/+48
|\ \ | | | | | | | | | fuchsia: add definitions for riscv64
| * | fuchsia: add definitions for riscv64Dan Johnson2023-04-183-0/+48
| | |
* | | Auto merge of #3202 - devnexen:fbsd_ucontext_i686, r=JohnTitorbors2023-04-181-0/+155
|\ \ \ | | | | | | | | | | | | | | | | | | | | freebsd i686 add ucontext/mcontext close #3196.
| * | | freebsd i686 add ucontext/mcontextDavid Carlier2023-04-181-0/+155
| |/ / | | | | | | | | | close #3196.
* | | Auto merge of #3173 - sunfishcode:sunfishcode/upstream, r=JohnTitorbors2023-04-184-1/+38
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | Upstream a few more constants from rustix.Dan Gohman2023-04-184-1/+38
| |/ / | | | | | | | | | | | | | | | | | | | | | - 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.
* | | Auto merge of #3200 - ribalda:add-kexec-file-load-arm, r=JohnTitorbors2023-04-181-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add kexec_file_load system call for arm linux This syscall was introduced in Linux 5.0. References: - torvalds/linux@4ab65ba7a5cbad47520274d88d066bf8eb83f161
| * | | Add kexec_file_load system call for arm linuxRicardo Ribalda2023-04-141-0/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | This syscall was introduced in Linux 5.0. References: - torvalds/linux@4ab65ba7a5cbad47520274d88d066bf8eb83f161 Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
* | | adding getdtablesize on redoxDavid Carlier2023-04-131-0/+1
|/ /
* | Auto merge of #3188 - valpackett:waitconst, r=JohnTitorbors2023-04-122-1/+15
|\ \ | | | | | | | | | | | | | | | | | | | | | 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`
| * | netbsd,openbsd: add more waitid related constantsVal Packett2023-04-062-1/+15
| | |
* | | Auto merge of #3193 - devnexen:bsd_unitstd_lconst_haiku, r=JohnTitorbors2023-04-101-0/+3
|\ \ \ | | | | | | | | | | | | haiku adding bsd missing constants
| * | | haiku adding bsd missing constantsDavid Carlier2023-04-091-0/+3
| |/ /
* | | Auto merge of #3189 - ecnelises:aix_sigval_fix, r=JohnTitorbors2023-04-102-41/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | 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.
| * | | Remove AIX specific definition of sigvalQiu Chaofan2023-04-062-41/+3
| |/ / | | | | | | | | | | | | AIX definition of sigval is actually the same as other unix. Remove the union definition as other platforms treat it like a pointer.
* | | Auto merge of #3144 - ecnelises:aix_more, r=JohnTitorbors2023-04-102-16/+1146
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | Add more declarations for AIXQiu Chaofan2023-03-302-16/+1146
| | | |
* | | | Auto merge of #3167 - devnexen:fbsd_map_aligned, r=JohnTitorbors2023-04-091-0/+12
|\ \ \ \ | |_|/ / |/| | | | | | | freebsd add MAP_ALIGNED macro
| * | | freebsd add MAP_ALIGNED macroDavid CARLIER2023-04-041-0/+12
| | | |
* | | | netbsd add MAP_ALIGNED macroDavid Carlier2023-04-041-0/+13
|/ / /
* | | Auto merge of #3185 - valpackett:aix, r=JohnTitorbors2023-04-031-0/+23
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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…
| * | | aix: add siginfo_t accessors for symmetry with other platformsVal Packett2023-04-031-0/+23
| | | |
* | | | definitions for linux hardware timestampingFolkert2023-04-031-0/+55
|/ / /
* | | Auto merge of #3176 - coolreader18:aix-const-cmsg_space, r=JohnTitorbors2023-04-021-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | Make CMSG_SPACE on aix const Now `CMSG_SPACE` is const (when `libc_const_extern_fn`) on every platform that has it
| * | | Make CMSG_SPACE on aix constNoa2023-03-291-1/+1
| |/ /
* | | Auto merge of #3150 - valpackett:kq, r=JohnTitorbors2023-04-024-5/+28
|\ \ \ | | | | | | | | | | | | | | | | | | | | Add missing kqueue constants across BSDs While here, reorder some to match the C headers
| * | | Add missing kqueue constants across BSDsVal Packett2023-03-294-5/+28
| |/ / | | | | | | | | | While here, reorder some to match the C headers
* | | Auto merge of #3035 - jreppnow:rtnetlink-ext-filter, r=JohnTitorbors2023-04-021-0/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | 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```.
| * | | add RTEXT_FILTER* constants from linux/rtnetlink.hJanosch Reppnow2023-02-261-0/+8
| | | |
* | | | Auto merge of #3174 - devnexen:redox_reallocarray, r=JohnTitorbors2023-04-021-0/+3
|\ \ \ \ | |_|/ / |/| | | | | | | redox reallocarray addition
| * | | redox reallocarray additionDavid Carlier2023-03-281-0/+3
| | | |
* | | | Auto merge of #3153 - devnexen:dl_iterate_phdr_haiku, r=JohnTitorbors2023-03-291-0/+17
|\ \ \ \ | | | | | | | | | | | | | | | haku adding dl_iterate_phdr bsd extension
| * | | | haku adding dl_iterate_phdr bsd extensionDavid Carlier2023-03-231-0/+17
| | | | |
* | | | | Auto merge of #3166 - kxxt:riscv64gc-userregs, r=JohnTitorbors2023-03-292-0/+70
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | | Add user_regs_struct for riscv32/64kxxt2023-03-282-0/+70
| |/ / / /
* | | | | Auto merge of #3152 - shua:mactime, r=JohnTitorbors2023-03-291-0/+17
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | 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).
| * | | | apple: add time.h functionsshua2023-03-261-0/+17
| | | | |
* | | | | Auto merge of #3165 - devnexen:haiku_memmem, r=JohnTitorbors2023-03-281-0/+10
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | add memmem GNU extension for haiku
| * | | | | add memmem GNU extension for haikuDavid Carlier2023-03-241-0/+10
| | |/ / / | |/| | |
* | | | | Auto merge of #3164 - devnexen:redox_explicit_bzero, r=JohnTitorbors2023-03-281-0/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | redox add explicit_bzero
| * | | | | redox add explicit_bzeroDavid CARLIER2023-03-241-0/+3
| |/ / / /
* | | | | redox add strlcpy apiDavid CARLIER2023-03-251-0/+4
|/ / / /
* | | | Auto merge of #3156 - ribalda:kexec, r=JohnTitorbors2023-03-232-0/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | linux: add kexec flagsRicardo Ribalda2023-03-202-0/+16
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | progname api for haikuDavid Carlier2023-03-201-0/+3
|/ / /
* | | Add OpenBSD CLOCK_* constantsLaurent Cheylus2023-03-131-0/+6
| |/ |/| | | | | | | | | | | | | - 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>
* | Auto merge of #3145 - coolreader18:redox-locale, r=JohnTitorbors2023-03-132-1/+11
|\ \ | | | | | | | | | | | | | | | Add LC_ constants for redox (and truncate() is now supported) From `relibc/include/bits/locale.h` and `relibc/src/header/unistd/mod.rs`
| * | Add LC_ constants for redox (and truncate() is now supported)Noa2023-03-102-1/+11
| | |