diff options
author | Nico Weber <thakis@chromium.org> | 2020-06-15 21:36:08 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-17 18:49:06 +0200 |
commit | 4720635aabc06e3ad24bae8a3b08afe6bdb00ae7 (patch) | |
tree | fb564829f921cf9b0a12627935c962e929263ae5 /Base/res/html/misc | |
parent | 662131bd3819676a1fc8130f99e5b7934d947d33 (diff) | |
download | serenity-4720635aabc06e3ad24bae8a3b08afe6bdb00ae7.zip |
LibC: Add posix_spawn()!
All the file actions stuff is still missing for now,
as is POSIX_SPAWN_SETSCHEDULER (not sure what that's
supposed to do) and POSIX_SPAWN_RESETIDS.
Implemented in userspace for now. Once there are users,
it'll likely make sense to make this a syscall for
performance reasons.
A simple test program of the form
extern char **environ;
int main(int argc, char* argv[])
{
pid_t pid;
char* args[] = { "ls", NULL };
posix_spawnp(&pid, "ls", nullptr, nullptr, args, environ);
}
works fine.
Diffstat (limited to 'Base/res/html/misc')
0 files changed, 0 insertions, 0 deletions