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

Side by Side Diff: src/untrusted/nacl/pipe.c

Issue 24908002: Provide IRT process interface Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/untrusted/nacl/nacl_irt_process.c ('k') | src/untrusted/nacl/posix_spawn.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2013 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <unistd.h> 8 #include <unistd.h>
9 9
10 #include "native_client/src/untrusted/nacl/nacl_irt.h" 10 int pipe(int fd[2]) {
11 11 if (!__libnacl_irt_init_fn(&__libnacl_irt_dev_fdio.pipe,
12 int fsync(int fd) {
13 if (!__libnacl_irt_init_fn(&__libnacl_irt_dev_fdio.fsync,
14 __libnacl_irt_dev_fdio_init)) { 12 __libnacl_irt_dev_fdio_init)) {
15 return -1; 13 return -1;
16 } 14 }
17 15
18 int error = __libnacl_irt_dev_fdio.fsync(fd); 16 int error = __libnacl_irt_dev_fdio.pipe(fd);
19 if (error) { 17 if (error) {
20 errno = error; 18 errno = error;
21 return -1; 19 return -1;
22 } 20 }
23 21
24 return 0; 22 return 0;
25 } 23 }
OLDNEW
« no previous file with comments | « src/untrusted/nacl/nacl_irt_process.c ('k') | src/untrusted/nacl/posix_spawn.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698