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

Unified Diff: src/untrusted/nacl/kill.c

Issue 24908002: Provide IRT process interface Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 3 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 | « src/untrusted/nacl/getsid.c ('k') | src/untrusted/nacl/nacl.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/nacl/kill.c
diff --git a/src/untrusted/nacl/fchmod.c b/src/untrusted/nacl/kill.c
similarity index 61%
copy from src/untrusted/nacl/fchmod.c
copy to src/untrusted/nacl/kill.c
index eea6b936d0ff95a8efa03fabbbdcfa1e26a9dc0f..b8553956ee51094254c6cddbe06d8e8123e511ff 100644
--- a/src/untrusted/nacl/fchmod.c
+++ b/src/untrusted/nacl/kill.c
@@ -5,18 +5,18 @@
*/
#include <errno.h>
-#include <sys/stat.h>
+#include <signal.h>
#include <sys/types.h>
#include "native_client/src/untrusted/nacl/nacl_irt.h"
-int fchmod(int fd, mode_t mode) {
- if (!__libnacl_irt_init_fn(&__libnacl_irt_dev_fdio.fchmod,
- __libnacl_irt_dev_fdio_init)) {
+int kill(pid_t pid, int sig) {
+ if (!__libnacl_irt_init_fn(&__libnacl_irt_dev_process.kill,
+ __libnacl_irt_dev_process_init)) {
return -1;
}
- int error = __libnacl_irt_dev_fdio.fchmod(fd, mode);
+ int error = __libnacl_irt_dev_process.kill(pid, sig);
if (error) {
errno = error;
return -1;
« no previous file with comments | « src/untrusted/nacl/getsid.c ('k') | src/untrusted/nacl/nacl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698