Implement isatty

This commit is contained in:
jD91mZM2
2018-07-26 14:19:20 +02:00
parent 7ff6940edd
commit 2bf426b0fb
19 changed files with 296 additions and 13 deletions
+1 -1
View File
@@ -7,5 +7,5 @@ build = "build.rs"
[build-dependencies]
cbindgen = { path = "../../cbindgen" }
[dependencies]
[target.'cfg(target_os = "linux")'.dependencies]
platform = { path = "../platform" }
+1 -2
View File
@@ -1,4 +1,4 @@
//! sys/utsname implementation for Redox, following http://pubs.opengroup.org/onlinepubs/7908799/xsh/sysutsname.h.html
//! sys/utsname implementation for linux, following http://pubs.opengroup.org/onlinepubs/7908799/xsh/sysutsname.h.html
#![no_std]
@@ -10,7 +10,6 @@ mod inner {
const UTSLENGTH: usize = 65;
#[no_mangle]
#[repr(C)]
pub struct utsname {
pub sysname: [c_char; UTSLENGTH],