- Aug 30, 2020
-
-
John Colanduoni authored
-
- Aug 28, 2020
-
-
Thomas de Zeeuw authored
These constant can be used to determine the maximum number of iovecs can be passed to functions like readv/writev. Linux like uses UIO_MAXIOV, while the BSD family uses IOV_MAX.
-
- Aug 24, 2020
-
-
Chuck Musser authored
-
- Aug 23, 2020
-
-
Chuck Musser authored
Expose __errno_location() (introduced in DragonFlyBSD 5.8), which returns the current thread's errno value. This is similar to Linux and avoids having a separate module that defines both errno (which depends on the thread_local feature) and an __error() function.
-
- Aug 22, 2020
-
-
Niels Sascha Reedijk authored
These methods were added in Haiku R1 beta 2.
-
Daniil Bondarev authored
Previously clock_getcpuclockid was enabled only on linux, with this change it is enabled on all linux_like and freebsdlike.
-
- Aug 20, 2020
-
-
Josh Triplett authored
-
Josh Triplett authored
-
Jed Brown authored
Skip test on aarch64 due to https://github.com/rust-lang/libc/issues/1765
-
- Aug 19, 2020
-
-
Paul Sajna authored
-
Isaac Freund authored
-
- Aug 18, 2020
-
-
Josh Triplett authored
Linux defines a waitid type `P_PIDFD`, for use with process file descriptors (`pidfd`). Add that constant. In libc-test, add linux/wait.h to the Linux-specific and Android-specific headers, to get the definition. Exclude it on Android and musl for now, though, as the versions in CI don't have it yet.
-
- Aug 12, 2020
-
-
Basix authored
-
Fredrik Fornwall authored
-
- Aug 11, 2020
-
-
Josh Triplett authored
On Linux, `sys/wait.h` defines a `W_STOPCODE` macro to construct a stop code from the signal number of a stopping signal. Provide an equivalent function. Suggested-by:
Ivan Tham <pickfire@riseup.net>
-
Josh Triplett authored
The SIGCHLD variant of the siginfo structure also provides fields for user and system time; expose those as well.
-
Josh Triplett authored
The first 3 fields of `siginfo_t` have different orders on MIPS. When casting `siginfo_t` to a different type to access the fields of the `sifields` union, avoid giving names to the first three fields, since they're only present for memory layout and shouldn't be accessed from the casted structure type.
-
- Aug 10, 2020
-
-
Josh Triplett authored
On Linux, siginfo_t cannot expose these fields directly due to https://github.com/rust-lang/libc/issues/716 , so expose them as functions, just like si_addr and si_value. In order to get alignment correct on both 32-bit and 64-bit architectures, define an sifields union that includes a pointer field, to ensure that it has the same alignment as a pointer.
-
- Aug 09, 2020
-
-
Josh Triplett authored
These constants appear in the si_code field of a SIGCHLD signal or waitid-returned siginfo value.
-
Josh Triplett authored
On Linux, `sys/wait.h` defines a `W_EXITCODE` macro to construct an exit code from a return value and a signal number. Provide an equivalent function.
-
Fábio Botelho authored
Allows us to get a pthread id from a match thread id. From pthread.h [1]: ``` __API_AVAILABLE(macos(10.5), ios(2.0)) _Nullable pthread_t pthread_from_mach_thread_np(mach_port_t); ``` [1] - https://opensource.apple.com/source/libpthread/libpthread-416.40.3/pthread/pthread.h.auto.html
-
- Aug 06, 2020
-
-
Joshua M. Clulow authored
At time of writing, illumos systems do not provide an implementation of the openpty() and forkpty() wrappers provided on some other UNIX systems. While we expect to grow an implementation, it seems prudent to provide a compatibility routine here first to unblock illumos support in the popular nix crate.
-
- Aug 05, 2020
-
-
Dark Kirb authored
DevkitPPC does not support unix sockets natively, meaning that bindings to these functions was removed for powerpc targets with "nintendo" as vendor. Suggested target json files: Nintendo Gamecube: ``` { "arch": "powerpc", "data-layout": "E-m:e-p:32:32-i64:64-n32", "dynamic-linking": false, "env": "newlib", "executables": true, "has-elf-tls": false, "has-rpath": true, "linker-flavor": "gcc", "llvm-target": "powerpc-eabi", "max-atomic-width": 32, "os": "dolphin", "target-c-int-width": "32", "target-endian": "big", "target-family": "unix", "target-mcount": "_mcount", "target-pointer-width": "32", "vendor": "nintendo" } ``` Nintendo Wii: ``` { "arch": "powerpc", "data-layout": "E-m:e-p:32:32-i64:64-n32", "dynamic-linking": false, "env": "newlib", "executables": true, "has-elf-tls": false, "has-rpath": true, "linker-flavor": "gcc", "llvm-target": "powerpc-eabi", "max-atomic-width": 32, "os": "revolution", "target-c-int-width": "32", "target-endian": "big", "target-family": "unix", "target-mcount": "_mcount", "target-pointer-width": "32", "vendor": "nintendo" } ```
-
- Aug 02, 2020
-
-
coolreader18 authored
-
Joshua M. Clulow authored
This series of routines allows the caller to determine the credentials of another process by pid, or of the process on the remote end of a UNIX domain socket. The ucred_t is an opaque object with accessor routines, and must be freed through ucred_free(3C) after use.
-
- Jul 29, 2020
-
-
Nikita Baksalyar authored
-
- Jul 28, 2020
-
-
amanda-tait authored
This change addresses two style errors found in PR review: * indent and linebreak in CMSG_NXTHDR * prefer `0 as *mut cmsghdr` over `core::ptr::nul_mut()`
-
- Jul 27, 2020
-
-
Alan Somers authored
It's been removed in FreeBSD 13 (svn r363622), and never had any legitimate use outside of the base system anyway.
-
Glenn Hope authored
Fix styling Re-run CI
-
Amanda Tait authored
This change defines and implements functions for the Fuchsia platform corresponding to the C library CMSG_* macros, used for processing socket control messages sent or received using the recv_msg(2)/send_msg(2) syscalls.
-
- Jul 25, 2020
-
-
kellda authored
-
Gabriel Majeri authored
-
- Jul 24, 2020
-
-
Bryan Donlan authored
-
- Jul 23, 2020
-
-
Daniil Bondarev authored
Co-authored-by:
Yuki Okushi <huyuumi.dev@gmail.com>
-
- Jul 22, 2020
-
-
Yuki Okushi authored
- Jul 20, 2020
-
-
Stefano Garzarella authored
In Linux we replaced VMADDR_CID_RESERVED with VMADDR_CID_LOCAL in commit ef343b35d46667668a099655fca4a5b2e43a5dfe. It is available since Linux v5.6, and it can be used to do local communication if supported. This patch deprecates VMADDR_CID_RESERVED for backward compatibility. Signed-off-by:
Stefano Garzarella <sgarzare@redhat.com>
-
Dan Gohman authored
As with the other *64 functions in Linux, `posix_fadvise64` is like `posix_fadvise` but uses `off64_t` instead of `off_t`.
-
- Jul 19, 2020
-
-
Paul Sajna authored
fix compilation errors rustfmt fix style add f! for const fns remove unneccessary const functions
-
Paul Sajna authored
rustfmt
-