diff options
| author | 王宇逸 <Strawberry_Str@hotmail.com> | 2025-03-07 21:45:41 +0800 |
|---|---|---|
| committer | 王宇逸 <Strawberry_Str@hotmail.com> | 2025-03-10 21:23:32 +0800 |
| commit | b9fe8def52c996dcb7dd2d7ab3c362854caee8b7 (patch) | |
| tree | ab6279e0024cb5771ac44f346a4717276be9dbfd | |
| parent | c3051b1f5a6fa308cab85f37be446e7946e1f22e (diff) | |
| download | rust-b9fe8def52c996dcb7dd2d7ab3c362854caee8b7.tar.gz rust-b9fe8def52c996dcb7dd2d7ab3c362854caee8b7.zip | |
Readd os::cygwin::raw as pub(crate)
| -rw-r--r-- | library/std/src/os/cygwin/mod.rs | 1 | ||||
| -rw-r--r-- | library/std/src/os/cygwin/raw.rs | 4 | ||||
| -rw-r--r-- | library/std/src/sys/pal/unix/thread.rs | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/library/std/src/os/cygwin/mod.rs b/library/std/src/os/cygwin/mod.rs index f6385653d77..7f6d6a645c8 100644 --- a/library/std/src/os/cygwin/mod.rs +++ b/library/std/src/os/cygwin/mod.rs @@ -1,3 +1,4 @@ //! Cygwin-specific definitions #![stable(feature = "raw_ext", since = "1.1.0")] pub mod fs; +pub(crate) mod raw; diff --git a/library/std/src/os/cygwin/raw.rs b/library/std/src/os/cygwin/raw.rs new file mode 100644 index 00000000000..2bae1477fcf --- /dev/null +++ b/library/std/src/os/cygwin/raw.rs @@ -0,0 +1,4 @@ +//! Cygwin-specific raw type definitions. + +#[stable(feature = "raw_ext", since = "1.1.0")] +pub use libc::{blkcnt_t, blksize_t, dev_t, ino_t, mode_t, nlink_t, off_t, pthread_t, time_t}; diff --git a/library/std/src/sys/pal/unix/thread.rs b/library/std/src/sys/pal/unix/thread.rs index 4397cb69a09..8aac58d65a2 100644 --- a/library/std/src/sys/pal/unix/thread.rs +++ b/library/std/src/sys/pal/unix/thread.rs @@ -344,7 +344,6 @@ impl Drop for Thread { target_os = "illumos", target_os = "vxworks", target_vendor = "apple", - target_os = "cygwin", ))] fn truncate_cstr<const MAX_WITH_NUL: usize>(cstr: &CStr) -> [libc::c_char; MAX_WITH_NUL] { let mut result = [0; MAX_WITH_NUL]; |
