ReturnInfinity / BareMetal-OS-legacy

BareMetal is a 64-bit OS for x86-64 based computers. The OS is written entirely in Assembly while applications can be written in Assembly, C/C++, and Rust.
1.74k stars 303 forks source link

Provide a minimal implementation of the newlib syscalls environ variable #78

Closed vilhelmgray closed 9 years ago

vilhelmgray commented 9 years ago

This is similar to issue #77. The definition of the newlib syscalls environ variable is missing. Standard C library functions such as getenv depend on a proper environ implementation.

This is a minimal implementation of the environ variable: a pointer to an empty list. This should allow programs to fail gracefully.

vilhelmgray commented 9 years ago

I'm not certain, but Newlib may already provide a default minimal implementation of environ, which would make this pull request moot.