Readd os::cygwin::raw as pub(crate)
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
//! Cygwin-specific definitions
|
//! Cygwin-specific definitions
|
||||||
#![stable(feature = "raw_ext", since = "1.1.0")]
|
#![stable(feature = "raw_ext", since = "1.1.0")]
|
||||||
pub mod fs;
|
pub mod fs;
|
||||||
|
pub(crate) mod raw;
|
||||||
|
|||||||
4
library/std/src/os/cygwin/raw.rs
Normal file
4
library/std/src/os/cygwin/raw.rs
Normal file
@@ -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};
|
||||||
@@ -344,7 +344,6 @@ impl Drop for Thread {
|
|||||||
target_os = "illumos",
|
target_os = "illumos",
|
||||||
target_os = "vxworks",
|
target_os = "vxworks",
|
||||||
target_vendor = "apple",
|
target_vendor = "apple",
|
||||||
target_os = "cygwin",
|
|
||||||
))]
|
))]
|
||||||
fn truncate_cstr<const MAX_WITH_NUL: usize>(cstr: &CStr) -> [libc::c_char; MAX_WITH_NUL] {
|
fn truncate_cstr<const MAX_WITH_NUL: usize>(cstr: &CStr) -> [libc::c_char; MAX_WITH_NUL] {
|
||||||
let mut result = [0; MAX_WITH_NUL];
|
let mut result = [0; MAX_WITH_NUL];
|
||||||
|
|||||||
Reference in New Issue
Block a user