Merge branch 'master' of github.com:redox-os/relibc
This commit is contained in:
@@ -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 +0,0 @@
|
||||
extern __thread int errno;
|
||||
@@ -1,4 +1,4 @@
|
||||
sys_includes = []
|
||||
sys_includes = ["bits/errno.h"]
|
||||
include_guard = "_ERRNO_H"
|
||||
language = "C"
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
extern crate platform;
|
||||
|
||||
#[repr(C)]
|
||||
pub enum Errno {
|
||||
// Argument list too long
|
||||
E2BIG = 1,
|
||||
|
||||
@@ -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
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user