- 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>
-
- Aug 09, 2020
-
-
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.
-
- 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
-
Marko Mijalkovic authored
-
Marko Mijalkovic authored
-
Marko Mijalkovic authored
Fix style errors
-
Marko Mijalkovic authored
-
Simonas Kazlauskas authored
-
Simonas Kazlauskas authored
-
- Jul 17, 2020
-
-
Patrick Mooney authored
Initially the EPOLLEXCLUSIVE definition was hidden on the illumos platform as it lacked explicit support. After further review, it was concluded that EPOLLEXCLUSIVE can safely be considered a no-op, when not fully implemented by the OS, making it safe for use on illumos.
-
- Jul 14, 2020
-
- Jul 09, 2020
-
-
Simon Wörner authored
-
Simon Wörner authored
-
- Jul 08, 2020
-
-
Jake Goulding authored
The new ARM-based platform doesn't need these as there's no legacy constraints. Tested via **demo.c** ```c int main() { fstat(0, NULL); fstatat(0, NULL, NULL, 0); lstat(NULL, NULL); stat(NULL, NULL); readdir(NULL); readdir_r(NULL, NULL, NULL); } ``` **Compilation** ```none % SDKROOT=/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk MACOSX_DEPLOYMENT_TARGET=11.5 cc -arch arm64 demo.c % nm a.out 0000000100008030 d __dyld_private 0000000100000000 T __mh_execute_header U _fstat U _fstatat U _lstat 0000000100003e64 T _main U _readdir U _readdir_r U _stat U dyld_stub_binder ``` This has also been experimentally compiled on a Developer Transition Kit.
-
- Jul 07, 2020
-
-
Alan Somers authored
Fixes #1775
-
- Jul 06, 2020
-
-
Dan Gohman authored
This adds various WASI libc definitions to the Rust libc bindings that I needed while porting some applications to WASI. It also removes the `pause` binding since newer versions of WASI libc have removed this function as well. (WASI currently has no syscall with this functionality.)
-
Greg V authored
Plus, add new constants for sysctls that give names to existing magic numbers. https://reviews.freebsd.org/rS350749 https://reviews.freebsd.org/rS352486
-
Greg V authored
-
Greg V authored
Wide chars are unsigned when normal chars are
-
Greg V authored
-
Greg V authored
sys/stat.h is a machine-independent header, but it has ifdefs for i386. The version that was called x86_64.rs should be used on powerpc64 too, but I don't have a machine to test that on.
-