PatchworkOS  da8a090
A non-POSIX operating system.
Loading...
Searching...
No Matches
spawn.c
Go to the documentation of this file.
1#include <stdio.h>
2#include <sys/io.h>
3
5
6pid_t spawn(const char** argv, spawn_flags_t flags)
7{
8 pid_t result = _syscall_spawn(argv, flags);
9 if (result == ERR)
10 {
12 }
13 return result;
14}
#define errno
Error number variable.
Definition errno.h:27
spawn_flags_t
Spawn behaviour flags.
Definition proc.h:57
pid_t spawn(const char **argv, spawn_flags_t flags)
System call for spawning new processes.
Definition spawn.c:6
#define ERR
Integer error value.
Definition ERR.h:17
__UINT64_TYPE__ pid_t
Process Identifier.
Definition pid_t.h:11
static const path_flag_t flags[]
Definition path.c:42
static pid_t _syscall_spawn(const char **argv, spawn_flags_t flags)
Definition syscalls.h:107
static errno_t _syscall_errno(void)
Definition syscalls.h:118