diff options
| author | Brian Anderson <banderson@mozilla.com> | 2016-09-30 21:01:53 +0000 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2016-11-01 17:08:24 +0000 |
| commit | 6d54cd4b2cd864fbd6f2f8d036903f88b6ea79b4 (patch) | |
| tree | 72941b7a0515fc878ffc9f63d48e25c6dcb80089 /src/libstd/sys/common | |
| parent | 8b2600dbf9a02a19acc92db5d980986cad2ea38d (diff) | |
| download | rust-6d54cd4b2cd864fbd6f2f8d036903f88b6ea79b4.tar.gz rust-6d54cd4b2cd864fbd6f2f8d036903f88b6ea79b4.zip | |
std: Move a plattform-specific constant to sys::stdio
Diffstat (limited to 'src/libstd/sys/common')
| -rw-r--r-- | src/libstd/sys/common/io.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/sys/common/io.rs b/src/libstd/sys/common/io.rs index 0483725dd83..23daeeb5187 100644 --- a/src/libstd/sys/common/io.rs +++ b/src/libstd/sys/common/io.rs @@ -12,6 +12,8 @@ use io::ErrorKind; use io::Read; use slice::from_raw_parts_mut; +pub const DEFAULT_BUF_SIZE: usize = 8 * 1024; + // Provides read_to_end functionality over an uninitialized buffer. // This function is unsafe because it calls the underlying // read function with a slice into uninitialized memory. The default |
