Merge branch 'master' of github.com:redox-os/relibc

This commit is contained in:
Paul Sajna
2018-03-07 19:46:41 -08:00
6 changed files with 12 additions and 5 deletions
+7
View File
@@ -0,0 +1,7 @@
#ifndef _BITS_ERRNO_H
#define _BITS_ERRNO_H
//TODO extern __thread int errno;
extern int errno;
#endif /* _BITS_ERRNO_H */
-1
View File
@@ -1 +0,0 @@
extern __thread int errno;
+1 -1
View File
@@ -1,4 +1,4 @@
sys_includes = []
sys_includes = ["bits/errno.h"]
include_guard = "_ERRNO_H"
language = "C"
+1
View File
@@ -4,6 +4,7 @@
extern crate platform;
#[repr(C)]
pub enum Errno {
// Argument list too long
E2BIG = 1,
+2 -2
View File
@@ -2,7 +2,7 @@
#![no_std]
#![allow(non_camel_case_types)]
#![feature(thread_local)]
//TODO #![feature(thread_local)]
#[cfg(all(not(feature = "no_std"), target_os = "linux"))]
#[macro_use]
@@ -28,7 +28,7 @@ use core::fmt;
use types::*;
#[thread_local]
//TODO #[thread_local]
#[no_mangle]
pub static mut errno: c_int = 0;
+1 -1
View File
@@ -37,4 +37,4 @@ GCCTAIL=\
../openlibm/libopenlibm.a
%: %.c
gcc -fno-stack-protector -Wall $(GCCHEAD) "$<" $(GCCTAIL) -o "$@"
gcc -no-pie -fno-stack-protector -Wall $(GCCHEAD) "$<" $(GCCTAIL) -o "$@"