Moved stdlib to a seperate folder and added some more headers that are required for compiling libgcc (no implementation yet).

This commit is contained in:
2024-02-02 00:01:48 +01:00
parent 00f4e0de3a
commit 712b95c9d7
22 changed files with 154 additions and 42 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#if !defined(BAD_APPLE_OS_UNISTD_H_INCLUDED)
#define BAD_APPLE_OS_UNISTD_H_INCLUDED
#include <stdint.h>
#include <sys/types.h>
#include "./detail/common.h"
BA_EXTERN_C_BEGIN
pid_t fork() BA_CXX_NOEXCEPT;
int execv(const char* pathname, char* const argv[]) BA_CXX_NOEXCEPT;
int execve(const char* pathname, char* const argv[], char* const envp[]) BA_CXX_NOEXCEPT;
int execvp(const char* file, char* const argv[]) BA_CXX_NOEXCEPT;
pid_t getpid() BA_CXX_NOEXCEPT;
BA_EXTERN_C_END
#endif // !defined(BAD_APPLE_OS_UNISTD_H_INCLUDED)