mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47:35 +00:00
LibC: Implement enough missing stuff to get bash-5.0 running. :^)
This commit is contained in:
parent
5158bee08c
commit
736e852525
26 changed files with 125 additions and 37 deletions
|
@ -7,6 +7,7 @@ __BEGIN_DECLS
|
|||
|
||||
#define EXIT_SUCCESS 0
|
||||
#define EXIT_FAILURE 1
|
||||
#define MB_CUR_MAX 1
|
||||
|
||||
void* malloc(size_t) __MALLOC;
|
||||
void free(void*);
|
||||
|
@ -22,6 +23,8 @@ char* ptsname(int fd);
|
|||
int ptsname_r(int fd, char* buffer, size_t);
|
||||
int abs(int);
|
||||
int system(const char* command);
|
||||
char* mktemp(char*);
|
||||
void* bsearch(const void* key, const void* base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));
|
||||
|
||||
#define RAND_MAX 32767
|
||||
int rand();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue