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:
parent
9b70808ab5
commit
d5d45d1088
31 changed files with 567 additions and 61 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue