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:
parent
3e0a0dd7ed
commit
8249c086c3
8 changed files with 0 additions and 71 deletions
|
@ -9,7 +9,6 @@ LIBC_OBJS = \
|
|||
stdio.o \
|
||||
unistd.o \
|
||||
string.o \
|
||||
process.o \
|
||||
mman.o \
|
||||
dirent.o \
|
||||
stdlib.o \
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue