Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(976)

Unified Diff: ports/nacl-spawn/include/spawn.h

Issue 1742043002: Make M-x shell work in emacs. (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: fix Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..e8ad58bad913b4c4abaf5eb26d37e6f2e5226fb4 100644
--- a/ports/nacl-spawn/include/spawn.h
+++ b/ports/nacl-spawn/include/spawn.h
@@ -60,6 +60,29 @@ 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.
Pete Williamson 2016/02/29 20:53:47 The fact that we are adding a new function to get
bradnelson 2016/03/03 18:04:02 Done.
+ *
+ * Args:
+ * pipefd: Point to place to store a read [0] and write [1] fd.
+ * Returns:
+ * Zero on success.
+ */
+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.
+ */
+int nacl_spawn_pipe_flags(int flags, int pipefd[2]);
+
+/*
* Implement vfork as a macro.
*
* Returns:

Powered by Google App Engine
This is Rietveld 408576698