1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:08:12 +00:00

Rage hacking to get bash to run. It finally runs. So cool! :^)

This commit is contained in:
Andreas Kling 2018-11-11 15:36:40 +01:00
parent 9b70808ab5
commit d5d45d1088
31 changed files with 567 additions and 61 deletions

View file

@ -2,6 +2,7 @@
#include <errno.h>
#include <stdio.h>
#include <signal.h>
#include <assert.h>
extern "C" {
@ -97,6 +98,14 @@ void memcpy(void* dest, const void* src, size_t n)
*(bdest++) = *(bsrc++);
}
void memmove(void* dest, const void* src, size_t n)
{
if (dest < src)
return memcpy(dest, src, n);
// FIXME: Implement backwards copy.
assert(false);
}
char* strcpy(char* dest, const char *src)
{
char* originalDest = dest;