Adding accept4 function
accept4 is a version of accept that takes flags.
It is more efficient for certain use cases, and has
a more modern path inside the kernel.
Adding POSIX 'E' error code constants for Windows
Believe it or not, Windows actually defines a few POSIX
'E' error codes (eg EINVAL). By adding them to libc, the Windows
bindings for things like `read()` become useful.
Believe it or not, Windows actually defines a few POSIX
'E' error codes (eg EINVAL). By adding them to libc, the Windows
bindings for things like `read()` become useful.
Factor common code out of the bitrig and openbsd modules
The new directory structure better reflects the historical relationship
of the BSDs, and includes 400 fewer duplicative lines of code.
Diff reduction between OpenBSD and Bitrig
Bitrig had a number of errors and omissions.
Also, fill out struct glob_t on all BSDs.
A follow-up commit will condense OpenBSD/Bitrig common code into a separate file.
- allow QEMU name to have subdirectory inside (replace `/` by `__` in
the filename)
- add a new code path for plain qcow2 image (for efficient bandwidth
usage, the qcow2 is expected to use compressed qcow2 format)
- move freebsd image to explicitly download the gzipped QEMU
Move kqueue-related definitions from nix to libc
This PR moves, as much as possible, kqueue and kevent related definitions from the nix crate to libc. There will be a companion PR to the nix repo.
Add more s390x definitions
This adds more Linux-specific definitions for s390x, to match the
defines provided for other Linux targets. Many of these will be
required to build std, rustc, and cargo.
In addition, this changes the type of sigaction.sa_flags to "int"
to match current glibc after this bug fix was applied:
https://sourceware.org/bugzilla/show_bug.cgi?id=16713
Some other (cosmetic) changes to bring types in line with the
exact types used in the glibc headers (e.g. ino64_t instead
of ino_t in statfs64).
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
This adds more Linux-specific definitions for s390x, to match the
defines provided for other Linux targets. Many of these will be
required to build std, rustc, and cargo.
In addition, this changes the type of sigaction.sa_flags to "int"
to match current glibc after this bug fix was applied:
https://sourceware.org/bugzilla/show_bug.cgi?id=16713
Some other (cosmetic) changes to bring types in line with the
exact types used in the glibc headers (e.g. ino64_t instead
of ino_t in statfs64).
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
* Rollback FreeBSD definitions to circa 10.3-RELEASE
* Remove EVFILT_SYSCOUNT across the board. It's value is changeable, so
it's not safe to define with FFI.