Martin Nordholts
ddee45e1d7
Support #[unix_sigpipe = "inherit|sig_dfl|sig_ign"]
on fn main()
...
This makes it possible to instruct libstd to never touch the signal
handler for `SIGPIPE`, which makes programs pipeable by default (e.g.
with `./your-program | head -n 1`) without `ErrorKind::BrokenPipe`
errors.
2022-08-28 19:46:45 +02:00
Vadim Petrochenkov
6eaec56ef7
library: Remove definitions and reexports of strlen
from libstd
2022-04-14 21:57:01 +03:00
Mara Bos
733153f2e5
Move std::sys::{mutex, condvar, rwlock} to std::sys::locks.
2022-03-22 18:19:47 +01:00
Thom Chiovoloni
554918e311
Hide Repr details from io::Error, and rework io::Error::new_const
.
2022-02-04 18:47:29 -08:00
Christiaan Dirkx
c93cb40b90
Move os_str_bytes
to sys::unix
and reuse it on other platforms.
2021-07-03 03:01:36 +02:00
Mara Bos
a0d11a4fab
Rename ErrorKind::Unknown to Uncategorized.
2021-06-15 14:30:13 +02:00
Mara Bos
0b37bb2bc2
Redefine ErrorKind::Other
and stop using it in std.
2021-06-15 14:22:49 +02:00
Christiaan Dirkx
e098d2730a
Move std::sys::sgx::ext
to std::os::fortanix_sgx
2021-05-03 16:56:21 +02:00
bors
49920bc581
Auto merge of #84522 - CDirkx:cmath, r=yaahc
...
Reuse `sys::unix::cmath` on other platforms
Reuse `sys::unix::cmath` on all non-`windows` platforms.
`unix` is chosen as the canonical location instead of `unsupported` or `common` because `unsupported` doesn't make sense semantically and `common` is reserved for code that is supported on all platforms. Also `unix` is already the home of some non-`windows` code that is technically not exclusive to `unix` like `unix::path`.
2021-04-30 09:52:32 +00:00
Christiaan Dirkx
26fb1e373b
Reuse unix::cmath
2021-04-28 14:25:04 +02:00
Christiaan Dirkx
e1b1081d2f
Document that init
and cleanup
are not guaranteed to run
2021-04-22 18:00:18 +02:00
Christiaan Dirkx
11445c10ab
Move most init to sys::init
2021-04-22 18:00:12 +02:00
Christiaan Dirkx
5b30662741
Rework at_exit
to cleanup
2021-04-22 10:34:48 +02:00
Christiaan Dirkx
389fef3b30
Replace Void
with never type
2021-04-20 20:53:07 +02:00
Christiaan Dirkx
af0dec2795
Rename NotSupported
to Unsupported
2021-04-18 09:29:23 +02:00
Christiaan Dirkx
1b5f117c47
Use NotSupported
in more places
2021-04-18 09:29:23 +02:00
Mara Bos
7b71719faf
Use io::Error::new_const everywhere to avoid allocations.
2021-03-21 20:22:38 +01:00
Caduser2020
1fb0a1d501
#[deny(unsafe_op_in_unsafe_fn)]
in sys/sgx
...
Run `./x.py` fmt
Add reference link
Fix reference link
Apply review suggestions.
2020-10-08 10:09:18 -05:00
Eric Huss
5a4098ed0f
Consolidate byte-identical modules.
2020-09-15 07:01:07 -07:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00