| Index: src/untrusted/nacl/pipe.c
|
| diff --git a/src/untrusted/nacl/fsync.c b/src/untrusted/nacl/pipe.c
|
| similarity index 66%
|
| copy from src/untrusted/nacl/fsync.c
|
| copy to src/untrusted/nacl/pipe.c
|
| index a7d725698600b93e96c6c3c0239fe2b3b20bfb11..337245ee7552b2f77dce53fbb7184f6288b89d81 100644
|
| --- a/src/untrusted/nacl/fsync.c
|
| +++ b/src/untrusted/nacl/pipe.c
|
| @@ -7,15 +7,13 @@
|
| #include <errno.h>
|
| #include <unistd.h>
|
|
|
| -#include "native_client/src/untrusted/nacl/nacl_irt.h"
|
| -
|
| -int fsync(int fd) {
|
| - if (!__libnacl_irt_init_fn(&__libnacl_irt_dev_fdio.fsync,
|
| +int pipe(int fd[2]) {
|
| + if (!__libnacl_irt_init_fn(&__libnacl_irt_dev_fdio.pipe,
|
| __libnacl_irt_dev_fdio_init)) {
|
| return -1;
|
| }
|
|
|
| - int error = __libnacl_irt_dev_fdio.fsync(fd);
|
| + int error = __libnacl_irt_dev_fdio.pipe(fd);
|
| if (error) {
|
| errno = error;
|
| return -1;
|
|
|