- Oct 24, 2020
-
-
George Hopkins authored
Co-authored-by:
Yuki Okushi <huyuumi.dev@gmail.com>
-
- Oct 21, 2020
-
-
George Hopkins authored
We leave IPPROTO_MAX as is for the time being. However, in recent kernel releases IPPROTO_MAX is actually higher and reflects the addition of IPPROTO_MPTCP.
-
- Oct 20, 2020
-
-
Fabian Muscariello authored
-
- Oct 16, 2020
-
-
Eduardo Sánchez Muñoz authored
-
- Oct 15, 2020
-
-
Eduardo Sánchez Muñoz authored
-
Eduardo Sánchez Muñoz authored
These trait implementations exposed an unsound API (see https://github.com/rust-lang/libc/issues/1501)
-
- Sep 11, 2020
-
-
LinkTed authored
-
- Aug 22, 2020
-
-
Daniil Bondarev authored
Previously clock_getcpuclockid was enabled only on linux, with this change it is enabled on all linux_like and freebsdlike.
-
- Jul 25, 2020
-
-
Gabriel Majeri authored
-
- Jul 23, 2020
-
-
Daniil Bondarev authored
Co-authored-by:
Yuki Okushi <huyuumi.dev@gmail.com>
-
- Jul 22, 2020
-
- 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>
-
- Apr 15, 2020
-
-
Hiroki Noda authored
Co-Authored-By:
Yuki Okushi <huyuumi.dev@gmail.com>
-
- Apr 14, 2020
-
-
Hiroki Noda authored
revenge of #598
-
- Apr 13, 2020
-
-
Yuki Okushi authored
-
Yuki Okushi authored
-
Yuki Okushi authored
-
Alexander Batischev authored
Headers I used: Oh, for reference, here are the headers I used while working on this: - musl: https://git.musl-libc.org/cgit/musl/tree/include/regex.h?id=8327ae0cb23b799bc55a45e0d4bd95f5a2b1cdf1 - glibc: https://sourceware.org/git/?p=glibc.git;a=blob;f=posix/regex.h;h=87cce7f5cb8cc3b678467329b479bd511e250e61;hb=HEAD - macOS: https://opensource.apple.com/source/Libc/Libc-997.90.3/include/regex.h.auto.html - FreeBSD: https://github.com/freebsd/freebsd/blob/8103b0ddb041617b7cd161528f0ff93ff32970a2/include/regex.h - NetBSD: https://github.com/NetBSD/src/blob/61c8f6fbb7e38b20e862d5cb3ed2203312963283/include/regex.h
-
- Apr 06, 2020
-
-
Gleb Pomykalov authored
-
- Apr 04, 2020
-
-
Daniel McCarney authored
The `fanotify` API[0] is a linux-specific API for notification and interception of filesystem events. In some ways it is similar to `inotify`, but with different advantages/tradeoffs. It is particularly well suited to full filesystem/mount monitoring (vs per directory) and for allowing/denying access to files (`inotify` lacks this capability). The `fanotify` API has been updated several times since it was enabled in Linux 2.6.37. Presently I've only included support for the original `fanotify` features, and the `FAN_MARK_FILESYSTEM` addition made in Linux 4.20. There are subsequent updates in 5.0 and 5.1 not covered in this initial commit. This commit adds the relevant constants and types from `uapi/linux/fanotify.h`[1] and two new functions (`fanotify_init`[2] and `fanotify_wrap`[3]) to `src/unix/linux_like/linux/mod.rs`. While I believe this API is also present on Android I have presently limited my attention to Linux. Although this commit focuses on Linux 4.20.x's `fanotify` API/constants I have skipped adding constants for `FAN_ALL_CLASS_BITS`, `FAN_ALL_INIT_FLAGS`, `FAN_ALL_MARK_FLAGS`, `FAN_ALL_EVENTS`, `FAN_ALL_PERM_EVENTS` and `FAN_ALL_OUTGOING_EVENTS` even though they are present in this kernel version's headers. These defines were deprecated[4] in later releases with instructions to not use them in new programs or extend them with new values. It would be a shame for new Rust programs to use deprecated #defines! [0]: http://man7.org/linux/man-pages/man7/fanotify.7.html [1]: https://github.com/torvalds/linux/blob/d54f4fba889b205e9cd8239182ca5d27d0ac3bc2/include/uapi/linux/fanotify.h [2]: http://man7.org/linux/man-pages/man2/fanotify_init.2.html [3]: http://man7.org/linux/man-pages/man2/fanotify_mark.2.html [4]: https://github.com/torvalds/linux/commit/23c9deeb3285d34fd243abb3d6b9f07db60c3cf4#diff-4c9ca62be6bf38cc08f7ea9daf16e379
-
- Mar 29, 2020
-
-
Patrick Mooney authored
-
- Mar 17, 2020
-
-
Yuki Okushi authored
-
- Mar 15, 2020
-
-
Árni Dagur authored
-
- Mar 14, 2020
-
-
Thomas Hurst authored
Add AT_EACCESS to Linux, Solaris, and Fuchsia. Add AT_SYMLINK_FOLLOW, AT_REMOVEDIR, and _AT_TRIGGER to Solaris.
-
Yuki Okushi authored
-
- Mar 13, 2020
-
-
Connor Kuehl authored
-
Connor Kuehl authored
-
Connor Kuehl authored
-
- Mar 09, 2020
-
-
John Baublitz authored
-
Richard Wiedenhöft authored
-
- Mar 08, 2020
-
-
zonyitoo authored
-
- Mar 01, 2020
-
-
Michal 'vorner' Vaner authored
Constants for the linux nfqueue netlink protocol (userspace firewall). Continuation of #1562 and #1571.
-
- Feb 29, 2020
-
-
Yuki Okushi authored
-
- Feb 12, 2020
-
-
Vickenty Fesunov authored
This triggers a warning on a recent nightly, which in turn breaks CI due to `#![deny(warnings)]` in libc-test/build.rs
-
- Nov 17, 2019
-
-
Michal 'vorner' Vaner authored
-
- Nov 16, 2019
-
-
Brandon Cheng authored
Only Netlink interface link attributes up IFLA_STATS are currently available. This commit adds IFLA_COST to IFLA_PROTO_DOWN. See https://github.com/torvalds/linux/blob/54ecb8f7/include/uapi/linux/if_link.h#L106
-
- Nov 05, 2019
-
-
Arthur Gautier authored
Signed-off-by:
Arthur Gautier <baloo@gandi.net>
-
- Nov 04, 2019
-
-
Arthur Gautier authored
-
- Oct 28, 2019
-
-
Michal 'vorner' Vaner authored
First batch for #1562
-
Michal 'vorner' Vaner authored
-