Compare commits
No commits in common. "cbe835a2c82a918fd857d7c255c20ec723b72e78" and "684fa1c4b01366b44cf15835237ef176e3722148" have entirely different histories.
cbe835a2c8
...
684fa1c4b0
|
|
@ -43,7 +43,6 @@ set(LIBC_SOURCES
|
|||
strings.cpp
|
||||
sys/banan-os.cpp
|
||||
sys/epoll.cpp
|
||||
sys/eventfd.cpp
|
||||
sys/file.cpp
|
||||
sys/futex.cpp
|
||||
sys/ioctl.cpp
|
||||
|
|
@ -100,8 +99,8 @@ banan_install_headers(objlibc)
|
|||
add_library(libc-static STATIC $<TARGET_OBJECTS:objlibc>)
|
||||
add_library(libc-shared SHARED $<TARGET_OBJECTS:objlibc>)
|
||||
|
||||
target_link_options(libc-static PRIVATE -nolibc -nostdlib++)
|
||||
target_link_options(libc-shared PRIVATE -nolibc -nostdlib++)
|
||||
target_link_options(libc-static PRIVATE -nolibc)
|
||||
target_link_options(libc-shared PRIVATE -nolibc)
|
||||
|
||||
install(TARGETS libc-static OPTIONAL)
|
||||
install(TARGETS libc-shared OPTIONAL)
|
||||
|
|
|
|||
|
|
@ -28,14 +28,6 @@ static const char* errno_to_string(int error);
|
|||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
size_t strlen(const char* s)
|
||||
{
|
||||
size_t len = 0;
|
||||
while (*s++)
|
||||
len++;
|
||||
return len;
|
||||
}
|
||||
|
||||
int strcmp(const char* s1, const char* s2)
|
||||
{
|
||||
const unsigned char* u1 = reinterpret_cast<const unsigned char*>(s1);
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@ inline void print_uint(int fd, T val, uint8_t base = 10)
|
|||
print(fd, ptr);
|
||||
}
|
||||
|
||||
size_t strlen(const char* s);
|
||||
|
||||
int strcmp(const char* s1, const char* s2);
|
||||
char* strcpy(char* __restrict s1, const char* __restrict s2);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue