Age | Commit message (Collapse) | Author |
|
|
|
Now that these constants are verified within libc,
these tests are no longer necessary.
|
|
This was doing testing for errno constants and a few other
types that is no longer necessary now that these types are
all tested within the libc project itself.
|
|
|
|
696: Stop reexporting `Errno` variants r=Susurrus a=jonas-schievink
Closes #664 (unsure if this is everything needed)
|
|
cc #664 (unsure if this is everything needed)
|
|
|
|
The libc_bitflags! macro was replaced with a non-recursive one supporting
only public structs. I could not figure out how to make the old macro work
with the upgrade, so I reworked part of the bitflags! macro directly to suit
our needs, much as the original recursive macro was made. There are no uses
of this macro for non-public structs, so this is not a problem for internal code.
|
|
When passing None as an argument to `epoll_ctl`, UB is elicited within
the `Into<&EpollEvent>` impl because it passes a null pointer as a
`&mut EpollEvent`. Instead we remove that implementation completely and
handle this case directly within the `epoll_ctl` function.
Thanks to Arnavion for helping to debug this.
|
|
This adds execveat() to `nix::unistd`. It uses the execveat(2) Linux
kernel syscall, which is available since 3.19.
This is a Linux-specific extension which is not covered by POSIX and
does not have any userland libc wrapper.
Ref: http://man7.org/linux/man-pages/man2/execveat.2.html
|
|
This introduces an `as_abstract()` getter to `UnixAddr` in order to
retrieve the name of an abstract unix socket.
This also adds tests around abstract addresses and clarify docs,
adding explicit semantics.
|
|
|
|
Bitrig is in the process of re-merging with OpenBSD as is no longer
actively developed. Additionally it was never tested, and probably
was quite broken, for nix. So let's remove all references and not
even pretend to support it.
|
|
|
|
|
|
|
|
Don't need to call as_c_str()
|
|
|
|
|
|
|
|
|
|
|
|
568: Add process_vm_readv and process_vm_writev r=asomers a=geofft
|
|
787: Omit invalid waitpid flags on OpenBSD r=Susurrus a=worr
OpenBSD doesn't have `WEXITED`, `WSTOPPED`, or `WNOWAIT`, so omit those
from that platform.
|
|
|
|
OpenBSD doesn't have `WEXITED`, `WSTOPPED`, or `WNOWAIT`, so omit those
from that platform.
|
|
792: Use libc_enum! where possible r=Susurrus a=wginolas
Some enums which use different names for values than libc still set the
discriminators manually.
closes #254
|
|
|
|
|
|
771: ptrace: add PTRACE_O_EXITKILL option r=Susurrus a=bpowers
It is a somewhat newer option -- it requires Linux 3.8. Is there a
more precise way to specify that?
|
|
794: Migrate memfd constants to libc r=Susurrus a=Susurrus
This will fail because rust-lang/libc#836 is not merged yet, but just getting it staged for when it is.
|
|
|
|
Some enums which use different names for values than libc still set the
discriminators manually.
closes #254
|
|
The datatype for kevent.filter is u32 on NetBSD and
i16 on all other supported platforms. This was recently
fixed in upstream libc, breaking this API, so this
fixes it.
This change also modernizes the code a bit to unify the
EventFilter datatype across platforms and switch to the
libc_enum! macro.
|
|
|
|
It is a somewhat newer option -- it requires Linux 3.8.
|
|
|
|
778: Replace most Linux man page links with Open Group man page links r=posborne a=asomers
But leave in place Linux links for non-standard functions. Also, add
brief docs for some functions that were lacking them.
|
|
But leave in place Linux links for non-standard functions. Also, add
brief docs for some functions that were lacking them.
|
|
|
|
|
|
|
|
Previously, the `AioCb`'s `in_progress` field would erroneously be set
to `true`, even if the syscall had an error
Fixes #714
|
|
Printing a warning message to stderr isn't really appropriate, because
there's no way to guarantee that stderr is even valid. Nor is
aio_suspend necessarily an appropriate action to take.
|
|
746: Replace socket FFI with libc versions r=asomers a=Susurrus
Getting this up there to get some CI run on it. Replacing the `msghdr`, `cmsghdr`, and other FFI function declarations will be a little more involved so I wanted to run this through first.
|
|
750: Migrate quota module to libc FFI types r=asomers a=Susurrus
|
|
|
|
745: Use upstream libc definitions for fcntl FFI r=asomers a=Susurrus
|
|
|
|
749: Moved ptrace constants into enum types plus minor additions r=Susurrus a=xd009642
Reopening of #734 hence the branch name, changelog will be updated once the pr number of this new pull request is known.
|