Commit Graph

15 Commits

Author SHA1 Message Date
SteveLauC
6961f0fabd
refactor: cfg for test/* (#2230)
* refactor: cfg for test/*

* one more netbsdlike

* more cfg
2023-12-09 16:15:41 +00:00
David CARLIER
da451400ea
sys::sendfile adding solaris' sendfilev wrapper proposal. (#2207) 2023-12-04 06:28:48 +00:00
Alan Somers
2afff8194c
Add more cfg aliases (#2205)
* Add more cfg aliases

Add cfg aliases for linux_android, bsd, and freebsdlike.  Use them in
many places, though not everywhere they could theoretically be used.

Fixes #2188

* Use apple_targets in build.rs

Co-authored-by: SteveLauC <stevelauc@outlook.com>

* whitespace

Co-authored-by: SteveLauC <stevelauc@outlook.com>

* Define a "solarish" target alias.

* Describe cfg aliases in CONVENTIONS.md

* solarish in line 803

* solarish in line 845

* fix fmt

---------

Co-authored-by: SteveLauC <stevelauc@outlook.com>
2023-11-25 06:32:06 +00:00
Luís Cruz
49283c9031
Add apple tvos support (#2169) 2023-11-09 01:00:20 +00:00
Jonathan Woollett-Light
8ad064d7b9
feat: I/O safety pipe, pipe2 & write (#2100) 2023-09-30 07:52:11 +00:00
Alan Somers
4589411229 Clippy cleanup 2023-07-15 11:52:09 -06:00
Steve Lau
ab5c032e42 feat: I/O safety for 'sys/sendfile' 2022-12-09 11:50:45 +08:00
Costin-Robert Sin
3e6cb639f0 Fix all formating problems to pass CI formating test
Signed-off-by: Costin-Robert Sin <sin.costinrobert@gmail.com>
2022-06-24 00:35:52 +03:00
Ryan Zoeller
4d5c090fcf Add sendfile(2) for DragonFly 2022-01-03 04:05:09 -06:00
Tom Dryer
65ab8d7fca Disable sendfile64 on android
It's not available from libc on that platform.
2021-05-28 16:04:44 -07:00
Tom Dryer
81c9e2d9a8 Add sendfile64
`sendfile64` is a Linux-specific call with a wider type for the `offset`
argument than `sendfile`.

This is largely a copy of the existing `sendfile` function and
associated test.
2021-05-28 15:01:42 -07:00
Andrew Morrow
325c43c6d5 Implement sendfile on FreeBSD and Darwin 2018-05-28 21:39:20 -06:00
Bryant Mairs
ae8e4a4ba0 Remove elided 'static lifetime
As of Rust 1.17 'static lifetimes are implied when
declaring consts.
2017-12-20 07:05:04 -08:00
Bryant Mairs
149d6c1009 Use write_all instead of write
Several tests make the assumption that all data is written, which
is not guaranteed with write(), so use write_all() instead.
2017-12-20 07:05:04 -08:00
Kamal Marhubi
4680d50a8a linux: Add sendfile(2) 2016-02-12 21:12:14 -05:00