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

Unified Diff: src/untrusted/nacl/getsid.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/getpgid.c ('k') | src/untrusted/nacl/kill.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/nacl/getsid.c
diff --git a/src/untrusted/nacl/chdir.c b/src/untrusted/nacl/getsid.c
similarity index 61%
copy from src/untrusted/nacl/chdir.c
copy to src/untrusted/nacl/getsid.c
index 2acc4c0aef86e239b0716259309e58622d9cde92..a2359df111f4af10d5128132a17c56d4fc5866a7 100644
--- a/src/untrusted/nacl/chdir.c
+++ b/src/untrusted/nacl/getsid.c
@@ -10,17 +10,18 @@
#include "native_client/src/untrusted/nacl/nacl_irt.h"
-int chdir(const char *path) {
- if (!__libnacl_irt_init_fn(&__libnacl_irt_dev_filename.chdir,
- __libnacl_irt_dev_filename_init)) {
+pid_t getsid(pid_t pid) {
+ if (!__libnacl_irt_init_fn(&__libnacl_irt_dev_process.getpgid,
+ __libnacl_irt_dev_process_init)) {
return -1;
}
- int error = __libnacl_irt_dev_filename.chdir(path);
+ pid_t sid;
+ int error = __libnacl_irt_dev_process.getsid(pid, &sid);
if (error) {
errno = error;
return -1;
}
- return 0;
+ return sid;
}
« no previous file with comments | « src/untrusted/nacl/getpgid.c ('k') | src/untrusted/nacl/kill.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698