1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:37:47 +00:00

Get rid of redundant sys$spawn now that we have fork+exec.

This commit is contained in:
Andreas Kling 2018-11-09 10:22:14 +01:00
parent 3e0a0dd7ed
commit 8249c086c3
8 changed files with 0 additions and 71 deletions

View file

@ -9,7 +9,6 @@ LIBC_OBJS = \
stdio.o \
unistd.o \
string.o \
process.o \
mman.o \
dirent.o \
stdlib.o \

View file

@ -1,14 +0,0 @@
#include "process.h"
#include "errno.h"
#include <Kernel/Syscall.h>
extern "C" {
int spawn(const char* path, const char** args, const char** envp)
{
int rc = Syscall::invoke(Syscall::SC_spawn, (dword)path, (dword)args, (dword)envp);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}

View file

@ -1,11 +0,0 @@
#pragma once
#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS
pid_t spawn(const char* path, const char** args, const char** envp);
__END_DECLS