Skip to content
Snippets Groups Projects
Commit f6db153e authored by Paul Sajna's avatar Paul Sajna
Browse files

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

parents 95424b3c f01c6697
No related branches found
No related tags found
No related merge requests found
#ifndef _BITS_ERRNO_H
#define _BITS_ERRNO_H
//TODO extern __thread int errno;
extern int errno;
#endif /* _BITS_ERRNO_H */
extern __thread int errno;
sys_includes = [] sys_includes = ["bits/errno.h"]
include_guard = "_ERRNO_H" include_guard = "_ERRNO_H"
language = "C" language = "C"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
extern crate platform; extern crate platform;
#[repr(C)]
pub enum Errno { pub enum Errno {
// Argument list too long // Argument list too long
E2BIG = 1, E2BIG = 1,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#![no_std] #![no_std]
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
#![feature(thread_local)] //TODO #![feature(thread_local)]
#[cfg(all(not(feature = "no_std"), target_os = "linux"))] #[cfg(all(not(feature = "no_std"), target_os = "linux"))]
#[macro_use] #[macro_use]
...@@ -28,7 +28,7 @@ use core::fmt; ...@@ -28,7 +28,7 @@ use core::fmt;
use types::*; use types::*;
#[thread_local] //TODO #[thread_local]
#[no_mangle] #[no_mangle]
pub static mut errno: c_int = 0; pub static mut errno: c_int = 0;
......
...@@ -37,4 +37,4 @@ GCCTAIL=\ ...@@ -37,4 +37,4 @@ GCCTAIL=\
../openlibm/libopenlibm.a ../openlibm/libopenlibm.a
%: %.c %: %.c
gcc -fno-stack-protector -Wall $(GCCHEAD) "$<" $(GCCTAIL) -o "$@" gcc -no-pie -fno-stack-protector -Wall $(GCCHEAD) "$<" $(GCCTAIL) -o "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment