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

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

Issue 627103003: Add shared library version of libcli_main Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « ports/nacl-spawn/path_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/nacl-spawn/spawn.h
diff --git a/ports/nacl-spawn/spawn.h b/ports/nacl-spawn/spawn.h
deleted file mode 100644
index f00b09f61dfb6d169e58309155e330f63916ddf9..0000000000000000000000000000000000000000
--- a/ports/nacl-spawn/spawn.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) 2014 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include <sys/types.h>
-#include <sys/wait.h>
-
-#ifdef __BIONIC__
-// TODO(sbc): remove this once bionic toolchain gets a copy of
-// spawn.h.
-#include <bsd_spawn.h>
-#else
-#include_next <spawn.h>
-#endif
-
-/*
- * Include guards are here so that this header can forward to the next one in
- * presence of an already installed copy of nacl-spawn.
- */
-#ifndef _NACL_SPAWN_SPAWN_H_
-#define _NACL_SPAWN_SPAWN_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * Spawn a child using the given args.
- *
- * Args:
- * mode: Execute mode, one of the defines below.
- * path: The program to run.
- * argv: The startup arguments for the child.
- * Returns:
- * Process id of the child or -1 for error.
- */
-extern int spawnv(int mode, const char* path, char *const argv[]);
-
-/*
- * Spawn a child using the current environment and given args.
- *
- * Args:
- * mode: Execute mode, one of the defines below.
- * path: The program to run.
- * argv: The startup arguments for the child.
- * envp: The environment to run the child in.
- * Returns:
- * Process id of the child or -1 for error.
- */
-extern int spawnve(int mode, const char* path,
- char *const argv[], char *const envp[]);
-#define P_WAIT 0
-#define P_NOWAIT 1
-#define P_NOWAITO 1
-#define P_OVERLAY 2
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
« no previous file with comments | « ports/nacl-spawn/path_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698