mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Add a simple ELF binary called _test.o to the test fs.
This commit is contained in:
parent
f67d695254
commit
5b10846bed
3 changed files with 20 additions and 0 deletions
|
@ -4,6 +4,14 @@
|
|||
|
||||
namespace Userspace {
|
||||
|
||||
int strlen(const char* str)
|
||||
{
|
||||
int len = 0;
|
||||
while (*(str++))
|
||||
++len;
|
||||
return len;
|
||||
}
|
||||
|
||||
int open(const char* path)
|
||||
{
|
||||
return DO_SYSCALL_A2(Syscall::PosixOpen, path, strlen(path));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue