| Index: ports/nacl-spawn/include/spawn.h
|
| diff --git a/ports/nacl-spawn/include/spawn.h b/ports/nacl-spawn/include/spawn.h
|
| index c08d0d7e60b870fd217e78d4bdc3c770a5fb7891..dc8cd45b7d47cab0b03c72d494f57bccdfdb9859 100644
|
| --- a/ports/nacl-spawn/include/spawn.h
|
| +++ b/ports/nacl-spawn/include/spawn.h
|
| @@ -60,6 +60,35 @@ int spawnve(int mode, const char* path, char *const argv[], char *const envp[]);
|
| void jseval(const char* cmd, char** data, size_t* len);
|
|
|
| /*
|
| + * Create a pipe that can communicate cross-process via JS.
|
| + *
|
| + * Args:
|
| + * pipefd: Point to place to store a read [0] and write [1] fd.
|
| + * Returns:
|
| + * Zero on success.
|
| + * TODO(bradnelson): The should work differently, see both:
|
| + * https://bugs.chromium.org/p/webports/issues/detail?id=247
|
| + * https://bugs.chromium.org/p/webports/issues/detail?id=248
|
| + */
|
| +int nacl_spawn_pipe(int pipefd[2]);
|
| +
|
| +/*
|
| + * Create a pipe that can communicate cross-process via JS w/ flags.
|
| + *
|
| + * Args:
|
| + * flags: Flags to create the fd's with (for example O_NONBLOCK).
|
| + * pipefd: Point to place to store a read [0] and write [1] fd.
|
| + * Returns:
|
| + * Zero on success.
|
| + * This is needed because currently fusefs doesn't route information
|
| + * about if an fd has been made O_NONBLOCK via fcntl.
|
| + * TODO(bradnelson): The should work differently, see both:
|
| + * https://bugs.chromium.org/p/webports/issues/detail?id=247
|
| + * https://bugs.chromium.org/p/webports/issues/detail?id=248
|
| + */
|
| +int nacl_spawn_pipe_flags(int flags, int pipefd[2]);
|
| +
|
| +/*
|
| * Implement vfork as a macro.
|
| *
|
| * Returns:
|
|
|