Compare commits

..

2 Commits
dev ... master

4 changed files with 3 additions and 17 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.15)
project(FxLibc VERSION 1.4.5 LANGUAGES C ASM)
project(FxLibc VERSION 1.5.0 LANGUAGES C ASM)
set(CMAKE_INSTALL_MESSAGE LAZY)
@ -190,8 +190,6 @@ set(SOURCES
src/stdlib/strtoll.c
src/stdlib/strtoul.c
src/stdlib/strtoull.c
# unistd
src/unistd/_exit.c
# string
src/string/memchr.c
src/string/memcmp.c

View File

@ -45,10 +45,6 @@ extern char *getcwd(char *__buf, size_t __size);
extern int chdir(char const *__path);
/* Exit immediately, bypassing exit handlers or signal handlers. */
__attribute__((noreturn))
extern void _exit(int __status);
/* Kernel-style functions supported only by Vhex. */

View File

@ -59,6 +59,8 @@ void __printf_format_s(
size_t len = 0;
uint32_t precision = opt->precision ? opt->precision : (-1);
while(s[len] && len < precision) len++;
/* Cap precision to real value for __printf_compute_geometry() */
opt->precision = len;
struct __printf_geometry g = {
.prefix = 0, .sign = 0, .content = len,

View File

@ -1,10 +0,0 @@
#include <unistd.h>
/* Exit immediately, bypassing exit handlers or signal handlers. */
extern void _Exit(int status);
/* Alias to _Exit. */
void _exit(int status)
{
_Exit(status);
};