Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-10-16 | Attempt to fix build for non-{android,linux} platforms | David Hou | |
2016-10-16 | wait: Support ptrace events for Linux | David Hou | |
2016-09-17 | Removes SIGSTKFLT when cross-compiling to MIPS. | Tim Ryan | |
2016-09-17 | Fixed a bug where UnixAddr::new_abstract forgot to count the null-byte. | Mathias Svensson | |
2016-09-17 | Auto merge of #410 - fiveop:epoll_create1, r=posborne | Homu | |
Add epoll_create1 In order to get @kubo39's PR #384 forward, I cleaned up the commit history a bit and added `EpollEvent` back. Since this module is used by mio, maybe @carllerche could comment on these changes. | |||
2016-09-15 | Rename EpollEventKind to EpollFlags, according to convention. | Philipp Matthias Schaefer | |
2016-09-15 | Add EpollCrateFlags bitflag type. | Philipp Matthias Schaefer | |
2016-09-09 | Add MSG_CMSG_CLOEXEC to MsgFlags on Linux | Sebastian Dröge | |
Fixes #421. | |||
2016-09-08 | Add property readers to EpollEvent | Philipp Matthias Schaefer | |
2016-09-08 | Readd EpollEvent | Philipp Matthias Schaefer | |
2016-09-08 | Use libc's declarations | Hiroki Noda | |
2016-09-08 | Not to set EPOLL_CLOEXEC by default. | Hiroki Noda | |
2016-09-08 | Add epoll_create1 and set EPOLL_CLOEXEC flag by default. | Hiroki Noda | |
2016-08-25 | Implement `Clone` for `FdSet` on Mac/iOS | Murarth | |
2016-08-10 | Fix nix on FreeBSD amd64 | Alan Somers | |
On Linux, the cmsg_len field of struct cmsghdr has type size_t, but it has size socklen_t on POSIX-compliant operating systems. So on POSIX-compliant 64-bit operating systems, struct cmsghdr has padding gaps that aren't present on Linux. Most of the issues fixed by this commit related to those gaps. src/sys/socket/ffi.rs Fix the type of the cmsg_data field so the struct layout will be correct. src/sys/socket/mod.rs In CmsgIterator.next, only return a single file descriptor. sendmsg(2) can only stuff a single file descriptor into each cmsg. In cmsg_align, fix the rounding calculation, and eliminate a division instruction. Add a missing cmsg_align call in ControlMessage.len In ControlMessage.encode_into, add any necessary padding bytes between the cmsghdr and the data. In sendmsg, fix some len<->capacity confusion. | |||
2016-08-10 | Fix the sockopt_impl matcher rule order. | Alan Somers | |
Rules for generic types were located above rules for specific types, so the rules for specific types never got matched. This caused the sys::socket::sockopt::test::can_get_listen_on_tcp_socket test to fail on FreeBSD. The solution is to put all of the generic rules at the bottom. | |||
2016-07-18 | Fix NetBSD build | Tobias Bucher | |
2016-07-14 | Name enum variants after the libc constants | Sergey Bugaev | |
2016-07-14 | Revert "Manually match on RebootMode::*" | Sergey Bugaev | |
This reverts commit 012c6623c9c50aca91b81e6d30800613f515f898. | |||
2016-07-14 | Add some documentation | Sergey Bugaev | |
2016-07-14 | Switch Clone and Copy | Sergey Bugaev | |
2016-07-13 | Manually match on RebootMode::* | Sergey Bugaev | |
2016-07-13 | Use libc's declarations | Sergey Bugaev | |
2016-07-13 | Stop targeting Android | Sergey Bugaev | |
2016-07-13 | Ignore the overflow for constants | Sergey Bugaev | |
Force using the constants even on x86 where they do not fit into isize (c_int) | |||
2016-07-13 | Add some basic docs for reboot::set_cad_enabled() | Sergey Bugaev | |
2016-07-13 | Add the initial implementation of reboot() | Sergey Bugaev | |
2016-07-03 | eventfd: Follow nix conventions | Kamal Marhubi | |
This commit revamps to eventfd to follow nix conventions: - drop in-crate FFI definitions - rename EventFdFlag to EfdFlags Additionally, it changes the initval argument to be a libc::c_uint, matching the actual type. | |||
2016-07-01 | Auto merge of #379 - nikklassen:wait-flags, r=fiveop | Homu | |
Add missing wait flag WUNTRACED for non-Linux systems My understanding is that this flag is required by POSIX, so all systems should allow for it | |||
2016-06-29 | Replace wait constants with libc constants | Nik Klassen | |
2016-06-26 | Convert signal constants to enumeration. | Philipp Matthias Schaefer | |
2016-06-10 | Add missing wait flag WUNTRACED for non-Linux systems | Nik Klassen | |
2016-05-06 | Add missing signals. | Philipp Matthias Schaefer | |
2016-05-03 | Auto merge of #367 - justinlatimer:so-original-dst, r=kamalmarhubi | Homu | |
Add SO_ORIGINAL_DST In Linux, the SO_ORIGINAL_DST socket option can be used to get the original destination, which can be needed if the connection is translated by a NAT, i.e. iptables. In C, this information can be obtained by ``getsockopt(fd, SOL_IP, SO_ORIGINAL_DST, &remote, &remote_len)`` and returns a ``sockaddr_in`` struct. I've added a binding for this option. Thanks! | |||
2016-05-02 | Add SO_ORIGINAL_DST | Justin Latimer | |
2016-05-01 | Support sockaddr_nl in sockaddr_storage_to_addr(). | James Peach | |
Add support for converting AF_NETLINK sockaddr_nl addresses to Sockaddr::Netlink(). This lets socket::recvmsg() work on netlink sockets. | |||
2016-04-22 | Add SigSet::extend and SigSet::clear. | Philipp Matthias Schaefer | |
2016-04-20 | Last few constants | arcnmx | |
2016-04-19 | Use constants from libc | arcnmx | |
2016-04-18 | Add some missing SFlags | arcnmx | |
2016-04-14 | fixed a few clippy warnings | Andre Bogus | |
2016-04-02 | Fix raw_pointer_derive warning | Kamal Marhubi | |
This commit adds a small build script to detect if we need to `#[allow(raw_pointer_derive)]` and makes the attribute conditional. Refs #337 | |||
2016-03-30 | socket: Respect IPv6 flowinfo and scope_id in InetAddr::from_std | Kamal Marhubi | |
Fixes #329 | |||
2016-03-28 | epoll: Add EPOLLEXCLUSIVE flag. | kubo39 | |
EPOLLEXCLUSIVE flag is available in Linux4.5. | |||
2016-03-17 | Auto merge of #311 - fiveop:context, r=@kamalmarhubi | Homu | |
Add context module. The module wraps context handling related functions and structs. | |||
2016-03-16 | mman: Use libc_bitflags macro for ProtFlags | Kamal Marhubi | |
This serves as an example use of the libc_bitflags macro. | |||
2016-03-14 | Add context module. | Philipp Matthias Schaefer | |
The module wraps context handling related functions and structs. | |||
2016-03-13 | Rename flags to conform to conventions. | Philipp Matthias Schaefer | |
Resolves #290. | |||
2016-03-12 | android: Fix reference to libc::ioctl | Kamal Marhubi | |
This fixes an import that was missed in the upgrade from libc 0.1 series to 0.2 series. Refs https://github.com/nix-rust/nix/issues/298 | |||
2016-03-11 | Use sigwait function from libc instead of own ffi function. | Philipp Matthias Schaefer | |