- Apr 13, 2020
-
-
Yuki Okushi authored
-
Yuki Okushi authored
-
Yuki Okushi authored
-
Yuki Okushi authored
-
Yuki Okushi authored
-
Yuki Okushi authored
-
Yuki Okushi authored
-
Yuki Okushi authored
-
Yuki Okushi authored
Remove license headers
-
Yuki Okushi authored
Add bindings for POSIX regexes
-
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 11, 2020
-
-
Yuki Okushi authored
-
Yuki Okushi authored
unix: add strndup()
-
Matthias Schiffer authored
Add strndup(), as specified by POSIX.1-2008.
-
Yuki Okushi authored
-
Yuki Okushi authored
Run rustfmt
-
Yuki Okushi authored
-
Yuki Okushi authored
Split up Solaris and illumos targets
-
Yuki Okushi authored
Add definition of ucontext_t for aarch64-unknown-linux-gnu
-
Yuki Okushi authored
Add defines for HUGETLB size - solves #1700
-
- Apr 10, 2020
-
-
Alex Crichton authored
-
- Apr 09, 2020
-
-
Guillume DIDIER authored
This adds the defines from include/uapi/asm-generic/hugetlb_encode.h and the corresponding defines in include/uapi/linux/mman.h to linux_like/linux/gnu/mod.rs and the equivalent for musl in linux_like/linux/musl/mod.rs Solves #1700 Removes two defines from musl/b32/hexagon.rs that are now provided two mudules "up"
-
- Apr 08, 2020
-
-
Yuki Okushi authored
Add strsignal(3) to unix
-
Yuki Okushi authored
Use fork ctest until the maintainer gets back
-
- Apr 07, 2020
-
-
Yuki Okushi authored
-
Brian Gavin authored
This does not add sys_siglist because the docs specify that the function should be used instead, whenever possible.
-
Yuki Okushi authored
Add Linux UDP constants
-
Yuki Okushi authored
Update freebsd 12 image
-
Yuki Okushi authored
-
Yuki Okushi authored
fix cfmakeraw() for illumos and Solaris
-
Gleb Pomykalov authored
-
- Apr 06, 2020
-
-
Gleb Pomykalov authored
-
- Apr 05, 2020
-
-
Yuki Okushi authored
linux: add fanotify(7) API bindings.
-
Yuki Okushi authored
Set rustup profile to minimal on CI
-
- 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
-
Yuki Okushi authored
-
Joshua M. Clulow authored
This change fixes two issues. First, the current cfmakeraw() implementation in this crate appears to be making a stack copy of the input "struct termios" before modifying it, rather than correctly modifying the original through the pointer. Before this modification the routine did not, thus, set the flags for raw mode. Second, we address the default settings of the MIN and TIME terminal options. On at least FreeBSD and Linux systems, the modern default value for MIN appears to be 1; i.e., block and wait for at least one input byte. On most Solaris and illumos systems, the MIN control character slot overlaps with EOF, and thus has a default value of 4. This breaks at least the examples in the "termion" crate, and probably quite a lot of other software written first and foremost for Linux systems. We need to force the MIN value to 1 while switching to raw mode.
-
- Apr 03, 2020
-
-
Patrick Mooney authored
-
Patrick Mooney authored
-
- Apr 01, 2020
-
-
Yuki Okushi authored
Clean up unnecessary link_name attributes
-